Update scripts and text to refer to version number string in emacs.c
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8c5ff6dd
KR
12010-05-15 Ken Raeburn <raeburn@raeburn.org>
2
3 Handle --version reasonably in CANNOT_DUMP configuration.
4 * emacs.c (emacs_version, emacs_copyright): New string variables.
5 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6 (syms_of_emacs): Defvar them, and initialize them from the C
7 string variables.
8 (main): If initialization hasn't been done, print initial version
9 info from the C strings, instead of starting an interactive session.
10
dbd3f723
EZ
112010-05-15 Eli Zaretskii <eliz@gnu.org>
12
d20e1419
EZ
13 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
14 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
15 (bidi_paragraph_init): Remove redundant assertion that we are at
16 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
17
18 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
19 (syms_of_xdisp): Defsubr it.
20
dbd3f723
EZ
21 * Makefile.in: Fix MSDOS-related comments.
22
02be533b
GM
232010-05-15 Glenn Morris <rgm@gnu.org>
24
1a82cca9
GM
25 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
26 (really-lwlib, really-oldXMenu): Always define.
27 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
28
3df7b338
GM
29 * Makefile.in: Simplify cpp conditional.
30
2b5f541b
GM
31 * Makefile.in (${ns_appdir}): Simplify using umask.
32
02be533b
GM
33 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
34
4e2db1fe
SM
352010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
36
37 * eval.c (specbind): Remove left-over duplicate test.
38 Disallow let-binding frame-local vars. Add comment.
39
4b292a22
EZ
402010-05-14 Eli Zaretskii <eliz@gnu.org>
41
2fe72643 42 Make the cache of bidi iterator states dynamically allocated.
1edbd309 43 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
44 (bidi_init_it): Call it.
45 (bidi_cache_iterator_state): Enlarge the cache if needed.
46
4e2db1fe 47 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
48 bidi_get_next_char_visually. All callers changed.
49
82ebc97b
KH
502010-05-14 Kenichi Handa <handa@m17n.org>
51
52 * dispextern.h (struct composition_it): New member reversed_p.
53
54 * composite.c (composition_compute_stop_pos): Search backward if
55 ENDPOS < CHARPOS.
56 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
57 Set CMP_IT->reversed_p.
b4b6e17e 58 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 59
4e2db1fe
SM
60 * xdisp.c (set_iterator_to_next):
61 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
62 scanning backward. Call composition_compute_stop_pos if scan
63 direction is changed.
64 (next_element_from_buffer): Call composition_compute_stop_pos with
65 negative ENDPOS if we are scanning backward.
66 (next_element_from_composition): Pay attention to
67 IT->cmp_it.reversed_p.
68
0e5d7800
KH
692010-05-14 Kenichi Handa <handa@m17n.org>
70
71 * font.c (font_range): Return the range for the font found at
72 first.
73
cb027b32
GM
742010-05-14 Glenn Morris <rgm@gnu.org>
75
177b0288
GM
76 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
77
fbc00890
GM
78 * Makefile.in (mktime, X11, register): Move undefs to configure.
79
f14d1dfd
GM
80 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
81 (MSDOS_X_OBJ): New variable.
82 (MSDOS_SUPPORT_REAL): New constant.
83 (MSDOS_SUPPORT): Set as a variable, not with cpp.
84 (obj): Use MSDOS_X_OBJ.
85 (lisp): Use MSDOS_SUPPORT as a variable.
86
11842bd8
GM
87 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
88 (GPM_MOUSE_SUPPORT): Now it's a constant.
89 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
90 not cpp.
91
489d31a4 92 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 93 (ns_appresdir): Remove, unused.
e20f1f07 94
489d31a4
GM
95 * Makefile.in (SHELL): Move outside cpp section.
96
cb027b32
GM
97 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
98
5a903aa9
GM
992010-05-13 Glenn Morris <rgm@gnu.org>
100
3369c79f
GM
101 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
102 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
103
d5e982a6
GM
104 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
105 HAVE_WINDOW_SYSTEM must be too.
106
6192e163
GM
107 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
108 (lisp): Remove WINNT_SUPPORT.
109
472c5d6b
GM
110 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
111 Let configure set these variables (to empty) in this case as well.
112
0116466b
GM
113 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
114 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
115
5a903aa9
GM
116 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
117 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
118 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
119 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
120 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 121 the values output by configure.
5a903aa9
GM
122 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
123
1a0d7c06
GM
1242010-05-12 Glenn Morris <rgm@gnu.org>
125
b5457f14
GM
126 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
127 (LINKER_WAS_SPECIFIED): Remove.
128
1a0d7c06
GM
129 * Makefile.in (LIB_GCC): Set using configure, not cpp.
130 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
131 * m/arm.h (LIB_GCC) [GNU_LINUX]:
132 * s/cygwin.h (LIB_GCC):
133 * s/freebsd.h (LIB_GCC):
134 * s/gnu-linux.h (LIB_GCC):
135 * s/msdos.h (LIB_GCC):
136 * s/netbsd.h (LIB_GCC):
137 Move to configure.
138
3ffd4615 1392010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
140
141 * ftfont.c: Fix incorrect parentheses of #if condition for
142 definining M17N_FLT_USE_NEW_FEATURE.
143
acddf8ae
GM
1442010-05-11 Glenn Morris <rgm@gnu.org>
145
146 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
147 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
148
ae5e04fa
EZ
1492010-05-10 Eli Zaretskii <eliz@gnu.org>
150
151 * xdisp.c (init_iterator): Don't turn on bidi reordering in
152 unibyte buffers. See
153 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
154
7490175b
GM
1552010-05-10 Glenn Morris <rgm@gnu.org>
156
97efb629
GM
157 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
158 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
159 (LIBES): Use LIBS_SYSTEM as a variable.
160 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
161 * s/aix4-2.h (LIBS_SYSTEM):
162 * s/freebsd.h (LIBS_SYSTEM):
163 * s/hpux10-20.h (LIBS_SYSTEM):
164 * s/sol2-6.h (LIBS_SYSTEM):
165 * s/unixware.h (LIBS_SYSTEM):
166 Move to configure.
167
7490175b
GM
168 * s/aix4-2.h (MAIL_USE_LOCKF):
169 * s/bsd-common.h (MAIL_USE_FLOCK):
170 * s/darwin.h (MAIL_USE_FLOCK):
171 * s/gnu-linux.h (MAIL_USE_FLOCK):
172 * s/irix6-5.h (MAIL_USE_FLOCK):
173 * s/template.h (MAIL_USE_FLOCK):
174 Move to configure.
175
0235128c 1762010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
177
178 * Version 23.2 released.
179
0235128c 1802010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
181
182 * composite.c (autocmp_chars): Save point as marker before calling
183 auto-composition-function (Bug#5984).
184
185 * lisp.h (restore_point_unwind): Add prototype.
186
187 * fileio.c (restore_point_unwind): Remove static attribute.
188
0235128c 1892010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
190
191 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
192 new feature of libotf and m17n-flt.
0235128c
SM
193 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
194 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
195 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
196 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
197 that OUT is NULL. Use OTF_drive_gsub_with_log and
198 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
199 OTF_drive_gpos.
200 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
201 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
202 Setup mflt_enable_new_feature and mflt_try_otf.
203
4721152c
J
2042010-05-08 Jan Djärv <jan.h.d@swipnet.se>
205
206 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
207
208 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
209 box and toolbar (Bug #6139).
210 (xg_create_tool_bar): Remove comment (Bug #6139).
211 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
212 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
213
ee0a16cf
JB
2142010-05-08 Juanma Barranquero <lekktu@gmail.com>
215
216 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
217 Update dependencies.
218
96d79611
EZ
2192010-05-08 Eli Zaretskii <eliz@gnu.org>
220
221 * fringe.c (update_window_fringes): Set up truncation bitmaps for
222 R2L lines.
223
40c17879
GM
2242010-05-08 Glenn Morris <rgm@gnu.org>
225
7b42b29f
GM
226 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
227
40c17879
GM
228 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
229 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
230 (termcapobj): Replace with TERMCAP_OBJ.
231 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
232 (LIBES): Use LIBS_TERMCAP as a variable.
233
234 * s/freebsd.h (osreldate.h): No longer include, since this file
235 does not use __FreeBSD_version any more.
236
237 * s/aix4-2.h (TERMINFO):
238 * s/cygwin.h (TERMINFO):
239 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
240 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
241 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
242 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
243 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
244 * s/irix6-5.h (TERMINFO):
245 * s/netbsd.h (LIBS_TERMCAP):
246 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
247 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
248 * s/usg5-4.h (TERMINFO):
249 Move to configure.
250
94b612ad
SM
2512010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
252
253 * eval.c (unbind_to): Don't unbind a local binding into the global
254 binding when the local binding disappeared. Inversely, don't unbind
255 a global binding into a newly created local binding.
256 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
257 can specify the frame to use, when applicable. Adjust callers.
258
15e12598
VB
2592010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
260 Stefan Monnier <monnier@iro.umontreal.ca>
261
262 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
263
f724825e
EZ
2642010-05-07 Eli Zaretskii <eliz@gnu.org>
265
5cba3209
EZ
266 * w32fns.c: Include w32.h.
267 (Fw32_shell_execute): Decode the error message before passing it
268 to `error'. (Bug#6126)
269
d16bdfc3
EZ
270 * msdos.c (dos_set_window_size):
271 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
272 instead of `XSYMBOL (foo)->value'.
273
59d93e87
EZ
2742010-05-07 Eli Zaretskii <eliz@gnu.org>
275
9fdec8bc
EZ
276 Fix the MS-DOS build, broken by autoconfiscation.
277
278 * Makefile.in: Don't use Make-style comments past the "start of
279 cpp stuff" line.
280 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
281
282 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
283 edited directly by msdos/sed1v2.inp).
f724825e 284
2f86b22b
GM
2852010-05-07 Glenn Morris <rgm@gnu.org>
286
287 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
288 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
289 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
290 move out of cpp section.
291 * s/freebsd.h (LD_SWITCH_SYSTEM):
292 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
293 * s/netbsd.h (LD_SWITCH_SYSTEM):
294 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
295
49ebbd65
DN
2962010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
297
298 Define LIB_STANDARD and START_FILES using autoconf.
299 * s/usg5-4.h (LIB_STANDARD):
300 * s/netbsd.h (START_FILES):
301 * s/irix6-5.h (LIB_STANDARD):
302 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
303 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
304 * s/freebsd.h (START_FILES):
305 * s/darwin.h (START_FILES):
306 * s/cygwin.h (START_FILES):
307 * s/aix4-2.h (LIB_STANDARD):
308 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
309 * Makefile.in (STARTFILES): Rename to START_FILES, define using
310 autoconf, not cpp.
311
d43c06d6
DN
3122010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
313
28823648
DN
314 Remove NEED_BSDTTY and NEED_UNISTD_H.
315 * s/hpux10-20.h (NEED_BSDTTY): Remove.
316 * s/aix4-2.h (NEED_UNISTD_H): Remove.
317 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
318 <sys/ptyio.h> and <unistd.h>.
319
aca00430
DN
320 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
321
d43c06d6
DN
322 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
323 * s/gnu.h (START_FILES): Remove empty definition.
324
3e56b11d
JD
3252010-05-06 Jan Djärv <jan.h.d@swipnet.se>
326
327 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
328
e3cf0cde
GM
3292010-05-06 Glenn Morris <rgm@gnu.org>
330
331 * Makefile.in (CPP, LN_S): Remove unused variables.
332
774b9a60
SM
3332010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
334
335 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
336
4ab92842
LM
3372010-05-05 Lawrence Mitchell <wence@gmx.li>
338
339 * m/sparc.h: Fix typo in earlier change.
340
178f2507
SM
3412010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
342
343 Misc tweaks.
344 * eval.c (Fdefvaralias): Remove unintended nested if.
345 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
346
80f00217 3472010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
348
349 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
350
ef03a4e6
DN
3512010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
352
58eb6cf0
DN
353 Remove BSD_PGRPS.
354 * s/bsd-common.h (BSD_PGRPS): Remove undef.
355 * s/gnu-linux.h (BSD_PGRPS): Remove.
356 * term.c (dissociate_if_controlling_tty):
357 * sysdep.c (narrow_foreground_group, widen_foreground_group)
358 (init_sys_modes, reset_sys_modes):
359 * emacs.c (main):
360 * callproc.c (Fcall_process, child_setup): Remove code depending
361 on BSD_PGRPS.
362
ef03a4e6
DN
363 Remove POSIX_SIGNALS.
364 * s/usg5-4.h (POSIX_SIGNALS):
365 * s/netbsd.h (POSIX_SIGNALS):
366 * s/msdos.h (POSIX_SIGNALS):
367 * s/ms-w32.h (POSIX_SIGNALS):
368 * s/hpux11.h (POSIX_SIGNALS):
369 * s/gnu.h (POSIX_SIGNALS):
370 * s/gnu-linux.h (POSIX_SIGNALS):
371 * s/freebsd.h (POSIX_SIGNALS):
372 * s/darwin.h (POSIX_SIGNALS):
373 * s/cygwin.h (POSIX_SIGNALS):
374 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
375 * s/unixware.h:
376 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
377 * process.c (create_process):
378 * syssignal.h:
379 * sysdep.c (wait_for_termination, init_signals):
380 * process.c (create_process):
381 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
382 remove all code that assumes the contrary.
383
49628785
GM
3842010-05-04 Glenn Morris <rgm@gnu.org>
385
27a2cdfc
GM
386 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
387 variable.
388 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
389 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
390 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
391 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
392 LD_SWITCH_SYSTEM_tmp.
393 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
394 New variables, set by configure.
395
eb21eab5
GM
396 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
397 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
398 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
399 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
400 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
401
49628785
GM
402 * s/aix4-2.h (C_SWITCH_SYSTEM):
403 * m/alpha.h (C_SWITCH_MACHINE):
404 Move to configure.in.
405 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
406 New variables, set by configure.
407 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
408 $c_switch_machine and $c_switch_system.
409
7dff330b
DN
4102010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
411
412 * s/hpux10-20.h (LIB_STANDARD): New definition.
413 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
414 on it, not used anymore.
415
53967e09
CY
4162010-05-03 Chong Yidong <cyd@stupidchicken.com>
417
418 * eval.c (internal_condition_case_n): Rename from
419 internal_condition_case_2.
420 (internal_condition_case_2): New function.
421
422 * xdisp.c (safe_call): Use internal_condition_case_n.
423
424 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
425 (internal_delete_file, Frename_file): Callers changed.
426
427 * buffer.c (Fkill_buffer):
428 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
429
430 * lisp.h: Update prototypes.
431
3dee6fdb
GM
4322010-05-03 Glenn Morris <rgm@gnu.org>
433
434 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
435 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
436 (LIBXT): Set with configure, not cpp.
437 (LIBX): Remove.
438 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
439
a101e0fb
DN
4402010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
441
442 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
443 The FreeBSD is not needed, the default works, Solaris version is
444 not needed, and the remaining case is not supported by configure.
445
f63d0028
JD
4462010-05-02 Jan Djärv <jan.h.d@swipnet.se>
447
448 * xsmfns.c (CHDIR_OPT): New define.
449 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
450 restarting emacs.
451
452 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
453 shut_down_emacs.
454
455 * emacs.c (USAGE1): Mention --chdir.
456 (main): Handle --chdir.
457 (standard_args): Add --chdir.
458 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
459 #5552).
460
e4814a9f
DN
4612010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
462
cd03c74a
DN
463 Remove LD_SWITCH_MACHINE.
464 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
465 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
466
c3a398a1
DN
467 Clean up IRIX code.
468 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
469 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
470
87e7285c
DN
471 Clean up AIX code.
472 * m/ibmrs6000.inp: Remove file, unused.
473 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
474 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
475 definition ...
476 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
477
80f00217
JB
478 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
479 unused.
e4814a9f 480
59ca28de
EZ
4812010-05-01 Eli Zaretskii <eliz@gnu.org>
482
197daef4
EZ
483 Emulate POSIX_SIGNALS on MS-Windows.
484
485 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
486 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
487
488 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
489 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
490 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
491
80f00217
JB
492 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
493 New stubs.
197daef4 494
af7c7572
EZ
495 Miscellaneous fixes of bidi display.
496
59ca28de
EZ
497 * xdisp.c (find_row_end): New function, refactored from display_line.
498 (display_line): Use it.
017ea819
EZ
499 (extend_face_to_end_of_line): In almost-filled rows, extend only
500 if the row is R2L and not continued.
166e930d 501 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 502 Preserve overlay and string info in row->end.
166e930d
EZ
503 (insert_left_trunc_glyphs): Support addition of left truncation
504 glyphs to R2L rows.
b47e0dcf 505 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
506 glyph between adjacent windows. Fix a crash when a display string
507 is continued to the next line. Don't return zero if cursor was
508 found by `cursor' property of a display string.
b47e0dcf
EZ
509 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
510 test for that explicitly.
59ca28de 511
7acac9f4
GM
5122010-05-01 Glenn Morris <rgm@gnu.org>
513
514 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
515 for clarity.
516 (OTHER_OBJ): Remove.
517 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
518 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
519
45841e65
KK
5202010-05-01 Karel Klíč <kklic@redhat.com>
521
522 * fileio.c (Ffile_selinux_context): Context functions may return null.
523
afc61943
DN
5242010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
525
80f00217 526 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 527
5a1bb006
GM
5282010-04-30 Glenn Morris <rgm@gnu.org>
529
530 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
531 (OTHER_OBJ): Define as a separate variable, for clarity.
532
210af043
J
5332010-04-30 Jan Djärv <jan.h.d@swipnet.se>
534
535 * xsettings.c: include limits.h and update file comment.
536
0a7df391
GM
5372010-04-30 Glenn Morris <rgm@gnu.org>
538
d5096f16
GM
539 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
540 Set with configure, not cpp.
541 (LIBW): Remove, replace with $TOOLKIT_LIBW.
542
7eb1ac33
GM
543 * Makefile.in (mallocobj): Remove.
544 (otherobj): Simplify using @OTHER_OBJ@.
545
517d086b
GM
546 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
547 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
548 Don't bother making nsgui.h dependency platform-specific.
549
0a7df391
GM
550 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
551
d6d23852
SM
5522010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
553
d2630aef
SM
554 * process.c (read_process_output, exec_sentinel): Don't burp if the
555 sentinel/filter kills the current buffer (bug#6060).
556
f9dddf52 557 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
558 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
559 Remove unused var `args'.
560 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
561 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
562 * doc.c (store_function_docstring): Use XSETCAR.
563
f1e3642a
GM
5642010-04-28 Glenn Morris <rgm@gnu.org>
565
faf535f8
GM
566 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
567 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
568
c40f9449
GM
569 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
570
658f86ca
GM
571 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
572 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
573
bc0b5f61
GM
574 * Makefile.in (FONT_OBJ): New, set by configure.
575 (FONT_DRIVERS): Use $FONT_OBJ.
576
294c50a0
GM
577 * Makefile.in (LIBXMU): Set with configure, not cpp.
578 * s/aix4-2.h (LIBXMU):
579 * s/hpux10-20.h (LIBXMU):
580 Remove definition, now set in configure.
581
e6ec4e99
GM
582 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
583
f1e3642a
GM
584 * m/amdx86-64.h [i386]: Move this test to configure.in.
585
c6ea2936
GM
5862010-04-27 Glenn Morris <rgm@gnu.org>
587
8fdac2c3
GM
588 * Makefile.in (LIBXTR6): Set with configure, not cpp.
589 * s/unixware.h (NEED_LIBW): Remove definition.
590
986fb647
GM
591 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
592 (TOOLKIT_LIBW): New, set by configure.
593 (@X_TOOLKIT_TYPE@): No longer define it.
594
c6ea2936
GM
595 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
596 (MOTIF_LIBW): Set with configure, not cpp.
597 * s/aix4-2.h (LIB_MOTIF):
598 * s/gnu-linux.h (LIB_MOTIF):
599 * s/unixware.h (LIB_MOTIF): Move to configure.in.
600
aaa36002
DN
6012010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
602
603 Reduce CPP usage.
604 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
605 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
606 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
607 definitions and undefs. Inline definitions in the only user.
608 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 609
b678dd8b
GM
6102010-04-27 Glenn Morris <rgm@gnu.org>
611
76cda504
GM
612 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
613 since the defaults (set by the system file) are fine in most cases.
614 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
615 * m/ibms390x.h (START_FILES, LIB_STANDARD):
616 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
617 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
618 Remove definitions, since they are set correctly in s/gnu-linux.h.
619 * s/freebsd.h (START_FILES, LIB_STANDARD):
620 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
621 * s/hpux10-20.h (START_FILES):
622 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
623 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
624
b678dd8b
GM
625 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
626 (MOTIF_LIBW): Use $LIBXP.
627 (otherobj): Use $WIDGET_OBJ.
628
9452ded1
DN
6292010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
630
7e10844c
DN
631 * Makefile.in (LIBS_MACHINE): Remove, unused.
632
9452ded1
DN
633 Use autoconf instead of cpp for LIB_MATH.
634 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
635 * s/cygwin.h (LIB_MATH): Likewise.
636 * Makefile.in (LIB_MATH): Do not define with cpp.
637 (LIBES): Use autoconf for LIB_MATH.
638
fcebfc6a
KH
6392010-04-26 Kenichi Handa <handa@m17n.org>
640
641 * composite.c (Ffind_composition_internal): Fix the return value
642 for an automatic composition.
643
39e2ad1b
DN
6442010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
645
646 Remove all NO_ARG_ARRAY uses.
647 * fns.c (concat2, concat3, nconc2):
648 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
649 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
650 * m/xtensa.h (NO_ARG_ARRAY):
651 * m/template.h (NO_ARG_ARRAY):
652 * m/sparc.h (NO_ARG_ARRAY):
653 * m/sh3.h (NO_ARG_ARRAY):
654 * m/mips.h (NO_ARG_ARRAY):
655 * m/macppc.h (NO_ARG_ARRAY):
656 * m/iris4d.h (NO_ARG_ARRAY):
657 * m/intel386.h (NO_ARG_ARRAY):
658 * m/ibms390x.h (NO_ARG_ARRAY):
659 * m/ibms390.h (NO_ARG_ARRAY):
660 * m/ibmrs6000.h (NO_ARG_ARRAY):
661 * m/ia64.h (NO_ARG_ARRAY):
662 * m/hp800.h (NO_ARG_ARRAY):
663 * m/arm.h (NO_ARG_ARRAY):
664 * m/amdx86-64.h (NO_ARG_ARRAY):
665 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
666
adf4f59c
EZ
6672010-04-25 Eli Zaretskii <eliz@gnu.org>
668
6bdf5d65
EZ
669 * xdisp.c (display_line): Don't assume 2nd call to
670 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
671 (iterate_out_of_display_property): New function, body from pop_it.
672 (pop_it): Use it.
adf4f59c 673
dfbbda83
GM
6742010-04-24 Glenn Morris <rgm@gnu.org>
675
676 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
677 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
678 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
679 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
680
2d4018aa
EZ
6812010-04-24 Eli Zaretskii <eliz@gnu.org>
682
a49884a6
EZ
683 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
684 use `get_next_display_element' and `set_iterator_to_next' to
685 advance to the next character, when looking for the character that
686 begins the next row.
687
76db6fcc 688 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
689 definition of "struct Lisp_Symbol".
690
70eab5c1
GM
6912010-04-24 Glenn Morris <rgm@gnu.org>
692
693 * Makefile.in (CRT_DIR): New variable, set by configure.
694 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
695 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
696
1ad4cc3d
DN
6972010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
698
e769f484
DN
699 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
700
4196ff33
DN
701 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
702
879b0ee4
DN
703 Remove redundant flags.
704 * s/freebsd.h (C_SWITCH_SYSTEM):
705 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
706 * s/netbsd.h (C_SWITCH_SYSTEM):
707 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
708 of these.
709
03cbbcb8
DN
710 Simplify m/intel386.h.
711 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
712 user: ecrt0.c.
713 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
714 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
715 the only user: s/unixware.h.
716 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
717 from m/intel386.h.
718 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
719 moved here from m/intel386.h.
720
1ad4cc3d
DN
721 * m/mips.h: Remove #if 0 code.
722
8785b888
EZ
7232010-04-23 Eli Zaretskii <eliz@gnu.org>
724
728588cc
EZ
725 Fix display of composed characters from L2R scripts in bidi buffers.
726 * xdisp.c (set_iterator_to_next, next_element_from_composition):
727 After advancing IT past the composition, resync the bidi iterator
728 with IT's position. (Bug#5977)
729
a63f80b4
DN
7302010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
731
732 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
733 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
734
ff5dec5c
SM
7352010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
736
737 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
738
8785b888
EZ
7392010-04-23 Eli Zaretskii <eliz@gnu.org>
740
58ccf243 741 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
742 * xdisp.c (pop_it): When the stack is popped after displaying
743 from a string, bidi-iterate to exit from the text portion covered
744 by the `display' property or overlay. (Bug#5988, bug#5920)
745
feeb1604
DN
7462010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
747
8e324eb6
DN
748 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
749 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
750
809fcaba
DN
751 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
752 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
753
ed710380
DN
754 Simplify STARTFILES definition.
755 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
756 relying on Makefile.in to define it.
757 * s/cygwin.h (START_FILES): Likewise.
758 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
759
feeb1604
DN
760 Clean up Solaris code.
761 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
762 (LIB_MOTIF): Remove, configure takes care of this.
763 (NOT_USING_MOTIF): Remove, unused.
764 * xrdb.c: Remove #if 0-ed #include.
765 (SYSV): Remove conditional for old SysV.
766 * sysdep.c (closedir): Remove conditional code for Solaris,
767 Solaris has closedir.
768
a0d0b563
JD
7692010-04-22 Jan Djärv <jan.h.d@swipnet.se>
770
771 * xsettings.c (read_and_apply_settings): Check if current_font is
772 NULL before strcmp (Bug#6001).
773
56bae7c7
DN
7742010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
775
776 Clean up HP-UX files.
777 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
778 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
779 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
780 * s/hpux10-20.h: ... to the only user, here.
781
372b7a95
EZ
7822010-04-21 Eli Zaretskii <eliz@gnu.org>
783
784 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
785 use buffer-local values of paragraph-start and paragraph-separate.
786 <paragraph_start_re, paragraph_separate_re>: Rename from
787 fallback_paragraph_start_re and fallback_paragraph_separate_re.
788 (Bug#5992)
789
f904c0f9
JD
7902010-04-21 Jan Djärv <jan.h.d@swipnet.se>
791
792 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
793 current_tool_bar_style are new.
794 (store_config_changed_event): Rename from store_font_changed_event.
795 (XSETTINGS_TOOL_BAR_STYLE): New define.
796 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
797 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
798 HAVE_XFT.
799 (something_changedCB): store_font_changed_event is now
800 store_config_changed_event
801 (parse_settings): Rename from parse_xft_settings. Read
802 non-xft xsettings outside #ifdef HAVE_XFT.
803 (read_settings): Renamed from read_xft_settings.
804 (apply_xft_settings): Take current settings as parameter. Do not
805 call read_(xft)_settings.
806 (read_and_apply_settings): New function.
807 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
808 read_and_apply_settings if there are settings to be read.
809 (init_xsettings): Renamed from init_xfd_settings.
810 Call read_and_apply_settings unconditionally.
811 (xsettings_initialize): Call init_xsettings.
812 (Ftool_bar_get_system_style): New function.
813 (syms_of_xsettings): Define Qmonospace_font_name and
814 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 815 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 816 dynamic-setting.
31a01b90 817 Move misplaced HAVE_GCONF
f904c0f9
JD
818
819 * xsettings.h (Ftool_bar_get_system_style): Declare.
820
821 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
822 Qtext, Qboth, Qboth_horiz are new.
823 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
824 Vtool_bar_style, tool_bar_max_label_size.
825
826 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
827
828 * keyboard.c: QClabel is new.
829 (parse_tool_bar_item): Take out QClabel from tool bar items.
830 Try to construct a label if ther is no QClabel.
831 (syms_of_keyboard): Intern :label as QClabel.
832
833 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
834 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
835 New.
836
837 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
838 dynamic-setting.el.
839
840 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
841 (xg_make_tool_item, xg_show_toolbar_item): New function.
842 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
843 Call xg_make_tool_item to make a tool bar item.
844 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
845
846 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
847 into account for toolbars.
848
c632dfda
JD
8492010-04-21 Jan Djärv <jan.h.d@swipnet.se>
850
851 * data.c (make_blv): Declarations before code (Bug#5993).
852
10efe302
GM
8532010-04-21 Glenn Morris <rgm@gnu.org>
854
855 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
856 Define using autoconf, not cpp.
857 (LIBXSM): New variable, set by autoconf.
858 (LIBXT): Use $LIBXSM.
859
4285ac5a
DN
8602010-04-21 Dan Nicolaescu <local_user@dannlt>
861
3ec759e7
DN
862 Remove NOMULTIPLEJOBS, unused.
863 * s/template.h (NOMULTIPLEJOBS):
864 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
865
4285ac5a
DN
866 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
867 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
868 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
869 detects -znocombreloc and passes it to the linker
870 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
871
2807228d
GM
8722010-04-21 Glenn Morris <rgm@gnu.org>
873
874 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
875
574c05e2
KK
8762010-04-21 Karel Klíč <kklic@redhat.com>
877
878 * Makefile.in (LIBSELINUX_LIBS): New.
879 (LIBES): Add $LIBSELINUX_LIBS.
880 * eval.c, lisp.h (call7): New function.
881 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
882 (Ffile_selinux_context, Fset_file_selinux_context):
883 New functions.
884 (Fcopy_file): New parameter preserve-selinux-context.
885 (Frename_file): Preserve selinux context when renaming by copy-file.
886
91eac4bb 8872010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 888 Eli Zaretskii <eliz@gnu.org>
91eac4bb 889
50426a04
JB
890 Don't depend on cm.c or termcap.c on Windows, use stubs.
891 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
892 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
893 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
894 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
895 (sys_tputs, sys_tgetstr): New stubs.
896 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
897 (tputs, tgetstr): New; define to sys_*.
91eac4bb 898
938efb77
JB
8992010-04-20 Juanma Barranquero <lekktu@gmail.com>
900
901 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
902
b4bf28b7
SM
9032010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
904
8b1e1112
SM
905 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
906 Just signal a warning rather than an error when inside a let.
907 (Fmake_variable_frame_local): Add the same test.
908
933ac235
SM
909 * font.c (syms_of_font): Make the style table vars read-only.
910
b4bf28b7
SM
911 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
912 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
913
914 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
915
93d68d0c
EZ
9162010-04-20 Eli Zaretskii <eliz@gnu.org>
917
918 Fix R2L paragraph display on TTY.
919
920 * xdisp.c (unproduce_glyphs): New function.
921 (display_line): Use it when produced glyphs are discarded from R2L
922 glyph rows.
923 (append_composite_glyph): In R2L rows, prepend the glyph rather
924 than appending it.
925
926 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
927 rather than append it. Set up the resolved_level and bidi_type
928 attributes of the appended glyph.
283ccc18
EZ
929 (produce_special_glyphs): Mirror the backslash continuation
930 character in R2L lines.
93d68d0c 931
283ccc18 932 Implement display of R2L paragraphs in GUI sessions.
26cdf528 933
283ccc18
EZ
934 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
935 append_stretch_glyph.
936 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
937 off-by-one error in computing x at end of text in the row.
938 (append_stretch_glyph): In reversed row, prepend the glyph rather
939 than append it. Set resolved_level and bidi_type of the glyph.
940 (extend_face_to_end_of_line): If the row is reversed, prepend a
941 stretch glyph whose width is such that the rightmost glyph will be
942 drawn at the right margin of the window. Fix off-by-one error on
943 TTY frames in testing whether a line needs face extension. Fix
944 face extension at ZV. If this is the last glyph row, use
945 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
946 region face.
947 (set_cursor_from_row, display_line): Use
26cdf528
EZ
948 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
949 row->continuation_lines_width.
283ccc18
EZ
950 (next_element_from_buffer): Don't call bidi_paragraph_init if we
951 are at ZV. Fixes a crash when reseated to ZV by
952 try_window_reusing_current_matrix.
45903529
EZ
953 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
954 which happens with R2L glyph rows. Fixes a crash when inserting a
955 character at end of an R2L line.
283ccc18
EZ
956 (set_cursor_from_row): Don't be fooled by truncated rows: don't
957 treat them as having zero-width characters. Improve comments.
958 Don't reverse pos_before and pos_after for reversed glyph rows.
959 Set cursor.x to negative value when the cursor might be on the
960 left fringe.
961 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
962 left fringe, not the right one.
f951a506
EZ
963 (notice_overwritten_cursor, draw_phys_cursor_glyph)
964 (erase_phys_cursor): For reversed cursor_row, support cursor on
965 the left fringe.
966
283ccc18
EZ
967 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
968 of continuation indicators on the fringes.
969 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
970 left fringe.
971
f951a506
EZ
972 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
973 draw cursor on the left fringe.
974
975 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
976 cursor on the left fringe.
977
f951a506
EZ
978 * dispnew.c (update_text_area): Handle reversed desired rows when
979 the cursor is on the left fringe.
980 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
981 below, not by 0, for when the cursor is on the left fringe.
982
3bb49aaf
JD
9832010-04-20 Jan Djärv <jan.h.d@swipnet.se>
984
985 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
986 widget is a scrollbar.
987
c0be27fd
KH
9882010-04-20 Kenichi Handa <handa@m17n.org>
989
990 * charset.c (char_charset): Consider Vcharset_non_preferred_head
991 only when the arg CHARSET_LIST is nil.
992
ce5b453a
SM
9932010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
994
995 Make variable forwarding explicit rather the using special values.
996 Basically, this makes the structure of buffer-local values and object
997 forwarding explicit in the type of Lisp_Symbols rather than use
998 special Lisp_Objects for that. This tends to lead to slightly more
999 verbose code, but is more C-like, simpler, and makes it easier to make
1000 sure we handled all cases, among other things by letting the compiler
1001 help us check it.
1002 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1003 Removing forwarding objects.
1004 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1005 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1006 explicit rather than hiding them inside Lisp_Object "values".
1007 (XFWDTYPE): New macro.
1008 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1009 (XBUFFER_LOCAL_VALUE): Remove.
1010 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1011 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1012 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1013 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1014 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1015 Remove the Lisp_Misc_* header.
1016 (struct Lisp_Buffer_Local_Value): Redefine.
1017 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1018 (struct Lisp_Misc_Any): Add filler to get the right size.
1019 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1020 Lisp_Intfwd.
1021 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1022 (DEFVAR_KBOARD): Allocate a forwarding object.
1023 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1024 (let_shadows_global_binding_p): New function.
1025 (union Lisp_Val_Fwd): New type.
1026 (make_blv): New function.
1027 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1028 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1029 (swap_in_symval_forwarding, find_symbol_value, Fset)
1030 (let_shadows_buffer_binding_p, set_internal, default_value)
1031 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1032 (Fkill_local_variable, Fmake_variable_frame_local)
1033 (Flocal_variable_p, Flocal_variable_if_set_p)
1034 (Fvariable_binding_locus):
1035 * xdisp.c (select_frame_for_redisplay):
1036 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1037 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1038 * frame.c (store_frame_param):
1039 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1040 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1041 value structure.
1042 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1043 (clone_per_buffer_values): Only adjust markers into the current buffer.
1044 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1045 (Fbuffer_local_value, set_buffer_internal_1)
1046 (swap_out_buffer_local_variables):
1047 Adapt to the new symbol value structure.
1048 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1049 (defvar_per_buffer): Take a new arg for the fwd object.
1050 (buffer_lisp_local_variables): Return a proper alist (different fix
1051 for bug#4138).
1052 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1053 (Fgarbage_collect): Don't handle buffer_defaults specially.
1054 (mark_object): Handle new symbol value structure rather than the old
1055 special Lisp_Misc_* objects.
1056 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1057 * term.c (set_tty_color_mode):
1058 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1059 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1060 a buffer_local_flags.
1061 * print.c (print_object): Get rid of impossible forwarding objects.
1062
fd3998ff
EZ
10632010-04-19 Eli Zaretskii <eliz@gnu.org>
1064
1065 * bidi.c (bidi_get_type, bidi_get_category)
1066 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1067 (bidi_type_of_next_char, bidi_level_of_next_char):
1068 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1069
e42cd1a7
JB
10702010-04-19 Juanma Barranquero <lekktu@gmail.com>
1071
1072 * dired.c (Ffile_attributes): Fix typo in docstring.
1073
6e104790 10742010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1075
1076 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1077 NSInteger (Bug#5811).
1078
6e104790 10792010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1080
1081 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1082 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1083
6e104790 10842010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1085
1086 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1087
6e104790
SM
10882010-04-19 Chong Yidong <cyd@stupidchicken.com>
1089
1090 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1091 terminal frames (Bug#5837).
1092
37dcfea0
EZ
10932010-04-19 Eli Zaretskii <eliz@gnu.org>
1094
d1da276f
EZ
1095 * .gdbinit (xsubchartable): New command.
1096
37dcfea0
EZ
10972010-04-19 Eli Zaretskii <eliz@gnu.org>
1098
1099 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1100 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1101 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1102 and
1103 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1104
e9515805
SM
11052010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1106
1107 * alloc.c (Fpurecopy): Hash-cons if requested.
1108 (syms_of_alloc): Update purify-flag docstring.
1109
22aa44a8
JD
11102010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1111
1112 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1113 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1114
ebb5722e
EZ
11152010-04-17 Eli Zaretskii <eliz@gnu.org>
1116
1117 Fix a crash when an NSM character is inserted at BEGV.
1118
1119 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1120 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1121 NEUTRAL_B or UNKNOWN_BT.
1122
0f4442ef
EZ
11232010-04-16 Eli Zaretskii <eliz@gnu.org>
1124
1125 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1126 other rows with cursor unless they are different from this row and
1127 this row is part of a continued line. (Bug#5943)
1128
7d4e45f8
DN
11292010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1130
1131 * s/freebsd.h: Restore osreldate.h include.
1132 Suggested by Naohiro Aota.
1133
5ba5ec85
J
11342010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1135
1136 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1137
20af301d
CY
11382010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1139
1140 * s/cygwin.h: Avoid linking against static libgcc.
1141
a4b000fb
JL
11422010-04-15 Juri Linkov <juri@jurta.org>
1143
1144 * window.c: Add Qscroll_command.
1145 Remove Vscroll_preserve_screen_position_commands.
1146 (window_scroll_pixel_based, window_scroll_line_based): Check the
1147 `scroll-command' property on the last command instead of searching
1148 the last command in Vscroll_preserve_screen_position_commands.
1149 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1150 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1151 (scroll-preserve-screen-position): Doc fix.
1152 (Vscroll_preserve_screen_position_commands): Remove variable.
1153
bc319ba4
DN
11542010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1155
6bb24457
DN
1156 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1157
19d4c244
DN
11582010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1159
1160 Reduce cpp use in Makefile.in.
1161 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1162 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1163 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1164 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1165 (CRT0_COMPILE): Remove, inline it in the only user.
1166
32129746
JL
11672010-04-14 Juri Linkov <juri@jurta.org>
1168
1169 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1170 `scroll-up-command' and `M-v' from `scroll-down' to
1171 `scroll-down-command'.
1172
9013a7f8
JL
11732010-04-14 Juri Linkov <juri@jurta.org>
1174
1175 * window.c (Vscroll_preserve_screen_position_commands): New variable
1176 with the default value as the list of Qscroll_down and Qscroll_up.
1177 (window_scroll_pixel_based, window_scroll_line_based): Search the
1178 last command in the list Vscroll_preserve_screen_position_commands
1179 instead of comparing with Qscroll_up and Qscroll_down.
1180
4bef8d26
JD
11812010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1182
92848133
JD
1183 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1184 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1185 does that.
1186
4bef8d26
JD
1187 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1188 to zero.
1189
58b963f7
SM
11902010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1191
84164a0d
SM
1192 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1193
2b0a91e7
SM
1194 Try to solve the problem of spurious EOF chars in long lines of text
1195 sent to interactive subprocesses.
1196 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1197 (system_process_attributes): Remove unused var `ttotal'.
1198 * process.c (send_process): Don't bother breaking long line with EOF
1199 chars when talking to ttys any more.
1200 (wait_reading_process_output): Output a warning when called in such
1201 a way that it could block without being interruptible.
1202
58b963f7
SM
1203 Try to detect file modification within the same second.
1204 * buffer.h (struct buffer): New field modtime_size.
1205 * buffer.c (reset_buffer): Initialize it.
1206 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1207 (Fverify_visited_file_modtime): Check it.
1208 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1209 (Fset_visited_file_modtime): Set (or clear) it.
1210
01f5787b
SM
12112010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1212
1213 * process.c (status_notify): Remove unused var `ro'.
1214
83725342
JD
12152010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1216
1217 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1218 more than one visual (Bug#5938).
1219
b9465836
DN
12202010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1221
50426a04
JB
1222 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1223 Undefine.
b9465836 1224
8d9c8ece
DN
12252010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1226
b1f52161
DN
1227 Remove C_SWITCH_SYSTEM_TEMACS.
1228 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1229 (malloc, realloc, free): Use emacs, not temacs for conditional
1230 definition.
1231
1232 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1233 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1234
8d9c8ece
DN
1235 Use autoconf, not cpp for some variables.
1236 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1237 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1238 (ALL_CFLAGS): Use them as make variables.
1239 (really-lwlib, really-oldXMenu): Do not pass them.
1240
1ecb2d3f
JD
12412010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1242
1243 * xmenu.c (apply_systemfont_to_dialog): New.
1244 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1245
3a4fa2f2
SM
12462010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1247
97e53006
SM
1248 * process.c (exec_sentinel): Preserve current-buffer.
1249
3a4fa2f2
SM
1250 * process.c (read_process_output): Move the save-current-buffer to
1251 apply to both the filter and the non-filter branches.
1252
88df7221
DN
12532010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1254
1255 * s/msdos.h (UNEXEC): New definition.
1256
5634ff85
YM
12572010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1258
6eff5c3d
YM
1259 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1260 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1261
1262 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1263 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1264 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1265 TRY_WINDOW_CHECK_MARGINS.
1266
1267 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1268 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1269 width only when it is for padding.
5634ff85 1270
b13aef54
J
12712010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1272
1273 * xfns.c (Fx_show_tip): Call try_window in a loop until
1274 fonts_changed_p is zero (Bug#2423).
1275
21d28484
EZ
12762010-04-08 Eli Zaretskii <eliz@gnu.org>
1277
1278 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1279 the end of TEXT_AREA. (Bug#5856)
1280
0269ef77
JD
12812010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1282
1283 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1284 HAVE_GCONF.
1285
5930fe97
EZ
12862010-04-08 Eli Zaretskii <eliz@gnu.org>
1287
1288 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1289 prev.orig_type, for resolving type of NSM. (Bug#5858)
1290
99852628
JD
12912010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1292
1293 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1294 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1295 in current_font.
1296 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1297 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1298 New functions.
1299 (syms_of_xsettings): Initialize current_font.
1300 defsubr Sfont_get_system_normal_font.
99852628
JD
1301
1302 * xsettings.h (Ffont_get_system_normal_font,
1303 xsettings_get_system_normal_font): Declare.
1304
1305 * xfns.c (extern xlwmenu_default_font): Remove.
1306 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1307 to xlwmenu.c.
1308
1309 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1310 menu items in UTF-8.
1311
1312 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1313 (apply_systemfont_to_menu): New function.
1314 (set_frame_menubar, create_and_show_popup_menu): Call
1315 apply_systemfont_to_menu.
1316
7fc874c4
J
13172010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1318
1319 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1320 FRAME_LINE_TO_PIXEL_Y.
1321
1322 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1323 pixelwidth/height.
1324
863bf481
DN
13252010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1326
5e5a3b92
DN
1327 Simplify code for HP machines.
1328 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1329 for GNU_LINUX, not needed.
1330 (UNEXEC, NEED_BSDTTY): Move definitions...
1331 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1332
863bf481
DN
1333 * m/iris4d.h (UNEXEC): Move definition ...
1334 * s/irix6-5.h (UNEXEC): ... here.
1335
3e6bec3b
JD
13362010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1337
1338 * xfns.c (set_machine_and_pid_properties): New function.
1339 (Fx_create_frame): Call set_machine_and_pid_properties.
1340
2912322b
SM
13412010-04-03 Eli Zaretskii <eliz@gnu.org>
1342
1502b819
EZ
1343 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1344 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1345 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1346
2912322b
SM
1347 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1348 in this function. (Bug#5703)
1349
13502010-04-03 Chong Yidong <cyd@stupidchicken.com>
1351
1352 * nsterm.h: Fix last change.
1353
c435b432
DN
13542010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1355
a568f507
DN
1356 * m/intel386.h (NO_REMAP): Move definition ...
1357 * s/msdos.h (NO_REMAP): ... here.
1358
4cd9f6c2
DN
1359 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1360
c435b432
DN
1361 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1362 used on those platforms.
1363
42a2c622
DN
13642010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1365
1366 Remove extern errno declarations.
1367 * xterm.c:
1368 * xrdb.c:
1369 * w32term.c:
1370 * unexec.c:
1371 * unexaix.c:
1372 * sysdep.c:
1373 * process.c:
1374 * lread.c:
1375 * keyboard.c:
1376 * floatfns.c:
1377 * filelock.c:
1378 * fileio.c:
1379 * emacs.c (main):
1380 * ecrt0.c:
1381 * dispnew.c:
1382 * callproc.c:
1383 * buffer.c: Remove errno extern declarations.
1384 * s/netbsd.h (NEED_ERRNO): Remove.
1385
8224f93d
DN
13862010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1387
1388 Remove all uses of LIBX11_SYSTEM.
1389 * Makefile.in (LIBX11_SYSTEM): Remove.
1390 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1391 instead.
1392
814062c7
EZ
13932010-04-01 Eli Zaretskii <eliz@gnu.org>
1394
ed68db4d
EZ
1395 Remove support for DJGPP v1.x (bug#5813).
1396
1397 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1398 * s/msdos.h:
1399 * unexec.c (make_hdr, copy_text_and_data):
1400 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1401 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1402 (IT_set_terminal_modes, __write, _rename, gethostname)
1403 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1404 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1405 the value of __DJGPP__.
ed68db4d
EZ
1406 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1407 compatibility code.
8224f93d
DN
1408 * lread.c:
1409 * gmalloc.c (memalign):
1410 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1411 * emacs.c (main):
1412 * dosfns.c (init_dosfns):
ed68db4d
EZ
1413 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1414
52f4d8d5
EZ
14152010-04-01 Eli Zaretskii <eliz@gnu.org>
1416
814062c7
EZ
1417 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1418 string with `cursor' property comes from an `after-string'
1419 overlay. (Bug#5816)
1420
0dc2e11d
GM
14212010-04-01 Glenn Morris <rgm@gnu.org>
1422
1423 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1424 Define as Makefile variables.
1425 (LIBX): Use above variables rather than directly using autoconf.
1426
1d29df59
DN
14272010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1428
1429 Clean up BSD_SYSTEM use.
1430 * xterm.c:
1431 * process.c:
1432 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1433 for including <sys/ioctl.h>.
1434 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1435 code is only used for MSDOS.
1436
1546c559
JL
14372010-03-31 Juri Linkov <juri@jurta.org>
1438
1439 * image.c: Add `Qextension_data'.
1440 (syms_of_image): Initialize and staticpro `Qextension_data'.
1441 (Fimage_metadata): Rename from `Fimage_extension_data'.
1442 (gif_load): Put GIF extension data to the property
1443 `Qextension_data'.
1444
b8a1d5a1
CY
14452010-04-05 Chong Yidong <cyd@stupidchicken.com>
1446
1447 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1448 terminal frames (Bug#5837).
1449
6521c534
CY
14502010-03-31 Chong Yidong <cyd@stupidchicken.com>
1451
1452 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1453 * nsterm.h: Fix prototype.
1454
52c30783
EZ
14552010-03-31 Eli Zaretskii <eliz@gnu.org>
1456
1457 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1458 trailing whitespace in right-to-left rows.
1459
855a0da7
SM
14602010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1461
1462 Get rid of the direct_output optimizations.
1463 * keyboard.c (nonundocount): Remove extern declaration.
1464 (command_loop_1): Remove brittle optimisation for cheap and
1465 common operations.
1466 * xdisp.c (redisplay_internal): Don't bother checking
1467 redisplay_performed_directly_p any more.
1468 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1469 any more.
1470 * dispnew.c (redisplay_performed_directly_p)
1471 (direct_output_for_insert, direct_output_forward_char):
1472 * dispextern.h (redisplay_performed_directly_p)
1473 (direct_output_for_insert, direct_output_forward_char): Remove.
1474 * cmds.c (nonundocount): Make it static.
1475
85738751 14762010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1477
1478 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1479
85738751 14802010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1481
1482 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1483 invisible (Bug#5766).
1484
85738751 14852010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1486
855a0da7
SM
1487 * xdisp.c (x_consider_frame_title, update_window_cursor):
1488 Remove HAVE_NS conditionals.
194d44e7 1489 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1490
1491 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1492 filename for the title.
1493 (ns_set_doc_edited): Do nothing if the selected window is a
1494 minibuffer window.
1495
1496 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1497 ns_set_doc_edited.
1498
1499 * nsterm.m: Remove unneeded prototype.
1500
85738751 15012010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1502
1503 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1504 in the DOC file. (Bug#5336)
1505
85738751 15062010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1507
1508 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1509
75d1428c
SM
15102010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1511
1512 * window.c (keys_of_window): Remove redundant/overridden bindings.
1513
82043cfb
EZ
15142010-03-30 Eli Zaretskii <eliz@gnu.org>
1515
1516 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1517 Restore original behavior when the iterator is not bidi_p.
1518
b5dd0ae7
DN
15192010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1520
1521 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1522
bd924a5d
EZ
15232010-03-30 Eli Zaretskii <eliz@gnu.org>
1524
1525 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1526 are outside the range of cached character positions.
1527
3580374b
JB
15282010-03-30 Juanma Barranquero <lekktu@gmail.com>
1529
1530 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1531
a7b02820
EZ
15322010-03-30 Eli Zaretskii <eliz@gnu.org>
1533
1534 Initial support for bidirectional editing.
1535
1536 * Makefile.in (obj): Include bidi.o.
1537 (bidi.o): New target.
1538
1539 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1540 ($(BLD)/bidi.$(O)): New target.
1541
1542 * bidi.c: New file.
1543
1544 * buffer.h (struct buffer): New members bidi_display_reordering
1545 and bidi_paragraph_direction.
1546
1547 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1548 and bidi_paragraph_direction.
1549 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1550 and bidi-paragraph-direction.
1551 (Fbuffer_swap_text): Swap the values of
1552 bidi_display_reordering and bidi_paragraph_direction.
1553
1554 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1555 (bidi_type_t, bidi_dir_t): New types.
1556 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1557 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1558 prev_stop, base_level_stop, and eol_pos.
1559 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1560 (IT_STACK_SIZE): Enlarge to 5.
1561 (struct glyph_row): New member reversed_p.
1562 <string_buffer_position>: Update prototype.
1563 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1564 glyph_row if bidi_it.paragraph_dir == R2L.
1565 (struct glyph): New members resolved_level and bidi_type.
1566
1567 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1568 processing or buffer's direction is right-to-left.
1569 (prepare_desired_row): Preserve the reversed_p flag.
1570 (row_equal_p): Compare the reversed_p attributes as well.
1571
1572 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1573 bidi_init_it and set it->paragraph_embedding from the current
1574 buffer's value of bidi_paragraph_direction.
1575 (reseat_1): Initialize bidi_it.first_elt.
1576 (set_iterator_to_next, next_element_from_buffer): Use the value of
1577 paragraph_embedding to determine the paragraph direction.
1578 (set_iterator_to_next): Under bidi reordering, call
1579 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1580 new_paragraph flag is set in the bidi iterator.
1581 (next_element_from_buffer): If bidi_it.first_elt is set,
1582 initialize paragraph direction and find the first character to
1583 display in the visual order. If reseated to a middle of a line,
1584 prime the bidi iterator starting at the line's beginning. Handle
1585 the situation where we overstepped stop_charpos due to
1586 non-linearity of the bidi iteration. Likewise for when we back up
1587 beyond the previous stop_charpos. When moving across stop_charpos,
1588 record it in prev_stop.
1589 (display_line): Set row->end and it->start for the next row to the
1590 next character in logical order. Always extend reversed_p rows to
1591 the end of line, even if they end at ZV. Copy the reversed_p flag
1592 to the next glyph row. Keep calling set_cursor_from_row for
1593 bidi-reordered rows even if we already have a possible candidate
1594 for cursor position. Set row_end after all the row's glyphs have
1595 been produced, by looping over the glyphs. Record the position
1596 after EOL in it->eol_pos, and use it to set end_pos of the last
1597 row produced for a continued line.
1598 <Qright_to_left, Qleft_to_right>: New variables.
1599 (syms_of_xdisp): Initialize and staticpro them.
1600 (string_buffer_position_lim): New function.
1601 (string_buffer_position): Most of code moved to
1602 string_buffer_position_lim. Last argument and return value are
1603 now EMACS_INT; all callers changed.
1604 (set_cursor_from_row): Rewritten to support bidirectional text and
1605 reversed glyph rows.
1606 (text_outside_line_unchanged_p, try_window_id): Disable
1607 optimizations if we are reordering bidirectional text and the
1608 paragraph direction can be affected by the change.
1609 (append_glyph, append_composite_glyph)
1610 (produce_image_glyph, append_stretch_glyph): Set the
1611 resolved_level and bidi_type members of each glyph.
1612 (append_glyph): If the glyph row is reversed, prepend the glyph
1613 rather than appending it.
1614 (handle_stop_backwards): New function.
1615 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1616 (reseat): call handle_stop_backwards to recompute prev_stop and
1617 base_level_stop for the new position.
1618 (handle_invisible_prop): Under bidi iteration, skip invisible text
1619 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1620 paragraph direction. Update IT->prev_stop after skipping
1621 invisible text.
1622 (move_it_in_display_line_to): New variables prev_method
1623 and prev_pos. Compare for strict equality in
1624 BUFFER_POS_REACHED_P.
1625 (try_cursor_movement): Examine all the candidate rows that occlude
1626 point, to return the best match. If rows are bidi-reordered
1627 and point moved backwards, back up to the row that is not a
1628 continuation line, and start looking for a suitable row from
1629 there.
1630
1631 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1632 rather than appending, if the glyph_row's reversed_p flag is set.
1633 Set the resolved_level and bidi_type members of each glyph.
1634
1635 * .gdbinit (pbiditype): New command.
1636 (pgx): Use it to display bidi level and type of the glyph.
1637 (pitx): Display some bidi information about the iterator.
1638 (prowlims, pmtxrows): New commands.
1639
32a8894e
DN
16402010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1641
1642 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1643 * s/usg5-4.h (LIBS_DEBUG):
1644 * s/irix6-5.h (C_DEBUG_SWITCH):
1645 * s/gnu-linux.h (LIBS_DEBUG):
1646 * s/darwin.h (LIBS_DEBUG):
1647 * s/bsd-common.h (LIBS_DEBUG):
1648 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1649 * m/iris4d.h (LIBS_DEBUG):
1650 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1651
1652 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1653 (LIBS_DEBUG): Remove definition.
1654
649dbf36
CY
16552010-03-27 Chong Yidong <cyd@stupidchicken.com>
1656
1657 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1658 Windows.
1659
cad4261f
YM
16602010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1661
1662 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1663 `connect' (Bug#5723).
1664
cd591dbc
HE
16652010-03-25 Helmut Eller <eller.helmut@gmail.com>
1666
1667 * process.c (Fmake_network_process): Call `select' for interrupted
1668 `connect' rather than creating new socket (Bug#5173).
1669
e867cb5d 16702010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1671
1672 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1673
1674 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1675
1676 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1677
e867cb5d 16782010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1679
1680 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1681 XLoadQueryFont.
1682
e867cb5d 16832010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1684
1685 * coding.c (decode_coding_ccl): Fix previous change for the
1686 multibyte case.
fb608df3
KH
1687 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1688 case that the output buffer is fullfilled.
1689 (encode_coding): Setup ccl program here.
fbdc1721 1690
e867cb5d 16912010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1692
1693 * editfns.c (Fformat): Account for string precision when computing
1694 field width (Bug#5710).
1695
5845f0ed
DN
16962010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1697
814fb708
DN
1698 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1699
5845f0ed
DN
1700 Simplify LIBS_MACHINE definitions.
1701 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1702 * m/iris4d.h (LIBS_MACHINE): Likewise.
1703 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1704 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1705 * s/netbsd.h: Remove commented out code.
5845f0ed 1706
b7064064
DN
17072010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1708
df7734b2
DN
1709 Remove dead code dealing with POSIX_SIGNALS.
1710 * atimer.c (set_alarm): Remove dead code, all USG systems define
1711 POSIX_SIGNALS.
1712 * data.c (arith_error): Likewise.
1713 * keyboard.c (input_available_signal, handle_user_signal)
1714 (interrupt_signal): Likewise.
1715 * process.c (sigchld_handler): Likewise.
1716 (create_process): Remove if 0 code. Remove HPUX conditional when
1717 !defined (POSIX_SIGNALS), it cannot be true.
1718 * syssignal.h: Remove USG5_4 and USG conditionals when
1719 !POSIX_SIGNALS, they cannot be true.
1720
b7064064
DN
1721 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1722 NO_SOCK_SIGIO, not used anymore.
1723
55da5ee3
DN
17242010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1725
0be96e3a
DN
1726 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1727 support vax on BSDs.
1728
55da5ee3
DN
1729 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1730 * s/aix4-2.h (ORDINARY_LINK): ... here.
1731
c0282183
AS
17322010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1733
82c3d67a
AS
1734 * Makefile.in (abs_builddir): Define.
1735 (bootstrap_exe): Use it.
1736 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1737
3613edce
SM
17382010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1739
1740 * Makefile.in (bootstrap_exe): Use an absolute name.
1741
7f110ddc
DN
17422010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1743
22e87574
DN
1744 Remove support for old GNU/Linux using libc version 5.
1745 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1746 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1747
05a670e6
DN
1748 Consolidate redundant definitions in s/bsd-common.h.
1749 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1750 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1751 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1752 doing it in all files that include this one.
1753 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1754 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1755 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1756 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1757 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1758 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1759 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1760 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1761 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1762
2968f561
DN
1763 Consolidate redundant definitions.
1764 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1765 it's undefined in all files that include this one.
1766 (POSIX_SIGNALS): Define here instead of doing it in all files that
1767 include this one.
1768 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1769 (POSIX_SIGNALS): Do not define.
1770 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1771 (POSIX_SIGNALS): Do not define.
1772 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1773 (POSIX_SIGNALS): Do not define.
1774
15d25dc0
DN
1775 Remove support for old UNIX System V systems.
1776 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1777 * s/usg-5-4-2.h: Remove.
1778
07e339e4
DN
1779 Remove support for Solaris on PPC and for old versions.
1780 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1781 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1782 that cancel each other.
1783 * s/sol2-3.h:
1784 * s/sol2-4.h:
1785 * s/sol2-5.h: Remove.
1786 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1787 (NO_REMAP): Remove, unused.
1788 (UNEXEC): Move definition ...
1789 * s/aix4-2.h (UNEXEC): ... here.
1790
7f110ddc
DN
1791 * s/openbsd.h: Remove support for non-ELF and for systems that do
1792 not support shared libraries.
1793 * s/netbsd.h:
1794 * s/freebsd.h: Likewise.
1795
605f35cd
DN
17962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1797
1798 Remove non-working support for lynxos 3.0.
1799 * s/lynxos.h: Remove file.
1800
1801 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1802 COFF_BSD_SYMBOLS, nothing defines it anymore.
1803
aed71cf4
DN
18042010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1805
1806 Remove obsolete uses of HAVE_SHM.
1807 * emacs.c (standard_args):
1808 (Fdump_emacs):
1809 (syms_of_emacs): Remove code depending on HAVE_SHM.
1810
1811 * alloc.c: Remove HAVE_SHM dependent definition.
1812
1813 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1814
aded53ff
GM
18152010-03-18 Glenn Morris <rgm@gnu.org>
1816
17284745
GM
1817 * emacs.c (USAGE4): Hard-code bug address.
1818 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1819 (bug_reporting_address): Remove.
1820 (main): Don't call bug_reporting_address.
1821
aded53ff
GM
1822 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1823 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1824
303500aa
CY
18252010-03-15 Chong Yidong <cyd@stupidchicken.com>
1826
1827 * xfns.c (Fx_create_frame):
1828 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1829 on left.
1830
cef3058f
CY
18312010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1832
1833 * editfns.c (Fformat): Account for string precision when computing
1834 field width (Bug#5710).
1835
a647d59d
CY
18362010-03-12 Chong Yidong <cyd@stupidchicken.com>
1837
4fa42018
CY
1838 * xfns.c (Fx_create_frame): Set default to Qright.
1839
a647d59d
CY
1840 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1841 all window systems.
1842
6da23aaa
EZ
18432010-03-12 Eli Zaretskii <eliz@gnu.org>
1844
a96f6398 1845 These changes remove termcap.c from the build on Posix platforms.
83d02def 1846 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1847 (MSDOS_OBJ): ...to here.
1848 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1849 now identical to when LIBS_TERMCAP is defined.
1850
1851 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1852
1853 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1854
a96f6398 1855 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1856
288f9fc0
CY
18572010-03-10 Chong Yidong <cyd@stupidchicken.com>
1858
1859 * Branch for 23.2.
1860
d48cd3f4
SM
18612010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1862
1863 Cleanup setup of gl_state in various parts of the code.
1864 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1865 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1866 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1867 (skip_chars):
1868 * regex.c (regex_compile): Use it.
1869 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1870 it's now set in regex_compile when/if we need it.
1871
618db430
SM
18722010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1873
c0335e02
SM
1874 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1875 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1876 (QUIT): Use it to consolidate code and remove redundancy.
1877 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1878
254c06a8
SM
1879 * regex.c (regex_compile): Setup gl_state as well.
1880
618db430
SM
1881 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1882 (in_classes): Use CONSP before XCAR/XCDR.
1883
233f0c9f
CY
18842010-03-03 Chong Yidong <cyd@stupidchicken.com>
1885
1886 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1887 definitions, so that keyboard macros are correctly handled
1888 (Bug#5481).
1889
75f80e63
EZ
18902010-03-02 Eli Zaretskii <eliz@gnu.org>
1891
1892 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1893 text that could be relocated inside the call to emacs_mule_char.
1894 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1895 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1896
dcfb9bc4
KH
18972010-03-02 Kenichi Handa <handa@m17n.org>
1898
fc9a17bc
KH
1899 * character.c (parse_str_as_multibyte): Fix handling of the
1900 multibyte form of raw-bytes.
1901 (str_as_multibyte): Likewise.
1902
dcfb9bc4
KH
1903 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1904 form of raw-bytes.
1905
412c01b6
CY
19062010-02-28 Chong Yidong <cyd@stupidchicken.com>
1907
1908 * charset.c (load_charset_map_from_file)
1909 (load_charset_map_from_vector): Zero out allocated
1910 charset_map_entries before using them.
1911
df7e1ea0
AS
19122010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1913
1914 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1915
fe69a722
CY
19162010-02-27 Chong Yidong <cyd@stupidchicken.com>
1917
4ed28cf4
CY
1918 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1919 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1920
7379cfce
KH
19212010-02-26 Kenichi Handa <handa@m17n.org>
1922
f88cc4d6
KH
1923 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1924
7379cfce
KH
1925 * xdisp.c (reseat_to_string): Fix previous change.
1926
cf2fdcfb
CY
19272010-02-26 David Reitter <david.reitter@gmail.com>
1928
1929 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1930 Lisp_Object (Bug#4736).
1931
cc6c7c75
KH
19322010-02-25 Kenichi Handa <handa@m17n.org>
1933
1934 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1935
32e737d7
JD
19362010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1937
1938 * xterm.c (XTflash): Move declarations before statements.
1939
1940 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1941 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1942 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1943 (xg_create_tool_bar): Remove unused variables.
1944 (x_wm_set_size_hint): Move declarations before statements.
1945 (xg_create_frame_widgets): Remove variable grav,
1946
676cae9f
CY
19472010-02-21 Chong Yidong <cyd@stupidchicken.com>
1948
1949 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1950
886cc2b8
SM
19512010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1952
1953 * term.c (fatal): Add a final \n if needed (bug#5596).
1954
ddb2d8e2
CY
19552010-02-18 Chong Yidong <cyd@stupidchicken.com>
1956
1957 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1958
2a4f8d3d
GM
19592010-02-18 Glenn Morris <rgm@gnu.org>
1960
1961 * callint.c (Finteractive): Doc fix.
1962
ebaf11b6
KH
19632010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1964
886cc2b8
SM
1965 * coding.c (record_conversion_result):
1966 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1967 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1968 memory allocation error.
1969
d0396581
KH
19702010-02-17 Kenichi Handa <handa@m17n.org>
1971
886cc2b8
SM
1972 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1973 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1974 (decode_coding): Setup ccl program here. Keep looping when the
1975 decoder stopped because the output buffer is
1976 fullfilled (bug#5534).
1977
1978 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1979
98599f74
JD
19802010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1981
471e4f04 1982 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1983 bug #5571.
886cc2b8 1984 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1985 overdrawn.
98599f74 1986
182659ae
JD
19872010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1988
1989 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1990 doing_interact here.
1991 (ice_connection_closed): New function.
1992 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1993 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1994 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1995 returns I/O error.
1996 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1997 bug #5512.
1998
9be32c4e 19992010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2000
2001 * nsfont.m (nsfont_open): The system's value for the font descent
2002 is negative, so round it down to avoid clipping.
2003
a2f3eb19
CY
20042010-02-06 Chong Yidong <cyd@stupidchicken.com>
2005
2006 * charset.c (load_charset_map_from_file)
2007 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2008 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2009
3088147c
CY
20102010-02-05 Chong Yidong <cyd@stupidchicken.com>
2011
2012 * charset.c (load_charset_map_from_file): Allocate large
2013 charset_map_entries structure on the heap rather than the stack.
2014 (Bug#5526).
2015
b57d9029
KH
20162010-01-31 Kenichi Handa <handa@m17n.org>
2017
2018 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2019 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2020
c67d885b
CY
20212010-01-31 Chong Yidong <cyd@stupidchicken.com>
2022
2023 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2024 <deactivated@gmail.com> (Bug#3605).
2025
8fab2362
CY
20262010-01-31 David De La Harpe Golden <david@harpegolden.net>
2027
2028 * fileio.c (Frename_file): Correctly rename symlinks to
2029 directories (Bug#5496).
2030
cb2a62f2
CY
20312010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2032
2033 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2034
944c7a26
AS
20352010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2036
2037 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2038
c024ac08
CY
20392010-01-29 Chong Yidong <cyd@stupidchicken.com>
2040
2041 * frame.c (DEFAULT_ROWS): Change default to 35.
2042
2043 * xfns.c (x_default_font_parameter): Change default XFT font to
2044 monospace-10 (Bug#3643).
2045
af93af83
EZ
20462010-01-29 Eli Zaretskii <eliz@gnu.org>
2047
2048 * w32inevt.c (key_event): Remove unnecessary comparison of
2049 event->uChar.AsciiChar with 128.
2050
ca0eb708
CY
20512010-01-28 Chong Yidong <cyd@stupidchicken.com>
2052
b242dbfc
CY
2053 * fileio.c (Frename_file): Fix last change (Bug#5487).
2054
ca0eb708
CY
2055 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2056
2057 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2058
45d45af5
JD
20592010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2060
2061 * xfns.c (Fx_create_frame): Remove window size matching code from
2062 2010-01-15.
2063 (x_get_current_desktop, x_get_desktop_workarea): Remove
2064
7e233730
JR
20652010-01-27 Jason Rumney <jasonr@gnu.org>
2066
2067 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2068 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2069
86e893e3
KH
20702010-01-27 Kenichi Handa <handa@m17n.org>
2071
2072 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2073 pattern string (Bug#4209).
86e893e3 2074
8719abec
CY
20752010-01-27 David De La Harpe Golden <david@harpegolden.net>
2076
2077 * fileio.c (Frename_file): Call copy-directory and
2078 delete-directory for directories, in order to handle cross-device
2079 renaming (Bug#3353).
2080
844794c8
JD
20812010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2082
aa3e13b5 2083 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2084 sizes 24 and 10. Bug #3643.
844794c8 2085
bd4b5750
SM
20862010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2087
8dc1adf6 2088 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2089 * keymap.c (shadow_lookup): Add `remap' arg.
2090 (describe_map, describe_vector): Update calls to shadow_lookup.
2091 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2092 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2093 perform remapping during shadow_lookup check of remapped_sequences.
2094
285d07e2
CY
20952010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2096
2097 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2098 png_check_sig, which has been removed in libpng 1.4.
2099
c6d09b8d
CY
21002010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2101
2102 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2103 lacks this header file).
2104
3d782998
YM
21052010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2106
2107 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2108 as in Emacs 22.
2109
2aff7c53
YM
21102010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2111
2112 * lisp.h (make_pure_string): String pointer arg now points to const.
2113
2114 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2115 args now point to const.
2116
74327f7a
EZ
21172010-01-22 Eli Zaretskii <eliz@gnu.org>
2118
2119 * lread.c (Fload): Don't treat files without .elc extension as
2120 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2121 them. (bug#5303)
2122
4d1e6632
KH
21232010-01-20 Kenichi Handa <handa@m17n.org>
2124
2125 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2126 treat the source as actual byte sequence.
2127
1fdede8f
AM
21282010-01-19 Alan Mackenzie <acm@muc.de>
2129
2130 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2131 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2132 `signal_after_change_p' to `coherent_change_p', and make the
2133 invocation of `modify_region' conditional on it.
2134
67477f30
JD
21352010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2136
2137 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2138 for debug purpose.
2139 (syms_of_xsettings): Declare xft-settings.
2140
244b023e
CY
21412010-01-18 Chong Yidong <cyd@stupidchicken.com>
2142
2143 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2144
617364fe
CY
21452010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2146
2147 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2148
4fe22cdf
CY
21492010-01-16 Chong Yidong <cyd@stupidchicken.com>
2150
2151 * emacs.c (standard_args): Adjust arg priorities to reflect how
2152 they are processed in startup.el.
2153
e118d2be
AS
21542010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2155
2156 * Makefile.in (lisp, shortlisp): Update.
2157
523ae620
SM
21582010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2159
2160 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2161 code, link the new kboard into all_kboard before running Lisp code,
2162 and protect the new terminal with GCPRO (Bug#5365).
2163 (x_term_init): Remove unused var `atom'.
2164 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2165
f0d13888
JD
21662010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2167
2168 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2169 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2170 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2171 this. Bug #3643.
f0d13888 2172
cc320f07
KH
21732010-01-15 Kenichi Handa <handa@m17n.org>
2174
2175 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2176
7ffdf101
CY
21772010-01-15 Chong Yidong <cyd@stupidchicken.com>
2178
2179 * nsterm.m (Qnone): Define.
2180
2181 * nsfns.m (Qnone): Move definition to nsterm.m.
2182
d12bd917
KH
21832010-01-14 Kenichi Handa <handa@m17n.org>
2184
2185 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2186 systems.
2187
d9a7c140
KH
21882010-01-14 Kenichi Handa <handa@m17n.org>
2189
2190 Make auto-composition work on all buffers even if they are
2191 fundamental mode.
2192
2193 * composite.c (Vauto_composition_mode): New variable.
2194 (composition_compute_stop_pos): Check Vauto_composition_mode
2195 instead of Vauto_composition_function.
2196 (composition_adjust_point, Ffind_composition_internal): Likewise.
2197 (syms_of_composite): Declare Lisp variable
2198 "auto-composition-mode" here.
2199
63286bb2
CY
22002010-01-13 Chong Yidong <cyd@stupidchicken.com>
2201
2202 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2203 during call to vendor-specific-keysyms (Bug#5365).
2204
c2623ee7
YM
22052010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2206
2207 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2208 Call SIGNAL_THREAD_CHECK (Bug#5333).
2209
2210 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2211 Call SIGNAL_THREAD_CHECK.
2212
0b5397c2
SM
22132010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2214
2215 Try to fix bug#5314. This is probably not the final word, tho.
2216 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2217 recent-auto-save-p as a side-effect.
2218 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2219 * buffer.c (Fkill_buffer, reset_buffer):
2220 * editfns.c (Fsubst_char_in_region):
2221 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2222 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2223
dc954cb2
KH
22242010-01-13 Kenichi Handa <handa@m17n.org>
2225
2226 Display buffer name, etc. in mode line by composing correctly.
2227
2228 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2229 STRING is not nil.
0b5397c2 2230 (display_mode_element): Adjust for the change of
dc954cb2
KH
2231 decode_mode_spec and display_line.
2232 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2233 (display_string): Handle the case that STRING is non-null and
2234 LISP_STRING is not nil.
2235
0b5397c2
SM
2236 * xterm.c (x_draw_composite_glyph_string_foreground):
2237 Pay attention to s->face->overstrike.
dc954cb2
KH
2238
2239 * composite.c (composition_reseat_it): Don't check PT if STRING is
2240 non nil.
2241
4a00eaca
YM
22422010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2243
2244 * keyboard.c (read_char): Don't apply previous change when current
2245 buffer is unchanged by command execution.
2246
60abb287
JD
22472010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2248
2249 * keyboard.c (read_char): Return after executing from special map.
2250
893db5bc
GM
22512010-01-12 Glenn Morris <rgm@gnu.org>
2252
2253 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2254 bug-gnu-emacs rather than emacs-pretest-bug.
2255
4d03ece0
CY
22562010-01-11 Chong Yidong <cyd@stupidchicken.com>
2257
2258 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2259 initializing the Lisp variables that depend on them.
2260
1df47e38
YM
22612010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2262
2263 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2264 Clear areas that will not be updated after change of menu bar lines.
2265 Clear the menu bar window's current matrix when the window gets empty.
2266
2f1c6384
CY
22672010-01-09 Chong Yidong <cyd@stupidchicken.com>
2268
e398c61c
CY
2269 * intervals.h, textprop.c (extend_property_ranges): Return value
2270 and args changed. Discard properties that begin at or after the
2271 new end (Bug#5306).
2272
2273 * editfns.c (Fformat): Caller changed.
2274
e5a29a10
CY
2275 * nsterm.m (ns_set_default_prefs): Delete function.
2276 (syms_of_nsterm): Initialize ns_command_modifier,
2277 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2278 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2279
2f1c6384
CY
2280 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2281 position (Bug#4040).
2282
d427a9fa
EZ
22832010-01-09 Eli Zaretskii <eliz@gnu.org>
2284
2285 * editfns.c (Ffloat_time): Doc fix.
2286
21b9df2f
JD
22872010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2288
2289 * xfns.c (Fx_create_frame): Don't create frame larger than display
2290 by default bug#3643.
2291
4b00d3b1
YM
22922010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2293
2294 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2295 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2296 windows above internal border.
2297
2298 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2299 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2300 windows above internal border.
2301
2302 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2303 tool bar windows specially.
2304
2305 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2306
2307 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2308 specially.
2309 (XTflash): Take account of menu bar height.
2310
2311 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2312 specially.
2313
5075d853
JD
23142010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2315
ac146f82 2316 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2317 also be true before we can return early (bug #5339).
2318
474217c8
CY
23192010-01-06 David Reitter <david.reitter@gmail.com>
2320
2321 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2322 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2323 (Bug#3233).
2324
c0e6d47d
JD
23252010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2326
d0cf45b7
JD
2327 * font.c (font_open_entity): Enable chache and call cached_font_ok
2328 for the driver if defined.
2329 (QCuser_spec): New symbol.
2330 (font_spec_from_name): Save name as user-spec.
2331 (font_load_for_lface): Keep user-spec instead of name.
2332 (font_open_by_name): Save name as user-spec.
2333 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2334 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2335
2336 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2337 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2338 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2339
2340 * font.h (struct font_driver): Add cached_font_ok.
2341
c0e6d47d
JD
2342 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2343
7c583cd8
JD
23442010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2345
2346 * xterm.c (x_new_font): Move code for setting rows/cols before
2347 resizing ...
ac146f82 2348 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2349
2350 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2351 (xg_frame_resized, xg_frame_set_char_size):
2352 Call xg_clear_under_internal_border.
7c583cd8 2353 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2354
03f77f0a
CY
23552010-01-05 Chong Yidong <cyd@stupidchicken.com>
2356
2357 * keyboard.c (read_key_sequence): Catch keyboard switch after
2358 making a new tty frame (Bug#5095).
2359
2a1ef5be
KH
23602010-01-05 Kenichi Handa <handa@m17n.org>
2361
2362 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2363
e3eb1dae
SM
23642010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2365
2366 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2367 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2368 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2369
777013f2
MA
23702010-01-03 Michael Albinus <michael.albinus@gmx.de>
2371
2372 * dbusbind.c (xd_add_watch): Improve debug message.
2373 (xd_remove_watch): Improve debug message. If DATA is the session
2374 bus, unset D-Bus session environment.
2375 (Fdbus_init_bus): Pass the bus as argument to
2376 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2377
8932b1c2
CY
23782010-01-01 Chong Yidong <cyd@stupidchicken.com>
2379
87231e2c
CY
2380 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2381
4801c5fa
CY
2382 * lread.c (syms_of_lread): Make it clearer that these are the
2383 names of loaded files (Bug#5068).
2384
8932b1c2
CY
2385 * eval.c (run_hook_with_args): Handle the case where the global
2386 value has the obsolete single-function form (Bug#5026).
2387
11e3c684
CY
23882009-12-27 Chong Yidong <cyd@stupidchicken.com>
2389
2390 * minibuf.c (Fall_completions): Minor optimization.
2391
5b28ce35
EZ
23922009-12-26 Eli Zaretskii <eliz@gnu.org>
2393
5ce6e4f4
JB
2394 * .gdbinit (pgx): Fix display of composite glyphs.
2395 Display cmp.from and cmp.to as well.
2396 (pitx): Fix last change.
5b28ce35 2397
bcffff46
KH
23982009-12-25 Kenichi Handa <handa@m17n.org>
2399
2400 * composite.h (composition_adjust_point): Update prototype.
2401
2402 * composite.c (composition_reseat_it): Don't make a composition
2403 spanning over point.
2404 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2405 composable characters.
2406 (composition_adjust_point): New arg NEW_PT. Callers changed.
2407
2408 * keyboard.c (command_loop_1): Force redisplay if the last point
2409 was within a composition.
2410 (adjust_point_for_property): Don't adjust point for automatic
2411 composition when called after buffer modification.
2412
3f670e9a
EZ
24132009-12-19 Eli Zaretskii <eliz@gnu.org>
2414
5ce6e4f4
JB
2415 * .gdbinit (pitx): Don't use enum names, use their values.
2416 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2417 (pgx): Don't use enum names, use their values.
2418 (pitmethod): New helper command.
2419 (pitx): Use it to display iteration method.
2420 (pgrowit): New command.
2421
ad903955
EZ
2422 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2423
3f670e9a
EZ
2424 Update dependencies in Makefile.in.
2425
2426 * Makefile.in (alloc.o): Depend on termhooks.h.
2427 (atimer.o): Depend on blockinput.h.
2428 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2429 and frame.h.
2430 (callint.o): Depend on systime.h, coding.h, and composite.h.
2431 (callproc.o): Depend on buffer.h.
2432 (casefiddle.o): Don't depend on charset.h.
2433 (casetab.o): Depend on character.h.
2434 (ccl.o): Depend on composite.h.
2435 (chartab.o): Depend on ccl.h.
2436 (cm.o): Depend on dispextern.h.
2437 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2438 (coding.o): Don't depend on $(INTERVALS_H).
2439 (composite.o): Don't depend on dispextern.h explicitly (it's in
2440 $(INTERVALS_H)). Depend on ccl.h.
2441 (data.o): Depend on systime.h, coding.h, composite.h,
2442 dispextern.h, font.h, and ccl.h.
2443 (dired.o): Depend on composite.h.
2444 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2445 composite.h (it's in $(INTERVALS_H)).
2446 (doc.o): Depend on systime.h, coding.h, and composite.h.
2447 (editfns.o): Don't depend explicitly on dispextern.h.
2448 (emacs.o): Depend on frame.h and coding.h.
2449 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2450 (fileio.o): Depend on frame.h and commands.h. Don't depend
2451 explicitly on dispextern.h.
2452 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2453 composite.h.
2454 (fns.o): Don't depend on termhooks.h.
2455 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2456 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2457 coding.h, $(INTERVALS_H), window.h, xterm.h.
2458 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2459 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2460 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2461 fontset.h, ccl.h, and ftfont.h.
2462 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2463 (gtkutil.o): Depend on dispextern.h and composite.h.
2464 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2465 termhooks.h, and ccl.h.
2466 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2467 (intervals.o): Depend on systime.h and coding.h.
2468 (keyboard.o): Depend on composite.h and coding.h.
2469 (keymap.o): Depend on coding.h and frame.h.
2470 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2471 (macros.o): Depend on systime.h, coding.h, and composite.h.
2472 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2473 and atimer.h.
2474 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2475 dispextern.h explicitly.
0b5397c2
SM
2476 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2477 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2478 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2479 (regex.o): Don't depend on charset.h.
2480 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2481 (search.o): Don't depend explicitly on composite.h.
2482 (sound.o): Depend on atimer.h and systime.h.
2483 (syntax.o): Don't depend explicitly on composite.h.
2484 (sysdep.o): Depend on coding.h and composite.h.
2485 (term.o): Depend on xterm.h and buffer.h.
2486 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2487 (textprop.o): Don't depend on dispextern.h explicitly.
2488 (undo.o): Depend on dispextern.h.
2489 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2490 dispextern.h and composite.h explicitly.
2491 (xdisp.o): Depend on ccl.h.
2492 (xfaces.o): Depend on coding.h and ccl.h.
2493 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2494 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2495 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2496 ftfont.h.
2497 (xgselect.o): New dependency.
2498 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2499 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2500 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2501 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2502 (xsmfns.o): Depend on frame.h and dispextern.h.
2503 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2504 sysselect.h.
2505
7a6f7fea
AS
25062009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2507
2508 * font.c (Fclear_font_cache): Pass correct cache argument to
2509 font_clear_cache.
2510
f4c21026
AS
25112009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2512
2513 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2514 twice.
2515
f7ab0997
CY
25162009-12-15 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2519 calling file-remote-p. Reported by Jim Meyering.
2520
fa8e045a
MA
25212009-12-15 Michael Albinus <michael.albinus@gmx.de>
2522
2523 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2524 avoid compiler warnings. (Bug #5217)
fa8e045a 2525
a63dba42
KH
25262009-12-14 Kenichi Handa <handa@m17n.org>
2527
2528 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2529 in 8-bit encoding.
2530
5ce6e4f4 25312009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2532
2533 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2534 tooltip windows.
2535
223e5fc6
JD
25362009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2537
36acb2a7
JD
2538 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2539 Xatom_net_window_type.
2540
2541 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2542 Xatom_net_window_type.
2543
b8f00677
JD
2544 * xterm.c (my_log_handler): New function.
2545 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2546 so we can filter out buggy messages. (Bug #5120).
b8f00677 2547
e5f0bc9a
JD
2548 * xterm.c (xg_scroll_callback): Parameter list changed,
2549 use parameter GtkScrollType to determine scroll/line/page.
2550 Only allow dragging if a button < 4 is grabbed (bug #5177).
2551 (xg_end_scroll_callback): New function.
2552 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2553 xg_create_scroll_bar.
2554
2555 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2556 (scroll_end_callback): Remove.
2557 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2558 button-release-event. Replace value-changed event with change-value,
2559 bug #5177,
2560 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2561 bug #5177.
2562
2563 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2564 (xg_create_scroll_bar): Add GCallback end_callback.
2565
223e5fc6
JD
2566 * xftfont.c (QClcdfilter): New variable.
2567 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2568 (syms_of_xftfont): Initialize QClcdfilter.
2569
3c055b77
JD
25702009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2571
2572 * xsettings.c (struct xsettings): Add member seen.
2573 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2574 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2575 (apply_xft_settings): Only update Xft settings with what member seen
2576 indicates as new.
2577
05fe33ff
EZ
25782009-12-12 Eli Zaretskii <eliz@gnu.org>
2579
2580 * dispextern.h (struct text_pos): Use EMACS_INT;
2581 (struct glyph): Use EMACS_INT for charpos.
2582 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2583 region_beg_charpos, region_end_charpos,
2584 redisplay_end_trigger_charpos, and also for
2585 iterator_stack_entry.end_charpos and
2586 iterator_stack_entry.stop_charpos.
2587
e8d7886a
JD
25882009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2589
5ce6e4f4 2590 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2591 (xg_create_scroll_bar): Call scroll_end_callback on button release
2592 event (bug #5177).
2593 (xg_event_is_for_scrollbar): != replaced with ==.
2594
d0db2ec8
KH
25952009-12-12 Kenichi Handa <handa@m17n.org>
2596
2597 * ftfont.c (struct ftfont_info): New member matrix.
2598 (ftfont_open): Setup xftfont_info->matrix.
2599 (MFLTFontFT): New member matrix.
2600 (FLOOR, CEIL, ROUND): New macros.
2601 (ftfont_get_metrics): Handle matrix transformation.
2602 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2603
2604 * xftfont.c (struct xftfont_info): New member matrix.
2605 (xftfont_open): Setup xftfont_info->matrix.
2606
26072009-12-10 Kenichi Handa <handa@m17n.org>
2608
2609 * xdisp.c (append_space_for_newline): Consider face-remapping.
2610
2cc7b62f
AS
26112009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2612
b87dd913
AS
2613 * xsettings.c: Include "keyboard.h".
2614
eba5eb94
AS
2615 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2616
2cc7b62f
AS
2617 Fix implicit function declarations.
2618 * cmds.c: Include "frame.h".
2619 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2620 * frame.h: Move declaration of delete_frame outside of
2621 HAVE_WINDOW_SYSTEM.
2622
a4ef73c8
CY
26232009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2624
2625 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2626
2627 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2628 GTK builds.
2629
944a300c
AS
26302009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2631
2632 * unexelf.c (unexec): Don't search for .data twice.
2633
022eef62
CY
26342009-12-05 Chong Yidong <cyd@stupidchicken.com>
2635
426ac949
CY
2636 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2637 if push failed.
2638 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2639 of push_display_prop (Bug#5000).
2640
022eef62
CY
2641 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2642 value of font_list_entities (Bug#5085).
2643
be95bee9
JB
26442009-12-04 Juanma Barranquero <lekktu@gmail.com>
2645
2646 Fix `string-to-number' to deal consistently with integers and floats.
2647 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2648 trailing characters, not just whitespace.
2649 (read1): Pass new arg 0 to keep old behavior.
2650 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2651 trailing chars, as it is already done for integers. Doc fixes.
2652 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2653
24c2d7ce
EZ
26542009-12-04 Eli Zaretskii <eliz@gnu.org>
2655
0b5397c2
SM
2656 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2657 Delete unused enumeration value.
24c2d7ce 2658
7e694795
EZ
26592009-12-03 Eli Zaretskii <eliz@gnu.org>
2660
2661 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2662
84b31826
SM
26632009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2664
2665 * process.c (Fmake_network_process): Fix up the tests for
2666 "connectionless socket", so they DTRT for seqpacket sockets as well.
2667
f00c449b
SM
26682009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2669
2670 * process.c (Qseqpacket): New symbol.
2671 (HAVE_SEQPACKET): New macro.
2672 (Fmake_network_process): Accept new :type `seqpacket'.
2673 (init_process): Add `seqpacket' feature when applicable.
2674 (syms_of_process): Initialize Qseqpacket.
2675
8096a0ff
YM
26762009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2677
2678 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2679 if entity is Qnil.
2680
3e0de07f
SM
26812009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2682
2683 * print.c (print_preprocess): Preprocess the key_and_value table of
2684 hashtables, even tho they're "hidden" (bug#5082).
2685
abeafb2a
JD
26862009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2687
2688 * frame.c (frame_make_pointer_invisible)
2689 (frame_make_pointer_visible): Declare f before statements.
2690
4bf47195
EZ
26912009-11-28 Eli Zaretskii <eliz@gnu.org>
2692
2693 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2694 omitted dependencies on lisp.h.
2695
c525b3f2
JD
26962009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2697
ece2d4ed
JD
2698 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2699 is NULL.
2700
2701 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2702
2703 * frame.c (frame_make_pointer_invisible)
3e0de07f 2704 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2705 frame.
2706
c525b3f2
JD
2707 * search.c (simple_search): Remove warning by making *p const.
2708
2f00e299
DN
27092009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2710
2711 * xdisp.c (power_letter): Remove duplicate const.
2712
084b049b
JD
27132009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2714
a1fadc6f
JD
2715 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2716
5ce6e4f4 2717 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2718 defaults (bug #5025).
2719
28259cac
SM
27202009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2721
2722 * insdel.c (adjust_markers_for_delete): Move it in the
2723 right direction! (bug#4803)
2724
e8e14166
YM
27252009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2726
2727 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2728
2729 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2730
86677b58
GM
27312009-11-24 Glenn Morris <rgm@gnu.org>
2732
2733 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2734
581e51e8
JD
27352009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2736
cfc86c7a
JD
2737 * Makefile.in: Must create deps for ecrt0.o in its rule.
2738
581e51e8
JD
2739 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2740 because that is what Gtk+ font dialog understands.
2741
2742 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2743 of Fcopy_sequence.
2744 (font_open_by_name): Put name given into QCname for font-object returned.
2745
2746 * frame.c (x_set_font): Save original font name as frame parameter
2747 font-parameter.
2748
2749 * xsettings.c (set_default_xft_settings): New function.
2750 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2751 is found.
2752
8b264ecb
AS
27532009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2754
2755 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2756 searching backwards through multibyte buffer.
2757
872870b2
JD
27582009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2759
2760 * xterm.c: #include xgselect.h.
2761 (x_initialize): Call xgselect_initialize.
2762
2763 * xsettings.c (something_changedCB): C++ comments => C comments.
2764 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2765 does that now.
2766
2767 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2768 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2769 (scroll_bar_button_cb): Remove.
5ce6e4f4 2770 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2771 event.
2772 (xg_create_scroll_bar): Don't bind button-press-event and
2773 button-release-event.
2774
2775 * process.c: Include xgselect.h if defined (USE_GTK) ||
2776 defined (HAVE_GCONF).
2777 (wait_reading_process_output): Call xg_select for the same condition.
2778
2779 * xgselect.c (xg_select): New function to better integrate with
2780 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2781
2782 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2783
2784 * Makefile.in (XOBJ): Add xgselect.o.
2785
62a6e103
AS
27862009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2787
0b5397c2
SM
2788 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2789 Remove ignored second argument. All callers changed.
62a6e103
AS
2790 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2791 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2792 * xdisp.c (string_char_and_length): Likewise.
2793
b0ca0f33
DN
27942009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2795
2796 * xterm.c (x_new_font):
2797 * print.c (print_object):
2798 * cmds.c (Fself_insert_command): Move declarations before statements.
2799
dd5a6279
CY
28002009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2801
2802 * s/cygwin.h: Remove unneeded linker flags.
2803
4a8e097d
JD
28042009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2805
0d1d0d26
JD
2806 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2807
2808 * xsettings.h: Declare xsettings_get_system_font.
2809
2810 * xsettings.c (xsettings_get_system_font): New function.
2811 (init_gconf): No use initiating gconf unless we have Xft also.
2812 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2813 HAVE_GCONF.
2814
4a8e097d
JD
2815 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2816 add a blank entry so it doesn't collapse into nothing.
2817
8ab1650e
SM
28182009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2819
2820 * lread.c (Funintern): Comment out last change.
2821
82c602f0
RS
28222009-11-19 Richard Stallman <rms@gnu.org>
2823
2824 * lread.c (Funintern): Error if symbol is t or nil.
2825
87e32266
SM
28262009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2827
2828 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2829 representation of Lisp integers.
2830 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2831
1b9ac145
AS
28322009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2833
2834 * lisp.h: Remove declaration of Ffont_get_system_font.
2835 * xfns.c: Move include of "xsettings.h".
2836 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2837
dfb3c4c6
JD
28382009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2839
87e32266
SM
2840 * xsettings.c (something_changedCB, Ffont_get_system_font):
2841 Check use_system_font.
dfb3c4c6
JD
2842 (syms_of_xsettings): DEFVAR font-use-system-font.
2843
9370c1d8
AS
28442009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2845
25fe851a
AS
2846 * xfns.c (x_default_font_parameter): Remove dead assignment.
2847
9370c1d8
AS
2848 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2849
637fa988
JD
28502009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2851
87e32266 2852 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2853 not have FC_LCD_*. #define them if not there.
a6eb20d8 2854
87e32266 2855 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2856
637fa988
JD
2857 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2858
2859 * xterm.c (handle_one_xevent): Call xft_settings_event for
2860 ClientMessage, PropertyNotify and DestroyNotify.
2861 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2862 Call xsettings_initialize.
2863
2864 * xftfont.c (xftfont_fix_match): New function.
2865 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2866 Call xftfont_fix_match after XftFontMatch.
2867
2868 * xfont.c (xfont_driver): Initialize all members.
2869
87e32266
SM
2870 * xfns.c (x_default_font_parameter):
2871 Try font from Ffont_get_system_font.
637fa988
JD
2872 Do not get font from x_default_parameter if we got one from
2873 Ffont_get_system_font.
87e32266 2874 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2875
2876 * w32font.c (w32font_driver): Initialize all members.
2877
2878 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2879
2880 * lisp.h: Declare syms_of_xsettings.
2881
87e32266
SM
2882 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2883 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2884
2885 * ftfont.c (ftfont_filter_properties): New function.
2886
2887 * frame.c (x_set_font): Remove unused variable lval.
2888
87e32266 2889 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2890
2891 * font.c (font_put_extra): Don't return if val is nil, it means
2892 boolean option is off.
2893 (font_parse_fcname): Collect all extra properties in extra_props
2894 and call filter_properties for all drivers with extra_props and
2895 font as parameter.
87e32266
SM
2896 (font_open_entity): Do not use cache, it does not pick up new
2897 fontconfig settings like hinting.
637fa988
JD
2898 (font_load_for_lface): If spec had a name in it, store it in entity.
2899
2900 * emacs.c (main): Call syms_of_xsettings
2901
2902 * config.in: HAVE_GCONF is new.
2903
2904 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2905 xsettings.o is new.
2906
5a942932
KH
29072009-11-17 Kenichi Handa <handa@m17n.org>
2908
2909 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2910 back to the default font in case that no suitable font is found.
2911
b7c7a4d1
SM
29122009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2913
2914 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2915 Suggested by Chad Brown <yandros@mit.edu>.
2916 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2917
072f1e39
JD
29182009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2919
2920 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2921
5d1e70a2
AS
29222009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2923
87e32266 2924 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2925
a53cfbe5
JD
29262009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2927
473a99b7
JD
2928 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2929 has a parent.
2930
a53cfbe5 2931 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2932 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2933
2934 * config.in: Generated (AUTO_DEPEND).
2935
f04bb9b2
MA
29362009-11-13 Michael Albinus <michael.albinus@gmx.de>
2937
b7c7a4d1 2938 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2939 Vdbus_registered_functions_table, because it contains also
2940 properties. Fix docstring.
b7c7a4d1 2941 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2942
8f11f7ec
SM
29432009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2944
2945 * alloc.c (mark_object): Don't reprocess marked strings.
2946 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2947 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2948
8a605fe8
KH
29492009-11-13 Kenichi Handa <handa@m17n.org>
2950
8f11f7ec 2951 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2952 semantics of Vword_combining_categories.
2953 (Vword_combining_categories): Describe the slight change of the
2954 semantics.
2955
241c4680
EZ
29562009-11-13 Eli Zaretskii <eliz@gnu.org>
2957
2958 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2959
2960 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2961
5d58e44c
SM
29622009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2963
2964 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2965
5e13f9d3
JB
29662009-11-12 Juanma Barranquero <lekktu@gmail.com>
2967
2968 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2969
cf54c754
DR
29702009-11-11 David Reitter <david.reitter@gmail.com>
2971
2972 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2973 variables to fix 2009-11-09 change.
2974
a4ada374
DN
29752009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2976
91433552
DN
2977 * process.c (ifflag_def): Make flag_sym constant.
2978 (Fnetwork_interface_info): Use a constant pointer.
2979 (ifflag_table):
2980 * xfns.c (cursor_bits):
2981 * xdisp.c (power_letter):
2982 * termcap.c (speeds, esctab):
2983 * sysdep.c (baud_convert):
2984 * keyboard.c (lispy_accent_codes, modifier_names):
2985 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2986 (jpeg_format, tiff_format, gif_format, svg_format)
2987 (interlace_start, interlace_increment, gs_format):
2988 * gtkutil.c (separator_names):
2989 * fringe.c (swap_nibble):
2990 * fns.c (base64_value_to_char, base64_char_to_value):
2991 * fileio.c (make_temp_name_tbl):
2992 * coding.c (suffixes): Make constant.
2993
f4265f6c
DN
2994 * frame.c (make_initial_frame):
2995 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2996 build_string.
2997 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2998
04420943
DN
2999 * s/freebsd.h:
3000 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3001
0a5d24ae
DN
3002 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3003 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3004
a4ada374
DN
3005 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3006 * xterm.c (syms_of_xterm):
3007 * xfaces.c (syms_of_xfaces):
3008 * xdisp.c (syms_of_xdisp):
3009 * lread.c (syms_of_lread):
3010 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3011 build_string.
91433552 3012
a4ada374
DN
3013 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3014
af98fc7f
SM
30152009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3016
8ab1650e 3017 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3018
e90292a9
JD
30192009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * keyboard.h: Declare timer_check.
3022
3023 * keyboard.c (timer_check_2): New function that does what the old
3024 timer_check did.
3025 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3026 returned, i.e. don't return -1 with timers pending.
3027
3028 * process.c: Remove extern declaration of timer_check.
3029
3030 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3031 even if timer_check returned -1.
3032
af98fc7f
SM
3033 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3034 xg_dialog_data.
e90292a9
JD
3035 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3036 the event loop.
3037 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3038 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3039 Destroy the dialog after xg_dialog_run.
3040
045b83c0
SM
30412009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3042
3043 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3044
1fb99a3a
JD
30452009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3046
3047 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3048
04e452cb
JB
30492009-11-09 Juanma Barranquero <lekktu@gmail.com>
3050
3051 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3052
ef7417fd
SM
30532009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3054
3055 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3056 w32menu.c, and nsmenu.m.
3057 Simplify the obsolete case where position is nil.
3058 (cleanup_popup_menu): New function, moved from nsmenu.m.
3059 (struct skp): Remove slot `notreal'.
3060 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3061 adjust callers.
3062 (single_menu_item): Adjust call to parse_menu_item.
3063 (syms_of_menu): Defsubr x-popup-menu.
3064 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3065 (keymap_panes): Don't export any more.
3066 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3067 (xmenu_show): Declare.
3068 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3069 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3070 * keyboard.h (parse_menu_item): Update declaration.
3071 * xmenu.c (Fx_popup_menu): Remove.
3072 (syms_of_xmenu): Don't defsubr x-popup-menu.
3073 * w32menu.c (Fx_popup_menu): Remove.
3074 (syms_of_w32menu): Don't defsubr x-popup-menu.
3075 * nsmenu.m (cleanup_popup_menu): Remove.
3076 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3077 moved to menu.c's Fx_popup_menu.
3078 (Fx_popup_menu): Remove.
3079 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3080 menu_items (it's done in menu.c already).
3081
424d6179
SM
30822009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3083
3084 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3085 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3086
c0df13a6 30872009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3088
3089 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3090 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3091 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3092 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3093
2de9f71c
SM
30942009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3095
3096 Let integers use up 2 tags to give them one extra bit and thus double
3097 their range.
3098 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3099 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3100 New macros.
3101 (enum Lisp_Type): Use them. Give explicit values.
3102 (Lisp_Type_Limit): Remove.
3103 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3104 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3105 Pay attention to USE_2_TAGS_FOR_INTS.
3106 (INTEGERP): Use LISP_INT_TAG_P.
3107 * fns.c (internal_equal): Simplify the default case.
3108 (sxhash): Use case_Lisp_Int.
3109 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3110 any more.
3111 (Ftype_of): Use case_Lisp_Int.
3112 (store_symval_forwarding): Take into account the fact that Ints can
3113 now have more than one tag.
3114 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3115 buffer_slot_type_mismatch):
3116 * xfaces.c (face_attr_equal_p):
3117 * print.c (print_object):
3118 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3119 Use case_Lisp_Int.
3120
323637a2
EZ
31212009-11-06 Eli Zaretskii <eliz@gnu.org>
3122
7ac65b38
EZ
3123 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3124
323637a2
EZ
3125 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3126 warning.
3127
e511451f
JD
31282009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3129
3130 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3131
3132 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3133
3134 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3135 ButtonPressRelease and MotionNotify (bug#4870).
3136
5e2327cf
DN
31372009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3138
5adc433e
DN
3139 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3140
d67b4f80
DN
3141 * xterm.c (syms_of_xterm):
3142 * xselect.c (syms_of_xselect):
3143 * xmenu.c (syms_of_xmenu):
3144 * xfns.c (syms_of_xfns):
3145 * xfaces.c (syms_of_xfaces):
3146 * xdisp.c (syms_of_xdisp):
3147 * window.c (syms_of_window):
3148 * w32fns.c (syms_of_w32fns):
3149 * undo.c (syms_of_undo):
3150 * textprop.c (syms_of_textprop):
3151 * terminal.c (syms_of_terminal):
3152 * syntax.c (syms_of_syntax):
3153 * sound.c (syms_of_sound):
3154 * search.c (syms_of_search):
3155 * print.c (syms_of_print):
3156 * minibuf.c (syms_of_minibuf):
3157 * macros.c (syms_of_macros):
3158 * keymap.c (syms_of_keymap, initial_define_key)
3159 (initial_define_lispy_key):
3160 * keyboard.c (syms_of_keyboard):
3161 * insdel.c (syms_of_insdel):
3162 * image.c (syms_of_image):
3163 * fringe.c (syms_of_fringe):
3164 * frame.c (syms_of_frame):
3165 * fontset.c (syms_of_fontset):
3166 * fns.c (syms_of_fns):
3167 * fns.c (syms_of_fns):
3168 * fileio.c (syms_of_fileio):
3169 * fileio.c (syms_of_fileio):
3170 * eval.c (syms_of_eval):
3171 * doc.c (syms_of_doc):
3172 * dispnew.c (syms_of_display):
3173 * dired.c (syms_of_dired):
3174 * dbusbind.c (syms_of_dbusbind):
3175 * data.c (syms_of_data):
3176 * composite.c (syms_of_composite):
3177 * coding.c (syms_of_coding):
3178 * cmds.c (syms_of_cmds):
3179 * charset.c (define_charset_internal, syms_of_character):
3180 * ccl.c (syms_of_ccl):
3181 * category.c (syms_of_category, init_category_once):
3182 * casetab.c (syms_of_casetab):
3183 * casefiddle.c (syms_of_casefiddle):
3184 * callint.c (syms_of_callint):
3185 * bytecode.c (syms_of_bytecode):
3186 * buffer.c (keys_of_buffer, syms_of_buffer):
3187 * alloc.c (syms_of_alloc):
3188 * process.c (syms_of_process, init_process):
3189 * lread.c (syms_of_lread, init_obarray):
3190 * font.c (build_style_table):
3191 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3192 intern_c_string, calls to make_pure_string with
3193 make_pure_c_string. Use pure_cons instead of Fcons.
3194
5e2327cf
DN
3195 * process.c (socket_options): Make it const.
3196 (set_socket_option, init_process): Use a const pointer.
3197
3198 * lread.c (intern_c_string): New function.
3199 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3200 (defvar_int): Uset it. Make the name const char*.
3201
3202 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3203 (defvar_int): Update prototypes.
3204 (DEFUN, EXFUN): Support for prototypes is now required.
3205 (intern_c_string): New prototype.
3206 (struct Lisp_Subr): Make symbol_name constant.
3207
3208 * font.c (struct table_entry): Remove unused member. Make NAMES
3209 constant.
3210 (weight_table, slant_table, width_table): Make constant.
3211
3212 * emacs.c (struct standard_args): Make name and longname constant.
3213
3214 * character.h (DEFSYM): Use intern_c_string.
3215
a56eaaef
DN
32162009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3217
3218 * alloc.c (make_pure_c_string): New function.
3219
3220 * eval.c (Fautoload): Purecopy all arguments.
3221
f6a07420
KH
32222009-11-05 Kenichi Handa <handa@m17n.org>
3223
3224 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3225 the buffer in case of replace.
3226
5d28d4b1
DN
32272009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3228
3229 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3230
b349d111
SM
32312009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3232
d528b1ce
SM
3233 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3234 when applicable (bug#4851).
3235
b349d111
SM
3236 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3237 (P_): Support for prototypes is now required.
3238
c38eb027
CY
32392009-10-31 Chong Yidong <cyd@stupidchicken.com>
3240
3241 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3242 (Bug#4827).
3243
0405f8d9
EZ
32442009-10-30 Eli Zaretskii <eliz@gnu.org>
3245
d528b1ce 3246 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3247
ca0a881a
DN
32482009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3249
3250 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3251
d528b1ce
SM
3252 * lread.c (Fload): Purecopy the file name when building
3253 Vpreloaded_file_list.
ca0a881a 3254
47e0e0e4
JR
32552009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3256
3257 * w32fns.c (syms_of_w32fns): Change default value of
3258 w32-scroll-lock-modifier to nil. (Bug#2827)
3259
057bce6f
JB
32602009-10-26 Juanma Barranquero <lekktu@gmail.com>
3261
782a943e 3262 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3263
242bc74c
AS
32642009-10-26 Andreas Schwab <schwab@redhat.com>
3265
3266 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3267
522d013a
JB
32682009-10-26 Juanma Barranquero <lekktu@gmail.com>
3269
3270 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3271 For delta < 0, skip check that only makes sense when the mini-window
3272 is going to be enlarged. (Bug#4534)
3273
18060980
CY
32742009-10-25 Chong Yidong <cyd@stupidchicken.com>
3275
3276 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3277 string in menu maps (Bug#4471).
3278
fec8f0fe
CY
32792009-10-24 Chong Yidong <cyd@stupidchicken.com>
3280
3281 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3282 FRAME_NS_VIEW on terminal frames (Bug#4765).
3283
10d66ec0
AS
32842009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3285
1cae01f7
AS
3286 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3287 DBUS_TYPE_UINTnn separately to get proper sign extension.
3288
58a12889
AS
3289 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3290 can properly handle unsigned types.
d528b1ce 3291 (make_uid, make_gid): Remove.
58a12889 3292
987c9327
AS
3293 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3294 types again.
3295
522d013a 3296 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3297 (system_process_attributes): Likewise.
3298
905a9ed3
DN
32992009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3300
3301 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3302
3303 * eval.c (Fautoload): Purecopy the filename. Simplify.
3304
3305 * category.c (Fdefine_category): Purecopy docstring.
3306
a599b3e8
AS
33072009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3308
7b792fc9
AS
3309 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3310
a599b3e8
AS
3311 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3312
b35ac83e
CY
33132009-10-23 Chong Yidong <cyd@stupidchicken.com>
3314
3315 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3316 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3317 (Bug#4775).
3318
e8903e00
SM
33192009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3320
3321 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3322 (init_fileio_once):
3323 * lisp.h (init_fileio_once): Remove.
3324 * emacs.c (main): Don't call init_fileio_once.
3325
8f43cbf3
DN
33262009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3327
3328 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3329
26898943
AS
33302009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3331
3332 * doprnt.c (doprnt): Fix overflow check.
3333
5c646d5a
JD
33342009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3335
3132a7ea
JD
3336 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3337
5c646d5a
JD
3338 * xterm.h (x_wait_for_event): Declare it.
3339
3340 * xterm.c (pending_event_wait): New variable.
3341 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3342 see pending_event_wait.eventtype.
3343 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3344 (x_new_font): Call change_frame_size with new rows/columns before we
3345 try to resize the frame.
5c646d5a 3346 (x_wait_for_event): New function.
d528b1ce
SM
3347 (x_set_window_size_1): Don't change gravity unless change_gravity
3348 is set.
5c646d5a
JD
3349 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3350 don't change frame size, instead wait for the ConfigureNotify.
3351 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3352 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3353 (x_initialize): Initialize pending_event_wait.
3354
3355 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3356 size.
3357
3358 * widget.c (EmacsFrameSetValues): Add comment.
3359 (EmacsFrameSetCharSize): Just call x_set_window_size.
3360
3361 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3362 x_wait_for_event.
d528b1ce 3363 (flush_and_sync): Remove again.
5c646d5a
JD
3364 (xg_get_font_name): Suggest monospace if no previous font is known.
3365
e9c1637d
SM
33662009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3367
3368 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3369 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3370
5a72cccb
YM
33712009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3372
3373 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3374 processing pending events when event is filtered for input method.
ab04798f 3375 (Bug#3681)
5a72cccb 3376
2629aa37
JB
33772009-10-20 Juanma Barranquero <lekktu@gmail.com>
3378
3379 * fns.c: Add #endif accidentally removed in previous change.
3380
c3417a74
DN
33812009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3382
3383 * fns.c: Remove code for unsupported system: MAC_OS.
3384 * image.c: Likewise. Include setjmp.h.
3385
9685cef2
JD
33862009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3387
3388 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3389 pixel -1 (bug #4742).
3390
d7306fe6
DN
33912009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3392
019d2c4c
DN
3393 * process.c (create_pty): Remove conditionals for no longer
3394 supported systems: UNIPLUS and RTU.
3395
ee6bacd4
DN
3396 * xterm.c:
3397 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3398
d7306fe6
DN
3399 * alloc.c: Do not define struct catchtag.
3400 * eval.c: Move struct catchtag definition ...
3401 * lisp.h: ... here.
3402
3403 * image.c: Move png.h #include earlier to avoid warnings.
3404
3405 * xterm.c:
3406 * xsmfns.c:
3407 * xselect.c:
3408 * xrdb.c:
3409 * xmenu.c:
3410 * xftfont.c:
3411 * xfont.c:
3412 * xfns.c:
3413 * xfaces.c:
3414 * xdisp.c:
3415 * window.c:
3416 * widget.c:
3417 * w32xfns.c:
3418 * w32uniscribe.c:
3419 * w32term.c:
3420 * w32select.c:
3421 * w32reg.c:
3422 * w32proc.c:
3423 * w32menu.c:
3424 * w32inevt.c:
3425 * w32heap.c:
3426 * w32font.c:
3427 * w32fns.c:
3428 * w32console.c:
3429 * w32.c:
3430 * w16select.c:
3431 * vm-limit.c:
3432 * unexsol.c:
3433 * unexec.c:
3434 * unexcw.c:
3435 * unexaix.c:
3436 * undo.c:
3437 * tparam.c:
3438 * textprop.c:
3439 * terminfo.c:
3440 * terminal.c:
3441 * termcap.c:
3442 * term.c:
3443 * syntax.c:
3444 * sound.c:
3445 * sheap.c:
3446 * search.c:
3447 * scroll.c:
3448 * region-cache.c:
3449 * regex.c:
3450 * ralloc.c:
3451 * process.c:
3452 * print.c:
b024548b
DN
3453 * nsterm.m:
3454 * nsselect.m:
3455 * nsmenu.m:
3456 * nsimage.m:
3457 * nsfont.m:
3458 * nsfns.m:
d7306fe6
DN
3459 * msdos.c:
3460 * minibuf.c:
3461 * menu.c:
3462 * marker.c:
3463 * macros.c:
3464 * keymap.c:
3465 * keyboard.c:
3466 * intervals.c:
3467 * insdel.c:
3468 * indent.c:
3469 * gtkutil.c:
3470 * ftxfont.c:
3471 * ftfont.c:
3472 * fringe.c:
3473 * frame.c:
3474 * fontset.c:
3475 * font.c:
3476 * fns.c:
3477 * floatfns.c:
3478 * filelock.c:
3479 * fileio.c:
3480 * emacs.c:
3481 * editfns.c:
3482 * dosfns.c:
3483 * doprnt.c:
3484 * doc.c:
3485 * dispnew.c:
3486 * dired.c:
3487 * dbusbind.c:
3488 * data.c:
3489 * composite.c:
3490 * coding.c:
3491 * cmds.c:
3492 * cm.c:
3493 * chartab.c:
3494 * charset.c:
3495 * character.c:
3496 * ccl.c:
3497 * category.c:
3498 * casetab.c:
3499 * casefiddle.c:
3500 * callproc.c:
3501 * callint.c:
3502 * bytecode.c:
3503 * buffer.c:
3504 * atimer.c: Include setjmp.h. (Bug#4643)
3505
fd5f21e6
SM
35062009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3507
4c0354d7
SM
3508 Remove leftover table unibyte_to_multibyte_table.
3509 * character.c (unibyte_to_multibyte_table): Remove.
3510 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3511 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3512 * character.h (UNIBYTE_TO_CHAR): New macro.
3513 (MAKE_CHAR_MULTIBYTE): Use it.
3514 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3515 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3516 (message_dolog, set_message_1):
3517 * search.c (Freplace_match):
3518 * editfns.c (Fcompare_buffer_substrings):
3519 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3520 (concat):
3521 * insdel.c (copy_text, count_size_as_multibyte):
3522 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3523 * term.c (produce_glyphs):
3524 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3525 * regex.c (RE_CHAR_TO_MULTIBYTE):
3526 * cmds.c (internal_self_insert):
3527 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3528
fd5f21e6
SM
3529 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3530
4418646e
DN
35312009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3532
3533 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3534
35f5c1d2
JB
35352009-10-16 Juanma Barranquero <lekktu@gmail.com>
3536
3537 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3538
a0cd8f6b
AR
35392009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3540
3541 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3542 still needed under Tiger.
3543
3544 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3545
3546 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3547 __Apple__.
3548
3549 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3550
01a8d3fa
KH
35512009-10-15 Kenichi Handa <handa@m17n.org>
3552
3553 * print.c (print_object): Escape a symbol like "2E10" too.
3554
bf6c75c9 35552009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3556
3557 Cleanups and changes for 64-bit compile under Snow Leopard.
3558 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3559
3560 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3561
c5959062 3562 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3563 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3564 cast argument.
3565 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3566 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3567
3568 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3569
3570 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3571 where appropriate.
3572
3573 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3574 where appropriate.
6e4780c5
JB
3575 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3576 Use stringWithUTF8String.
bf6c75c9
AR
3577 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3578
6e4780c5
JB
3579 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3580 Add formal protocol mention to inheritance.
bf6c75c9
AR
3581 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3582
6e4780c5
JB
3583 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3584 Fix printf format.
bf6c75c9
AR
3585 (ns_query_color): Use CGFloat where appropriate.
3586 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3587 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3588 argument.
3589
3d87f118
AR
3590 * config.in (NS_HAVE_NSINTEGER): Drop.
3591
a95c8102
AR
3592 * dbusbind.c (dbus-method-return-internal)
3593 (dbus-method-error-internal): Use long format in printf, and cast
3594 argument.
3595
3596 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3597 in printf, and cast argument.
3598
6873acca 3599 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3600 cast argument.
3601
9ec6f100
GM
36022009-10-11 Glenn Morris <rgm@gnu.org>
3603
3604 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3605
5be883cd
JD
36062009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3607
3608 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3609 menu bar with a small width so it doesn't enlarge the frame.
3610
d7a39b51
JB
36112009-10-08 Juanma Barranquero <lekktu@gmail.com>
3612
3613 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3614
0c2b6f8e
GM
36152009-10-06 Glenn Morris <rgm@gnu.org>
3616
3617 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3618 SOME_MACHINE_LISP (this enters indirectly via DOC).
3619
e02131a2
EZ
36202009-10-05 Eli Zaretskii <eliz@gnu.org>
3621
3622 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3623
b4744254
EZ
36242009-10-04 Eli Zaretskii <eliz@gnu.org>
3625
3626 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3627 Doc fix.
3628
dbf64827
JB
36292009-10-03 Martin Rudalics <rudalics@gmx.at>
3630
3631 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3632
e9a0aef8
MA
36332009-10-02 Michael Albinus <michael.albinus@gmx.de>
3634
d528b1ce 3635 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3636 used anymore outside fileio.c.
3637
3638 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3639
64eb2b56
JB
36402009-10-01 Juanma Barranquero <lekktu@gmail.com>
3641
3642 * lisp.h (Qdelete_directory_internal):
3643 Declare, instead of Qdelete_directory.
3644
3645 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3646
9d28c33e
SM
36472009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3648
3649 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3650
9d8f3bd9
MA
36512009-10-01 Michael Albinus <michael.albinus@gmx.de>
3652
9d28c33e 3653 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3654 Fdelete_directory. It is not a command anymore. It has no file
3655 name handler.
3656
9694740b
SM
36572009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3658
3659 * xdisp.c (get_next_display_element): Use an enum in last change.
3660
748e162f
KH
36612009-09-28 Kenichi Handa <handa@m17n.org>
3662
9694740b 3663 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3664 unibyte_display_via_language_environment in handling
3665 Vnobreak_char_display.
3666
17efd58d
AR
36672009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3668
3669 * nsterm.h (ns_app_name): New extern variable.
3670
3671 * nsterm.m (ns_app_name): New variable.
3672 (ns_term_init): Set and use it.
3673 (ns_term_shutdown): Use it.
3674
3675 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3676 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3677
3678 * nsfns.m (ns_set_name_iconic, ns_set_name)
3679 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3680 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3681
9694740b
SM
3682 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3683 Remove double-casting in client_data comparison.
31c2d412 3684
3208cb35
YM
36852009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3686
3687 * keyboard.c (make_lispy_event): Remember last wheel direction.
3688 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3689
b7d552d6
GM
36902009-09-26 Glenn Morris <rgm@gnu.org>
3691
3692 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3693 internal.elc. Add term/pc-win.elc.
3694 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3695 term/x-win.elc.
3696 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3697 term/w32-win.elc.
3698 (NS_SUPPORT): New.
3699 (lisp): Add NS_SUPPORT.
3700 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3701
4ff670a8
DR
37022009-09-25 David Reitter <david.reitter@gmail.com>
3703
3704 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3705 on Mac OS X 10.6+ (bug#4513).
3706
feabfb6c
JB
37072009-09-24 Juanma Barranquero <lekktu@gmail.com>
3708
3709 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3710 some parts of Emacs code (like font selection) don't grok them.
3711 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3712
de59072a
AS
37132009-09-24 Andreas Schwab <schwab@redhat.com>
3714
3715 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3716
a489517b
JB
37172009-09-24 Juanma Barranquero <lekktu@gmail.com>
3718
3719 * dired.c (Fdirectory_files): Fix typo in docstring.
3720
0592970c
AR
37212009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3722
3723 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3724 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3725 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3726 under GNUstep.
3727 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3728
3729 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3730 glyph advancement.
3731
48e8a88b
AR
37322009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3733
3734 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3735 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3736
3737 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3738 deleted (bug #4492).
3739
e14f0a78
AR
3740 * nsfont.m (Vns_reg_to_script): New lisp variable.
3741 (syms_of_nsfont): Declare it.
3742 (ns_registry_to_script): New function.
3743 (ns_get_req_script): Call it.
3744 (ns_findfonts): Don't give up on non-unicode registry.
3745
3746 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3747
5b650faa
SM
37482009-09-20 Tom Tromey <tromey@redhat.com>
3749
3750 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3751 batch mode (bug#4228).
3752
a489517b 37532009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3754
3755 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3756 carefully. (Bug #4339)
0bae4e09 3757
fcfe06f3
CY
37582009-09-18 Chong Yidong <cyd@stupidchicken.com>
3759
d798ba87 3760 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3761
31642728
AR
37622009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3763
3764 * emacs.c (inhibit_x_resources): Update doc string for NS.
3765 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3766 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3767
3768 * nsterm.h (ns_no_defaults): Remove.
3769
3770 * nsterm.m (ns_no_defaults): Remove.
3771 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3772 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3773 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3774 don't update the NSWindow itself.
3775 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3776 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3777
3778 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3779 ns_use_qd_smoothing.
3780
3781 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3782 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3783 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3784 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3785
8686ac71
JB
37862009-09-17 Juanma Barranquero <lekktu@gmail.com>
3787
3788 * emacs.c (inhibit_x_resources): New variable.
3789 (main) [HAVE_NS]: Don't process --quick command line option.
3790 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3791
3792 * lisp.h (inhibit_x_resources): Declare it extern.
3793
3794 * w32reg.c (x_get_string_resource):
3795 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3796
e227ba05
EZ
37972009-09-17 Eli Zaretskii <eliz@gnu.org>
3798
362654a6
JB
3799 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3800 Add lisp/term/internal.elc.
e227ba05 3801
742d40e8
SM
38022009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3803
3804 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3805 (bug#4461).
3806
005bd5a2
DN
38072009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3808
3809 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3810
3811 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3812 (OBJECTS_MACHINE): Remove, unused.
3813
f9af9719
SM
38142009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3815
3816 * frame.c (x_get_resource_string): Remove unused.
3817
0307c7d2
JD
38182009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3819
3820 * xterm.c (x_new_font): Call change_frame_size before calling
3821 x_set_window_size, in case frame size won't change.
3822
3823 * frame.c (x_set_font): Remove dead code.
3824
428b13d6
SM
38252009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3826
3827 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3828
5766c380
SM
38292009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3830
3831 * lread.c (Fload): Don't output a message after loading an obsolete
3832 package any more (done in Lisp now).
3833
2fd0161b
CY
38342009-09-12 Chong Yidong <cyd@stupidchicken.com>
3835
3836 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3837
bc5e75b6
SM
38382009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3839
3840 * keymap.c (Fwhere_is_internal): Use nconc2.
3841
c31c985e
AM
38422009-09-11 Alan Mackenzie <acm@muc.de>
3843
3844 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3845 batch mode.
3846
78012bd2
AS
38472009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3848
3849 * xdisp.c (display_mode_element): Detect cycles.
3850
9d889332
SM
38512009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3852
3853 * keymap.c (where_is_internal): Don't erroneously return nil right after
3854 filling the cache.
3855 (where_is_internal_1): Fix up typo.
3856
7ab5d780
GM
38572009-09-11 Glenn Morris <rgm@gnu.org>
3858
3859 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3860 share a common doc-string.
3861
5238a749
SM
38622009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3863
66d77eda
SM
3864 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3865 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3866
5238a749
SM
3867 * keymap.c (QCadvertised_binding): New constant.
3868 (syms_of_keymap): Initialize it.
3869 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3870 if applicable.
3871
19f48442
SM
38722009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3873
50d4ba39
SM
3874 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3875 (parse_menu_item): Streamline since bindings are recomputed all the
3876 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3877 more and don't support lmenu's menu-alias any more either.
3878
a88a5372
SM
3879 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3880 (where_is_internal): Strip it down to only traverse the keymaps.
3881 Move the cache handling from Fwhere_is_internal to here.
3882 (Fwhere_is_internal): Move the handling of remapping and the choice of
3883 the best binding from where_is_internal to here.
3884 Unify the cached/noncached paths, so remapping is also handled
3885 correctly when the cache is used, and so the cache can be used to
3886 speed up remap-handling when applicable.
3887 Give preference to non-remapped bindings.
3888 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3889 non-remapped bindings.
3890 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3891 command remapping.
3892
19f48442
SM
3893 * xdisp.c (display_mode_element): Move list length limit from 50 to
3894 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3895
599498c3 38962009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3897
3898 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3899
f9b7b5ac
SM
39002009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3901
a53af587
JB
3902 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3903 (Bug#4334)
3904
f9b7b5ac
SM
3905 * keymap.c (where_is_internal): Filter out shadowed remappings.
3906 Assume that where_is_internal returns unshadowed bindings to simplify
3907 the code and get rid of the gotos. Use ASIZE.
3908
04f4b72d
JD
39092009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3910
4da146f2
JD
3911 * xterm.c (x_focus_changed): If we get a focusout and pointer
3912 is invisible, make it visible.
3913
04f4b72d
JD
3914 * xterm.h: Remove condition for declaration of
3915 x_*_window_to_frame.
3916
7cef7ce3
SM
39172009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3920 initial terminal as well.
3921
a54fa5b7
JD
39222009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3923
3924 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3925 x_menubar_window_to_frame.
a54fa5b7 3926
50426a04 3927 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3928 (XTmouse_position): Do not return valid positions
3929 for clicks in the menubar and the toolbar for Gtk+.
3930
3931 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3932 if the widget for the event has the same top level as a frame,
3933 return the frame.
3934 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3935 internal windows, bug #4122.
3936 (x_non_menubar_window_to_frame): Remove.
3937
5a021dd0
GM
39382009-09-02 Glenn Morris <rgm@gnu.org>
3939
3940 * buffer.c (default-major-mode): Move most of the doc from here...
3941 (major-mode): ... to here.
3942
548fe2f3
NR
39432009-08-30 Nick Roberts <nickrob@snap.net.nz>
3944
3945 * process.c (wait_reading_process_output): Keep the descriptor
3946 when pty is used by a non-child process, e.g., in I/O buffer of
3947 GDB this allows inferior to be restarted.
3948
e0840eef
EZ
39492009-08-29 Eli Zaretskii <eliz@gnu.org>
3950
3951 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3952 both branches into one.
3953
82e98df4
SM
39542009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3955
3956 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3957 (main): Use enable-multibyte-characters rather than
3958 default-enable-multibyte-characters. Output a warning message when
3959 running a unibyte session.
3960
890617cb
YM
39612009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3962
3963 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3964 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3965 (copy_data_segment): Also copy __program_vars section.
3966 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3967 (dump_it) [LC_DYLD_INFO]: Use it.
3968
3969 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3970
e7adeadc
EZ
39712009-08-28 Eli Zaretskii <eliz@gnu.org>
3972
3973 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3974 $(SRC)/buildobj.h.
3975 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3976 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3977 $(SRC)/buildobj.h.
3978 (clean): Add buildobj.h.
3979
3ed8bbdc
TZ
39802009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3981
3982 * print.c (print_object): Set escapeflag to 1 when printing
3983 hashtable keys and values.
3984
155a6764
SM
39852009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3986
3987 * lread.c (read_integer): Use doubles (and potentially return a float
3988 number) as we do in string-to-number.
3989 (read1): Use strtol to read integers, signal errors on strtol's
3990 overflow and use floats if strtol's output is too large for
3991 Elisp integers.
3992
877610de
EZ
39932009-08-27 Eli Zaretskii <eliz@gnu.org>
3994
3995 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3996 (make-buildobj-SH): Fix last change.
3997 (SRC): Move to before where it's first used.
3998
ef73e7be
KH
39992009-08-27 Kenichi Handa <handa@m17n.org>
4000
550c8289
KH
4001 * process.c (send_process): Use encode_coding_object instead of
4002 encode_coding_string to perform eol-conversion even if the string
4003 is unibyte.
4004
60afa08d
KH
4005 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4006 character.
4007
ef73e7be 4008 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4009 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4010
7b3a82d7
DN
40112009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4012
5654bf63
DN
4013 * callproc.c (Fcall_process): Remove always true #if.
4014
7b3a82d7
DN
4015 * lisp.h: Replace #if 0 code for checking with text pointing to
4016 the --enable-checking configure flag.
4017
4018 * emacs.c (main): Mention the --enable-profiling configure flag
4019 instead of using CFLAGS.
4020
878bde49
KR
40212009-08-26 Ken Raeburn <raeburn@raeburn.org>
4022
4023 * Makefile.in (buildobj.h): New target.
4024 (doc.o): Depend on it.
4025 (temacs${EXEEXT}): Don't generate buildobj.lst.
4026 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4027 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4028 ($(BLD)/doc.$(O)): Depend on it.
4029 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4030 provided by Eli Zaretskii.)
4031 ($(TEMACS)): Don't generate buildobj.lst.
4032 * doc.c: Include buildobj.h.
4033 (buildobj): New static variable.
4034 (Fsnarf_documentation): Use it, instead of opening and reading
4035 buildobj.lst.
4036
1574224c
MA
40372009-08-25 Michael Albinus <michael.albinus@gmx.de>
4038
4039 * dbusbind.c (Fdbus_call_method)
4040 (Fdbus_call_method_asynchronously): Use English numeric format for
4041 timeout values in doc string.
4042
d9da2f45
KH
40432009-08-25 Kenichi Handa <handa@m17n.org>
4044
ef73e7be
KH
4045 * alloc.c (mark_char_table): New function.
4046 (mark_object): Use mark_char_table for a char-table.
4047
d9da2f45
KH
4048 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4049 (CHAR_TABLE_REF): Use it.
4050
c8edcc01
KR
40512009-08-23 Ken Raeburn <raeburn@raeburn.org>
4052
4053 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4054 before invoking the newly build emacs to check for load-path
4055 shadowing.
4056
7763401b
GM
40572009-08-22 Glenn Morris <rgm@gnu.org>
4058
4059 * Makefile.in (bootstrap_exe): New variable.
4060 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4061 Use ${bootstrap_exe}.
4062
729eadda
EZ
40632009-08-22 Eli Zaretskii <eliz@gnu.org>
4064
4065 * coding.h (encode_coding_string): Don't encode unibyte strings.
4066 (Bug#4047)
4067
eb4c6ace
MA
40682009-08-22 Michael Albinus <michael.albinus@gmx.de>
4069
4070 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4071
4072 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4073 intended as hotfix only.
4074 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4075
36e34d1b
AR
40762009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4077
4078 * nsterm.m (ns_get_color): Update documentation properly for last
4079 change, and clean up loose ends in the code left by it. Fix
4080 longstanding bug with 16-bit hex parsing, and add support for
4081 yet another X11 format (rgb:r/g/b) for compatibility.
4082 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4083 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4084
f983eb8a
SM
40852009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4086
4087 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4088
3f56d3c6
MA
40892009-08-20 Michael Albinus <michael.albinus@gmx.de>
4090
4091 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4092 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4093 (xd_initialize, xd_pending_messages): Check, whether
4094 $DBUS_SESSION_BUS_ADDRESS is set.
4095
fb641d68
YM
40962009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4097
4098 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4099
4100 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4101
cf59a374
GM
41022009-08-20 Glenn Morris <rgm@gnu.org>
4103
4104 * emacs.c (system-type): Doc fix.
4105
1373f3be
SM
41062009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4107
4108 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4109 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4110
058ed861
MA
41112009-08-18 Michael Albinus <michael.albinus@gmx.de>
4112
1373f3be
SM
4113 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4114 New functions.
058ed861
MA
4115 (xd_initialize): Revert change from 2009-08-16.
4116
563a866e 41172009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4118
4119 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4120 font-group vector, return nil.
5fc05db0 4121
e42bdf01
CY
41222009-08-17 Chong Yidong <cyd@stupidchicken.com>
4123
4124 * process.c (status_notify): Don't perform redisplay.
4125 (Fdelete_process, list_processes_1, process_send_signal):
4126 Expliticly perform redisplay.
4127 (wait_reading_process_output): Always check process status, but
4128 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4129
4230ab74
KR
41302009-08-17 Ken Raeburn <raeburn@raeburn.org>
4131
1373f3be 4132 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4133 (XFLOAT_INIT): New macro for storing a float value.
4134 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4135 * fns.c (sxhash): Copy out the value of a float in order to
4136 examine its bytes.
4137 * dbusbind.c (xd_append_arg): Likewise.
4138
4230ab74
KR
4139 * emacs.c (main): Don't call syms_of_data twice.
4140
a0645cdd
MA
41412009-08-16 Michael Albinus <michael.albinus@gmx.de>
4142
4143 * dbusbind.c (xd_initialize): Add connection file descriptor to
4144 input_wait_mask, in order to let select() detect, whether a new
4145 message has been arrived.
ca4f31ea 4146 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4147
485db0ba
MA
41482009-08-15 Michael Albinus <michael.albinus@gmx.de>
4149
1373f3be
SM
4150 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4151 New functions.
485db0ba
MA
4152
4153 * lisp.h (xd_pending_messages): Declare.
4154
4155 * keyboard.c (readable_events): Call xd_pending_messages.
4156
b5b98ff4
CY
41572009-08-15 Chong Yidong <cyd@stupidchicken.com>
4158
1373f3be 4159 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4160
f8354c6e
CY
4161 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4162
b5b98ff4
CY
4163 * buffer.c (set_buffer_internal_1)
4164 (swap_out_buffer_local_variables): Check for unbound local
4165 variables (Bug#4138).
4166
8b9fc636
EZ
41672009-08-14 Eli Zaretskii <eliz@gnu.org>
4168
4169 * process.c (create_pty): Fix last change.
4170
ce959360
CY
41712009-08-13 Chong Yidong <cyd@stupidchicken.com>
4172
4173 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4174 (xbm_load_image): Caller changed.
64b807c9 4175 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4176
c7baf7e9
NR
41772009-08-13 Nick Roberts <nickrob@snap.net.nz>
4178
4179 * process.c (create_pty): New function.
4180 (Fstart_process): Use it to allow Emacs to just associate a pty
4181 with the buffer. See associated change in gdb-mi.el.
4182 (list_processes_1): Deal with no program name.
4183 (start_process_unwind): Use pid == -2 to mean no process.
4184
1ac9108a
SM
41852009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4186
4187 * cmds.c (nonundocount): New global variable.
4188 (keys_of_cmds): Initialize it.
4189 (Fself_insert_command): Use it to combine upto 20 sequential chars
4190 into a single undo entry, just like the Qself_insert_command code in
4191 keyboard.c does.
4192 Call frame_make_pointer_invisible, also like the Qself_insert_command
4193 code in keyboard.c does.
4194 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4195 than its own local replacement for it.
4196
e267324c
KR
41972009-08-10 Ken Raeburn <raeburn@raeburn.org>
4198
1ac9108a 4199 * fns.c (concat): Don't re-set string length to its current value.
77437343 4200
1ac9108a
SM
4201 * coding.h (decode_coding_string, encode_coding_string):
4202 Use SBYTES macro.
f0bed503 4203
1ac9108a 4204 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4205 (doprnt): Merge with doprnt1, discarding lispstrings code.
4206 * lisp.h (doprnt_lisp): Don't declare.
4207
416e006d
JL
42082009-08-07 Juri Linkov <juri@jurta.org>
4209
4210 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4211
6f7d5780
DN
42122009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4213
4214 * print.c (syms_of_print): Undo previous change.
4215
f19a0f5b
TZ
42162009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4217
4218 * lread.c (read1, syms_of_lread): Read hashtables back from the
4219 readable format.
4220
4221 * print.c (print_preprocess, print_object): Print hashtables fully
4222 and readably.
4223 (syms_of_print): Provide 'hashtable-print-readable.
4224
b9173dc2
AR
42252009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4226
4227 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4228 no family set.
4229 (nsfont_open): Handle case when entity has no family.
4230
1586503c
AR
42312009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4232
4233 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4234 element, not a list, for match case.
4235
087048cd
KH
42362009-07-28 Kenichi Handa <handa@m17n.org>
4237
4238 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4239 rigidly.
4240
4241 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4242 font_parse_xlfd. Check font properties more rigidly.
4243
780c2506
DN
42442009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4245
31fd7c5c
JB
4246 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4247 bsd-common.h.
780c2506 4248
a8c0cc18
KH
42492009-07-27 Kenichi Handa <handa@m17n.org>
4250
4251 * xfaces.c (face_with_height): Call font_clear_prop.
4252
4fbe2306
CY
42532009-07-26 Chong Yidong <cyd@stupidchicken.com>
4254
111d9af3
CY
4255 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4256
4257 * xterm.c (x_term_init): Use Qx.
4258
4fbe2306
CY
4259 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4260
1ac9108a 4261 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4262 (ns_get_color): Revert 2009-07-16 change.
4263
beb0b7f9
EZ
42642009-07-25 Eli Zaretskii <eliz@gnu.org>
4265
4266 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4267 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4268
2baf5e76
KR
42692009-07-25 Ken Raeburn <raeburn@raeburn.org>
4270
1ac9108a
SM
4271 * coding.h (decode_coding_string, encode_coding_string):
4272 Use SCHARS macro.
8890e5f5 4273
2baf5e76 4274 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4275 (load_depth): Delete.
2baf5e76
KR
4276 (Qload_in_progress): New variable.
4277 (load_unwind): Don't reference load_depth or load_in_progress.
4278 (Fload): Likewise; specbind Qload_in_progress instead.
4279 (init_lread): Don't initialize load_depth.
4280 (syms_of_lread): Initialize and protect Qload_in_progress.
4281
1395c6f5
AR
42822009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4283
4284 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4285
4e2f36cf
AR
42862009-07-23 Yavor Doganov <yavor@gnu.org>
4287
4288 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4289
5dd9a6f7
AR
42902009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4291
4292 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4293 Bugs 3792, 3720, 2402.
4294 (ns_lookup_indexed_color): Check for bad index.
4295 (ns_index_color): Init unused slot to 0.
4296 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4297 Bug 3714, possibly 3082.
5dd9a6f7 4298
c902b920
JR
42992009-07-22 Jason Rumney <jasonr@gnu.org>
4300
1ac9108a
SM
4301 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4302 Position IME window at cursor (Bug#2570).
c902b920
JR
4303 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4304 (globals_of_w32fns): Dynamically load functions required above.
4305
4306 * w32term.c (w32_draw_window_cursor): Send message to reposition
4307 any IME window.
4308
090101cf
CY
43092009-07-21 Chong Yidong <cyd@stupidchicken.com>
4310
4311 * fileio.c: Revert 2009-07-16 changes.
4312 (Vauto_save_include_big_deletions): New variable.
4313 (Fdo_auto_save): Disable auto-save only if
4314 auto-save-include-big-deletions is nil.
4315
e6583e3d
CY
43162009-07-21 Chong Yidong <cyd@stupidchicken.com>
4317
4318 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4319 the overflowed pixels into account (Bug#3879).
4320
ece435a5
KR
43212009-07-21 Ken Raeburn <raeburn@raeburn.org>
4322
4323 * lread.c (load_depth): New variable.
4324 (Fload, load_unwind, init_lread): Set it to the load recursion
4325 depth; set load_in_progress as a simple boolean based on the
4326 current load_depth. (Bug#3892)
4327
40b2d973
AR
43282009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4329
4330 * nsfont.m (ns_has_attribute): Remove.
4331 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4332
10be7e0d
JL
43332009-07-18 Juri Linkov <juri@jurta.org>
4334
4335 * process.c (Fset_process_query_on_exit_flag): Mention killing
4336 a buffer in docstring.
4337
fa055055
KH
43382009-07-17 Kenichi Handa <handa@m17n.org>
4339
4340 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4341
042f7b69
YM
43422009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4343
4344 * nsfns.m (Fns_set_alpha): Remove function.
4345 (syms_of_nsfns): Don't defsubr it.
4346
4347 * nsterm.m (ns_get_color): Remove incompatible color formats.
4348 (ns_color_to_lisp): Generate #rrggbb color format string.
4349
4be941e3
RS
43502009-07-16 Richard Stallman <rms@gnu.org>
4351
4352 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4353 (Fset_buffer_auto_saved): Handle save_length = -2.
4354
4e6b227d
CY
43552009-07-16 Chong Yidong <cyd@stupidchicken.com>
4356
4357 * xterm.c (Qx_gtk_map_stock): New var.
4358
4359 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4360 of calling intern each time.
4361
a1856973
YM
43622009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4363
4364 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4365 does tiling.
4366
4367 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4368
497e54d8
KH
43692009-07-14 Kenichi Handa <handa@m17n.org>
4370
72d36834
KH
4371 * font.c (font_vconcat_entity_vectors): New function.
4372 (struct font_sort_data): New member font_driver_preference.
4373 (font_compare): Check font_driver_preference.
4374 (font_sort_entities): The format of the first argument changed.
4375 (font_delete_unmatched): Likewise.
4376 (font_list_entities): The return type changed.
4377 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4378 (font_find_for_lface): Adjuste for the above changes.
4379 Don't suppress the checking of C even if the repertory supports it.
4380 (Flist_fonts): Adjust for the above changes.
72d36834 4381
1ac9108a
SM
4382 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4383 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4384 Reject a font who has adstyle property that is different from a
4385 langname derived from registry property.
1ac9108a 4386 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4387
b6046155
EZ
43882009-07-13 Eli Zaretskii <eliz@gnu.org>
4389
4390 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4391 local copy of dirfilename.
4392
fb6b6049
KH
43932009-07-13 Kenichi Handa <handa@m17n.org>
4394
e2402a5e
KH
4395 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4396 against max_char.
4397
fb6b6049
KH
4398 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4399 calling XSYMBOL (sym).
4400
65156807
EZ
44012009-07-11 Eli Zaretskii <eliz@gnu.org>
4402
1ac9108a
SM
4403 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4404 New function.
4405 (directory_files_internal) [WINDOWSNT]:
4406 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4407 the filesystem of the directory is fast or slow.
4408
4409 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4410 file name.
4411 (is_slow_fs): New function.
4412 (stat): Use it to determine whether to issue more system calls to
4413 get accurate file attributes, when w32-get-true-file-attributes is
4414 `local'.
4415
e0ab5fcf
JD
44162009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4417
4418 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4419 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4420 parameter font-parameter as default to the font dialog.
4421
784ceded
KH
44222009-07-10 Kenichi Handa <handa@m17n.org>
4423
4424 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4425
fb8edc0b
EZ
44262009-07-09 Eli Zaretskii <eliz@gnu.org>
4427
1ac9108a 4428 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4429
fb8edc0b
EZ
4430 * w32.c (stat): Treat UNC file names as residing on remote
4431 drives. (Bug#3542)
4432
635c75b1
KH
44332009-07-09 Kenichi Handa <handa@m17n.org>
4434
4435 * fontset.c (fontset_find_font): Fix previous change.
4436
c1d5ce94
MA
44372009-07-08 Michael Albinus <michael.albinus@gmx.de>
4438
4439 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4440 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4441 error flag.
4442
edb61b39
KH
44432009-07-08 Kenichi Handa <handa@m17n.org>
4444
374bf7e4
KH
4445 * fontset.c (fontset_find_font): Fix the logic of handling
4446 charset_matched.
4447 (font_for_char): Delete unused var.
4448 (generate_ascii_font_name): Delete it.
4449
edb61b39
KH
4450 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4451
4452 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4453 (encode_coding_sjis): Fix the code range check.
4454
0f3f018c
CY
44552009-07-07 Chong Yidong <cyd@stupidchicken.com>
4456
4457 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4458 (Fexpand_file_name): Copy string data properly (Bug#3772).
4459
fcaf6f3a
JD
44602009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4461
4462 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4463 first MapNotify.
4464
6809ca75
KH
44652009-07-07 Kenichi Handa <handa@m17n.org>
4466
4467 * character.h (unibyte_has_multibyte_table): Delete extern.
4468 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4469
4470 * charset.c (Fset_charset_priority): Update charset_unibyte.
4471 (syms_of_charset): Initialize charset_unibyte.
4472
4473 * character.c (unibyte_has_multibyte_table): Delete it.
4474 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4475 charset_unibyte.
4476 (multibyte_char_to_unibyte_safe): Likewise.
4477 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4478
1ac9108a 4479 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4480 (x_produce_glyphs): Likewise.
4481
4482 * .gdbinit (xcharset): Fix the treating $arg0.
4483
ad9e2d54
EZ
44842009-07-04 Eli Zaretskii <eliz@gnu.org>
4485
4486 Emulation of `getloadavg' on MS-Windows.
50426a04 4487 * w32.c: Include float.h.
ad9e2d54
EZ
4488 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4489 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4490 (get_native_system_info, get_system_times): New functions.
4491 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4492 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4493 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4494 g_b_init_get_system_times, and num_of_processors.
4495
0a3472c7
JR
44962009-07-03 Jason Rumney <jasonr@gnu.org>
4497
4498 * w32term.c (w32_initialize): Use standard types.
4499
80904120
EZ
45002009-07-03 Eli Zaretskii <eliz@gnu.org>
4501
4502 * dired.c (Ffile_attributes): Decode user and group names by the
4503 locale's encoding. (Bug#3443)
4504
6978862d
DN
45052009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4506
f8d23104
DN
4507 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4508 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4509
4510 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4511
4512 * term.c (init_tty): Remove spurious #ifdef.
4513
6978862d
DN
4514 * m/mips.h: Mention this file is also used for netbsd.
4515 * m/pmax.h: Remove file.
4516
e044e4fc
JD
45172009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4518
4519 * xterm.h (struct x_display_info): Add invisible_cursor.
4520 (struct x_output): Add current_cursor.
4521
4522 * xterm.c (XTtoggle_invisible_pointer): New function.
4523 (x_define_frame_cursor): Don't define cursor if invisible or the
4524 same as before. Set current_cursor.
4525 (x_create_terminal): Set toggle_invisible_pointer_hook.
4526
4527 * xfns.c (make_invisible_cursor): New function.
4528 (x_set_mouse_color): Call make_invisible_cursor.
4529 Set current_cursor.
4530 (x_window): Set current_cursor.
4531
4532 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4533
4534 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4535 inserting a character.
4536 (read_avail_input): Call frame_make_pointer_visible.
4537
4538 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4539 (frame_make_pointer_invisible, frame_make_pointer_visible):
4540 New functions.
e044e4fc
JD
4541 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4542
4543 * frame.h: Declare frame_make_pointer_invisible and
4544 frame_make_pointer_visible.
4545 (struct frame): Add pointer_invisible.
4546
574c8efa
JD
45472009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4548
7b507248
JD
4549 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4550 frame isn't visible.
4551 (xg_frame_resized): If width/height is -1, get size of window
4552 from X server.
4553
4554 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4555 for MapNotify.
4556
835bdaa7 4557 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4558 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4559 (flush_and_sync): Reintroduce.
574c8efa 4560
3f1c6666 45612009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4562
31fd7c5c 4563 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4564
4565 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4566 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4567
4568 * frame.h: Declare Qsticky.
4569
cad9ef74
JD
4570 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4571
4572 * nsfns.m (ns_frame_parm_handlers): Ditto.
4573
4574 * frame.c: Declare Qsticky.
4575 (frame_parms): Add sticky.
4576
4577 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4578
4579 * xterm.h: Declare x_set_sticky.
4580
4581 * xterm.c (x_set_sticky): New function.
4582
69b16610
JD
4583 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4584 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4585 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4586
4587 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4588
4589 * frame.c: Qmaximized is new.
4590 (x_set_frame_parameters): Do not handle fullscreen specially.
4591 Only set width and height if explicitly set.
4592 (x_set_fullscreen): Handle Qmaximized.
4593 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4594 (syms_of_frame): Initialize Qmaximized.
4595
1ac9108a
SM
4596 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4597 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4598
4599 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4600 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4601 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4602 set gravity to NorthWestGravity when USE_GTK.
4603 (set_wm_state): New function.
31fd7c5c 4604 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4605 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4606 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4607 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4608 to x_real_positions and x_fullscreen_adjust.
4609
4610 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4611 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4612 flush_and_sync.
4613 (xg_height_changed): New function.
4614 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4615 and gtk_window_set_policy. Set frame gravity after parsing the
4616 geometry string.
3f1c6666
JD
4617 (xg_update_frame_menubar, free_frame_menubar)
4618 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4619 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4620 Remove calls to xg_frame_set_char_size.
4621
fd503d99
KH
46222009-07-01 Kenichi Handa <handa@m17n.org>
4623
4624 * keyboard.c (decode_keyboard_code): New function.
4625 (tty_read_avail_input): Decode the input bytes if necessary.
4626
1ac9108a
SM
4627 * coding.c (setup_coding_system):
4628 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4629 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4630 use Qno_conversion.
4631
24ed93fb
YM
46322009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4633
4634 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4635
99061dfc
CY
46362009-06-30 Chong Yidong <cyd@stupidchicken.com>
4637
1ac9108a 4638 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4639
ff90fbde
JR
46402009-06-30 Jason Rumney <jasonr@gnu.org>
4641
4642 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4643 is already loaded.
4644 Set user model ID if supported (bug#1849).
4645
5f445726
JM
46462009-06-29 Jim Meyering <meyering@redhat.com>
4647
4648 Remove useless if-before-xfree test.
4649 * nsfont.m (nsfont_close): Remove useless test.
4650 * term.c (delete_tty): Likewise.
4651 * w32.c (system_process_attributes): Likewise.
4652 * w32font.c (w32font_close): Likewise.
4653 * xfaces.c (x_free_gc): Likewise.
4654 * xselect.c (buffer): Likewise.
4655
b9607587
AS
46562009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4657
4658 * process.c (send_process): Keep decoded string in a local
4659 variable and protect it from GC. (Bug#3521)
4660
89ba96f4
EZ
46612009-06-28 Eli Zaretskii <eliz@gnu.org>
4662
4663 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4664 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4665
098a1589
CY
46662009-06-28 Chong Yidong <cyd@stupidchicken.com>
4667
485422be
CY
4668 * xdisp.c (start_display, handle_face_prop)
4669 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4670 (redisplay_window, try_window_id, produce_image_glyph):
4671 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4672
098a1589
CY
4673 * xterm.c (x_update_window_begin, x_new_focus_frame)
4674 (x_scroll_bar_handle_click, handle_one_xevent)
4675 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4676 (x_make_frame_visible, x_make_frame_invisible)
4677 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4678 code chunks that are now obsolete.
4679
78c38319
MA
46802009-06-28 Michael Albinus <michael.albinus@gmx.de>
4681
4682 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4683 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4684 for hours, when optimzation is enabled.
4685 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4686 (xd_read_message): Make them static.
4687
4189ed40
CY
46882009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4689
4690 * term.c (turn_on_face): Allow simultaneously bold and dim
4691 terminal faces (Bug#3530).
4692
cd9b5e16
CY
46932009-06-27 Chong Yidong <cyd@stupidchicken.com>
4694
4e23bedb
CY
4695 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4696
cd9b5e16
CY
4697 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4698 truncation glyphs (Bug#3686).
4699
07cc3c35
GM
47002009-06-27 Glenn Morris <rgm@gnu.org>
4701
4702 * m/pmax.h: Restore file, with only netbsd portions.
4703
31fd7c5c 47042009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4705
cd9b5e16 4706 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4707
42d4a64f
KH
47082009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4709
4710 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4711 the arg FORCE_SYMBOL.
4712
930fe55b 47132009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4714
4715 * fontset.c (fontset_find_font): When a usable rfont_def is found
4716 in a fallback font-group, make it the first element of the group.
4717
57ebc3fd
CY
47182009-06-24 Chong Yidong <cyd@stupidchicken.com>
4719
4720 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4721
f084f942
KH
47222009-06-24 Kenichi Handa <handa@m17n.org>
4723
4724 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4725 set for C.
4726 (fontset_font): Record the availability of a font for C both in
4727 the realized fontsets of the current one and the default one.
4728
2f686c87
DN
47292009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4730
4731 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4732 conditional, it is always defined on AIX.
4733
666e158e
MB
47342009-06-23 Miles Bader <miles@gnu.org>
4735
4736 * window.c (Vrecenter_redisplay): New variable.
4737 (syms_of_window): Initialize it.
4738 (Qtty): New extern declaration.
4739 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4740
c6da7cd2
JM
47412009-06-23 Jim Meyering <meyering@redhat.com>
4742
1ac9108a
SM
4743 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4744 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4745 pointer dereferences are guaranteed to be valid.
c6da7cd2 4746
678dca3d
KH
47472009-06-23 Kenichi Handa <handa@m17n.org>
4748
74d75424
KH
4749 * emacs.c (main): Call init_font ().
4750
4751 * font.h (Vfont_log): Extern it.
4752 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4753
4754 * font.c (font_sort_entities, font_list_entities)
4755 (font_matching_entity, font_open_entity)
4756 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4757 (Vfont_log): Delete static.
4758 (font_log_env_checked): Delete this variable.
4759 (font_add_log): Don't check font_log_env_checked.
4760 (font_deferred_log): Check Vfont_log.
4761 (init_font): New function.
4762
678dca3d
KH
4763 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4764
4765 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4766
4767 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4768
4769 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4770
4771 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4772 (face_for_char): Don't call font_deferred_log here.
4773 (font_for_char): Likewise.
4774
8a668709
CY
47752009-06-22 Chong Yidong <cyd@stupidchicken.com>
4776
9a01ee33
CY
4777 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4778 rather than its background_width for drawing the overline and
4779 underline (Bug#489).
4780
4781 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4782 rather than its background_width for drawing the overline and
4783 underline (Bug#489).
ec7c9926
CY
4784 (xg_default_icon_file): New variable.
4785 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4786 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4787
8a668709
CY
4788 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4789 (load_overlay_strings): Remove externs.
4790 (fast_find_position): Function deleted.
4791 (mouse_face_from_buffer_pos): New function, based on
4792 fast_find_position. Correctly handle before-strings,
4793 display-strings, and after-strings (Bug#1220).
4794 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4795
4d4c02d8
CY
47962009-06-21 Chong Yidong <cyd@stupidchicken.com>
4797
1ac9108a 4798 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4799 (move_it_in_display_line_to, move_it_in_display_line_to)
4800 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4801
70243478
CY
48022009-06-21 Chong Yidong <cyd@stupidchicken.com>
4803
4804 * Branch for 23.1.
4805
13087e59
JR
48062009-06-21 Jason Rumney <jasonr@gnu.org>
4807
4808 * w32term.c (keyboard_codepage): New static variable.
4809 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4810 (w32_read_socket) [WM_CHAR]: Use it to decode character
4811 input (bug#3237).
4812 (w32_initialize): Initialize it.
4813 (codepage_for_locale): New function.
4814
4735b74e
KR
48152009-06-20 Ken Raeburn <raeburn@raeburn.org>
4816
4817 * process.c (status_message): Pass Faset index argument as a lisp
4818 object, so as to work with USE_LISP_UNION_TYPE.
4819
0e727afa
YM
48202009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4821
4822 * coding.c (Ffind_coding_systems_region_internal):
4823 Cache checked characters.
4824
cf299835
KH
48252009-06-18 Kenichi Handa <handa@m17n.org>
4826
1ac9108a 4827 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4828
90f20d94
AS
48292009-06-18 Andreas Schwab <aschwab@redhat.com>
4830
4831 * xdisp.c (redisplay_internal): Check that the frame is still
4832 live after redisplay of its windows.
4833 (redisplay_windows): Check that the window is still live.
4834
7f1faf1c
KH
48352009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4836
4837 * coding.c (detect_coding_utf_16): Fix previous change.
4838
cc13543e
KH
48392009-06-16 Kenichi Handa <handa@m17n.org>
4840
4841 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4842 UTF-16 by checking the dispersion of Eth and Oth bytes.
4843
977b85f4
AS
48442009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4845
4846 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4847
66bd43d1
KH
48482009-06-15 Kenichi Handa <handa@m17n.org>
4849
4850 * process.c (status_message): Fix previous change. Be sure to
4851 decode a localized string.
4852
cb5ca9c5
YM
48532009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4854
4855 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4856 add comment explaining why.
4857
ec7709ba 48582009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4859
ec7709ba 4860 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4861
4b7f335c
AR
48622009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4863
4864 * nsfont.m (ns_attribute_value): Remove.
4865 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4866 (ns_has_attribute): Shrink the normal range.
4867 (ns_findfonts): Don't worry about requested spec in determining
4868 need for synthItal.
e41820ee 4869 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4870
73b26103
SZ
48712009-06-14 Seiji Zenitani <zenitani@mac.com>
4872
4873 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4874
5753e4da
KH
48752009-06-11 Kenichi Handa <handa@m17n.org>
4876
4877 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4878 overhang for the static composition case.
4879
3561b671
KH
48802009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4881
5753e4da
KH
4882 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4883 overhang for the automatic composition case.
4884
3561b671
KH
4885 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4886 composition case.
4887
852bbd41
CY
48882009-06-10 Chong Yidong <cyd@stupidchicken.com>
4889
4890 * xdisp.c (get_next_display_element): When handling wrap-prefix
4891 and line-prefix, treat \n as a control character (bug#3502).
4892
9903d1e6
KH
48932009-06-10 Kenichi Handa <handa@m17n.org>
4894
4895 * font.c (font_parse_family_registry): Fix for one-char foundry.
4896 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4897
0bcbaaaa
CY
48982009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4899
4900 * process.c (status_message): Fix handling of multibyte signal
4901 string (Bug#3499).
4902
40aa3f13
JM
49032009-06-09 Jim Meyering <meyering@redhat.com>
4904
1f80c7e2
CY
4905 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4906 color name is missing.
40aa3f13 4907
72d51285
KH
49082009-06-09 Kenichi Handa <handa@m17n.org>
4909
4910 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4911 FROM-CODE and TO-CODE are codepoints of CHARSET.
4912
c1d04d84
AR
49132009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4914
4915 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4916
49172009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4918
4919 Changes to support :script/:lang/:otf in NS font driver.
4920 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4921 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4922 indicate not part of font driver interface, and change callers.
4923 (ns_get_family): Remove pointless null check.
4924 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4925 ns_spec_to_descriptor, ns_descriptor_to_entity.
4926 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4927 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4928 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4929 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4930 (ns_get_req_script, ns_accumulate_script_ranges)
4931 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4932 New functions.
4933 (nsfont_list, nsfont_match): Use ns_findfonts.
4934 (nsfont_open): Use font descriptor instead of traits.
4935 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4936 (dump_glyphstring): Rename to ns_dump_glyphstring.
4937
c7eb9816
AR
4938 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4939
c1d04d84
AR
4940 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4941
4942 * fontset.c (fontset_from_font): Remove NS-specific code.
4943
ec7709ba 49442009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4945
4946 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4947 nonactive windows.
4948
31fd7c5c 49492009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4950
1ac9108a 4951 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4952
68852c13 49532009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4954
4955 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4956
6756cd1d
CY
49572009-06-07 Chong Yidong <cyd@stupidchicken.com>
4958
4959 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4960 account for the overflowing of newlines into the last glyph on the
4961 display line (Bug#3482).
4962
28bf482a
DR
49632009-06-05 David Reitter <david.reitter@gmail.com>
4964
ec7709ba
JB
4965 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4966 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4967 Fns_selection_exists_p, Fns_selection_owner_p.
4968
fdb55376
JR
49692009-06-03 Jason Rumney <jasonr@gnu.org>
4970
4971 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4972 available. (Bug#3379)
4973
05129fbe
KH
49742009-05-29 Kenichi Handa <handa@m17n.org>
4975
1ac9108a
SM
4976 * coding.c (get_translation_table):
4977 Check Venable_character_translation.
05129fbe 4978
ec7709ba 49792009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4980
ec7709ba
JB
4981 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4982 (x_make_frame_visible): Move frame to front rather than calling
15891144 4983 ns_raise_frame().
ec7709ba 4984 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4985 isn't key window.
ec7709ba 4986 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4987 drawRect may be called by NSView even if the frame is hidden.
4988
ec7709ba
JB
4989 * nsfns.m (Fx_create_frame): Follow other ports in
4990 determining visibility; default to t. Ensure async_visible is set.
15891144 4991
21f73755
EZ
49922009-05-23 Eli Zaretskii <eliz@gnu.org>
4993
4994 * dired.c (Ffile_attributes): Doc fix.
4995
34001e41
CY
49962009-05-22 Chong Yidong <cyd@stupidchicken.com>
4997
4998 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4999
46306a17
SM
50002009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5001
5002 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5003 and xfont_scratch_props.
5004 (syms_of_xfont): Do it here instead.
5005 (xfont_find_ccl_program): Delete, unused.
5006 (xfont_open): Delete unused var `i'.
5007
ef6e0694
KH
50082009-05-21 Kenichi Handa <handa@m17n.org>
5009
5010 * fontset.c (Qlatin): Don't make it static.
5011
46306a17
SM
5012 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5013 New functions.
ef6e0694
KH
5014 (xfont_scripts_cache, xfont_scratch_props): New variables.
5015 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5016 (xfont_list_pattern): Argument changed. Callers changed.
5017 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5018 (xfont_list): Don't reject a font spec with :script property.
5019 (xfont_has_char): Fix setting of encoding.
5020 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5021 xfont_scratch_props.
5022
50232009-05-19 Kenichi Handa <handa@m17n.org>
5024
46306a17 5025 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5026 Callers changed.
5027
50282009-05-18 Kenichi Handa <handa@m17n.org>
5029
5030 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5031
ac71ced7
SM
50322009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5033
5034 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5035 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5036
1c6d1051
YM
50372009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5038
5039 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5040 (x_delete_terminal): Dissociate resource database from display and
5041 then call XrmDestroyDatabase before closing display.
5042
9b9b779c
AR
50432009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5044
5045 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5046 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5047 whether selected frame is viable before raising it (based on patch
5048 by David Reitter), and improve commentary.
5049 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5050
cccd42d5
KH
50512009-05-15 Kenichi Handa <handa@m17n.org>
5052
5053 * font.c (Ffont_spec): Check arguments.
5054
337fbd17
CY
50552009-05-14 Chong Yidong <cyd@stupidchicken.com>
5056
5057 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5058 weight when testing attributes (Bug#3282).
5059
47a6002f
JD
50602009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5061
5062 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5063 what we expect to get in the next ConfigureNotify event.
5064
9cb363db
YM
5065 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5066 before Xft one (Bug#1696).
5067
b9126609
CY
50682009-05-07 David Reitter <david.reitter@gmail.com>
5069
5070 * nsfns.m (Fx_display_planes): Compute bitplanes using
5071 NSBitsPerPixelFromDepth (Bug#3207).
5072
27a69fd9
CY
50732009-05-10 Chong Yidong <cyd@stupidchicken.com>
5074
5075 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5076
00f37552
TTN
50772009-05-10 Ulrich Mueller <ulm@gentoo.org>
5078
5079 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5080
2d82a920
DR
50812009-05-07 David Reitter <david.reitter@gmail.com>
5082
ec7709ba
JB
5083 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5084 Respect mouse face background.
2d82a920 5085
46b0d52d
DR
50862009-05-07 David Reitter <david.reitter@gmail.com>
5087
ec7709ba
JB
5088 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5089 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5090 in ns_update_begin and ns_update_end.
5091
ce1b23bb
SM
50922009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5093
5996e1b7
SM
5094 * nsfns.m (ns_get_screen): Rewrite.
5095 Don't presume selected-frame is of type `ns'.
5096
ba98e3a0
SM
5097 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5098 all drivers.
5099
ce1b23bb
SM
5100 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5101
bcda200f
YM
51022009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5103
5104 * keyboard.h (add_user_signal): Fix typo in extern.
5105
5106 * lisp.h (add_user_signal): Remove extern.
5107
5108 * unexelf.c (unexec): Consider a section to precede the .bss section
5109 if its addresses overlap that of .bss.
5110 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5111 instead of dumping process.
5112
864660a2
SM
51132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5114
5115 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5116
50da4e56
SM
51172009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5118
5119 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5120
51520a1a
DN
51212009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5122
5123 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5124 any statements.
5125
409ea3a1
AS
51262009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5127
59c4c60f
AS
5128 * process.c (read_process_output): Make sure the current buffer is
5129 always restored.
5130
409ea3a1
AS
5131 * coding.c (record_conversion_result): Don't modify
5132 Vlast_code_conversion_error for successful result.
5133 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5134
56f00ed2
KH
51352009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5136
5137 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5138 (load_charset_map): Remove unnecessary code.
56f00ed2 5139
4491c9d2
DR
51402009-04-30 David Reitter <david.reitter@gmail.com>
5141
35f5b128 5142 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5143 through f24.
5144
6970f632
CY
51452009-04-30 Chong Yidong <cyd@stupidchicken.com>
5146
5147 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5148
5149 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5150 face_at_buffer_position.
5151 (face_before_or_after_it_pos, get_next_display_element)
5152 (note_mouse_highlight): Update face_at_buffer_position call.
5153
5154 * term.c (term_mouse_highlight):
5155 * msdos.c (IT_note_mouse_highlight):
5156 * fontset.c (Finternal_char_font):
35f5b128 5157 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5158
5159 * dispextern.h (face_at_buffer_position): Update prototype.
5160
0c616f63
KH
51612009-04-30 Kenichi Handa <handa@m17n.org>
5162
35f5b128 5163 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5164
ad3aaf33
AS
51652009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5166
5167 * callproc.c (Fcall_process): Fix GC protection. Make sure
5168 current buffer is always restored.
5169
c3c963a0
YM
51702009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5171
5172 * atimer.c (init_atimer): Also clear stopped_atimers.
5173
5174 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5175
7e3386cb
YM
5176 * process.c (create_process): Clean up merger residues of
5177 2008-07-17 change.
5178
91f68422
CY
51792009-04-29 Ulrich Mueller <ulm@gentoo.org>
5180
5181 * lread.c (Vread_circle): New variable.
5182 (read1): Disable recursive read if Vread_circle is nil.
5183
24b34550
KH
51842009-04-29 Kenichi Handa <handa@m17n.org>
5185
5186 * fontset.h (set_default_ascii_font): Delete extern.
5187
5188 * fontset.c (set_default_ascii_font): Delete this unused function.
5189
5190 * frame.c (x_set_font): When ARG is a font-object, check if the
5191 font-object matches with the ASCII font-spec of the frame's
9c358bda 5192 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5193
77bf07e1
AS
51942009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5195
5196 * fns.c (Flocale_info): Protect vector from GC during decoding.
5197
5198 * process.c (Fstart_process): Protect argv strings from GC during
5199 encoding.
5200
2c55aacf
AS
52012009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5202
5203 * sysdep.c: Include <ctype.h>.
5204
b892d3c9
DR
52052009-04-27 David Reitter <david.reitter@gmail.com>
5206
35f5b128 5207 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5208 Remove commented-out code.
5209
9d0644c4
JB
52102009-04-26 Johan Bockgård <bojohan@gnu.org>
5211
5212 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5213
b7053016
JR
52142009-04-25 Jason Rumney <jasonr@gnu.org>
5215
5216 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5217
4e8231f3
YM
52182009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5219
5220 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5221 Swap bytes in short integer if fringe bitmap width > 8.
5222
493dcf2c
KH
52232009-04-23 Kenichi Handa <handa@m17n.org>
5224
5225 * xfaces.c (Fx_list_fonts): If a font size is specified in
5226 PATTERN, set it in returned scalable fonts.
5227
401e9e57
CY
52282009-04-22 Chong Yidong <cyd@stupidchicken.com>
5229
708e05dc
CY
5230 * keyboard.c (Fset_input_meta_mode): Doc fix.
5231
5232 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5233
1ac9108a 5234 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5235
5236 * coding.c (Fterminal_coding_system): Doc fix.
5237
5238 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5239 (Fx_display_pixel_height, Fx_display_planes)
5240 (Fx_display_color_cells, Fx_server_max_request_size)
5241 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5242 (Fx_display_mm_height, Fx_display_mm_width)
5243 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5244 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5245 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5246 (check_x_display_info): Handle terminal objects instead of
5247 terminal ids.
5248
401e9e57
CY
5249 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5250 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5251 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5252 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5253
df80c7f0
KH
52542009-04-21 Kenichi Handa <handa@m17n.org>
5255
5a8f12af 5256 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5257 (font_score): Check AVGWIDTH too.
908567ef 5258
df80c7f0
KH
5259 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5260 worst case.
1ac9108a
SM
5261 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5262 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5263
705af33f
JR
52642009-04-19 Jason Rumney <jasonr@gnu.org>
5265
5266 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5267 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5268
5269 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5270 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5271 get_phys_cursor_geometry.
5272
b71ac3dd 5273 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5274 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5275 using get_phys_cursor_geometry.
5276
5277 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5278 correctly calculated.
5279
dc2933eb
JD
52802009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5281
1ac9108a
SM
5282 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5283 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5284 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5285 is deprecated.
5286
973e7849
AS
52872009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5288
5289 * font.c (font_put_frame_data): Use xfree instead of free.
5290
314d66f4
JB
52912009-04-17 Juanma Barranquero <lekktu@gmail.com>
5292
5293 * w32font.c (Qja, Qko): Remove declarations.
5294 (syms_of_w32font): Don't DEFSYM them.
5295
cf702558
CY
52962009-04-17 Chong Yidong <cyd@stupidchicken.com>
5297
5298 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5299
5300 * font.h (Qja, Qko): Extern them.
5301
5302 * ftfont.c (Qja, Qko): Remove declarations.
5303
5304 * xfont.c (Qja, Qko): Remove declarations.
5305
b50504f5
KH
53062009-04-17 Kenichi Handa <handa@m17n.org>
5307
bde25748
KH
5308 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5309 string from a vector to handle Latin-1 characters correctly.
5310
b50504f5
KH
5311 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5312 entity even if the cache hits.
5313
f4646fff
AS
53142009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5315
5316 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5317 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5318
e7deaab0
AS
5319 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5320 * lisp.h: Adjust prototypes.
5321
0a0e7d49
CY
53222009-04-16 Chong Yidong <cyd@stupidchicken.com>
5323
5324 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5325 change (Bug#3003).
5326
3c908a57
KH
53272009-04-16 Kenichi Handa <handa@m17n.org>
5328
1ac9108a 5329 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5330
5331 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5332 adstyle.
5333
5334 * ftfont.c (Qja, Qko): Don't make them static.
5335 (enum ftfont_cache_for): New enum.
5336 (fc_charset_table): Undo the previous change.
5337 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5338 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5339 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5340 non-scarable font, try to get AVERAGE_WIDTH.
5341 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5342 Change ft_face_cache from a list of a hash-table. Don't check
5343 `ja' and `ko' adstyle here.
5344 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5345 FTFONT_CACHE_FOR_CHARET.
5346 (ftfont_get_charset): Undo the previous change.
1ac9108a 5347 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5348 (ftfont_close): Likewise.
5349 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5350
5351 * font.c (font_sort_entites): Change the meaning of the arg
5352 BEST-ONLY. Don't optimize for VEC of lenght 1.
5353 (font_select_entity): Just return the value of font_sort_entites.
5354
5355 * xfaces.c (merge_face_vectors): Reflect font properties in
5356 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5357 font_clear_prop if a face attribute doesn't change.
5358
3c908a57
KH
5359 * charset.h (charset_ksc5601): Extern it.
5360
5361 * charset.c (charset_ksc5601): New variable.
5362 (Fdefine_charset_internal): Set charset_ksc5601.
5363 (init_charset_once): Initialize charset_ksc5601 to -1.
5364
d65859c3
DN
53652009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5366
5367 * fileio.c (history_delete_duplicates): Remove unused declaration.
5368
5369 * callint.c (history_delete_duplicates): New declaration.
5370 (Fcall_interactively): Remove command history duplicates when
5371 history_delete_duplicates is true.
5372
3ba010e5
EZ
53732009-04-14 Eli Zaretskii <eliz@gnu.org>
5374
5375 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5376
06f19b91
KH
53772009-04-14 Kenichi Handa <handa@m17n.org>
5378
5379 * font.c (Ffont_info): Fix docstring. Fix the second element of
5380 the returned value (bug#2949).
5381
2cce8bfc
CY
53822009-04-14 Chong Yidong <cyd@stupidchicken.com>
5383
5384 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5385
d156542d
KH
53862009-04-14 Kenichi Handa <handa@m17n.org>
5387
5388 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5389 encoding charset is ascii_compatible.
5390
5391 * charset.c (Fdefine_charset_internal): Make charset
5392 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5393 code_offset is 0, and covers all ASCII characters.
5394
86fa089e
SM
53952009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5396
5397 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5398 (ns_string_to_pasteboard_internal):
5399 * nsmenu.m (process_dialog):
5400 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5401 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5402 * lisp.h (Fx_load_color_file): Declare.
5403
a8a3728b
KH
54042009-04-13 Kenichi Handa <handa@m17n.org>
5405
1ac9108a 5406 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5407 (font_select_entity): Suppress the code to optimize for the same
5408 kind of fonts.
5409 (font_load_for_lface): Get a font that supports at least ASCII
5410 characters.
5411
5412 * ftfont.c (Qja, Qko): New variables.
5413 (fc_charset_table): Delete uniquifier data for iso8859-1.
5414 (ftfont_get_latin1_charset): New function.
5415 (get_adstyle_property): New function.
5416 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5417 bitmap fonts.
5418 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5419 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5420 `ko' or `ja'.
5421 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5422 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5423 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5424 property.
5425 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5426 (syms_of_ftfont): DEFSYM Qja and Qko.
5427
483670b5
KH
54282009-04-09 Kenichi Handa <handa@m17n.org>
5429
12b55765
KH
5430 * charset.c (map_charset_chars): For a charset of `superset'
5431 method, fix calculation of code range.
5432
483670b5
KH
5433 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5434 from the list of extra properties.
5435 (font_clear_prop): Be sure to delete `:name' font property.
5436
57d3b93b
KH
54372009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5438
b4b2c2ca
YM
5439 * dispnew.c (redraw_overlapping_rows): Fix detection of
5440 overlapping for topmost and bottommost rows.
5441
1ac9108a 5442 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5443
472c3609
JR
54442009-04-06 Jason Rumney <jasonr@gnu.org>
5445
5446 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5447
ab193662
KH
54482009-04-06 Kenichi Handa <handa@m17n.org>
5449
5450 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5451
5452 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5453
0c26f026
KH
54542009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5455
5456 * ftfont.c (ftfont_open): Fix checking of the return value of
5457 FT_Load_Char. Fix setting font->underline_thickness.
5458
e173bbce
CY
54592009-04-04 Chong Yidong <cyd@stupidchicken.com>
5460
5461 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5462 (Fterminal_parameters, Fterminal_parameter)
5463 (Fset_terminal_parameter): In doc string, refer to terminal
5464 objects rather than terminal ids.
5465
693a2698
EZ
54662009-04-04 Eli Zaretskii <eliz@gnu.org>
5467
5468 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5469 ret_lim_data. (Bug#2867)
5470
d5221487
CY
54712009-04-03 Chong Yidong <cyd@stupidchicken.com>
5472
5473 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5474 so they don't get wider than the window, matching 2006-01-23
5475 change to the partner function in xdisp.c (Bug#2800).
5476
223509a3
KH
54772009-04-03 Kenichi Handa <handa@m17n.org>
5478
5479 * print.c (print_object): Make each lowest sub_char_table start a
5480 new line (Bug#2866).
5481
74fcd0b1
KH
54822009-04-02 Kenichi Handa <handa@m17n.org>
5483
5484 * fontset.c (fontset_font): Record no-font when a fontset
5485 explicitly tells not to try another font-specs.
5486
c542407d
SM
54872009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5488
5489 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5490
e3869731
KH
54912009-03-30 Kenichi Handa <handa@m17n.org>
5492
d8d2f142
KH
5493 * fontset.c (fontset_from_font): Specify only registry in a
5494 font-spec for all characters supported by that registry.
5495
e3869731
KH
5496 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5497 even if HAVE_M17N_FLT is not defined.
5498
5da5f805
CY
54992009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5500
5501 * ftfont.c: Conditionalize prototyping and use of
5502 ftfont_variation_glyphs.
5503
ab226c50
SM
55042009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5505
9628fed7
SM
5506 * frame.c (delete_frame): Work around compiler bug.
5507
5508 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5509 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5510 Some more EMACS_INT.
5511 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5512
5513 * xdisp.c (dump_glyph): Fix typo.
5514
ae19ba7c
SM
5515 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5516 (adjust_markers_gap_motion, adjust_markers_for_delete)
5517 (adjust_markers_for_insert, adjust_point)
5518 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5519 (make_gap, copy_text, count_size_as_multibyte, insert)
5520 (insert_and_inherit, insert_before_markers)
5521 (insert_before_markers_and_inherit, insert_1)
5522 (count_combining_before, count_combining_after, insert_1_both)
5523 (insert_from_string, insert_from_string_before_markers)
5524 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5525 (insert_from_buffer_1, adjust_after_replace)
5526 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5527 (replace_range_2, del_range, del_range_1, del_range_byte)
5528 (del_range_both, del_range_2, modify_region)
5529 (prepare_to_modify_buffer, signal_before_change)
5530 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5531 for buffer positions and sizes.
5532 * lisp.h: Adjust prototypes accordingly.
5533
5534 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5535 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5536 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5537
ab226c50
SM
5538 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5539
46dfb8fb
JD
55402009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5541
5542 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5543 lines and columns so we keep the same pixel height and width.
5544
5545 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5546 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5547 (x_handle_net_wm_state): New function to update frame parameter
5548 fullscreen.
5549 (x_term_init): Initialize atoms for _NET_WM_STATE.
5550
5551 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5552
d347e494
SM
55532009-03-27 Kevin Ryde <user42@zip.com.au>
5554
5555 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5556 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5557 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5558 (Fgpm_mouse_stop): Pass that new parameter.
5559 * termhooks.h (close_gpm): Adjust prototype.
5560
84db11d6
SM
55612009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5562
c95a5008
SM
5563 * lisp.h (Fx_focus_frame): Declare.
5564
84db11d6
SM
5565 * callint.c (Fcall_interactively): For '^' just delegate the work to
5566 handle-shift-selection.
5567 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5568
0a1958d6
CY
55692009-03-24 Chong Yidong <cyd@stupidchicken.com>
5570
0bfdff23
CY
5571 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5572
0a1958d6
CY
5573 * data.c (Qinteractive_form): New variable.
5574 (Finteractive_form): Use it.
5575
5576 * eval.c (Fcommandp): Use Qinteractive_form.
5577
58aec0d6
JR
55782009-03-24 Jason Rumney <jasonr@gnu.org>
5579
5580 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5581 Calculate total size precisely. Decode environment variables
5582 before substituting. (Bug#38)
5583
553dd618
KH
55842009-03-24 Kenichi Handa <handa@m17n.org>
5585
5586 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5587 encoding (Bug#2722).
553dd618 5588
c39ea606
JD
55892009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5590
5591 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5592 that gdpy is set.
5593
bc9b2b5e
AM
55942009-03-22 Alan Mackenzie <acm@muc.de>
5595
5596 * callint.c (Finteractive): Clarify the doc string - even
5597 promptless elements need \n separators.
5598
9f995a76
JR
55992009-03-22 Jason Rumney <jasonr@gnu.org>
5600
5601 * w32term.c (syms_of_w32term): Doc fix for
5602 x-use-underline-position-properties.
5603
22749e9a
EZ
56042009-03-21 Eli Zaretskii <eliz@gnu.org>
5605
5606 * w32.c (getpwuid): Change argument type to unsigned.
5607 (struct w32_id): Change type of `rid' member to unsigned.
5608 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5609 argument ID to unsigned. All callers changed.
5610 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5611
e00553bf
EZ
56122009-03-20 Eli Zaretskii <eliz@gnu.org>
5613
5614 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5615 negative, produce a float value.
5616
5617 * dired.c (make_uid, make_gid): New functions.
5618 (Ffile_attributes): Use them to avoid negative UID and GID.
5619
f761d6b6
JB
56202009-03-20 Juanma Barranquero <lekktu@gmail.com>
5621
5622 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5623 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5624 Fix typos in docstrings.
5625
d507f8d7
KH
56262009-03-19 Kenichi Handa <handa@m17n.org>
5627
5628 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5629 changed, use font_load_for_lface to get a new font object.
5630 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5631
5632 * frame.c (x_set_font): Handle the case that ARG is a cons.
5633
c68845e0
GM
56342009-03-19 Glenn Morris <rgm@gnu.org>
5635
5636 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5637
bfa49dd1
CY
56382009-03-19 Chong Yidong <cyd@stupidchicken.com>
5639
5640 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5641
8458d4c1
KH
56422009-03-19 Kenichi Handa <handa@m17n.org>
5643
5644 * charset.c (load_charset_map_from_file): When a mapfile can't be
5645 loaded, signal an error.
5646
78e7d1fe
EZ
56472009-03-18 Eli Zaretskii <eliz@gnu.org>
5648
5649 * dired.c (Ffile_attributes): Make sure UID and GID are always
5650 positive, even if the value is too large for a positive EMACS_INT.
5651 Doc fix.
5652
5653 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5654
5da9fdfa
YM
56552009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5656
5657 * xmenu.c (xdialog_show): Move Fredisplay call ...
5658 (Fx_popup_dialog): ... here.
5659
7519c40d
SM
56602009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5661
5662 * dired.c (file_name_completion): Disable the first optimization just
5663 installed, since it is not implemented correctly.
5664
2cd298e2
SM
56652009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5666
5667 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5668 only if the entry can affect bestmatch.
2cd298e2
SM
5669 Stop the search early, as Ftry_completion already does.
5670
48d37adf
CY
56712009-03-17 Chong Yidong <cyd@stupidchicken.com>
5672
e10c9c93 5673 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5674
9286b16a
CY
56752009-03-15 Chong Yidong <cyd@stupidchicken.com>
5676
5677 * keyboard.c (parse_menu_item): Don't display remappings as menu
5678 equivalent bindings (Bug#788).
5679
f7b146dc
JR
56802009-03-15 Jason Rumney <jasonr@gnu.org>
5681
5682 * w32term.h (WM_EMACS_PAINT): New message.
5683 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5684 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5685 before passing to lisp thread. (Bug#950)
5686
f761d6b6 56872009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5688
d93f9575
CY
5689 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5690 variable as it was never reset.
5691 (ns_term_init): Remove initialization of Lisp-settable defaults
5692 and ns_expand_space.
5693 (-setPanelFromDefaultValues): Remove ns_expand_space.
5694 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5695 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5696 i.e. no additional spacing, similar to Carbon port.
5697
d93f9575
CY
5698 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5699 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5700
305018ec
JD
57012009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5702
5703 * sound.c (alsa_configure): Remove call to deprecated
5704 snd_pcm_sw_params_set_xfer_align.
5705
f761d6b6 57062009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5707
5708 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5709 after clicking in a detached tool bar.
5710 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5711
46e722a9
SM
57122009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5713
348db3dd
SM
5714 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5715 int/Lisp_Object mixup).
46e722a9 5716
a3d16f39
KH
57172009-03-13 Kenichi Handa <handa@m17n.org>
5718
5719 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5720 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5721 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5722 (set_fontset_font): Change ARG to a vector. Handle range_list in
5723 ARG correctly.
5724 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5725 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5726 the above change.
5727 (fontset_from_font): Fix previous change.
fe24f56a 5728 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5729 entry. If FONTSET is the default fontset, don't set the extra
5730 slot of the returning char-table.
5731
b066e6b6
JB
57322009-03-12 Juanma Barranquero <lekktu@gmail.com>
5733
5734 * nsfns.m (Fx_close_connection): Doc fix.
5735 (Fns_do_applescript): Reflow docstring.
5736 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5737 (Fx_display_pixel_width, Fx_display_pixel_height)
5738 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5739 Fix typos in docstrings.
5740 (Fns_set_alpha): Fix typos in error messages.
5741
d472514e 57422009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5743
d472514e 5744 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5745 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5746 were used for such events.
5747
d472514e
JB
5748 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5749 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5750
d472514e 5751 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5752 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5753
fb930676
KH
57542009-03-11 Kenichi Handa <handa@m17n.org>
5755
ff85581a
KH
5756 * font.h (font_open_by_spec): Extern it.
5757
c50b7e98
KH
5758 * font.c (font_open_by_spec): New function.
5759 (font_open_by_name): Use font_open_by_spec.
5760
fb930676
KH
5761 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5762 fontset of the frame.
5763
5764 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5765 modify the default font of frames that use this fontset.
5766 (num_auto_fontsets): New variable.
5767 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5768 name. Be sure to set FONTSET_ASCII to the correct font name.
5769 (update_auto_fontset_alist): New function.
5770
df4e8455
JB
57712009-03-11 Juanma Barranquero <lekktu@gmail.com>
5772
5773 * makefile.w32-in: Update dependencies.
5774
0a375797
AR
57752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5776
5777 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5778
61313fa3
SM
57792009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5780
5781 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5782
b55103fb
CY
57832009-03-10 Chong Yidong <cyd@stupidchicken.com>
5784
5785 * lread.c (Feval_buffer): Doc fix.
5786
dde2559c
KH
57872009-03-09 Kenichi Handa <handa@m17n.org>
5788
5789 * charset.c (Qfile_name_handler_alist): Extern it.
5790 (load_charset_map_from_file): Temporarily bind
5791 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5792
df4e8455 57932009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5794
47f588bb
GM
5795 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5796 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5797
4ddf94bd
AR
57982009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5799
4c9bdfc2
AR
5800 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5801 (x_set_window_size): Change back to calculated method of setting
5802 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5803 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5804 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5805
fe41ae9e
AR
5806 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5807
4c9bdfc2
AR
5808 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5809 accelerator in parens under GNUstep.
5810
825d0875
KH
58112009-03-06 Kenichi Handa <handa@m17n.org>
5812
5813 These changes are to detect incorrect composition sequence without
f3b3be74 5814 looking ahead the source. (Bug#2370)
825d0875
KH
5815
5816 * coding.h: Include "composite.h".
5817 (enum compisition_state): New enum.
5818 (struct compisition_status): New struct.
5819 (struct iso_2022_spec): New member cmp_status.
5820 (struct emacs_mule_spec): New struct.
5821 (struct coding_system): New members ctext_extended_segment_len and
5822 embedded_utf_8. Change the union member
5823 spec.emacs_mule_full_support to spec.emacs_mule.
5824
5825 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5826 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5827 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5828 (ADD_COMPOSITION_DATA): New arg nbytes.
5829 (emacs_mule_char): New arg cmp_status.
5830 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5831 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5832 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5833 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5834 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5835 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5836 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5837 (EMACS_MULE_COMPOSITION_END): New macro.
5838 (emacs_mule_finish_composition): New function.
5839 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5840 (decode_coding_emacs_mule): Avoid long looking ahead while
5841 handling composition.
5842 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5843 (ENCODE_COMPOSITION_RULE): New macro.
5844 (finish_composition): New function.
5845 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5846 (DECODE_COMPOSITION_START): New implementation.
5847 (DECODE_COMPOSITION_END): Likewise.
5848 (STORE_COMPOSITION_RULE): New macro.
5849 (decode_coding_iso_2022): Avoid long looking ahead while handling
5850 composition, CTEXT extended segment, and embedded UTF-8.
5851 (setup_coding_system): For a coding of type iso-2022, reset
5852 CODING_ISO_EXTSEGMENT_LEN (coding) and
5853 CODING_ISO_EMBEDDED_UTF_8 (coding).
5854 (get_translation): Delete arguments last_block, from_nchars,
5855 to_nchars. Callers changed.
5856 (produce_chars): Don't modify charbuf. Adjusted for the change of
5857 get_translation.
98a326f7 5858 (produce_composition): Adjust for the new annotation sequence.
825d0875 5859 (handle_composition_annotation): Likewise.
98a326f7 5860 (consume_chars): Adjust for the change of get_translation.
825d0875 5861
ccbc4452
AR
58622009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5863
4ddf94bd 5864 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5865
988a7ddb
KH
58662009-03-05 Kenichi Handa <handa@m17n.org>
5867
5868 * font.c (font_select_entity): New function.
5869 (font_find_for_lface): Use font_select_entity to select a font.
5870
5871 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5872 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5873 font with C restriction.
5874
98a326f7 58752009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5876
be1bce46 5877 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5878
10ea2b82
JR
58792009-03-04 Jason Rumney <jasonr@gnu.org>
5880
2c93b248 5881 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5882 characters that have already been read. (Bug#2569)
2c93b248 5883
10ea2b82
JR
5884 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5885 Log an error message if check_image_size failed.
5886 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5887 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5888
71a0c011
EZ
58892009-03-02 Eli Zaretskii <eliz@gnu.org>
5890
5891 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5892 when decoding process output.
5893
2f63bba8
RS
58942009-03-01 Richard M Stallman <rms@gnu.org>
5895
5896 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5897
5898 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5899
0a9564cb
EZ
59002009-02-28 Eli Zaretskii <eliz@gnu.org>
5901
5902 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5903 (decode_coding_emacs_mule, decode_coding_iso_2022)
5904 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5905 (decode_coding_raw_text, decode_coding_charset)
5906 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5907 Honor inhibit-eol-conversion. (Bug #2186)
5908
449148b3
JR
59092009-02-28 Jason Rumney <jasonr@gnu.org>
5910
5911 * coding.c (detect_coding_charset): If not checking latin extra,
5912 fail on characters between 0x80 and 0xA0. (Bug#2354)
5913
a4aee864
EZ
59142009-02-28 Eli Zaretskii <eliz@gnu.org>
5915
5916 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5917 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5918
d88bee5a
GM
59192009-02-27 Glenn Morris <rgm@gnu.org>
5920
5921 * callint.c (Finteractive): Doc fix.
5922
a808f22d
KH
59232009-02-27 Kenichi Handa <handa@m17n.org>
5924
5925 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5926
caf8d60c
CY
59272009-02-27 Chong Yidong <cyd@stupidchicken.com>
5928
5929 * font.c (font_style_to_value): Set value for unknown symbols to
5930 100 instead of 255.
b61137ea
CY
5931 (weight_table, slant_table, width_table): Treat "unspecified" as
5932 the default value.
caf8d60c 5933
1a0de25c
JB
59342009-02-26 Juanma Barranquero <lekktu@gmail.com>
5935
5936 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5937
8fc45744
JB
59382009-02-25 Juanma Barranquero <lekktu@gmail.com>
5939
107bd7d1
JB
5940 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5941 error as soon as a recursive load is detected.
8fc45744 5942
f097e223
AR
59432009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5944
5945 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5946 before caching.
5947
8810a12f
KH
59482009-02-24 Kenichi Handa <handa@m17n.org>
5949
5950 * fontset.c (fontset_find_font): Fix the condition for checking
5951 unavailable font.
5952
2c7d1565
GM
59532009-02-24 Glenn Morris <rgm@gnu.org>
5954
5955 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5956 whitespace that confuses documentation.
5957
a20878b6
MB
59582009-02-23 Miles Bader <miles@gnu.org>
5959
5960 * process.c (Flist_system_processes, Fprocess_attributes)
5961 (syms_of_process): Rename `system-process-attributes' to
5962 `process-attributes'.
5963
b3b58c01
AS
59642009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5965
1b3b981b
AS
5966 * coding.h (struct coding_system): Make safe_charsets a pointer to
5967 unsigned char.
5968 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5969 being 255.
5970 (SAFE_CHARSET_P): Likewise.
5971 (setup_iso_safe_charsets): Properly setup safe_charsets.
5972 (Fdefine_coding_system_internal): Likewise.
5973 (setup_coding_system): Likewise. Remove unneeded casts.
5974 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5975 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5976 unneeded casts.
5977
b3b58c01
AS
5978 * insdel.c (del_range_2): Don't modify gap contents when called
5979 from decode_coding_object. (Bug#1809)
5980
0b6f228c
CY
59812009-02-21 Chong Yidong <cyd@stupidchicken.com>
5982
5983 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5984 Qfont_object.
5985 (Ftype_of): Recognize font objects.
5986
5987 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5988
5989 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5990 moved to data.c.
5991
52f8870b
AR
59922009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5993
5994 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5995 async_iconified. Based on a patch by Christian Lynbech
5996 <christian.lynbech@tieto.com>.
5997 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5998
7087d5e9
GM
59992009-02-20 Glenn Morris <rgm@gnu.org>
6000
6001 * syntax.c (Fskip_chars_forward): Fix doc typo.
6002
41d2ceef
CY
60032009-02-20 Chong Yidong <cyd@stupidchicken.com>
6004
6005 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6006
1a3b7ca6
CY
60072009-02-19 Chong Yidong <cyd@stupidchicken.com>
6008
6009 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6010
73cce38d
KH
60112009-02-19 Kenichi Handa <handa@m17n.org>
6012
6013 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6014 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6015
a51092ee
DN
60162009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6017
6018 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6019
c423ecca
KH
60202009-02-18 Kenichi Handa <handa@m17n.org>
6021
6022 * font.c (font_check_otf_features): Fix handling of `nil' element.
6023 (Ffont_spec): Describe :lang and :otf in the docstring.
6024
4c1958f4
AS
60252009-02-16 Andreas Schwab <schwab@suse.de>
6026
6027 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6028 string.
6029
5704f39a
KH
60302009-02-16 Kenichi Handa <handa@m17n.org>
6031
6032 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6033 (Bug#1723)
5704f39a 6034
8f0085aa
CY
60352009-02-14 Chong Yidong <cyd@stupidchicken.com>
6036
a057d86a 6037 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6038
6039 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6040 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6041
aff01dd9
EZ
60422009-02-14 Eli Zaretskii <eliz@gnu.org>
6043
6044 * msdos.c (MAX_SCREEN_BUF): New macro.
6045 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6046 Encode the entire run of glyphs sharing the same face, instead of
6047 doing that one glyph at a time (fixes a bug with displaying
6048 double-size characters).
6049
ba301db3
AR
60502009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6051
6052 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6053
6054 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6055 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6056 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6057
6058 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6059 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6060
51d861de
SM
60612009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6062
ac146f82 6063 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6064 invisible areas.
6065
7fed8996
JR
60662009-02-12 Jason Rumney <jasonr@gnu.org>
6067
631ea4fb
JR
6068 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6069 (add_font_entity_to_list): Call check_face_name even when family
6070 is unspecified.
6071
cb4a3e42
JR
6072 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6073 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6074 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6075
7fed8996 6076 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6077 raster fonts. (Bug#2219)
7fed8996 6078
895416e3
KH
60792009-02-12 Kenichi Handa <handa@m17n.org>
6080
6081 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6082 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6083 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6084 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6085 (find_automatic_composition): While looking forward and backward,
6086 check static composition. Fix where to stop looking forward.
6087 (composition_adjust_point): Fix checking of static composition.
6088 (Fcomposition_get_gstring): Pay attention to
1dacf998 6089 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6090
6091 * lisp.h (fast_looking_at): Extern it.
6092
6093 * search.c (fast_looking_at): New function.
6094
51d861de 6095 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6096 <struct glyph>.u.cmp.to.
6097 (append_composite_glyph): Likewise.
6098
51d861de 6099 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6100 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6101 composition.
51d861de 6102 (append_composite_glyph): Adjust for the change of
895416e3
KH
6103 <strcut glyph>.u.cmp.to.
6104
8510724d
JB
61052009-02-11 Juanma Barranquero <lekktu@gmail.com>
6106
6107 * casetab.c (init_casetab_once):
6108 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6109 * font.c (font_update_lface):
6110 * fontset.c (Fnew_fontset):
6111 * ftfont.c (ftfont_drive_otf):
6112 * xfont.c (xfont_open):
6113 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6114
294fa707
SM
61152009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6116
6117 * fileio.c (Fwrite_region): !NILP -> CONSP.
6118
b5bfebec
AS
61192009-02-10 Andreas Schwab <schwab@suse.de>
6120
6121 * process.c (send_process): Properly relocate pointer into data
adab88bd 6122 when using encoded data. (Bug#2272)
b5bfebec 6123
cb84a2be
KH
61242009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6125
6126 * coding.c (detect_coding_charset): Fix previous change.
6127
89e09428
JR
61282009-02-08 Jason Rumney <jasonr@gnu.org>
6129
6130 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6131 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6132
4470a277
AS
61332009-02-07 Andreas Schwab <schwab@suse.de>
6134
6135 * unexelf.c (unexec): Fix error message.
6136
3175b12a
AR
61372009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6138
6139 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6140 when modal window is active. (Bug #2152)
3175b12a
AR
6141 (applicationShouldTerminate:): Remove now-unneeded while loop
6142 around NSRunAlertPanel.
6143
6144 * nsmenu.m (popupSession): New file-global variable.
6145 (pop_down_menu): End the popupSession before closing dialog.
6146 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6147 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6148 don't query NSApp for events (just sleep instead).
6149
8434d0b8
EZ
61502009-02-07 Eli Zaretskii <eliz@gnu.org>
6151
51d861de
SM
6152 * coding.c (syms_of_coding) <translation-table-for-input>:
6153 Modify doc string to discourage use for character code unification.
8434d0b8 6154
aa82edfd
CY
61552009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6156
6157 * atimer.c (run_timers): Update pending_atimers.
6158
2d283c7c
CY
61592009-02-06 Chong Yidong <cyd@stupidchicken.com>
6160
eb306cab
CY
6161 * image.c (svg_load_image): Fix last change.
6162
2d283c7c
CY
6163 * xfns.c (Fx_create_frame): Signal an error if no font is
6164 found (Bug#2147).
6165
4d8e170e
JB
61662009-02-05 Juanma Barranquero <lekktu@gmail.com>
6167
6168 * character.c (syms_of_character) <script-representative-chars>:
6169 Fix typo in docstring.
6170
c96169a0
AR
61712009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6172
6173 * nsmenu.m (pop_down_menu): New function.
6174 (ns_popup_dialog): Call it on unwind.
6175 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6176 call timer_check() (Bug#2154).
6177 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6178 handling_signal is set.
6179 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6180
31fd7c5c 6181 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6182
6183 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6184
6185 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6186
51d861de
SM
6187 * keyboard.c (poll_for_input_1, handle_async_input):
6188 Set handling_signal under HAVE_NS.
c96169a0 6189
aacd8ba1
GM
61902009-02-04 Glenn Morris <rgm@gnu.org>
6191
6192 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6193
4cb75c4b
KH
61942009-02-04 Kenichi Handa <handa@m17n.org>
6195
6196 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6197
6198 * charset.c (Fchar_charset): New optional arg restriction.
6199
6200 * coding.h (coding_system_charset_list): Extern it.
6201
6202 * coding.c (coding_system_charset_list): New function.
6203
6204 * composite.c: Include coding.h and termhooks.h.
6205 (composition_gstring_p): Fix for the terminal case.
6206 (composition_gstring_width): Likewise.
6207 (fill_gstring_body): Likewise.
6208 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6209 the frame.
6210 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6211 is within a composition.
867d4bb3 6212 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6213
6214 * term.c (encode_terminal_code): Fix handling of composition.
6215 (produce_composite_glyph): For static composition, get pixel_width
6216 from struct composition.
6217
826ba17e
AS
62182009-02-02 Andreas Schwab <schwab@suse.de>
6219
6220 * unexelf.c (unexec): Handle unaligned bss offset.
6221
8ad093db
AR
62222009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6223
6224 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6225 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6226
8ad093db
AR
6227 * keyboard.c (handle_interrupt): Don't call
6228 quit_throw_to_read_char() under NS.
d0a76a6e 6229
8ad093db
AR
6230 * blockinput.h: Remove NS-specific code.
6231
4d18a7a2
DN
62322009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6233
db878925
DN
6234 * dispnew.c (window_change_signal): Don't try to get the size of a
6235 suspended tty frame.
6236 * term.c (Fresume_tty): Resize if the size has changed while the
6237 tty was suspended.
6238
4d18a7a2
DN
6239 * alloc.c (mark_stack): Properly conditionalize previous change.
6240
8984df7c
JB
62412009-01-30 Juanma Barranquero <lekktu@gmail.com>
6242
6243 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6244 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6245 Remove; this code is not used on Windows.
6246
75f4f1ac
EZ
62472009-01-30 Eli Zaretskii <eliz@gnu.org>
6248
6249 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6250 EOLs that also has stray ^M characters.
6251
07a1e794
JB
62522009-01-30 Juanma Barranquero <lekktu@gmail.com>
6253
6254 * atimer.c (run_timers, alarm_signal_handler):
6255 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6256 * w32inevt.c (w32_console_read_socket):
6257 * w32term.c (w32_read_socket):
6258 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6259
a8b11cc9
CY
62602009-01-30 Chong Yidong <cyd@stupidchicken.com>
6261
6262 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6263 Initialize it as a relative filename pattern.
6264 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6265 (Fcall_process_region): Simplify temp file creation using
6266 temporary-file-directory.
6267
c279587b
EZ
62682009-01-29 Eli Zaretskii <eliz@gnu.org>
6269
6270 * msdos.c: Rename pending_signals to msdos_pending_signals.
6271 (sig_suspender, sigprocmask): Adjust.
6272
a8fe3242
CY
62732009-01-29 Chong Yidong <cyd@stupidchicken.com>
6274
6275 * keyboard.c (pending_signals): New var.
6276 (poll_for_input, input_available_signal, init_keyboard): Set it.
6277 (process_pending_signals): New function.
6278
6279 * lisp.h (QUIT): Check pending_signals instead of
6280 interrupt_input_pending. Use process_pending_signals.
6281
51d861de 6282 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6283
51d861de 6284 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6285
6286 * sysdep.c (emacs_write): Use process_pending_signals.
6287
6288 * xterm.c (XTread_socket): Update pending_signals.
6289
6290 * w32term.c (w32_read_socket): Update pending_signals.
6291
6292 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6293
6570a1c4
KH
62942009-01-29 Kenichi Handa <handa@m17n.org>
6295
6296 * xftfont.c (xftfont_has_char): New function.
6297 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6298
d72a4afa
AR
62992009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6300
6301 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6302 under GNUstep.
6303 (ns_query_color): New declaration.
6304
6305 * nsterm.m (ns_confirm_quit): New variable.
6306 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6307 (EmacsApp-applicationShouldTerminate:): Use it.
6308 (EmacsPrefsController): Let user set it.
6309 (ns_query_color): New function.
6310 (ns_defined_color): Use it.
6311 (ns_initialize): Drop.
6312 (ns_term_init): Add two lines from ns_initialize(), and set
6313 input_interrupt_mode to nil.
6314
6315 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6316 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6317
9fe78804
KH
63182009-01-28 Kenichi Handa <handa@m17n.org>
6319
6320 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6321 (fontset_get_font_group): Remember that no font-group is specified
6322 for C.
9fe78804 6323
fa57de36
CY
63242009-01-27 Chong Yidong <cyd@stupidchicken.com>
6325
930600e9
CY
6326 * fns.c (concat): Check for string overflow (bug#1787).
6327
fa57de36
CY
6328 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6329 Quadruple undo limits (bug#1501).
6330
7179ce7b
KH
63312009-01-27 Kenichi Handa <handa@m17n.org>
6332
6333 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6334 directly use GT_Get_Char_index.
6335
6336 * xftfont.c (struct xftfont_info): New member `index'.
6337
6338 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6339 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6340
5be8fcc0
CY
63412009-01-26 Kenichi Handa <handa@m17n.org>
6342
6343 * fontset.c (fontset_find_font): Fix handling of non-cons return
6344 value of fontset_get_font_group.
6345 (fontset_font): Revert last change.
6346
19ae3e61
JR
63472009-01-26 Jason Rumney <jasonr@gnu.org>
6348
6349 * w32font.c (w32font_list_internal): Return quickly if registry is
6350 unknown. Simplify final return.
6351 (add_font_entity_to_list): Break complex logic down into more
6352 manageable chunks. Move unknown registry check to
6353 w32font_list_internal.
6354
8612b71a
AR
63552009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6356
6357 Changes to remove Feval calls from GUI under NS.
6358
d8038940
JB
6359 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6360 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6361 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6362
6363 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6364 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6365 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6366 instead of NON_ASCII_KEYSTROKE_EVENT.
6367 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6368 (EmacsApp-applicationShouldTerminate:): Query user.
6369 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6370 instead of Feval.
6371
6372 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6373
6374 * keyboard.c (kbd_buffer_get_event): Check for it.
6375 (keys_of_keyboard): Define lispy keys for
6376 ns-put/unput-working-text.
6377
6378 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6379 versions.
6380 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6381
6288ae55
CY
63822009-01-25 Chong Yidong <cyd@stupidchicken.com>
6383
6384 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6385 setting current_buffer directly. (Bug#2044)
6288ae55 6386
289e7f8f
CY
63872009-01-24 Chong Yidong <cyd@stupidchicken.com>
6388
5ce87308 6389 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6390 any work. (Bug#1952, bug#1990).
5ce87308 6391
64cc3cf6 6392 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6393
b3243e6f
AR
63942009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6395
6396 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6397 (ns_no_defaults): New declaration.
6398 (main): Use it.
e0d2e69a 6399
d900b2af 6400 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6401
d900b2af 6402 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6403
d900b2af
AR
6404 * nsterm.m (ns_no_defaults): New variable.
6405 (ns_initialize): Don't read defaults when ns_no_defaults.
6406 (EmacsView-readSelectionFromPasteboard:)
6407 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6408 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6409 (ns_dumpglyphs_stretch): New function.
6410 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6411 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6412
e0d2e69a
AR
6413 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6414
3ac71f5d
CY
64152009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6416
6417 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6418 call for Sparc64.
6419
3fe53a83
AR
64202009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6421
6422 * nsfns.m:
6423 * nsgui.h:
6424 * nsmenu.m:
6425 * nsselect.m:
6426 * nsterm.h:
6427 * nsterm.m: Remove '23' comments that indicated code added during
6428 update from emacs-20 -> emacs-23.
6429
10f87c6f 64302009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6431
6432 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6433 ns_alternate_modifier. (Bug#1217)
a3b53a85 6434
c7cef62d
AR
6435 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6436 Display all shortcuts, including those w/o super modifier.
6437
575fb8bd
AR
6438 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6439
918b848b
CY
64402009-01-22 Chong Yidong <cyd@stupidchicken.com>
6441
6442 * fileio.c (Vwrite_region_post_annotation_function)
6443 (Vwrite_region_annotation_buffers): New vars.
6444 (build_annotations_unwind): Just reset
6445 Vwrite_region_annotation_buffers.
6446 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6447 Call write-region-post-annotation-function.
6448 (build_annotations): Add to Vwrite_region_annotation_buffers if
6449 buffer changes.
6450
a39e2539
AR
64512009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6452
6453 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6454 Tiger.
51d861de
SM
6455 * nsfns.m (ns_do_applescript):
6456 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6457
35ed44db
AR
64582009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6459
6460 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6461
cbe0b5bf
AR
64622009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6463
6464 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6465
6049d3a0
AR
6466 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6467
6468 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6469 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6470 handle Ctrl-tab. (Bug#1841)
6471 (ns_get_color): Use unsigned long long for scanned hex string value.
6472 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6473 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6474 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6475 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6476 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6477 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6478 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6479
d3810c21 6480 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6481 DPI. (Bug#1316)
d3810c21
AR
6482 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6483 values in onTiger section.
4c7077c3 6484
e301e634
CY
64852009-01-19 Chong Yidong <cyd@stupidchicken.com>
6486
7f82490b
CY
6487 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6488 Check return value of font_spec_from_name.
64cc3cf6 6489 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6490
6491 * font.c (font_spec_from_name): Return Qnil if font name could not
6492 be parsed.
6493 (font_parse_name): Treat a `?' character as part of an XLFD.
6494
e301e634
CY
6495 * fns.c (Fsubstring): Doc fix.
6496
1c0db158
KH
64972009-01-19 Kenichi Handa <handa@m17n.org>
6498
51d861de 6499 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6500 (ftfont_list): Likewise.
6501
acf20901
JB
65022009-01-18 Juanma Barranquero <lekktu@gmail.com>
6503
fff4e459
JB
6504 * dbusbind.c (Fdbus_register_signal):
6505 * process.c (conv_sockaddr_to_lisp):
6506 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6507
acf20901
JB
6508 * callproc.c (Fgetenv_internal): Doc fix.
6509
e7abcdfb
CY
65102009-01-16 Chong Yidong <cyd@stupidchicken.com>
6511
6512 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6513 it is not even used.
6514
b60861e6
GM
65152009-01-16 Glenn Morris <rgm@gnu.org>
6516
6517 * font.c (Ffont_variation_glyphs): Silence compiler.
6518
8db52afe
JB
65192009-01-15 Juanma Barranquero <lekktu@gmail.com>
6520
6521 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6522 Reported by David Robinow <drobinow@gmail.com>.
6523
4cddb209
KH
65242009-01-15 Kenichi Handa <handa@m17n.org>
6525
51d861de 6526 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6527
f247f67b
JR
65282009-01-14 Jason Rumney <jasonr@gnu.org>
6529
6530 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6531 never a fontset. (Bug#1562)
f247f67b 6532
f56a4450
KH
65332009-01-14 Kenichi Handa <handa@m17n.org>
6534
6535 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6536 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6537
4e99855e
CY
65382009-01-13 Chong Yidong <cyd@stupidchicken.com>
6539
6540 * font.c (font_clear_prop): If clearing the family, clear the font
6541 width index too.
6542
fff4e459 6543 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6544
24f01470
JB
65452009-01-12 Juanma Barranquero <lekktu@gmail.com>
6546
6547 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6548 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6549 functions, use sizeof.
6550
a41240a3
MR
65512009-01-12 Martin Rudalics <rudalics@gmx.at>
6552
6553 * keyboard.c (read_char): Fix case where last_nonmenu_event
6554 returned a bad value with submenus. (Bug#447)
6555
944636b8
CY
65562009-01-12 Chong Yidong <cyd@stupidchicken.com>
6557
6558 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6559 family, clear the font width index too.
6560
0dad7c6f
JR
65612009-01-11 Jason Rumney <jasonr@gnu.org>
6562
6563 * keyboard.c (cmd_error_internal): Exit when errors occur before
6564 frame creation and not in daemon mode. (Bug#1836)
6565
7c2363af
CY
65662009-01-10 Chong Yidong <cyd@stupidchicken.com>
6567
6568 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6569 of a display vector, backtrack.
6570 (try_window_reusing_current_matrix): Check glyph type before
6571 referencing charpos member.
6572
97b1b294
EZ
65732009-01-10 Eli Zaretskii <eliz@gnu.org>
6574
6575 Fix Bug #876:
6576
6577 * coding.c (inhibit_null_byte_detection): New variable.
6578 (detect_coding, detect_coding_system): Don't pay attention to null
6579 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6580 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6581 <inhibit-iso-escape-detection>: Doc fix.
6582
4624b6e3
JR
65832009-01-09 Jason Rumney <jasonr@gnu.org>
6584
6585 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6586 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6587 Only report Unicode Plane 2 fonts as unicode-sip.
6588
323b840c
CY
65892009-01-09 Chong Yidong <cyd@stupidchicken.com>
6590
51d861de
SM
6591 * xfaces.c (Fx_font_family_list): Delete function.
6592 Move compatibility version to faces.el.
323b840c 6593
51d861de 6594 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6595
eba7400d
MR
65962009-01-09 Martin Rudalics <rudalics@gmx.at>
6597
6598 * frame.c (x_set_frame_parameters): Remember requested value for
6599 fullscreen before it's reset by the parameter handler.
6600
4b09796d
GM
66012009-01-09 Glenn Morris <rgm@gnu.org>
6602
6603 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6604 (last_command_event): ... and update all users.
4b09796d
GM
6605 (last_input_char): For clarity, rename to...
6606 (last_input_event): ... and update all users.
6607 (last-command-char, last-input-char): Move to subr.el as aliases.
6608 * cmds.c, commands.h: Update for last_command_char rename.
6609
14ccea62
CY
66102009-01-08 Chong Yidong <cyd@stupidchicken.com>
6611
51d861de 6612 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6613
5f004711
JR
66142009-01-08 Jason Rumney <jasonr@gnu.org>
6615
6616 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6617 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6618 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6619 Don't declare.
fff4e459 6620 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6621 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6622
b71f6f73
KH
66232009-01-07 Kenichi Handa <handa@m17n.org>
6624
50b06221 6625 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6626 remember the coding system used for decoding in
50b06221
KH
6627 coding_system (Bug#1039).
6628
b71f6f73 6629 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6630 breaking the loop. (Bug#870)
b71f6f73
KH
6631 (decode_coding_utf_16, decode_coding_emacs_mule)
6632 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6633 (decode_coding_charset): Likewise.
6634
56f668f7
MR
66352009-01-05 Martin Rudalics <rudalics@gmx.at>
6636
6637 * frame.c (x_set_frame_parameters): Make sure height (width) get
6638 applied when fullwidth (fullheight) is set. (Bug#1522)
6639
5da9424d
JB
66402009-01-04 Juanma Barranquero <lekktu@gmail.com>
6641
6642 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6643 (utc_base): Declare as ULONGLONG, not long double.
6644 (convert_time_raw): Delete.
6645 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6646 (initialize_utc_base): New function.
6647 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6648 (convert_from_time_t): Use initialize_utc_base; compute result with
6649 64-bit arithmetic.
6650 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6651
c4605e09
EZ
66522009-01-03 Eli Zaretskii <eliz@gnu.org>
6653
9acef61c 6654 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6655 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6656 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6657 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6658 [!subprocesses]: Define.
6659 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6660 (Flist_system_processes, Fsystem_process_attributes)
6661 [!subprocesses]: Call list_system_processes and
6662 system_process_attributes instead of returning Qnil.
6663
9acef61c
JB
6664 * dosfns.c (system_process_attributes, list_system_processes):
6665 New functions.
c4605e09
EZ
6666
6667 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6668
6669 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6670 Don't use the default (no-op) implementation.
6671
8b7d0a16
JR
66722009-01-03 Jason Rumney <jasonr@gnu.org>
6673
a6d46bc1
JR
6674 * keyboard.c (parse_modifiers_uncached): Wheel events are
6675 clicks (bug#687).
6676
8b7d0a16
JR
6677 * w32term.c (x_query_colors, x_query_color): New functions.
6678
6679 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6680 (svg_load_image): Cast returned pointers from dynamically loaded
6681 functions. Eliminate W32 specific code.
6682
bfe11752
DN
66832009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6684
89e2438a
DN
6685 * nsfns.m (x_set_foreground_color, x_set_background_color)
6686 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6687 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6688 x_ prefix instead of ns_. Update references.
6689 (syms_of_nsfns): Add a FIXME comment.
6690
6691 * nsterm.m (x_set_cursor_type): New prototype.
6692 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6693
bfe11752
DN
6694 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6695 for Solaris instead of incorrectly providing Qutime and Qcutime.
6696
031da700
EZ
66972009-01-02 Eli Zaretskii <eliz@gnu.org>
6698
6699 * w32.c (process_times): Compute sum of utime and stime.
6700 (system_process_attributes): Add Qtime to the alist.
6701
6702 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6703 and add them to the alist.
6704
6705 * process.c (top level) <Qtime, Qctime>: New variables.
6706 (syms_of_process): staticpro them.
6707 (Fsystem_process_attributes): Add their documentation to the doc
6708 string.
6709
6710 * process.h: Declare Qtime and Qctime.
6711
df23bf08
JR
67122009-01-02 Jason Rumney <jasonr@gnu.org>
6713
9acef61c 6714 * image.c (Qgobject): New symbol.
df23bf08
JR
6715 (syms_of_image): Initialize it.
6716 (init_svg_functions): Load some functions from gobject library.
6717
5bbdf7aa
DN
67182009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6719
6720 * frame.c (make_terminal_frame): Remove redundant code and useless
6721 block.
6722
63136da6
AS
67232009-01-01 Andreas Schwab <schwab@suse.de>
6724
6725 * process.c (conv_sockaddr_to_lisp): Add workaround for
6726 getsockname bug on BSD.
6727
9ef69046
CY
67282009-01-01 Chong Yidong <cyd@stupidchicken.com>
6729
d6fafbe0
CY
6730 * xfns.c (x_create_tip_frame): Set border width of the X window.
6731
51d861de 6732 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6733
f9c34147
JR
67342009-01-01 Jason Rumney <jasonr@gnu.org>
6735
9acef61c 6736 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6737 Don't block input, as per earlier xterm.c changes.
6738
f5497e45
AR
67392008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6740
6741 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6742 (ns_appkit_version_int): New function.
6743 (x-server-version): Use ns_appkit_version_int and follow 21+
6744 convention of returning 3 integers.
6745
c19cab20
KH
67462008-12-30 Kenichi Handa <handa@m17n.org>
6747
6748 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6749 (CHAR_SURROGATE_PAIR_P): New macro.
6750
6751 * font.h (struct font_driver): New member get_variation_glyphs.
6752
9acef61c 6753 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6754 (Ffont_variation_glyphs): New function.
6755 (syms_of_font): Defsubr it.
6756
6757 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6758 ftfont_variation_glyphs.
6759 (setup_otf_gstring): New function.
6760 (ftfont_drive_otf): Use it.
6761 (ftfont_shape_by_flt): Handle variation selector.
6762 (ftfont_variation_glyphs): New function.
6763
28cd591f
MR
67642008-12-30 Martin Rudalics <rudalics@gmx.at>
6765
6766 * frame.c (Vemacs_iconified): Remove.
6767
7f714baf
JR
67682008-12-30 Jason Rumney <jasonr@gnu.org>
6769
6770 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6771 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6772
9d2d22ab
CY
67732008-12-30 Chong Yidong <cyd@stupidchicken.com>
6774
6775 * indent.c (Fvertical_motion): Don't advance iterator if we have
6776 reseated to the desired position.
6777
6778 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6779 checking for pos match.
6780
545312c2
KH
67812008-12-30 Kenichi Handa <handa@m17n.org>
6782
1ede3eb6
KH
6783 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6784 just get the low 8-bit of the code.
6785
545312c2
KH
6786 * font.c (font_intern_prop): Validate str as multibyte.
6787
bd7bbf29
DN
67882008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6789
31e0750e
DN
6790 * dispextern.h (struct face): Move lface and hash from the middle
6791 of bitfields.
6792
bd7bbf29
DN
6793 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6794
b5672e7c
DN
67952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6796
6797 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6798 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6799 instead of intervals.h.
6800
d704470f
AS
68012008-12-26 Andreas Schwab <schwab@suse.de>
6802
6803 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6804 cons.
6805
54b33868
MR
68062008-12-26 Martin Rudalics <rudalics@gmx.at>
6807
6808 * textprop.c (Qminibuffer_prompt): New variable.
6809 (syms_of_textprop): Initialize it.
6810 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6811 in minibuffer-prompt face. (Bug#1662)
6812
40b615d6
JR
68132008-12-25 Jason Rumney <jasonr@gnu.org>
6814
6815 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6816
baae5c2d
JR
68172008-12-24 Jason Rumney <jasonr@gnu.org>
6818
6819 * ralloc.c (r_alloc_reset_variable): New function.
6820
6821 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6822 record of what points where. (Bug#716)
baae5c2d 6823
a9051c88
DN
68242008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6825
6826 * minibuf.c (read_minibuf): Follow the non-interactive case when
6827 running as a daemon, before detaching.
6828
8b146312
AS
68292008-12-22 Andreas Schwab <schwab@suse.de>
6830
6831 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6832 * gtkutil.c (free_widget_value): Use xfree instead of free.
6833
56f2de10
MR
68342008-12-22 Martin Rudalics <rudalics@gmx.at>
6835
6836 * frame.c (delete_frame): New function derived from
6837 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6838 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6839 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6840 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6841 * frame.h: Extern delete_frame.
6842 * window.c (window_loop):
6843 * terminal.c (delete_terminal):
6844 * xterm.c (x_connection_closed):
6845 * xfns.c (Fx_hide_tip):
9acef61c 6846 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6847
1fc200d6
JR
68482008-12-21 Jason Rumney <jasonr@gnu.org>
6849
6850 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6851 when character maps to .notdef character.
6852
5e252df2
SM
68532008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6854
6855 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6856
99b72cc4
JR
68572008-12-20 Jason Rumney <jasonr@gnu.org>
6858
6859 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6860 a graphical frame on Windows. (Bug#1325)
99b72cc4 6861
acc49a52
JD
68622008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6863
6864 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6865
6ea15123
CY
68662008-12-20 Chong Yidong <cyd@stupidchicken.com>
6867
6868 * minibuf.c (Fread_buffer): Doc fix.
6869
b2dab6c8
JR
68702008-12-20 Jason Rumney <jasonr@gnu.org>
6871
54ea0c87 6872 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6873 server name in UNC paths. (Bug#719)
54ea0c87 6874
b2dab6c8 6875 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6876 charbuf. (Bug#1035)
b2dab6c8 6877
6d1921be
DN
68782008-12-19 Daniel Engeler <engeler@gmail.com>
6879
6880 * sysdep.c (serial_configure): Fix typo.
6881
53934c98
DN
68822008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6883
6884 * sysdep.c: Include alloca.h.
f4f634e8
DN
6885 (system_process_attributes): Add implementation for Solaris.
6886
6887 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6888
06e111a6
DN
68892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6890
6891 Reorganize implementation of Flist_system_processes and
6892 Fsystem_process_attributes. No functional changes.
6893 * process.c: Don't #include pwd.h, grp.h and limits.h.
6894 (Flist_system_processes): Just call list_system_processes.
6895 (Fsystem_process_attributes): Just call system_process_attributes.
6896 (procfs_list_system_processes, time_from_jiffies)
6897 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6898 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6899
6900 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6901 (list_system_processes): Rename from
6902 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6903 Provide a do nothing implementation.
6904 (system_process_attributes): Rename from
6905 procfs_list_system_processes.
6906 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6907 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6908
6909 * w32.c (list_system_processes): Rename from
6910 w32_list_system_processes.
6911 (system_process_attributes): Rename from
6912 w32_system_process_attributes.
6913
6914 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6915
6916 * process.h (w32_list_system_processes)
6917 (w32_system_process_attributes): Remove.
362654a6
JB
6918 (list_system_processes, system_process_attributes):
6919 New prototypes.
06e111a6 6920
6a705b23
KH
69212008-12-19 Kenichi Handa <handa@m17n.org>
6922
6923 * xfont.c (xfont_decode_coding_xlfd): New function.
6924 (xfont_encode_coding_xlfd): New function.
6925 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6926 (xfont_list): Decode and encode XLFD by iso-8859-1.
6927 (xfont_match): Likewise.
6928 (xfont_list_family): Likewise.
6929 (xfont_open): Likewise.
6930
d66c0241 6931 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6932 names are utf-8.
6933
d66c0241 6934 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6935 names are utf-8.
6936
5a130941
JD
69372008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6938
6939 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6940 changed.
bfd20325
JD
6941 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6942 clicked on a detached tool bar button.
5a130941 6943
fd95644b
DN
69442008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6945
6946 * emacs.c (main): Print and error and exit when no data is read
6947 from the pipe.
6948
e6eee6ae
JR
69492008-12-17 Jason Rumney <jasonr@gnu.org>
6950
6951 * w32font.c (w32font_has_char): Always return -1.
6952
a35dd56b
KH
69532008-12-16 Kenichi Handa <handa@m17n.org>
6954
6955 * font.c (font_open_entity): Fix previous change.
6956
0e3635c2
DN
69572008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6958
6959 * process.c: Include <limits.h>.
6960
d4835507 69612008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6962
6963 * font.c (font_update_drivers): Fix mistake in reconstructing the
6964 driver list.
6965
69662008-12-16 Chong Yidong <cyd@stupidchicken.com>
6967
6968 * font.c (font_clear_cache): Fix format of font cache data.
6969
e2cbc401
CY
69702008-12-15 Chong Yidong <cyd@stupidchicken.com>
6971
6972 * xftfont.c (xftfont_open): Free Xft font pattern if
6973 XftFontOpenPattern fails.
6974
6975 * xterm.c (x_free_frame_resources): Remove extraneous call to
6976 free_frame_faces.
6977
b131d535
CY
69782008-12-13 Chong Yidong <cyd@stupidchicken.com>
6979
6980 * xterm.c (x_delete_display): Move xim_close_dpy call to
6981 x_delete_terminal.
6982 (x_delete_terminal): Call xim_close_dpy.
6983
e6df5336
JR
69842008-12-13 Jason Rumney <jasonr@gnu.org>
6985
6986 * w32font.c (intern_font_name): New function.
6987 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6988 (w32font_open_internal, Fx_select_font): Decode font name.
6989 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6990
6991 * w32font.h (intern_font_name): Declare new function.
6992
6993 * w32uniscribe.c (add_opentype_font_name_to_list):
6994 Use intern_font_name.
6995
20d68145
CY
69962008-12-13 Chong Yidong <cyd@stupidchicken.com>
6997
9f2554de
CY
6998 * frame.c (Fdelete_frame): Call free_font_driver_list.
6999
3d9bec9a
CY
7000 * font.c (free_font_driver_list): Implement missing function.
7001
20d68145
CY
7002 * w32term.c (w32_term_init): Don't initialize the image cache
7003 here; it will be done in init_frame_faces.
7004
7005 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7006 (struct x_display_info): Remove unused member null_pixel. New
7007 member xim_callback_data.
7008
7009 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7010 (xim_initialize): Save pointer to callback function data.
7011 (xim_close_dpy): Free callback function data. Call XCloseIM,
7012 reverting 2008-11-04 change by David Smith.
7013 (x_term_init): Don't initialize the image cache here; it will be
7014 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7015 (x_delete_display): Free x_dnd_atoms member.
7016
96f9306b
KH
70172008-12-13 Kenichi Handa <handa@m17n.org>
7018
6dec9044
JB
7019 * font.c (font_rescale_ratio): Moved from xfaces.c.
7020 Argument type changed. Handle a font-spec too.
96f9306b 7021 (font_score): Check Vface_font_rescale_alist.
6dec9044 7022 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7023
7024 * xfaces.c (font_rescale_ratio): Moved to font.c.
7025
8d5b4964
CY
70262008-12-13 Chong Yidong <cyd@stupidchicken.com>
7027
7028 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7029
e6df5336
JR
70302008-12-12 Jason Rumney <jasonr@gnu.org>
7031
7032 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7033 Vwindow_system_version to the real w32 major version.
7034
97c6058a
DN
70352008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7036
7037 * term.c (init_tty): Move setting the terminal name before the
7038 potential user: maybe_fatal.
7039
ec4e88d7
CY
70402008-12-11 Chong Yidong <cyd@stupidchicken.com>
7041
d4835507
JB
7042 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7043 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7044
b4233ec9
JR
70452008-12-11 Jason Rumney <jasonr@gnu.org>
7046
8ec71e23 7047 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7048 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7049
b4233ec9 7050 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7051 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7052
011a0143
JB
70532008-12-11 Juanma Barranquero <lekktu@gmail.com>
7054
7055 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7056
3c309f34
JB
70572008-12-11 Juanma Barranquero <lekktu@gmail.com>
7058
7059 * process.c (Fsystem_process_attributes, syms_of_process):
7060 Fix typo in name of Ssystem_process_attributes.
7061 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7062
fedc6ab5
JB
70632008-12-11 Juanma Barranquero <lekktu@gmail.com>
7064
7065 * syntax.c (Fmodify_syntax_entry): Doc fix.
7066
ba3de0e8
JB
70672008-12-10 Juanma Barranquero <lekktu@gmail.com>
7068
7069 * font.c (Ffont_spec): Move usage to end of docstring.
7070
174f1c74
JR
70712008-12-10 Jason Rumney <jasonr@gnu.org>
7072
7073 * w32font.c (Qcham): New symbol.
7074 (font_supported_scripts): Add cham, and comments for other new
7075 scripts in bitfield from OpenType spec.
9d32f818
JR
7076 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7077 contain characters beyond the bmp.
174f1c74 7078
7b649478
KH
70792008-12-10 Kenichi Handa <handa@m17n.org>
7080
7081 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7082 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7083 Qunicode_sip.
7084
2133e2d1
JB
70852008-12-10 Juanma Barranquero <lekktu@gmail.com>
7086
7087 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7088 (Fcoding_system_put): Use QCdefault_char.
7089 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7090
9af886ee
CY
70912008-12-09 Chong Yidong <cyd@stupidchicken.com>
7092
74d819eb
CY
7093 * xftfont.c (syms_of_xftfont): Fix typo.
7094
4ccfa1c0 7095 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7096
7c19d3ae
DN
70972008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7098
7099 * emacs.c (main): Close daemon_pipe on exec.
7100
567826bb
CY
71012008-12-08 Chong Yidong <cyd@stupidchicken.com>
7102
7103 * termchar.h (struct tty): New members termcap_term_buffer and
7104 termcap_strings_buffer.
7105
7106 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7107 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7108 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7109 All callers changed.
7110 (init_tty): Store termcap data and string buffers in new struct
7111 tty members termcap_term_buffer and termcap_strings_buffer.
7112 (delete_tty): Free them.
4ccfa1c0 7113 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7114
aa96c42b
SZ
71152008-12-07 Seiji Zenitani <zenitani@mac.com>
7116
7117 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7118 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7119
b7e1d896
CY
71202008-12-06 Chong Yidong <cyd@stupidchicken.com>
7121
7122 * coding.c (make_conversion_work_buffer): Disable buffer
7123 modification hooks in the work buffer.
7124
b5ec91a5
EZ
71252008-12-05 Eli Zaretskii <eliz@gnu.org>
7126
7127 * process.c (procfs_system_process_attributes): If `nread' has a
7128 negative value, assign zero to it.
7129
a5d2a52b
CY
71302008-12-05 Chong Yidong <cyd@stupidchicken.com>
7131
68c5540b 7132 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7133
7bf1bb21
KH
71342008-12-05 Kenichi Handa <handa@m17n.org>
7135
7136 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7137 second character is a combining character.
7138
2fdc7d00
EZ
71392008-12-05 Eli Zaretskii <eliz@gnu.org>
7140
7141 * process.c (procfs_system_process_attributes): Don't use cmd,
7142 cmdsize, and q without initializing them first.
7143
bf6bfba8
JR
71442008-12-04 Jason Rumney <jasonr@gnu.org>
7145
7146 * w32font.c (w32font_draw): Initialize orig_clip before getting
7147 it, and delete it when finished.
7148
a3b1a468
DN
71492008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7150
7151 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7152 case when running as a daemon before detaching.
7153
8b8be8eb
JB
71542008-12-03 Juanma Barranquero <lekktu@gmail.com>
7155
805f2638 7156 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7157
b1bde622
KH
71582008-12-03 Kenichi Handa <handa@m17n.org>
7159
e500c47d
KH
7160 * font.c (font_at): Set `multibyte' at first.
7161
ca516334
KH
7162 * coding.c (decode_coding_charset): Check type of an element of
7163 vector VALIDS.
7bf1bb21 7164 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7165
4ccfa1c0 7166 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7167 (font_for_char): Likewise.
7168
1e5ecd37
CY
71692008-12-03 Chong Yidong <cyd@stupidchicken.com>
7170
d5b01609 7171 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7172 (font_update_lface): Handle fonts with corrupted size specs,
7173 i.e. non-int and non-float.
d5b01609 7174
11e3a6e4 7175 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7176 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7177 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7178
ab06788b
CY
7179 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7180
1e5ecd37 7181 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7182 underline_minimum_offset for underline position.
1e5ecd37 7183
63c125ab
DN
71842008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7185
7186 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7187
7188 * character.c (c_string_width): Specify the type for LEN.
7189
3a8406e1
KH
71902008-12-03 Kenichi Handa <handa@m17n.org>
7191
4ccfa1c0 7192 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7193 (decode_coding_utf_8): Likewise.
4ccfa1c0 7194 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7195 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7196
651df7d9
CY
71972008-12-02 Chong Yidong <cyd@stupidchicken.com>
7198
7199 * keyboard.c (make_lispy_position): Only use PT if the selected
7200 window is current.
7201
1f625c6c
AS
72022008-12-02 Andreas Schwab <schwab@suse.de>
7203
f7741ce9
AS
7204 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7205
1f625c6c
AS
7206 * doprnt.c (doprnt1): Fix size of charbuf.
7207
92bc2678
CY
72082008-12-02 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * keyboard.c (timer_check): Revert last change.
7211
93b9e8cc
JB
72122008-12-02 Juanma Barranquero <lekktu@gmail.com>
7213
7214 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7215
fd7a37d5
JB
72162008-12-01 Juanma Barranquero <lekktu@gmail.com>
7217
7218 * makefile.w32-in: Update dependencies.
7219 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7220
c115043b
AS
72212008-12-01 Andreas Schwab <schwab@suse.de>
7222
7223 * font.c (register_font_driver): Use xmalloc.
7224 (font_put_frame_data): Likewise.
7225
f5668d2a
CY
72262008-12-01 Chong Yidong <cyd@stupidchicken.com>
7227
860d96be
CY
7228 * xfaces.c (realize_x_face): Make abort condition clearer.
7229
f5668d2a
CY
7230 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7231
379c17e7
CY
72322008-11-30 Chong Yidong <cyd@stupidchicken.com>
7233
7234 * keyboard.c (timer_check): After a timer runs, ensure that the
7235 selected window's buffer is current.
7236
35f36d65
JB
72372008-11-30 Juanma Barranquero <lekktu@gmail.com>
7238
f952c61c
JB
7239 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7240 It was accidentally restored by the Unicode merge.
7241
35f36d65
JB
7242 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7243
b23077df
JB
72442008-11-29 Juanma Barranquero <lekktu@gmail.com>
7245
7246 * w32proc.c: Include "coding.h".
7247 (Fw32_short_file_name): Encode filename passed to Windows API.
7248 (Fw32_long_file_name): Encode filename passed to Windows API and
7249 decode back the result. (Bug#1433)
7250
b8ebe9dd
KH
72512008-11-29 Kenichi Handa <handa@m17n.org>
7252
8cc53f96
KH
7253 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7254 not before accessing it.
7255
b8ebe9dd
KH
7256 * charset.c (Fdefine_charset_internal): After calculating
7257 min_char, max_char, and fastmap, copy the charset structure again.
7258 (encode_char): Fix the previous change.
7259
59bc82c0
SZ
72602008-11-28 Seiji Zenitani <zenitani@mac.com>
7261
7262 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7263
7264 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7265
7266 * nsterm.m (x_set_frame_alpha): New function.
7267
32247e3d
EZ
72682008-11-27 Eli Zaretskii <eliz@gnu.org>
7269
7270 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7271
b003e5ff
JB
72722008-11-27 Juanma Barranquero <lekktu@gmail.com>
7273
7274 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7275 pointer to check_face_name.
7276
708550f5
KH
72772008-11-27 Kenichi Handa <handa@m17n.org>
7278
7279 * category.h (SET_CATEGORY_SET): Call set_category_set.
7280 (set_category_set): Extern it.
7281
7282 * category.c (hash_get_category_set): New function.
7283 (Fmodify_category_entry): Adjusted for the change of
7284 char_table_ref_and_range. Call hash_get_category_set to get a
7285 category set to store in the table.
7286
7287 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7288 Funify_charset.
7289
2ae37cf0 7290 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7291 (DECODE_CHAR): Check if the decoder vector is ready.
7292 (ENCODE_CHAR): Check if the encoder char-table is ready.
7293 (maybe_unify_char): Extern it.
7294
7295 * charset.c (Vchar_unified_charset_table): Delete it.
7296 (inhibit_load_charset_map): New variable.
7297 (temp_charset_work): New variable.
7298 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7299 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7300 New macros.
7301 (load_charset_map): Meaning of control_flag changed. If
7302 inhibit_load_charset_map is nonzero, setup a table in
7303 temp_charset_work.
7304 (load_charset): New argument control_flag.
7305 (map_charset_for_dump): New function.
7306 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7307 map_charset_for_dump.
7308 (Fdefine_charset_internal): If the charset method is MAP, load
7309 mapping tables by calling load_charset.
7310 (Funify_charset): Don't load a mapping table but directly set
7311 Vchar_unify_table.
7312 (maybe_unify_char): New function.
7313 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7314 Handle the case of inhibit_load_charset_map being nonzero.
7315 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7316 Handle the case of inhibit_load_charset_map being nonzero.
7317 (Fclear_charset_maps): Just free temp_charset_work.
7318 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7319 variable.
7320
7321 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7322 change of char_table_ref_and_range.
7323 (char_table_ref_and_range): Change the meaning of argument FROM
7324 and TO. Now the caller must provide initial values for *FROM
7325 and *TO.
7326
7327 * fontset.c (fontset_add): Adjusted for the change of
7328 char_table_ref_and_range.
7329 (fontset_get_font_group): Likewise.
7330 (Ffontset_info): Likewise.
7331
7332 * keymap.c (describe_vector): Adjusted for the change of
7333 char_table_ref_and_range. For char-table, put boundary between
7334 non-ASCII and 8-bit characters.
7335
7336 * print.c (print_object): For bool-vector, delete unnecessary
7337 check of ASCII_BYTE_P.
7338
9196133b
JR
73392008-11-26 Jason Rumney <jasonr@gnu.org>
7340
7341 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7342 leading in font height. (Bug#879)
9196133b 7343
9f688acf
GM
73442008-11-26 Glenn Morris <rgm@gnu.org>
7345
7346 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7347 redefinition with ifdef. (Bug#1383)
7348
90d19aff
AR
73492008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7350
7351 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7352
4ccfa1c0 73532008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7354
7355 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7356 New EmacsView methods.
7357 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7358 Fixes bug #1048,1357,1414.
7359
73602008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7361
7362 Fix bug #1362.
7363 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7364 is not an indexed color.
7365 * nsterm.m (free_indexed_color): Add argument checking.
7366 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7367
e7d5ecb3
CY
73682008-11-24 Chong Yidong <cyd@stupidchicken.com>
7369
7370 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7371 Document confirm-after-completion value for
7372 minibuffer-completion-confirm.
7373
c285743c
JR
73742008-11-24 Jason Rumney <jasonr@gnu.org>
7375
7376 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7377 warning.
7378
b0857706
JR
73792008-11-23 Jason Rumney <jasonr@gnu.org>
7380
7381 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7382 restored before returning.
7383
7384 * w32font.c (check_face_name): New function.
7385 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7386 fonts. (Bug#642)
b0857706 7387
ee50ff07
MR
73882008-11-22 Martin Rudalics <rudalics@gmx.at>
7389
7390 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7391 confirm-nonexistent-file-or-buffer in doc-string.
7392
b8ff72fa
SM
73932008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7394
7395 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7396 Fix copy/paste typo. Add checks.
7397
cee53ed4
KH
73982008-11-21 Kenichi Handa <handa@m17n.org>
7399
7400 * coding.c (detect_coding_iso_2022): Reject invalid composition
7401 sequence.
7402 (DECODE_COMPOSITION_START): If the current source is the last
7403 block, and the current composition doesn't end, regard this
7404 sequence as invalid.
7405 (decode_coding_iso_2022): Handle invalid composition sequence.
7406
f6ef1e65
MR
74072008-11-20 Martin Rudalics <rudalics@gmx.at>
7408
7409 * window.c (coordinates_in_window): Don't return
7410 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7411 line when the window is not the rightmost one. (Bug#1372)
7412
e08b1705
MR
74132008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7414
7415 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7416
ad98e89f
EZ
74172008-11-15 Eli Zaretskii <eliz@gnu.org>
7418
7419 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7420 and bright_bg if noninteractive is non-zero.
7421
fb098a4b
CY
74222008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7423
7424 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7425 x_draw_glyph_string_background.
7426
7427 * w32term.c (x_draw_glyph_string): Likewise.
7428
ce952b6e
CY
74292008-11-15 Chong Yidong <cyd@stupidchicken.com>
7430
7431 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7432 the next glyph string once past the overhang width.
7433
7434 * nsterm.m (ns_draw_glyph_string): Likewise.
7435
7436 * w32term.c (x_draw_glyph_string): Likewise.
7437
26ea7079
CY
74382008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7439
7440 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7441 double file close.
7442
1c33c906
MR
74432008-11-14 Martin Rudalics <rudalics@gmx.at>
7444
7445 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7446 dedicated status of window before attempting to display another
7447 buffer in it.
7448
8fc29035
JB
74492008-11-14 Juanma Barranquero <lekktu@gmail.com>
7450
7451 * msdos.c (Fmsdos_long_file_names):
7452 (syms_of_msdos) <dos-unsupported-char-glyph>:
7453 * dosfns.c (Fint86): Fix typos in docstrings.
7454
55fb4286
EZ
74552008-11-14 Eli Zaretskii <eliz@gnu.org>
7456
7457 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7458
3fda0315
KY
74592008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7460
7461 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7462
7e849c17
CY
74632008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7464
7465 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7466
7467 * frame.h: Negative alpha means "don't touch".
7468
7469 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7470
7471 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7472
b9fd67bd
DN
74732008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7474
7475 * hftctl.c:
7476 * chpdef.h:
7477 * acldef.h: Remove files used only for systems no longer supported.
7478
7479 * Makefile.in: Fix .o alphabetical ordering.
7480 (hftctl.o): Remove dependency, file removed.
7481 (keymap.o, print.o): Depend on charset.h.
7482
d5998e03
KH
74832008-11-10 Kenichi Handa <handa@m17n.org>
7484
2ae37cf0 7485 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7486
be70e183
CY
74872008-11-08 Chong Yidong <cyd@stupidchicken.com>
7488
7489 * dired.c (file_name_completion): If completion_ignore_case is
7490 enabled, ignore case when checking completion-regexp-list.
7491
7cf94eac
EZ
74922008-11-08 Eli Zaretskii <eliz@gnu.org>
7493
7494 * vm-limit.c (get_lim_data): Fix last change.
7495
ee107a89
KH
74962008-11-08 Kenichi Handa <handa@m17n.org>
7497
7498 * character.c (Fget_byte): New function.
7499 (syms_of_character): Defsubr Fget_byte.
7500
5fd15622
CY
75012008-11-07 Chong Yidong <cyd@stupidchicken.com>
7502
7503 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7504 cursor position is valid after scrolling.
7505
13d62fad
JB
75062008-11-06 Juanma Barranquero <lekktu@gmail.com>
7507
7508 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7509
a1dd2936
GM
75102008-11-06 Glenn Morris <rgm@gnu.org>
7511
7512 * xterm.c (handle_one_xevent): Don't let popup menus cause
7513 mouse-autoselect-window related window switching. (Bug#1261)
7514
860cd236
CY
75152008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7516
7517 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7518
653a3150
AS
75192008-11-04 Andreas Schwab <schwab@suse.de>
7520
7521 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7522
870f5cac
CY
75232008-11-03 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * xfns.c (Fx_wm_set_size_hint): New function.
7526
1e02f3cb
MR
75272008-11-03 Martin Rudalics <rudalics@gmx.at>
7528
7529 * textprop.c (Fprevious_single_char_property_change): Return 0
7530 when there's no change in a string. (Bug#1301)
7531
e630dfc6
MR
75322008-11-02 Martin Rudalics <rudalics@gmx.at>
7533
7534 * frame.c (do_switch_frame): New argument NORECORD passed to
7535 Fselect_window.
7536 (Fselect_frame): New argument NORECORD passed to
7537 do_switch_frame.
7538 (Fset_frame_selected_window): New argument NORECORD passed to
7539 Fselect_frame.
7540 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7541 in call of do_switch_frame.
7542 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7543 Handle NORECORD argument in call of Fselect_frame.
7544 * lisp.h (do_switch_frame, Fselect_frame)
7545 (Fset_frame_selected_window): Adjust declarations.
7546 * window.c (select_frame_norecord): New function.
7547 (run_window_configuration_change_hook): Use it and call
7548 Fselect_frame with NORECORD set.
7549 (Fselect_window): Pass NORECORD to Fselect_frame.
7550 (Fset_window_configuration): Handle NORECORD argument in call of
7551 do_switch_frame.
7552 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7553 Fset_frame_selected_window.
7554 * keyboard.c (command_loop_1): Handle NORECORD in call of
7555 Fselect_frame (currently ifdefd).
7556
9020b223
GM
75572008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7558
7559 * emacs.c (USAGE2): Untabify.
7560
793ffee8
SM
75612008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7562
7563 * composite.c (fill_gstring_header): Fix copy/paste typo.
7564
ab6d1131
MR
75652008-10-31 Martin Rudalics <rudalics@gmx.at>
7566
7567 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7568 (Fother_window): Rename argument and rewrite doc-string.
7569 (select_window_norecord): Fix return value. (Bug#1276)
7570
601a9cf1
JB
75712008-10-30 Juanma Barranquero <lekktu@gmail.com>
7572
7573 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7574 new frames overriding foreground for tooltips. Based on similar patch
7575 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7576
813b0652
CY
75772008-10-29 Chong Yidong <cyd@stupidchicken.com>
7578
7579 * emacs.c (Fdaemon_initialized): Initialize nfd.
7580
4414f58f
MR
75812008-10-29 Martin Rudalics <rudalics@gmx.at>
7582
7583 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7584 (Fwindow_text_height): Clarify doc-strings.
7585 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7586 doc-string of window-scroll-functions.
7587
ecdcaa09
RS
75882008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7589
7590 * category.c (syms_of_category): Fix typo in docstring.
7591
23fe745a
JB
75922008-10-28 Juanma Barranquero <lekktu@gmail.com>
7593
7594 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7595 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7596 Fix typos in docstrings.
7597
ff808935
DN
75982008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7599
7600 * emacs.c (daemon_pipe): Make non-static.
7601 (IS_DAEMON): Move definition ...
7602 * lisp.h (IS_DAEMON): ... here.
7603 (daemon_pipe): Declare.
7604 (is_daemon): Remove.
7605 * dispnew.c (init_display): Use IS_DAEMON.
7606
fc012771
SM
76072008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7608
7609 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7610 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7611
7612 * emacs.c (is_daemon): Remove.
7613 (main): Don't set is_daemon.
7614 (IS_DAEMON): New macro.
7615 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7616 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7617 parent exits.
7618 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7619
d8bdbe6f
CY
76202008-10-27 Chong Yidong <cyd@stupidchicken.com>
7621
d1a072bf
CY
7622 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7623 over-sized glyph, draw it with the default glyph width.
7624
e2e325aa
CY
7625 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7626 glyph, draw it with the default glyph width.
7627
7628 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7629 glyph, draw it with the default glyph width.
7630
d8bdbe6f
CY
7631 * xdisp.c (try_scrolling): When computing the distance from the
7632 scroll margin to PT, try moving some distance past the window
7633 bottom before giving up.
7634
7bfac547
MR
76352008-10-27 Martin Rudalics <rudalics@gmx.at>
7636
7637 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7638 (Fset_window_buffer): Explain in doc-string that a window can be
7639 "strongly" dedicated to its buffer.
7640
4ff029f6
DN
76412008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7642
7643 * emacs.c (daemon_name): New variable.
7644 (main): Deal with --daemon=SERVER_NAME.
7645 (Fdaemonp): Return a name if one was passed to --daemon.
7646
5790ef40
DN
76472008-10-26 Romain Francoise <romain@orebokech.com>
7648
f9bd0df9 7649 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7650 (main): Create a pipe before forking, make the parent exit only after
7651 the child has closed its end of the pipe. Move closing the
7652 descriptors ...
7653 (Fdaemon_initialized): ... here. New function.
7654
f5385255
SM
76552008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7656
4d632321
SM
7657 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7658 the previous unoptimized table.
7659
f5385255
SM
7660 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7661 the distinction between non-nil and non-t value of `dedicated'.
7662
6c56a0f3
CY
76632008-10-25 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7666 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7667
fec89261
MR
76682008-10-25 Martin Rudalics <rudalics@gmx.at>
7669
7670 * window.c (Fget_buffer_window, Fdelete_windows_on)
7671 (Freplace_buffer_in_windows): Make buffer argument optional and
7672 rename to buffer_or_name.
7673
34fcddd0
CY
76742008-10-24 Chong Yidong <cyd@stupidchicken.com>
7675
f5385255
SM
7676 * xdisp.c (handle_single_display_spec, handle_display_prop):
7677 Undo 2005-05-16 change.
34fcddd0
CY
7678 (handle_stop): Pop iterator if it's loaded with an empty string.
7679 (get_overlay_strings_1): Don't save iterator if it's loaded with
7680 an empty string (bug#1201).
7681
064766f2
KH
76822008-10-24 Kenichi Handa <handa@m17n.org>
7683
7684 * ftfont.c (ftfont_otf_features): Fix previous change.
7685 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7686 calling ftfont_otf_features.
7687
f9bd0df9 76882008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7689
7690 * font.c (font_match_p): Fix for the case that a vector of
7691 characters is in script-representative-chars.
7692
1dae9197
MA
76932008-10-24 Michael Albinus <michael.albinus@gmx.de>
7694
7695 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7696 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7697 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7698 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7699 macro. (Bug#1186)
1dae9197 7700
f9bd0df9 77012008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7702
7703 * s/sol2-10.h: New file.
7704
878a4584
JB
77052008-10-23 Juanma Barranquero <lekktu@gmail.com>
7706
7707 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7708 poor beast has survived 9+ years and the jump from xterm.c!).
7709
cd265ca6
MR
77102008-10-23 Martin Rudalics <rudalics@gmx.at>
7711
7712 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7713 Reword doc-string.
f5385255 7714 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7715
472a4dc9
JB
77162008-10-23 Juanma Barranquero <lekktu@gmail.com>
7717
7718 * character.c (syms_of_character) <script-representative-chars>:
7719 <unicode-category-table>: Doc fixes.
7720
159bd5a2
NF
77212008-10-23 Noah Friedman <friedman@splode.com>
7722
7723 * coding.c (make_conversion_work_buffer): Check that
7724 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7725 Fget_buffer_create.
7726
49f9c344
KH
77272008-10-23 Kenichi Handa <handa@m17n.org>
7728
7729 * font.c (font_add_log): Check the values of extra properties.
7730
12bb3111
MR
77312008-10-22 Martin Rudalics <rudalics@gmx.at>
7732
7733 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7734 Reword doc-string.
7735 (Fset_window_parameter): Use NILP.
7736 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7737 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7738
bbeb4e99
JB
77392008-10-22 Juanma Barranquero <lekktu@gmail.com>
7740
7741 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7742
77432008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7744
7745 * nsfns.m (ns_appkit_version): New function.
7746 (x-server-version): Use it.
7747 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7748 (x-server-vendor): Don't check_ns().
7749
7750 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7751
a9b555d3
JB
77522008-10-22 Juanma Barranquero <lekktu@gmail.com>
7753
7754 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7755 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7756
4626499f
KH
77572008-10-22 Kenichi Handa <handa@m17n.org>
7758
e3681952
KH
7759 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7760 scripts.
7761
4626499f
KH
7762 * category.c (word_boundary_p): Check scripts instead of charset.
7763 Handle nil value in word-separating-categories and
7764 word-combining-categories.
7765 (syms_of_category): Fix docstrings of word-separating-categories
7766 and word-combining-categories.
7767
1560f91a
EZ
77682008-10-21 Eli Zaretskii <eliz@gnu.org>
7769
7770 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7771 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7772
f4668441
MR
77732008-10-21 Martin Rudalics <rudalics@gmx.at>
7774
7775 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7776 Rename arg "buffer" to "buffer_or_name".
7777 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7778 it optional.
7779 (no_switch_window): Remove since the return value is not used.
a9b555d3 7780 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7781 Consider window as dedicated when Fwindow_dedicated_p returns a
7782 non-nil value.
7783 * lisp.h: Remove prototype for no_switch_window.
7784
fd75ddb2
JD
77852008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7786
7787 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7788 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7789
07295713
KH
77902008-10-21 Kenichi Handa <handa@m17n.org>
7791
7792 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7793 check Vlatin_extra_code_table.
7794
712adc82
EZ
77952008-10-20 Eli Zaretskii <eliz@gnu.org>
7796
7797 * fileio.c (Fset_file_modes): Doc fix.
7798
f549eb0b
MA
77992008-10-19 Michael Albinus <michael.albinus@gmx.de>
7800
7801 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7802 in arrays.
7803
aac0c6e3
MR
78042008-10-19 Martin Rudalics <rudalics@gmx.at>
7805
7806 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7807 Mention kill-buffer in doc-string.
7808 (Fset_window_buffer): Reinsert tem check removed in last commit.
7809 (Fenlarge_window, Fshrink_window): Have argument names and
7810 doc-string follow Elisp manual more closely.
7811
78122008-10-18 Eli Zaretskii <eliz@gnu.org>
7813
7814 * fileio.c (Fset_file_modes): Doc fix.
7815
78162008-10-18 Martin Rudalics <rudalics@gmx.at>
7817
7818 * window.c (Fwindow_width, Fset_window_start)
7819 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7820 (Fdelete_windows_on, Freplace_buffer_in_windows):
7821 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7822 (Fwindow_dedicated_p): Make window argument optional.
7823 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7824 (Fset_window_buffer): Respect any non-nil dedicated value for
7825 window. Rename "buffer" argument to "buffer_or_name".
7826
78272008-10-18 Ulrich Mueller <ulm@gentoo.org>
7828
7829 * m/sh3.h: New file, machine description for SuperH.
7830
78312008-10-17 Martin Rudalics <rudalics@gmx.at>
7832
7833 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7834
78352008-10-17 Kenichi Handa <handa@m17n.org>
7836
7837 * ftfont.c (ftfont_otf_features): Fix indexing
7838 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7839
78402008-10-16 Magnus Henoch <mange@freemail.hu>
7841
7842 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7843 (Fdbus_call_method_asynchronously): Ditto.
7844 This change makes C-h f display the argument list.
7845
78462008-10-16 Chong Yidong <cyd@stupidchicken.com>
7847
7848 * fileio.c (Fexpand_file_name): Doc fix.
7849
7850 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7851 of :foreground and :background equivalent to unspecified (20.x
7852 compatibility).
7853
78542008-10-15 Eli Zaretskii <eliz@gnu.org>
7855
7856 * buffer.c (syms_of_buffer): Doc fix.
7857
78582008-10-14 Kenichi Handa <handa@m17n.org>
7859
7860 * font.c (font_clear_prop): When clearing font width, clear the
7861 average width field too.
7862
78632008-10-12 Andreas Schwab <schwab@suse.de>
7864
7865 * ftfont.c (ftfont_shape_by_flt): Make static.
7866 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7867
7868 * font.c: Don't include <m17n-flt.h>.
7869
78702008-10-10 Eli Zaretskii <eliz@gnu.org>
7871
7872 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7873
78742008-10-09 Eli Zaretskii <eliz@gnu.org>
7875
7876 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7877 away code.
7878
78792008-10-09 Chong Yidong <cyd@stupidchicken.com>
7880
7881 * dispnew.c (update_text_area): Avoid looping due to large glyph
7882 overhangs (bug#1070).
7883
78842008-10-09 Kenichi Handa <handa@m17n.org>
7885
7886 * fontset.c (face_for_char): If face->fontset is negative, just
7887 return ascii_face.
7888
f5385255
SM
7889 * font.c (font_delete_unmatched): Fix previous change.
7890 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7891
78922008-10-09 Martin Rudalics <rudalics@gmx.at>
7893
7894 * frame.c (Fraise_frame): On text-only terminals select frame in
7895 order to make it visible. (Bug#1061)
7896
78972008-10-08 Chong Yidong <cyd@stupidchicken.com>
7898
7899 * fontset.c (fontset_find_font): Check frame validity.
7900
79012008-10-07 Chong Yidong <cyd@stupidchicken.com>
7902
a9b555d3 7903 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7904 (xg_display_close): Allow Emacs to close all displays (bug#985).
7905
79062008-10-06 Andreas Schwab <schwab@suse.de>
7907
f5385255 7908 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7909
79102008-10-06 Chong Yidong <cyd@stupidchicken.com>
7911
f5385255 7912 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7913
a9b555d3 7914 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7915
7916 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7917 during initialization.
7918
79192008-10-04 Eli Zaretskii <eliz@gnu.org>
7920
7921 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7922 whole thing on MSDOS frames as well as on a TTY.
7923
7924 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7925 well as for TTY.
7926 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7927 well as on a TTY.
7928
7929 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7930 as well as for TTY.
7931
7932 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7933
7934 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7935 MSDOS frames as well.
7936
79372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7938
7939 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7940 correct arguments.
b71ac3dd 7941 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7942
79432008-10-03 Glenn Morris <rgm@gnu.org>
7944
7945 * emacs.c (USAGE1): Add --daemon.
7946
79472008-10-02 Eli Zaretskii <eliz@gnu.org>
7948
7949 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7950 100, so it's in percents as advertised.
7951
79522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7953
7954 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7955 (ns_output.current_cursor, ns_output.desired_cursor)
7956 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7957 (FRAME_NEW_CURSOR_COLOR): Remove.
7958
7959 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7960 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7961 enumeration (HOLLOW_BOX_CURSOR, etc.).
7962
7963 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7964 (draw_window_cursor): Simplify code.
f5385255
SM
7965 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7966 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7967 updates manually.
a9b555d3
JB
7968 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7969 Use core Emacs cursor types.
aac0c6e3 7970
b8ff72fa 7971 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7972
79732008-10-02 Martin Rudalics <rudalics@gmx.at>
7974
7975 * process.c (Faccept_process_output): Fix doc-string.
7976
79772008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7978
7979 * gmalloc.c (__sbrk): Also define for uClibc.
7980
7981 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7982 for uClibc.
7983
79842008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7985
7986 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7987 styles.
7988 (nsfont_open): Reenable the cache.
7989
79902008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7991
7992 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7993 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7994
79952008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7996
7997 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7998 a suspended terminal.
7999
80002008-09-30 Michael Albinus <michael.albinus@gmx.de>
8001
8002 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8003
80042008-09-30 Eli Zaretskii <eliz@gnu.org>
8005
8006 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8007
80082008-09-30 Chong Yidong <cyd@stupidchicken.com>
8009
8010 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8011 in a continued line coincides with a line beginning.
8012
80132008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8014
8015 * nsfont.m (nsfont_trait_distance): Fix bug.
8016 (nsfont_list): Return a list rather than a vector (syncs with Handa
8017 changes of 2008-05-14).
8018 (nsfont_open): Improve logging.
8019
80202008-09-29 Andreas Schwab <schwab@suse.de>
8021
8022 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8023
80242008-09-28 Martin Rudalics <rudalics@gmx.at>
8025
8026 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8027 name as char-resolve-modifiers.
8028 Reported by: Markus Triska <markus.triska@gmx.at>
8029
80302008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8031
8032 * dispnew.c (init_display): Return earlier when running as a daemon.
8033
80342008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8035
8036 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8037
80382008-09-27 Eli Zaretskii <eliz@gnu.org>
8039
8040 * composite.c (Fcomposition_get_gstring)
8041 (Fcompose_region_internal, Fcompose_string_internal)
8042 (Ffind_composition_internal): Doc fix.
8043 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8044 (syms_of_composite) <auto-composition-function>: Doc fix.
8045 (syms_of_composite) <composition-function-table>: Doc fix.
8046
80472008-09-25 Chong Yidong <cyd@stupidchicken.com>
8048
8049 * search.c (wordify): New argument for lax word-ends.
8050 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8051
80522008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8053
8054 * lisp.h (is_daemon): Declare.
8055 * dispnew.c (init_display): Do not try to initialize the terminal
8056 when running as a daemon.
8057
80582008-09-22 Chong Yidong <cyd@stupidchicken.com>
8059
8060 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8061 x_display_pixel_height.
8062
80632008-09-22 Martin Rudalics <rudalics@gmx.at>
8064
8065 * undo.c (record_point): Don't call Fundo_boundary for first
8066 change. (Bug#731)
8067
80682008-09-22 Juanma Barranquero <lekktu@gmail.com>
8069
8070 * emacs.c (Fdaemonp): Doc fix.
8071
80722008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8073
8074 * emacs.c (main): Place #ifdef in the proper place.
8075
80762008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8077
8078 * emacs.c (standard_args): Add --daemon.
8079 (main): Disconnect from the terminal when --daemon is passed.
8080 (is_daemon): New variable.
8081 (Fdaemonp): New function.
8082 (syms_of_emacs): Defsubr it.
8083
80842008-09-20 Chong Yidong <cyd@stupidchicken.com>
8085
8086 * xdisp.c (get_next_display_element): Handle string display
8087 correctly when checking for the end of a box run.
8088
80892008-09-20 Glenn Morris <rgm@gnu.org>
8090
8091 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8092 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8093 (Frename_file): Avoid copying to trash if a rename involves
8094 a delete. (Bug#964).
8095
80962008-09-20 Eli Zaretskii <eliz@gnu.org>
8097
8098 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8099 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8100 frames as well as termcap frames.
8101 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8102 get_named_tty.
8103
81042008-09-19 Eli Zaretskii <eliz@gnu.org>
8105
8106 * process.c (procfs_system_process_attributes): Fix cmdline in
8107 case /proc/PID/cmdline is empty.
8108
8109 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8110 x_display_pixel_height.
8111
81122008-09-19 Juanma Barranquero <lekktu@gmail.com>
8113
8114 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8115
8116 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8117 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8118
81192008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8120
8121 * dispextern.h (struct it): Move line_wrap away from the middle of
8122 bitfields. Move voffset in struct iterator_stack_entry after the
8123 bitfields. Move tab_width near after another short.
8124
81252008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8126
8127 * frame.h (struct frame): Move alpha from the middle of bitfields.
8128
8129 * window.h (struct window): Move frozen_window_start_p after the
8130 rest of the bitfields to reduce padding.
8131
81322008-09-18 Chong Yidong <cyd@stupidchicken.com>
8133
8134 * xterm.h (x_display_info): Remove `height' and `width' members.
8135
8136 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8137
8138 * w32term.h (w32_display_info): Remove `height', `width',
8139 `height_in', and `width_in' members.
8140
b8ff72fa
SM
8141 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8142 New functions.
aac0c6e3
MR
8143 (x_calc_absolute_position): Use them.
8144 (x_term_init): Omit removed `height' and `width' members.
8145
b8ff72fa
SM
8146 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8147 New functions.
aac0c6e3
MR
8148 (w32_read_socket, x_calc_absolute_position): Use them.
8149 (w32_initialize_display_info, w32_term_init): Omit removed members
8150 of w32_display_info.
8151
b8ff72fa
SM
8152 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8153 New functions.
8154 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8155
b8ff72fa
SM
8156 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8157 New functions.
aac0c6e3
MR
8158 (x_calc_absolute_position): Use them.
8159 (x_term_init): Omit removed `height' and `width' members.
8160
8161 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8162 (compute_tip_xy):
8163 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8164 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8165 x_display_pixel_width.
8166
81672008-09-18 Kenichi Handa <handa@m17n.org>
8168
8169 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8170 (composition_compute_stop_pos): Fix handling of static composition.
8171 (Fcomposition_get_gstring): Check FROM and TO at first.
8172
81732008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8174
46e722a9 8175 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8176 mixup (YAILOM).
8177
81782008-09-17 Chong Yidong <cyd@stupidchicken.com>
8179
8180 * indent.c (Fvertical_motion): Use position reported by iterator
8181 instead of PT for determining screen motion (bug#943).
8182
81832008-09-17 Romain Francoise <romain@orebokech.com>
8184
8185 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8186
81872008-09-17 Kenichi Handa <handa@m17n.org>
8188
8189 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8190
8191 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8192 if necessary.
8193
81942008-09-16 Kenichi Handa <handa@m17n.org>
8195
8196 * coding.c (make_conversion_work_buffer): Avoid calling
8197 Fget_buffer_create if it is not necessary.
8198
81992008-09-15 Martin Rudalics <rudalics@gmx.at>
8200
8201 * window.c (Fselect_window): Don't update window_select_count and
8202 use_time when norecord is not nil.
8203
82042008-09-14 Kenichi Handa <handa@m17n.org>
8205
8206 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8207 specpdl_ptr.
8208
82092008-09-12 Kenichi Handa <handa@m17n.org>
8210
8211 * indent.c (scan_for_column): Don't handle automatic composition
8212 if the current buffer is not associated with a window.
8213
8214 * composite.c (composition_reseat_it): If the current buffer is
8215 not associated with a window, ignore the automatic composition.
8216 (find_automatic_composition): Likewise.
8217
82182008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8219
8220 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8221 (Fgpm_mouse_stop): Use it.
8222 * termhooks.h (close_gpm): Declare.
8223 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8224 connection if Gpm_GetEvent fails.
8225
8226 * window.c (set_window_buffer): Always preserve current-buffer.
8227
82282008-09-12 Glenn Morris <rgm@gnu.org>
8229
8230 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8231
82322008-09-11 Glenn Morris <rgm@gnu.org>
8233
8234 * charset.c (charset-map-path): Doc fix.
8235
82362008-09-10 Kenichi Handa <handa@m17n.org>
8237
8238 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8239
8240 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8241 compose a grapheme cluster with the preceding base glyph.
8242
8243 * composite.c (composition_compute_stop_pos): Fix previous change.
8244 Reset cmp_it->id to -1 at first.
8245
82462008-09-10 Glenn Morris <rgm@gnu.org>
8247
8248 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8249
82502008-09-09 Chong Yidong <cyd@stupidchicken.com>
8251
8252 * keyboard.c (read_key_sequence): Reapply translation maps when
8253 switching keyboards.
8254
82552008-09-09 Kenichi Handa <handa@m17n.org>
8256
8257 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8258 characters.
8259
8260 * composite.c (FORWARD_CHAR): Fix calculation
8261 of (POSITION).pos_byte.
8262 (composition_compute_stop_pos): Limit the search of composition to
8263 at most 500 characters ahead. If we reach the limit or find a
8264 newline, set cmp_it->ch to -2 and return 0.
8265 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8266
82672008-09-08 Kenichi Handa <handa@m17n.org>
8268
8269 * indent.c (Fvertical_motion): Be sure to set
8270 it_overshoot_expected if it.cmp_it.id is non-negative.
8271
82722008-09-07 Andreas Schwab <schwab@suse.de>
8273
8274 * callproc.c (Fcall_process): Don't hold references to string data
8275 across garbage collection. Move initialisation of new_argv down
8276 to avoid compiler bug.
8277
82782008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8279
8280 * process.c (Fsystem_process_attributes): Doc fix.
8281
82822008-09-07 Chong Yidong <cyd@stupidchicken.com>
8283
8284 * callproc.c (Fcall_process): Canonicalize current directory name.
8285
8286 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8287 iterator advances to the next line if the current line ends in a
8288 continued tab.
8289
82902008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8291
8292 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8293 member to point to cmp_from.
8294
8295 * xdisp.c: Doc fix for references to gidx data member.
8296
82972008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8298
8299 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8300
83012008-09-07 Kenichi Handa <handa@m17n.org>
8302
8303 * composite.c (FORWARD_CHAR): Check STOP after
8304 incrementing (POSITION).pos.
8305
83062008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8307
8308 * process.c (Fsystem_process_attributes): Doc fix.
8309
83102008-09-06 Chong Yidong <cyd@stupidchicken.com>
8311
8312 * keyboard.c (Ftop_level): Doc fix.
8313
83142008-09-06 Eli Zaretskii <eliz@gnu.org>
8315
8316 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8317 minibuffer, don't let lower part of menu invade the echo area.
8318
8319 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8320 "char *q" to access menu text and advance through it. Revert the
8321 change that displayed ">" instead of ASCII character 0x10.
8322
83232008-09-05 Eli Zaretskii <eliz@gnu.org>
8324
8325 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8326 toggle boxes and radio buttons on MS-DOS as well.
8327
83282008-09-05 Kenichi Handa <handa@m17n.org>
8329
8330 * composite.c (autocmp_chars): Check lookback count.
8331 (composition_compute_stop_pos): Set cmp_it->lookback.
8332 (composition_reseat_it): Check lookback count.
8333 (struct position_record): New struct.
8334 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8335 (find_automatic_composition): New function.
8336 (composition_adjust_point): Use find_automatic_composition.
8337
8338 * dispextern.h (struct composition_it): New member lookback.
8339
83402008-09-02 Chong Yidong <cyd@stupidchicken.com>
8341
8342 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8343 if moving by a single line.
8344
83452008-09-02 Andreas Schwab <schwab@suse.de>
8346
8347 * xterm.c (x_delete_display): Fix merge error.
8348
8349 * fileio.c (Fexpand_file_name): Remove unused variables.
8350
83512008-09-02 Eli Zaretskii <eliz@gnu.org>
8352
8353 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8354 storage on all platforms, not just on DOS_NT.
8355
83562008-09-02 Jason Rumney <jasonr@gnu.org>
8357
b8ff72fa
SM
8358 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8359 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8360
83612008-09-01 Chong Yidong <cyd@stupidchicken.com>
8362
8363 * xfaces.c (Finternal_set_alternative_font_family_alist)
8364 (Finternal_set_alternative_font_registry_alist): Properly copy
8365 entire alist structure.
8366
83672008-09-01 Kenichi Handa <handa@m17n.org>
8368
d66c0241 8369 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8370 representative chars of the script is a vector.
d66c0241
JB
8371 (ftfont_list): Handle the case where the representative chars of
8372 the script is a vector.
aac0c6e3
MR
8373
8374 * character.c (syms_of_character): Docstring of
8375 script-representative-chars fixed.
8376
83772008-08-31 Eli Zaretskii <eliz@gnu.org>
8378
8379 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8380 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8381 the menu. Allocate larger buffer for `text', to account for
8382 possible ^C characters.
8383
83842008-08-31 Martin Rudalics <rudalics@gmx.at>
8385
8386 * xdisp.c (prepare_menu_bars): Don't call
8387 Vwindow_size_change_functions with arg Qt.
8388
83892008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8390
8391 * font.h (font_range):
8392 * fileio.c (report_file_error):
46e722a9
SM
8393 * composite.c (composition_update_it): Yet another int/Lisp_Object
8394 mixup (YAILOM).
aac0c6e3
MR
8395
83962008-08-30 Glenn Morris <rgm@gnu.org>
8397
8398 * data.c (Fmake_variable_frame_local): Doc fix.
8399
8400 * frame.c (Fmodify_frame_parameters): Doc fix.
8401
84022008-08-30 Eli Zaretskii <eliz@gnu.org>
8403
8404 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8405 needed by GetTokenInformation.
8406 (w32_system_process_attributes): Check return values of all system
8407 APIs.
8408
8409 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8410 only when the state changes.
8411 (IT_update_begin, IT_update_end): Add termscript trace.
8412
8413 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8414 clipboard is unavailable. Set dst to NULL if it doesn't point to
8415 malloc'ed data.
8416 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8417 passing random values to xfree.
8418
8419 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8420 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8421
84222008-08-29 Jason Rumney <jasonr@gnu.org>
8423
8424 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8425
84262008-08-29 Eli Zaretskii <eliz@gnu.org>
8427
8428 * composite.c (fill_gstring_body): Avoid compiler warnings.
8429
8430 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8431 LGLYPH_SET_CODE to avoid compiler warnings.
8432
2ae37cf0 8433 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8434
8435 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8436
8437 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8438 LGLYPH_SET_CODE.
8439
84402008-08-29 Kenichi Handa <handa@m17n.org>
8441
8442 * fileio.c (report_file_error): Don't downcase the first character
8443 of errstring if it is still unibyte.
8444
84452008-08-29 Kenichi Handa <handa@m17n.org>
8446
8447 These changes are to re-implement the automatic composition so
8448 that it doesn't use text properties.
8449
8450 * Makefile.in (ftfont.o): Depend on composite.h.
8451 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8452
8453 * character.h (Vunicode_category_table): Extern it.
8454
8455 * character.c (Vunicode_category_table): New variable.
8456 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8457
8458 * chartab.c (optimize_sub_char_table): Perform more greedy
8459 optimization.
8460
b8ff72fa
SM
8461 * composite.h (enum composition_method):
8462 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8463 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8464 (Vcomposition_function_table): Extern it.
8465 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8466 (composition_gstring_put_cache, composition_gstring_from_id)
8467 (composition_gstring_p, composition_gstring_width)
8468 (composition_compute_stop_pos, composition_reseat_it)
8469 (composition_update_it, composition_adjust_point): Extern them.
8470 (Fcomposition_get_gstring): EXFUN it.
8471
d66c0241 8472 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8473 (Vcomposition_function_table)
8474 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8475 (gstring_hash_table, gstring_work, gstring_work_headers):
8476 New variables.
aac0c6e3
MR
8477 (gstring_lookup_cache, composition_gstring_put_cache)
8478 (composition_gstring_from_id, composition_gstring_p)
8479 (composition_gstring_width, fill_gstring_header)
8480 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8481 (composition_reseat_it, composition_update_it)
b8ff72fa 8482 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8483 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8484 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8485 Defsubr compostion_get_gstring.
8486
8487 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8488 cmp_id.
8489 (struct glyph_string): Delete the member gidx. New members
8490 cmp_id, cmp_from, and cmp_to.
8491 (enum it_method): Delete GET_FROM_COMPOSITION.
8492 (struct composition_it): New struct.
8493 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8494 Delete c, len, cmp_id, cmp_len in u.comp.
8495
8496 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8497 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8498 (enum lglyph_indices): Likewise.
b8ff72fa 8499 (font_range): Adjust extern.
aac0c6e3
MR
8500 (font_fill_lglyph_metrics): Extern it.
8501
8502 * font.c (QCf): New variable.
8503 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8504 (font_prepare_composition): Delete this function.
8505 (font_range): Type and arguments changed.
8506 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8507 (font_fill_lglyph_metrics): New function.
b8ff72fa 8508 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8509 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8510 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8511 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8512
8513 * fontset.h (font_for_char): Extern it.
8514
8515 * fontset.c (font_for_char): New function.
8516
8517 * ftfont.c: Include composite.h.
8518 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8519 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8520
8521 * indent.c: Include composite.h and dispextern.h.
8522 (check_composition): Delete this function.
8523 (scan_for_column): Handle composition by
8524 composition_compute_stop_pos, composition_reseat_it, and
8525 composition_update_it.
8526 (compute_motion): Likewise.
8527 (Fvertical_motion): Fix checking of composition.
8528
8529 * keyboard.c (adjust_point_for_property): Check composition by
8530 composition_adjust_point.
8531
b8ff72fa 8532 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8533 struct glyph_string.
8534
b8ff72fa
SM
8535 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8536 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8537 struct glyph.
8538 (produce_composite_glyph): Likewise.
8539
b8ff72fa
SM
8540 * w32term.c (x_draw_composite_glyph_string_foreground):
8541 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8542 (x_draw_glyph_string): Likewise.
8543
8544 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8545 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8546
8547 * xdisp.c: Include font.h.
8548 (it_props): Delete the entry for Qauto_composed.
8549 (init_iterator): Initialize it->cmp_it.id to -1.
8550 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8551 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8552 (handle_auto_composed_prop): Delete it.
8553 (handle_composition_prop): Handle only static composition.
8554 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8555 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8556 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8557 (pop_it): Likewise.
8558 (get_next_element): Delete next_element_from_composition.
8559 (CHAR_COMPOSED_P): New macro.
8560 (get_next_display_element): For automatic composition, get a face
8561 from the font in the glyph-string.
8562 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8563 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8564 (next_element_from_string): Check if the character at the current
8565 position is composed by CHAR_COMPOSED_P.
8566 (next_element_from_buffer): Likewise.
d66c0241
JB
8567 (next_element_from_composition): Adjust for the change of struct it.
8568 Update it->cmp_it.
b8ff72fa
SM
8569 (dump_glyph): Adjust for the change of struct glyph.
8570 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8571 it and struct glyph. Don't handle automatic composition here.
8572 (fill_gstring_glyph_string): New function.
8573 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8574 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8575 (BUILD_GSTRING_GLYPH_STRING): New macro.
8576 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8577 automatic composition.
b8ff72fa 8578 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8579 struct glyph.
b8ff72fa 8580 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8581
b8ff72fa 8582 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8583 the change of struct glyph_string.
8584 (x_draw_glyph_string): Likewise.
8585
85862008-08-29 Glenn Morris <rgm@gnu.org>
8587
8588 * buffer.c (word-wrap): Doc fix.
8589 * xdisp.c (truncate-partial-width-windows): Doc fix.
8590 Increase default to 50.
8591
85922008-08-29 Chong Yidong <cyd@stupidchicken.com>
8593
8594 * xdisp.c (update_tool_bar_unwind): New function.
8595 (update_tool_bar): Temporarily set selected frame before building
8596 tool-bar items.
8597
85982008-08-28 Michael Albinus <michael.albinus@gmx.de>
8599
8600 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8601 snprintf, respectively.
8602 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8603
86042008-08-28 Chong Yidong <cyd@stupidchicken.com>
8605
8606 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8607 LDFLAGS to GNUstep CC invocation.
8608
86092008-08-27 Chong Yidong <cyd@stupidchicken.com>
8610
8611 * indent.c (Fvertical_motion): Revert last change. Handle the
8612 general case where we are moving forward, and PT spans multiple
8613 screen lines.
8614
8615 * eval.c (find_handler_clause): Temporarily increase
8616 max-lisp-eval-depth while printing the backtrace buffer, to
8617 guarantee that help-mode code can run.
8618
86192008-08-27 Eli Zaretskii <eliz@gnu.org>
8620
8621 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8622 colors under -rv.
8623 (IT_set_frame_parameters): Don't swap foreground and background
8624 colors if `(reverse . t)' is present in the frame properties.
8625 (internal_terminal_init): Call init_frame_faces only for the
8626 initial frame.
8627
86282008-08-27 Andreas Schwab <schwab@suse.de>
8629
8630 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8631
86322008-08-27 Andreas Schwab <schwab@suse.de>
8633
8634 * search.c (search_buffer): Set char_base to zero only at the end.
8635
86362008-08-27 Kenichi Handa <handa@m17n.org>
8637
b8ff72fa 8638 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8639
86402008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8641
8642 * xterm.c (x_term_init): Temporarily hide the partially
8643 initialized terminal while calling vendor-specific-keysyms.
8644
86452008-08-26 Eli Zaretskii <eliz@gnu.org>
8646
8647 * msdos.c (internal_terminal_init): Most initializations done only
8648 once, especially initial_screen_colors[] and termscript open.
8649
86502008-08-26 Chong Yidong <cyd@stupidchicken.com>
8651
8652 * eval.c (Fcondition_case): Doc fix.
8653
8654 * widgetprv.h (EmacsFramePart): Change font member to the new font
8655 struct.
8656
8657 * widget.c: Include character.h and font.h for XSETFONT.
8658 (setup_frame_gcs): Compute X font id from font struct, just once.
8659
86602008-08-26 Eli Zaretskii <eliz@gnu.org>
8661
8662 * term.c (get_named_tty): Fix last change.
8663
86642008-08-26 Chong Yidong <cyd@stupidchicken.com>
8665
8666 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8667 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8668
86692008-08-25 Eli Zaretskii <eliz@gnu.org>
8670
8671 * frame.c (do_switch_frame): Mark previously displayed frame as
8672 obscured for FRAME_MSDOS_P frames as well.
8673
86742008-08-24 Eli Zaretskii <eliz@gnu.org>
8675
8676 * frame.c (make_terminal_frame): Initialize f->terminal,
8677 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8678 Set the top frame to newly created frame.
8679 (Fmake_terminal_frame): Reuse the_only_display_info.
8680
8681 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8682 estimating available memory.
8683
b97439ce 86842008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8685
8686 * nsterm.m (ns_draw_window_cursor): Don't call
8687 NSDisableScreenUpdates and NSEnableScreenUpdates on
8688 non-NS_IMPL_COCOA systems.
8689
86902008-08-23 Andreas Schwab <schwab@suse.de>
8691
8692 * process.c (procfs_system_process_attributes): Fix use of
8693 uninitialized variables.
8694
86952008-08-23 Eli Zaretskii <eliz@gnu.org>
8696
8697 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8698
8699 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8700 calling tty-set-up-initial-frame-faces.
8701
b8ff72fa
SM
8702 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8703 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8704
8705 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8706 addition to output_termcap.
8707
8708 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8709
8710 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8711 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8712 highlight.
8713
8714 * process.c [!subprocesses]: Define QCname.
8715 (syms_of_process): Intern and staticpro it.
8716
8717 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8718 Adjust for changes in encoding/decoding routines.
8719 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8720 encode_coding and decode_coding.
8721
b8ff72fa 8722 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8723
8724 * dosfns.c: Include frame.h before termhooks.h.
8725 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8726 variable termscript.
8727
8728 * s/msdos.h (USER_FULL_NAME): Define.
8729 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8730
8731 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8732 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8733 pw->pw_gecos.
8734
8735 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8736 SELECTED_FRAME as additional (1st) argument.
8737 (tty_read_avail_input): Handle output_msdos_raw in
8738 addition to output_termcap.
8739
8740 * msdos.c: Include frame.h before termhooks.h.
8741 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8742 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8743 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8744 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8745 (IT_set_terminal_modes, IT_reset_terminal_modes)
8746 (IT_set_frame_parameters): Use tty->termscript instead of a global
8747 variable termscript.
8748 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8749 global variable terminal_coding. Don't refer to
8750 Vnonascii_translation_table.
8751 (internal_terminal_init): Set Vwindow_system in current_kboard.
8752 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8753 Announce date and time of session start, if termscript is open.
8754 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8755 term.c:init_tty). Open termscript only of not already open.
8756 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8757 here instead of dos_ttraw. Don't initialize display if this is an
8758 initial tty. Don't set FRAME_FONT.
8759 (Vwindow_system_version): Bump to 23.
8760 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8761 is available, set up mouse_position_hook.
8762 (dos_ttraw, IT_set_terminal_modes): If called with initial
8763 terminal, do nothing.
8764 (IT_set_frame_parameters): Handle the Qtty_type frame
8765 parameter by calling internal_terminal_init.
8766 (dos_set_window_size, show_mouse_face)
8767 (clear_mouse_face, IT_note_mode_line_highlight)
8768 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8769 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8770 (initialize_msdos_display): New function.
8771 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8772 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8773 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8774 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8775 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8776 (request_sigio, unrequest_sigio): Don't define, now defined on
8777 sysdep.c.
8778 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8779
8780 * term.c [MSDOS]: Include msdos.h.
8781 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8782 conditional to DOS_NT. Allow only one call to this function in a
8783 session. Don't allocate a new struct tty_display_info; instead,
8784 reuse the_only_display_info. Call get_tty_size to get screen
8785 dimensions. Call init_baud_rate to set bad_rate.
8786 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8787 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8788 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8789 (get_tty_terminal, get_named_tty, Ftty_type)
8790 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8791 output_termcap.
b8ff72fa
SM
8792 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8793 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8794 only when subprocesses are supported.
aac0c6e3
MR
8795
8796 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8797 f->output_data.x.
8798 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8799 terminal devices.
8800
5582fbc7 8801 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8802 x_output.
8803 (FRAME_FONT): Use output_data.tty.
8804 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8805 (struct x_display_info): Rename from display_info. Update all users in
8806 msdos.c.
aac0c6e3 8807 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8808 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8809 (dos_ttraw): Update prototype.
8810
8811 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8812 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8813
88142008-08-23 Jason Rumney <jasonr@gnu.org>
8815
8816 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8817 (fn_TIFFSetDirectory): New library function used.
8818 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8819 (tiff_load): Use :index to select among multiple images. Set count
8820 property when multiple images exist.
8821 (gif_format): Use :index, not :image.
8822
88232008-08-23 Chong Yidong <cyd@stupidchicken.com>
8824
8825 * xdisp.c (try_scrolling): Check INT_MAX instead of
8826 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8827 to obtain INT_MAX.
8828
88292008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8830
8831 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8832
88332008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8834
8835 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8836 GNUstep library location.
8837
88382008-08-21 Chong Yidong <cyd@stupidchicken.com>
8839
8840 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8841 before using it.
8842
8843 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8844
88452008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8846
8847 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8848 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8849 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8850 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8851 (EmacsApp-cursor_blink_handler): Remove declaration.
8852 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8853 match 01 Feb 2008 changes in xterm.c.
8854 (ns_read_socket): Add cast to avoid warning.
8855 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8856 GNUstep.
8857
88582008-08-20 Chong Yidong <cyd@stupidchicken.com>
8859
8860 * xselect.c (x_get_foreign_selection): Return nil if desired
8861 selection could not be obtained, instead of signalling an error.
8862
88632008-08-20 David Reitter <david.reitter@gmail.com>
8864
8865 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8866 * nsterm.m: Remove ns-specific code for cursor blinking.
8867 (ns_draw_window_cursor): Clear cursor properly rather than
8868 redrawing the area. Respect width of bar cursors.
8869 These changes enable the use of generic blink-cursor-mode and
8870 generic cursor types in NS and support smooth cursor movements (do
8871 not blink off after command).
8872 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8873 Nextstep, too.
8874
88752008-08-19 Kenichi Handa <handa@m17n.org>
8876
8877 * font.c (Vfont_log_deferred): New variable.
8878 (font_add_log): Check Vfont_log_deferred.
8879 (font_deferred_log): New function.
8880
8881 * font.h (font_deferred_log): Extern it.
8882
8883 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8884 for sorting.
8885 (face_for_char): Use deferred log.
8886
88872008-08-18 Kenichi Handa <handa@m17n.org>
8888
8889 * fontset.c (face_for_char): Add font log.
8890
8891 * font.c (font_add_log): Add the font properties :script, :lang,
8892 and :otf in the log.
8893
88942008-08-17 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * xdisp.c: Remove dead code.
8897 (handle_invisible_prop, next_overlay_string): Defer call to
8898 setup_for_ellipsis.
8899 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8900
89012008-08-15 Chong Yidong <cyd@stupidchicken.com>
8902
8903 * xfaces.c (lookup_derived_face): Properly handle possible zero
8904 return value of get_lface_attributes.
8905 (merge_faces): Don't tell lookup_derived_face to signal an error
8906 if face is not found.
8907
8908 * dired.c (Fdirectory_files): Doc fix.
8909
8910 * process.c (make_process): Initialize kill_without_query struct
8911 member.
8912
89132008-08-15 Eli Zaretskii <eliz@gnu.org>
8914
8915 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8916 Alternative calculation of totphys for Visual Studio 6.
8917
8918 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8919
8920 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8921 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8922 All users changed.
8923 (stat): Only root directory passed to GetDriveType. Allow RAM
8924 disk as well as local fixed disk when w32-get-true-file-attributes
8925 is set to `local'.
8926 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8927 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8928 (w32_cached_id, w32_add_to_cache): New functions.
8929 (get_name_and_id): Look account names in the cache before calling
8930 lookup_account_sid.
8931 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8932 New initialization flags.
8933 (globals_of_w32): Initialize them to zero.
8934 (w32_system_process_attributes): Use w32_cached_id and
8935 w32_add_to_cache.
8936
89372008-08-14 Lawrence Mitchell <wence@gmx.li>
8938
8939 * lread.c (Fread_char, Fread_char_exclusive): If no character
8940 event is read before timeout is reached, return nil, rather than
8941 converting to a number.
8942
89432008-08-14 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * fns.c (use_dialog_box): Doc fix.
8946
8947 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8948 on OS X.
8949
89502008-08-13 Chong Yidong <cyd@stupidchicken.com>
8951
8952 * frame.c (Qns_parse_geometry): New var.
8953 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8954
89552008-08-11 Chong Yidong <cyd@stupidchicken.com>
8956
8957 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8958 space character in calculating tabs.
8959
89602008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8961
8962 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8963
89642008-08-10 Glenn Morris <rgm@gnu.org>
8965
8966 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8967 silence gcc "limited range of data type" warnings in some
8968 make_fixnum_or_float calls.
8969
89702008-08-09 Eli Zaretskii <eliz@gnu.org>
8971
8972 * w32.c (w32_system_process_attributes): If the process does not
8973 exist, return nil.
8974
8975 * w32.c: Include thelp32.h, psapi.h and coding.h.
8976 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8977 declarations.
8978 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8979 (Process32Next_Proc): New typedefs.
8980 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8981 (g_b_init_process32_next, g_b_init_open_thread_token)
8982 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8983 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8984 (g_b_init_get_process_working_set_size)
8985 (g_b_init_global_memory_status_ex): New static variables.
8986 (globals_of_w32): Initialize them.
8987 (create_toolhelp32_snapshot, process32_first, process32_next)
8988 (open_thread_token, impersonate_self, revert_to_self)
8989 (get_process_memory_info, get_process_working_set_size)
8990 (global_memory_status, global_memory_status_ex): New wrapper
8991 functions.
8992 (w32_list_system_processes, w32_system_process_attributes)
8993 (enable_privilege, restore_privilege, ltime, process_times):
8994 New functions.
8995 (convert_time_raw): New function.
8996 (convert_time): Remove conversion of FILETIME into time in 100
8997 nsec units, call convert_time_raw instead.
8998
8999 * process.h (w32_list_system_processes, w32_system_process_attributes):
9000 Add prototypes.
9001 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9002 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9003 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9004 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9005
9006 * process.c (Fsystem_process_attributes): Doc fix.
9007
90082008-08-08 Chong Yidong <cyd@stupidchicken.com>
9009
9010 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9011 a continued multi-char glyph; if so, advance to the actual glyph.
9012
90132008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9014
9015 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9016
9017 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9018 (.m.o): Use it.
9019 * config.in: Regenerate.
9020
90212008-08-07 Chong Yidong <cyd@stupidchicken.com>
9022
9023 * xdisp.c (redisplay_window): Revert last change.
9024 (try_window): Check bottom scroll margin too.
9025
90262008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9027
9028 * config.in: Regenerate.
9029
9030 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9031 -list-load-path-shadows'.
9032 (nsgui.h): Reduce number of things depending on it.
9033
90342008-08-06 Chong Yidong <cyd@stupidchicken.com>
9035
9036 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9037 instead of window-end which does the wrong thing at eob.
9038 (try_cursor_movement): Minor optimization.
9039 (redisplay_window): If scroll margin is defined, don't assume
9040 window doesn't need scrolling.
9041
90422008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9043
9044 * config.in: Regenerate.
9045
9046 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9047 (mostlyclean): Don't delete *.d under NS.
9048
9049 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9050
90512008-08-06 Kenichi Handa <handa@m17n.org>
9052
9053 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9054
90552008-08-06 Andreas Schwab <schwab@suse.de>
9056
9057 * config.in: Regenerate.
9058
90592008-08-05 Chong Yidong <cyd@stupidchicken.com>
9060
9061 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9062 forcing a window start.
9063
9064 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9065 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9066
90672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9068
9069 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9070 argument.
9071
90722008-08-05 Juanma Barranquero <lekktu@gmail.com>
9073
9074 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9075 <scroll-down-aggressively, before-change-functions>:
9076 <after-change-functions>: Reflow docstrings.
9077
90782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9079 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9080
9081 Dock menu customization, based on a patch by Ken Raeburn, plus some
9082 other fixes.
9083 * nsmenu.m (dockMenu): New variable.
9084 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9085
9086 * nsterm.h (dockMenu): Declare.
9087
9088 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9089 (ns_term_init): Initialize dockMenu.
9090 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9091 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9092 left.
9093
9094 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9095
90962008-08-04 Chong Yidong <cyd@stupidchicken.com>
9097
9098 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9099
9100 * config.in: Regenerate.
9101
91022008-08-04 Seiji Zenitani <zenitani@mac.com>
9103
9104 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9105
91062008-08-04 Chong Yidong <cyd@stupidchicken.com>
9107
9108 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9109
91102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9111
9112 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9113
9114 * keyboard.h: Comment an #endif.
9115
9116 * lisp.h (have_menus_p): Adjust comment.
9117
9118 * menu.c (find_and_return_menu_selection): Fix comparison with
9119 client_data.
9120
9121 * nsmenu.m (popup_activated_flag): New variable.
9122 (popup_activated): New function.
9123 (menu-or-popup-active-p): New exported lisp definition.
9124 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9125 when popup done.
9126 (ns_popup_dialog): Set popup_activated_flag.
9127
9128 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9129 version for GNUstep (handled by conditional typedef in nsterm.m).
9130 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9131 in rgb.txt).
9132
9133 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9134
9135 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9136
9137 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9138
9139 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9140 shortcircuit if popup_activated like GTK and X toolkit.
9141
9142 * m/inter386.h: Change DARWIN to DARWIN_OS.
9143
9144 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9145 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9146 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9147 comment on NO_SOCK_SIGIO.
9148
91492008-08-03 Chong Yidong <cyd@stupidchicken.com>
9150
9151 * nsterm.m (windowDidResize): Remove stopModal call.
9152
91532008-08-03 Andreas Schwab <schwab@suse.de>
9154
9155 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9156 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9157
91582008-08-02 Chong Yidong <cyd@stupidchicken.com>
9159
9160 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9161 Don't use uninitialized pointer variable when using getrlimit.
9162
91632008-08-02 Jason Rumney <jasonr@gnu.org>
9164
9165 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9166
91672008-08-02 Eli Zaretskii <eliz@gnu.org>
9168
9169 * alloc.c (NSTATICS): Bump to 0x640.
9170
9171 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9172
9173 * lisp.h: Add prototype for directory_files_internal.
9174
9175 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9176 New functions.
9177 (syms_of_process): Defsubr them. Add initializations for various
9178 Q* symbols used in procfs_system_process_attributes.
9179 (procfs_list_system_processes, procfs_system_process_attributes)
9180 [HAVE_PROCFS]: New functions.
9181 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9182 (procfs_get_total_memory): New functions.
9183
91842008-08-01 Juanma Barranquero <lekktu@gmail.com>
9185
9186 * xfaces.c (Fx_load_color_file): Fix previous change;
9187 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9188
91892008-08-01 Michael Albinus <michael.albinus@gmx.de>
9190
9191 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9192
91932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9194
9195 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9196
91972008-08-01 Chong Yidong <cyd@stupidchicken.com>
9198
9199 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9200
9201 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9202 define NSApplicationDelegateReplySuccess.
9203 (EmacsView -converstationIdentifier): Use long instead of
9204 NSInteger for GNUstep, since it doesn't have NSInteger.
9205
9206 * xmenu.c: Revert last change.
9207
9208 * keyboard.h: Fix last change.
9209
92102008-08-01 Juanma Barranquero <lekktu@gmail.com>
9211
9212 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9213 on Windows.
9214
92152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9216
9217 Warning clearing and clean-up in NS port.
9218 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9219 Add prototypes.
9220 * nsgui.h (FACE_DEFAULT): Remove, unused.
9221 (XGCValues): Change colors to unsigned long.
9222 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9223 nsterm.m.
9224 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9225 (ns_list_fonts): Remove, unused.
9226 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9227 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9228 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9229 (nsfont_draw): Compare face colors to 0, not nil.
9230 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9231 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9232 (-addSubmenuWithTitle:): Use NSMenuItem class.
9233 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9234 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9235 (ns_clip_to_row): Make gc arg a BOOL.
9236 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9237 ns_clip_to_row() call.
9238 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9239 used). Cast FRAME_FONT assignments.
9240 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9241 (ns_string_to_lispmod): Change arg to const char.
9242 (ns_term_init): Use NSMenuItem class.
9243 (EmacsApp -openFile:): Move to different section of file.
9244 (EmacsApp -application:openFiles:): Don't return a value, call
9245 -replyToOpenOrPrint:.
9246 (EmacsView -keyDown:): Fix up cast.
9247 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9248 (EmacsView -menuDown:): Cast tag in call to
9249 find_and_call_menu_selection().
9250 (ns_list_fonts): Remove, unused.
9251 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9252 (ns_fontname_to_xlfd): Make static.
9253 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9254 Remove prototypes (now in keyboard.h).
9255 (next_menubar_widget_id): Remove, unused.
9256 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9257 Remove prototypes (now in keyboard.h).
9258 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9259
92602008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9261
9262 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9263 (floatfns.o): Depend on syssignal.h.
9264 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9265
9266 * systty.h: Fix previous change that removed BSD_TERMIOS.
9267 Add comments to #ifdefs.
9268
92692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9270
9271 * w32fns.c (w32-load-color-file): Remove.
9272 (x-open-connection): Use renamed Fx_load_color_file.
9273 * xfaces.c (x-load-color-file): Add.
9274 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9275 Emacs.clr.
9276 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9277
92782008-07-31 Michael Albinus <michael.albinus@gmx.de>
9279
9280 * dbusbind.c (Fdbus_call_method_asynchronously)
9281 (Fdbus_method_error_internal): New defuns.
9282 (xd_read_message): Handle also reply messages.
9283 (Vdbus_registered_functions_table): Extend docstring.
9284
92852008-07-31 Juanma Barranquero <lekktu@gmail.com>
9286
9287 * keyboard.c (gobble_input): Fix previous change.
9288
92892008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9290
9291 * bitmaps/README:
9292 * xfns.c:
9293 * termcap.c:
9294 * term.c:
9295 * syswait.h:
9296 * systty.h:
9297 * systime.h:
9298 * syssignal.h:
9299 * sysdep.c:
9300 * process.h:
9301 * process.c:
9302 * print.c:
9303 * ndir.h:
9304 * lread.c:
9305 * keyboard.c:
9306 * getpagesize.h:
9307 * floatfns.c:
9308 * fileio.c:
9309 * emacs.c:
9310 * doc.c:
9311 * dispnew.c:
9312 * dired.c:
9313 * data.c:
9314 * callproc.c:
9315 * buffer.c:
9316 * README:
9317 * Makefile.in:
9318 * s/template.h:
9319 * s/msdos.h:
9320 * m/vax.h: Remove VMS support.
9321 * s/vms.h:
9322 * vlimit.h:
9323 * uaf.h:
9324 * temacs.opt:
9325 * param.h:
9326 * ioctl.h: Remove file.
9327
93282008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9329
9330 * s/ms-w32.h (MULTI_KBOARD): Remove.
9331 * xterm.c:
9332 * xselect.c:
9333 * xfns.c:
9334 * window.c:
9335 * w32term.c:
9336 * w32fns.c:
9337 * terminal.c:
9338 * termhooks.h:
9339 * term.c:
9340 * sysdep.c:
9341 * keyboard.h:
9342 * keyboard.c:
9343 * frame.h:
9344 * frame.c:
9345 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9346 * config.in: Regenerate.
9347
93482008-07-30 Jason Rumney <jasonr@gnu.org>
9349
9350 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9351
9352 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9353 (w32font_open_internal): Get unicode version of textmetrics.
9354 Don't enable or disable glyph indices here.
9355 (w32font_open): Disable use of glyph indices.
9356
9357 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9358
93592008-07-30 Chong Yidong <cyd@stupidchicken.com>
9360
9361 * minibuf.c (Vread_buffer_function): Doc fix.
9362
93632008-07-30 John Paul Wallington <jpw@pobox.com>
9364
9365 * minibuf.c (read_buffer_completion_ignore_case): New var.
9366 (Fread_buffer): Use it.
9367
93682008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9369
9370 * systty.h (sensemode): Remove empty #if. Remove reference to
9371 BSD_TERMIOS, unused.
9372
9373 * sysdep.c: Remove reference to DGUX.
9374 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9375
9376 * config.in: Regenerate.
9377
93782008-07-30 Jason Rumney <jasonr@gnu.org>
9379
9380 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9381
93822008-07-29 Jason Rumney <jasonr@gnu.org>
9383
9384 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9385 is populated.
9386 (uniscribe_encode_char): Always use uniscribe.
9387 Avoid using context if cache is populated.
9388
93892008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9390
9391 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9392 open menu.
9393
9394 * gtkutil.c (menu_nav_ended): Remove.
9395 (create_menus): Remove signal connect for menu_nav_ended.
9396
93972008-07-28 Chong Yidong <cyd@stupidchicken.com>
9398
9399 * xdisp.c (redisplay_window): Check return value of
9400 compute_window_start_on_continuation_line before forcing a window
9401 start.
9402
94032008-07-28 Jason Rumney <jasonr@gnu.org>
9404
9405 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9406
9407 * w32term.c (w32_enable_unicode_output, cleartype_active):
9408 Remove obsolete display options.
9409 (x_draw_glyph_string_background): Don't use old cleartype_active
9410 workaround.
9411 (w32_initialize): Remove cleartype_active initialization.
9412 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9413
94142008-07-28 Andreas Schwab <schwab@suse.de>
9415
9416 * lisp.h (init_weak_hash_tables, syms_of_font)
9417 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9418 (remove_hash_entry): Don't declare.
9419 * eval.c (maybe_call_debugger): Make static and move before use.
9420 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9421 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9422 * xterm.h (x_set_frame_alpha): Declare.
9423
94242008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9425
9426 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9427 (create_menus): Connect selection-done to menu_nav_ended.
9428
94292008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9430
9431 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9432 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9433 parameter with read of 'alpha' one.
9434 (Qns_frame_parameter): Remove.
5582fbc7 9435 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9436 (next-selection-coding-system, Vselection_coding_system)
9437 (Vnext_selection_coding_system): Drop.
9438
94392008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9440
9441 * nsfns.m (do-applescript, do_applescript): Rename to
9442 ns-do-applescript, ns_do_applescript, and move within file.
9443
94442008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9445
9446 Remove support for Mac Carbon.
9447 * mactoolbox.c:
9448 * macterm.h:
9449 * macterm.c:
9450 * macselect.c:
9451 * macmenu.c:
9452 * macgui.h:
9453 * macfns.c:
9454 * mac.c: Remove file.
9455 * s/darwin.h:
9456 * m/intel386.h:
9457 * xfaces.c:
9458 * xdisp.c:
9459 * window.c:
9460 * tparam.c:
9461 * termhooks.h:
9462 * termcap.c:
9463 * term.c:
9464 * syssignal.h:
9465 * sysselect.h:
9466 * sysdep.c:
9467 * process.c:
9468 * lread.c:
9469 * lisp.h:
9470 * keyboard.c:
9471 * image.c:
9472 * fringe.c:
9473 * frame.h:
9474 * frame.c:
9475 * fontset.c:
9476 * font.h:
9477 * font.c:
9478 * fns.c:
9479 * fileio.c:
9480 * emacs.c:
9481 * dispnew.c:
9482 * dispextern.h:
9483 * config.in:
9484 * atimer.c:
2ae37cf0 9485 * Makefile.in: Remove code for Carbon.
aac0c6e3 9486
f0131492 94872008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9488
9489 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9490
94912008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9492
9493 * macterm.h (kCGBitmapByteOrder32Host): New define for
9494 non-universal SDKs.
9495
9496 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9497 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9498
9499 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9500 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9501
95022008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9503
9504 * w32inevt.c: Include dispextern.h.
9505
95062008-07-26 Andreas Schwab <schwab@suse.de>
9507
9508 * print.c (print_object): Fix off-by-one in last change.
9509
95102008-07-25 Juanma Barranquero <lekktu@gmail.com>
9511
9512 * term.c (syms_of_term): Don't initialize default_orig_pair,
9513 default_set_foreground and default_set_background on Windows.
9514
95152008-07-25 Jason Rumney <jasonr@gnu.org>
9516
9517 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9518 ScriptItemize. Clean up return value checking. Remove unused
9519 variables.
9520 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9521 shaping engine.
9522
9523 * w32font.c (w32font_has_char): Handle the case where we can't
9524 determine the script for a character.
9525
95262008-07-25 Chong Yidong <cyd@stupidchicken.com>
9527
9528 * term.c (syms_of_term): Initialize default_orig_pair,
9529 default_set_foreground, and default_set_background.
9530
9531 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9532 clash (bug#86).
9533 (getloadavg): Callers changed.
9534
9535 * image.c (svg_load_image): Fix last change.
9536 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9537 image size is valid. Use g_object_unref instead of deprecated
9538 rsvg_handle_free to free rsvg handle.
9539 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9540
95412008-07-25 Jason Rumney <jasonr@gnu.org>
9542
9543 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9544 surrogates before looking up glyph index.
9545 (w32font_text_extents): Encode as surrogates if falling back to
9546 functions that need UTF-16 wide chars.
9547
9548 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9549 BMP as surrogates before looking up glyph index.
9550
95512008-07-25 Chong Yidong <cyd@stupidchicken.com>
9552
9553 * image.c (svg_load_image): Check for failure in return value of
9554 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9555
95562008-07-25 Jason Rumney <jasonr@gnu.org>
9557
9558 * w32font.c (Fx_select_font): Reverse sense of second arg.
9559
95602008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9561
9562 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9563 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9564
9565 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9566 (PURESIZE): Use it.
9567
95682008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9569
9570 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9571 * m/alpha.h (TEXT_END):
9572 * m/ibmrs6000.h (TEXT_END):
9573 * m/macppc.h (TEXT_END):
9574 * s/darwin.h (TEXT_END):
9575 * s/msdos.h (TEXT_END): Remove, unused.
9576 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9577 * s/cygwin.h: Remove comment.
9578
9579 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9580 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9581 * m/intel386.h (DOT_GLOBAL_START):
9582 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9583 (USG): Remove, file not used on USG platforms.
9584
9585 * Makefile.in (HAVE_X11): Remove empty #else.
9586
95872008-07-24 Andreas Schwab <schwab@suse.de>
9588
9589 * fileio.c (Finsert_file_contents): Properly adjust undo list
9590 after format conversion.
9591
95922008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9593
9594 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9595 (menu_nav_ended): Remove.
9596 (create_menus): Remove signal connect for menu_nav_ended.
9597 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9598 create_menus.
9599 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9600
96012008-07-23 Jason Rumney <jasonr@gnu.org>
9602
9603 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9604 with opened font.
9605 (w32font_open): Set font type to gdi.
9606
9607 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9608
96092008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9610
9611 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9612 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9613 defines it.
9614 * unexec.c (ADDR_CORRECT): Define unconditionally.
9615
9616 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9617
9618 * unexec.c: Remove code depending on !COFF and USG, the file is
9619 not used for such systems.
9620
9621 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9622 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9623 (LD_SWITCH_SYSTEM_1): Remove, update users.
9624
9625 * s/darwin.h (DATA_END):
9626 * m/intel386.h (DATA_END):
9627 * m/ibmrs6000.h (DATA_END):
9628 * m/alpha.h (DATA_END): Remove, unused.
9629
9630 * config.in: Regenerate.
9631 * s/ms-w32.h (subprocesses): Define unconditionally.
9632 * s/template.h (subprocesses): Update comment.
9633 * s/vms.h (subprocesses):
9634 * s/usg5-4.h (subprocesses):
9635 * s/hpux10-20.h (subprocesses):
9636 * s/gnu-linux.h (subprocesses):
9637 * s/cygwin.h (subprocesses):
9638 * s/bsd-common.h (subprocesses):
9639 * s/aix4-2.h (subprocesses):
9640 * s/darwin.h (subprocesses): Do not define, defined by default now.
9641
9642 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9643 Remove all references.
9644 (temacs): Add GNUstep specific ld flags.
9645
9646 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9647 similarly to what X does.
9648
96492008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9650
9651 * nsfns.m (x-list-fonts): Remove.
9652 (syms_of_nsfns): Drop the x-list-fonts declaration.
9653 * nsterm.m: Get rid of remaining "//" comments.
9654
96552008-07-22 Chong Yidong <cyd@stupidchicken.com>
9656
9657 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9658
9659 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9660 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9661 (Fns_own_selection_internal, Fx_disown_selection_internal)
9662 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9663
9664 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9665 ... */' style of docstrings. Doc fixes.
9666
96672008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9668
9669 * terminfo.c (UP, BC, PC): Undo previous change.
9670
9671 * nsfns.m: Rename ns prefixed functions/variables to the
9672 corresponding x versions. Update references.
9673
96742008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9675
9676 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9677
96782008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9679
9680 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9681 Remove forwarding functions.
9682 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9683 non-static.
9684 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9685 non-static.
9686 (ns_frame_parm_handlers): Use the new names.
9687 (syms_of_nsfns): Move to the end of file.
9688
9689 * nsterm.m (syms_of_nsterm): Move to the end of file.
9690
9691 * dispnew.c (init_display): Remove code for X10.
9692
96932008-07-22 Jason Rumney <jasonr@gnu.org>
9694
9695 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9696 bare drive.
9697
96982008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9699
9700 * nsterm.m (syms_of_nsterm): Remove debugging println.
9701
97022008-07-22 David Reitter <david.reitter@gmail.com>
9703
9704 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9705 Carbon implementation of the same functionality: execute arbitrary
9706 AppleScript code.
9707
97082008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9709
9710 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9711 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9712 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9713 (Fx_display_mm_height, Fx_display_mm_width)
9714 (Fx_display_backing_store, Fx_display_visual_class)
9715 (Fx_display_save_under, Fx_open_connection)
9716 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9717 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9718 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9719 (Fx_display_pixel_width, Fx_display_pixel_height)
9720 (Fx_display_usable_bounds, Fx_display_planes)
9721 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9722 ... */' style of docstrings.
9723
97242008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9725
9726 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9727 on this platform.
9728 (mips):
9729 * m/iris4d.h (mips): Do not define.
9730 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9731
9732 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9733
9734 * image.c:
9735 * nsfns.m:
9736 * nsselect.m:
9737 * nsterm.h:
9738 * nsterm.m: Rename ns prefixed functions/variables to the
9739 corresponding x versions. Update references.
9740
9741 * m/ibms390x.h (NO_REMAP): Do not undefine.
9742
9743 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9744
97452008-07-21 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9748 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9749 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9750 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9751 (Fns_display_mm_height, Fns_display_mm_width)
9752 (Fns_display_backing_store, Fns_display_visual_class)
9753 (Fns_display_save_under, Fns_open_connection)
9754 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9755 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9756 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9757 (Fns_display_pixel_width, Fns_display_pixel_height)
9758 (Fns_display_usable_bounds, Fx_display_planes)
9759 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9760
97612008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9762
9763 * print.c (print_object): Check print_depth before searching for
9764 circularities.
9765
97662008-07-21 Michael Albinus <michael.albinus@gmx.de>
9767
9768 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9769 only sprintf.
9770
97712008-07-21 Kenichi Handa <handa@m17n.org>
9772
9773 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9774
97752008-07-20 Andreas Schwab <schwab@suse.de>
9776
9777 * syntax.c (find_start_pos, find_start_value)
9778 (find_start_value_byte, find_start_begv, find_defun_start)
9779 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9780
97812008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9782
9783 * s/sol2-3.h: Insert contents of s/sol2.h.
9784 (LD_SWITCH_SYSTEM): Remove redundant definition.
9785 * s/sol2.h: Remove, unused.
9786
97872008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9788
9789 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9790
97912008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9792
9793 * Makefile.in (ns_appdir): Fix typo in find command.
9794
97952008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9796
9797 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9798
9799 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9800 added not supported anymore.
9801
9802 * s/usg5-4-2.h (LIBS_SYSTEM):
9803 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9804
9805 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9806 * s/lynxos.h (GETPGRP_NO_ARG):
9807 * s/hpux10-20.h (NO_SIOCTL_H):
9808 * s/gnu.h (GETPGRP_NO_ARG):
9809 * s/gnu-linux.h (NO_SIOCTL_H):
9810 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9811 * s/cygwin.h (GETPGRP_NO_ARG):
9812 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9813 (C_DEBUG_SWITCH): Remove duplicate definition.
9814
9815 * m/ibms390.h: Remove boilerplate comments.
9816
9817 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9818
9819 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9820 (wait_reading_process_output): Remove code for SunOS, platform not
9821 supported anymore. Use SOLARIS2 instead of sun.
9822
98232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9824
9825 * font.c (font_open_by_name): Under NS, default lface height to zero.
9826 (font_open_for_lface): Under NS, set size based on frame fontsize.
9827 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9828 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9829
98302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9831
9832 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9833 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9834 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9835 YES/NO.
9836 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9837 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9838 * Makefile.in (clean): Clear out build destination dir.
9839
98402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9841
9842 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9843 xterm, xselect.
9844 * lisp.h: Remove declaration of hash_remove.
9845 * nsgui.h: Remove redefinitions of hash_remove.
9846 * fns.c (hash_remove): Rename to hash_remove_from_table.
9847
98482008-07-19 Seiji Zenitani <zenitani@mac.com>
9849
9850 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9851 strdup() the family UTF8String before modifying it.
9852
98532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9854
9855 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9856 NS_FACE_BACKGROUND with 0 instead of nil.
9857 * nsfont.m (nsfont_draw): Same.
9858
98592008-07-19 Chong Yidong <cyd@stupidchicken.com>
9860
9861 * nsfns.m (ns_set_background_color): Fix crash.
9862
98632008-07-18 Chong Yidong <cyd@stupidchicken.com>
9864
9865 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9866
98672008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9868
9869 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9870
98712008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9872
9873 * gtkutil.c: Include <config.h> instead of "config.h".
9874
9875 * lisp.h (Foverlay_buffer): Add EXFUN.
9876
9877 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9878 child process to complete child_setup. Undo 2005-09-21 change.
9879
9880 * s/darwin.h: Mention setsid after vfork.
9881
98822008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9883
9884 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9885 Depend on macgui.h.
9886
9887 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9888 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9889
9890 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9891 and f19.
9892 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9893
9894 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9895 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9896 Remove enumerators.
9897
9898 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9899 Check if FACE_FROM_ID returns NULL.
9900
99012008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9902
9903 * w32inevt.c (change_frame_size): Remove extern declaration.
9904 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9905 change_frame_size.
9906
99072008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9908
9909 * getloadavg.c: Revert last change (2008-07-15).
9910
99112008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9912
9913 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9914 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9915 from configure.
9916
99172008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9918
9919 * s/sol2.h:
9920 * s/sol2-4.h: Reorganize conditionals.
9921
9922 * ecrt0.c: Remove code depending on m68000, not used anymore.
9923
9924 * fns.c (hash_remove): Make static.
9925 * lisp.h (hash_remove): Don't prototype.
9926
9927 * m/ibmrs6000.h:
9928 * m/ibms390x.h:
9929 * m/macppc.h: Remove boilerplate comments.
9930
9931 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9932 Solaris, which does not need them.
9933
9934 * m/vax.h: Remove comments about unsupported systems.
9935
9936 * s/darwin.h: Reorganize ifdefs.
9937
99382008-07-17 Andreas Schwab <schwab@suse.de>
9939
9940 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9941
99422008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9943
9944 Use SDATA. Follow coding convention of placing operators at
9945 beginning of next line rather than end of previous line, and placing
9946 spaces around infix operators.
9947
9948 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9949 in case it was defined already.
9950 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9951 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9952 ns_default.
9953 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9954 Lisp_Objects.
9955 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9956 (ns_defined_color, ns_color_to_lisp): Declare.
9957 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9958 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9959 it's accepted even with USE_LISP_UNION_TYPE.
9960 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9961 (update_frame_tool_bar): Remove apparently obsolete tests for
9962 non-integerness of f->tool_bar_lines.
9963 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9964 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9965 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9966 (nsfont_open): Don't confuse NULL for Qnil.
9967 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9968 * menu.h (find_and_call_menu_selection):
9969 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9970 (find_and_return_menu_selection): Always return something.
9971 * frame.h: Include dispextern.h for Display_Info.
9972 (display_x_get_resource): Declare.
9973
99742008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9975
9976 * syntax.c: Remove stdio.h include accidentally introduced in
9977 Emacs.app commit.
9978 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9979 NS_IMPL_COCOA.
9980 * keyboard.c (handle_async_input, input_available_signal): Remove
9981 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9982
99832008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9984
9985 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9986 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9987 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9988 Use SDATA.
9989
9990 * keymap.c: Remove all NS-specific code.
9991 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9992 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9993 where_is_preferred_modifier, return a different value depending on how
9994 preferred is the binding.
9995 (where_is_internal): Adjust accordingly.
9996 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9997 Adjust to new preferred_sequence_p.
9998 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9999 * keyboard.c (parse_solitary_modifier): Not static any more.
10000 * keyboard.h (parse_solitary_modifier): Declare.
10001
100022008-07-16 Andreas Schwab <schwab@suse.de>
10003
10004 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10005 of easymenu.
10006
100072008-07-16 Chong Yidong <cyd@stupidchicken.com>
10008
10009 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10010 that we don't move off the line.
10011
100122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10013
10014 * keyboard.c (Qsuper): Remove.
10015 (parse_menu_item): Don't call where_is_internal specially for NS.
10016
100172008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10018
10019 * s/gnu-linux.h: Remove boilerplate comments.
10020
10021 * m/alpha.h (__ELF__): Consolidate conditions.
10022
10023 * m/m68k.h (linux): Use GNU_LINUX instead.
10024 Remove boilerplate comments.
10025
10026 * m/intel386.h: Undo refactoring from previous change.
10027 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10028 too, remove dead code.
10029 (linux): Use GNU_LINUX instead.
10030
100312008-07-16 Jason Rumney <jasonr@gnu.org>
10032
10033 * w32gui.h: Repeat 26 June changes lost by last change.
10034
100352008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10036
10037 * systty.h: Remove code for Aix on 386, unsupported platform.
10038
10039 * s/ms-w32.h: Remove boilerplate comments.
10040 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10041
10042 * s/gnu-linux.h (TERM): Remove support.
10043 (HAVE_SYSVIPC): Remove, unused.
10044 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10045 for this system.
10046
10047 * process.c: Remove support for IRIS, unused.
10048 Remove support for TERM, not relevant anymore.
10049
10050 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10051 used with the definition.
10052
10053 * s/aix4-2.h (static): Do not undef.
10054
10055 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10056 only used on Aix.
10057 (HAVE_SYSVIPC): Remove, unused.
10058
10059 * m/hp800.h (CANNOT_DUMP): Do not undef.
10060
10061 * m/alpha.h: Fix comment.
10062
10063 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10064 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10065 used by this configuration.
10066 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10067 * unexec.c: Remove code depending on HPUX and
10068 USG_SHARED_LIBRARIES, not used with this file. Remove code
10069 depending on IRIS, unused. Remove if 0-ed code.
10070
10071 * s/template.h: Remove comments about static.
10072
10073 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10074 Remove if 0-ed code.
10075 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10076 were the same as the default.
10077 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10078 Remove boilerplate comments.
10079 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10080 (HAVE_SYSVIPC): Remove, unused.
10081 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10082
10083 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10084 Remove boilerplate comments.
10085 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10086 Remove boilerplate comments.
10087 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10088 Remove boilerplate comments.
10089 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10090
10091 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10092 USG systems which do not use DATA_SEG_BITS.
10093 Refactor code. Remove boilerplate comments.
10094
10095 * m/ibms390.h:
10096 * m/m68k.h:
10097 * s/bsd-common.h:
10098 * s/cygwin.h:
10099 * s/darwin.h:
10100 * s/freebsd.h:
10101 * s/gnu.h:
10102 * s/msdos.h: Remove boilerplate comments.
10103
10104 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10105 do not use this file.
aac0c6e3
MR
10106 (IRIS_4D): Remove, unused.
10107
10108 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10109 do not use this file.
aac0c6e3
MR
10110 (SIGN_EXTEND_CHAR):
10111 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10112 * unexmips.c: Remove file, unused.
10113
10114 * editfns.c (Fuser_full_name): Replace the only use of
10115 USER_FULL_NAME with its value.
10116 * config.in: Regenerate.
10117
101182008-07-16 David Reitter <david.reitter@gmail.com>
10119
10120 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10121 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10122
101232008-07-16 Glenn Morris <rgm@gnu.org>
10124
10125 * emacs.c (system-type): Doc fix.
10126
101272008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10128
10129 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10130 If the cache doesn't work, let's fix it, rather than work around it.
10131
101322008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10133
10134 * Makefile.in: Correct additions for nsfont.o in last commit.
10135 * nsfont.m: New file (forgot last commit).
10136
101372008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10138
10139 * callproc.c (set_initial_environment): Initialize
10140 Vprocess_environment under CANNOT_DUMP (fixes crash when
10141 batch-compiling for bootstrap).
10142
101432008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10144 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10145
10146 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10147 fix crash due to different init order.
10148
101492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10150
10151 Changes and additions for NeXTstep windowing system (Cocoa and
10152 GNUstep) support.
10153
10154 * Makefile.in:
10155 * config.in: Support defines and build commands for NS port.
10156 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10157 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10158 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10159 windowing.
10160 (struct face): Add synth_ital field.
10161 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10162 (init_display): Initialize Vinitial_window_system to "ns" when so
10163 compiled.
10164 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10165 (display_arg): Use under NS.
10166 (main): Under NS, allocate autorelease pool and handle command line
10167 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10168 (standard_args): Add NS-specific args.
10169 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10170 * font.c (DEFAULT_ENCODING): New variable.
10171 (font_find_for_lface): Use it.
10172 (syms_of_font): Load syms_of_nsfont under NS.
10173 * font.h: Declare nsfont_driver when compiled under NS.
10174 * fontset.c: When compiling under NS, include nsterm.h.
10175 (fontset_from_font): Autoconstruct fontset under NS.
10176 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10177 symbol, document and use it.
10178 (do_switch_frame): When for_deletion under Cocoa, add
10179 Fraise_frame(Qnil).
10180 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10181 (x_get_arg): Allow "yes" and "no" as boolean values.
10182 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10183 Qright under Cocoa.
10184 (focus-follows-mouse): Default to 0 under NS.
10185 * frame.h (enum output_method): Add output_ns.
10186 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10187 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10188 (FRAME_WINDOW_P): NS-specific definition.
10189 * fringe.c (max_used_fringe_bitmap): Make public.
10190 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10191 (getloadavg): Use NeXT code under descendant OS's.
10192 * image.c (includes and header section, x_create_bitmap_from_data)
10193 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10194 (image_background_transparent, x_clear_image_1)
10195 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10196 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10197 (x_to_xcolors, x_from_xcolors, x_disable_image)
10198 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10199 other GUIs, including XPM support using code originally written for
10200 Carbon GUI.
10201 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10202 using NS API.
10203 (image_ascent): Use font metrics macros instead of direct struct field
10204 access.
10205 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10206 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10207 Also, handle NS as GTK for menu bar purposes.
10208 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10209 toolkit where they differ.
10210 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10211 use cachelist, still needed under NS.
10212 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10213 (struct widget_value): Define it here for menu.c.
10214 * keymap.c (includes): Include modifier internals.
10215 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10216 NS.
10217 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10218 support for preferring sequences using certain modifiers, specified by
10219 the FIRSTONLY argument.
10220 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10221 under NS GNUstep implementation.
10222 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10223 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10224 * menu.c: Include nsterm.h under NS.
10225 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10226 (free_menubar_widget_tree_value, update_submenu_strings)
10227 (find_and_call_menu_selection): Treat NS as X and NT.
10228 (find_and_return_menu_selection): New function, used for popup menus.
10229 * nsgui.h:
10230 * nsterm.h:
10231 * nsfns.m:
10232 * nsimage.m:
10233 * nsmenu.m:
10234 * nsselect.m:
10235 * nsterm.m: New files.
10236 * process.c (wait_reading_process_output): Under NS, call ns_select()
10237 instead of plain select().
10238 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10239 beginning of buffer.
10240 * sysselect.h (init_process): Rename when compiling under Cocoa to
10241 avoid name conflict.
10242 * termhooks.h (display_info): Add ns_display_info to union.
10243 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10244 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10245 COCOA environment.
10246 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10247 unexec() signature. (Note, this will dump, but the resulting file
10248 crashes; unexosx is used instead; keeping around for reference and
10249 possible aid in getting dump working under GNUstep.)
10250 * w32gui.h (button_type, widget_value): Remove definitions (now in
10251 keyboard.h).
10252 * window.c: Include nsterm.h when compiling under NS.
10253 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10254 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10255 other GUI windowing systems.
10256 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10257 GTK.
10258 (x_consider_frame_title): Under NS, set icon type and frame
10259 modified-state indicator; use ns_set_name_as_filename() when using
10260 formatted title.
10261 (update_window_cursor): Make public when compiling under NS.
10262 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10263 (hourglass_atimer, Vhourglass_delay
10264 * xfaces.c (header section, init_frame_faces, clear_font_table)
10265 (defined_color, unload_color, x_face_list_fonts)
10266 (prepare_face_for_display): Add NS support parallel to other GUIs.
10267 Emulate GCs like other non-X GUIs.
10268 (split_font_name): Don't lowercase font name under NS.
10269 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10270 under NS.
10271 * s/darwin.h: Add support for compilation under NS.
10272
102732008-07-15 Jason Rumney <jasonr@gnu.org>
10274
10275 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10276 (w32_show_hourglass): Rename from show_hourglass.
10277 (w32_hide_hourglass): Rename from hide_hourglass.
10278 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10279 (Vhourglass_delay): Declare extern.
10280 (hourglass_started): Remove.
10281
10282 * xdisp.c (Vhourglass_delay): Remove static.
10283 (hourglass_started, start_hourglass, cancel_hourglass):
10284 Don't include these versions on WINDOWSNT.
10285
102862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10287
10288 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10289 variables (formerly in xfns.c).
10290 (show_hourglass, hide_hourglass): New prototypes (same).
10291 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10292 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10293 in xfns.c).
10294 (syms_of_xdisp): Declare/initialize display-hourglass,
10295 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10296 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10297 formerly in xfns.c.
10298 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10299 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10300 (start_hourglass, cancel_hourglass): Remove.
10301 (show_hourglass, hide_hourglass): Remove prototypes and static
10302 modifiers.
10303 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10304 hourglass_atimer, hourglass_shown_p declaration/initialization.
10305 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10306 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10307 (start_hourglass, cancel_hourglass): Remove.
10308 (show_hourglass, hide_hourglass): Remove prototypes and static
10309 modifiers.
10310 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10311 hourglass_atimer, hourglass_shown_p declaration/initialization.
10312 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10313 (DEFAULT_HOURGLASS_DELAY): Remove.
10314 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10315 hourglass_shown_p declaration/initialization.
10316
103172008-07-14 Jason Rumney <jasonr@gnu.org>
10318
10319 * w32fns.c (w32_get_arg): Remove wrapper function.
10320 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10321 directly.
10322 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10323
103242008-07-14 Kenichi Handa <handa@m17n.org>
10325
10326 * xfont.c (xfont_open): Add workaround for X's bug.
10327
103282008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10329
10330 * fontset.c: Include <stdio.h> unconditionally.
10331
103322008-07-13 Michael Albinus <michael.albinus@gmx.de>
10333
10334 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10335 for filtering.
10336
103372008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10338
10339 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10340
10341 * m/macppc.h:
10342 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10343
10344 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10345 (SPECIAL_EMACS_INT):
10346 * m/ia64.h (SPECIAL_EMACS_INT):
10347 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10348 * s/gnu.h (NLIST_STRUCT):
10349 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10350 * s/gnu-linux.h (LINUX):
10351 * s/msdos.h (HAVE_FACES):
10352 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10353
10354 * systty.h:
10355 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10356 anymore.
10357
103582008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10359
10360 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10361 always defined as int.
10362
10363 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10364 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10365 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10366 * s/freebsd.h (HAVE_WAIT_HEADER):
10367 * s/bsd-common.h (HAVE_UNION_WAIT):
10368 * s/aix4-2.h (HAVE_WAIT_HEADER):
10369 * m/mips.h (HAVE_UNION_WAIT):
10370 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10371 (COFF, static): Do not define, they are undefined later in the file.
10372
10373 * process.c (update_status): Don't use a union.
10374 (status_convert):
10375 (sigchld_handler): Use int instead of WAITTYPE.
10376
103772008-07-12 Chong Yidong <cyd@stupidchicken.com>
10378
10379 * indent.c (Fvertical_motion): Restore hscroll before moving to
10380 goal column.
10381
103822008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10383
10384 * lisp.h: Remove left over code.
10385
103862008-07-11 Andreas Schwab <schwab@suse.de>
10387
10388 * lisp.h: Fix logic in last change.
10389
10390 * menu.h: New file.
10391 * menu.c: Include it.
10392 * xmenu.c: Likewise.
10393 * Makefile.in: Update dependencies.
10394
103952008-07-11 Kenichi Handa <handa@m17n.org>
10396
10397 * fontset.c (fontset_from_font): Cancel the previous change.
10398
103992008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10400
10401 * lisp.h:
10402 * w32heap.c:
10403 * emacs.c:
10404 * alloc.c: Replace all references of NO_UNION_TYPE with
10405 USE_LISP_UNION_TYPE.
10406
10407 * m/xtensa.h (NO_UNION_TYPE):
10408 * m/vax.h (NO_UNION_TYPE):
10409 * m/template.h (NO_UNION_TYPE):
10410 * m/sparc.h (NO_UNION_TYPE):
10411 * m/mips.h (NO_UNION_TYPE):
10412 * m/macppc.h (NO_UNION_TYPE):
10413 * m/m68k.h (NO_UNION_TYPE):
10414 * m/iris4d.h (NO_UNION_TYPE):
10415 * m/intel386.h (NO_UNION_TYPE):
10416 * m/ibms390x.h (NO_UNION_TYPE):
10417 * m/ibms390.h (NO_UNION_TYPE):
10418 * m/ibmrs6000.h (NO_UNION_TYPE):
10419 * m/ia64.h (NO_UNION_TYPE):
10420 * m/hp800.h (NO_UNION_TYPE):
10421 * m/arm.h (NO_UNION_TYPE):
10422 * m/amdx86-64.h (NO_UNION_TYPE):
10423 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10424 defining it the same.
10425
104262008-07-10 Chong Yidong <cyd@stupidchicken.com>
10427
10428 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10429
104302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10431
10432 * fileio.c:
50426a04 10433 * sysdep.c:
aac0c6e3
MR
10434 * systty.h:
10435 * m/ibmrs6000.h:
10436 * m/iris4d.h:
10437 * s/aix4-2.h:
10438 * s/freebsd.h:
10439 * s/gnu-linux.h:
10440 * s/hpux10-20.h:
10441 * s/hpux11.h:
10442 * s/netbsd.h:
10443 * s/sol2-3.h:
10444 * s/sol2-4.h:
10445 * s/sol2.h:
10446 * s/usg5-4.h:
10447 * s/vms.h: Remove references to unused variables.
10448
104492008-07-10 Andreas Schwab <schwab@suse.de>
10450
10451 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10452 pattern before matching the generic family.
10453
104542008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10455
10456 * unexec.c:
10457 * s/vms.h:
10458 * s/usg5-4-2.h:
10459 * s/sol2-5.h:
10460 * s/freebsd.h:
10461 * s/darwin.h: Remove dead code.
10462
10463 * m/template.h:
10464 * m/sparc.h:
10465 * m/mips.h:
10466 * m/m68k.h:
10467 * m/iris4d.h:
10468 * m/intel386.h:
10469 * m/ibms390x.h:
10470 * m/ibms390.h:
10471 * m/ia64.h:
10472 * m/hp800.h:
10473 * m/arm.h:
10474 * m/amdx86-64.h: Remove dead code and references to unused
10475 and compiler defined symbols.
10476
10477 * unexmips.c:
10478 * unexelf.c: Remove references to desupported systems.
10479
10480 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10481
10482 * m/powermac.h: Remove boilerplate comments.
10483 (NO_REMAP): Remove unused definition.
10484
10485 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10486 define them.
10487
104882008-07-10 Kenichi Handa <handa@m17n.org>
10489
10490 * xfont.c (xfont_open): Log the reason of failure.
10491
104922008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10493
10494 * fontset.c (fontset_get_font_group):
10495 * font.c (font_check_otf): Specify argument types.
10496
104972008-07-09 Kenichi Handa <handa@m17n.org>
10498
10499 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10500 non-ASCII char is found.
10501
10502 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10503 (reorder_font_vector): Change the arg preferred_family to font.
10504 Prefer the spec matching with font.
10505 (fontset_get_font_group): New function.
10506 (fontset_find_font): Change the format of an element of a realized
10507 fontset. Use fontset_get_font_group.
10508 (fontset_font): Try the current fontset, the default fontset, the
10509 fallbacks of the current fontset, and the fallbacks of the default
10510 fontset in this order.
10511 (face_for_char): Delete the shortcut to use the current font.
10512 (fontset_from_font): Don't set fonts for Latin in the fontset.
10513
10514 * font.h (font_make_object, font_match_p): Adjust prototypes.
10515
10516 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10517
10518 * font.c (font_make_object): New arg entity and pixelsize.
10519 (font_check_otf_features, font_check_otf): New functions.
10520 (font_match_p): Check :lang, :script, and :otf properties.
10521
10522 * xfont.c (xfont_open): Adjust it for the change of
10523 font_make_object.
10524 (xfont_text_extents): Fix initial setting of metrics.
10525
10526 * ftfont.c (struct ftfont_info): New member index, delete member
10527 fc_charset_idx. Make the member order compatible with struct
10528 xftfont_info.
10529 (fc_charset_table): Change charset names to registry names.
10530 (ftfont_pattern_entity): Delete the args registry and
10531 fc_charset_idx. Change the value of :font-entity property
10532 to (FONTNAME . INDEX). Always set :registry property to
10533 `iso10646-1'.
10534 (struct ftfont_cache_data): New struct.
10535 (ftfont_lookup_cache): New arg for_face.
10536 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10537 (ftfont_driver): Set the member otf_capability.
10538 (ftfont_get_charset): Adjust it for the change of
10539 fc_charset_table.
10540 (OTF_TAG_SYM): New macro.
10541 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10542 for the change of fc_charset_table.
10543 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10544 ftfont_pattern_entity. Add FC_INDEX to objset.
10545 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10546 and ftfont_pattern_entity.
10547 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10548 font_make_object, struct ftfont_info.
10549 (ftfont_has_char): Use ftfont_get_fc_charset.
10550 (ftfont_otf_features, ftfont_otf_capability): New functions.
10551 (ftfont_shape): Use ftfont_get_otf.
10552 (ftfont_text_extents): Fix initial setting of metrics.
10553
10554 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10555 member order compatible with struct ftfont_info.
10556 (xftfont_open): Add FC_CHARSET to the pattern. Set
10557 xftfont_info->ft_size. Don't unlock the face. Check BDF
10558 properties if appropriate.
10559 (xftfont_close): Unlock the face.
10560 (xftfont_anchor_point, xftfont_shape): Deleted.
10561 (syms_of_xftfont): Don't set members anchor_point and shape of
10562 xftfont_driver.
10563
10564 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10565 font_make_object.
10566
10567 * w32font.c (w32font_open): Adjust it for the change of
10568 font_make_object.
10569 (w32font_open_internal): Don't set properties of font_object here.
10570
105712008-07-08 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * macfns.c (x_create_tip_frame):
10574 * w32fns.c (x_create_tip_frame):
10575 * xfns.c (x_create_tip_frame): Pass parameter argument to
10576 face-set-after-frame-default.
10577
10578 * xfaces.c (Finternal_merge_in_global_face): Save merged
10579 attributes for the default face back into the face vector.
10580
105812008-07-08 Andreas Schwab <schwab@suse.de>
10582
10583 * fontset.h: Declare fontset_from_font. Don't declare
10584 new_fontset_from_font and fontset_from_font_name.
10585 * xterm.c: Include "fontset.h".
10586 * Makefile.in (xterm.o): Update dependencies.
10587
105882008-07-08 Glenn Morris <rgm@gnu.org>
10589
10590 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10591 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10592
105932008-07-07 Chong Yidong <cyd@stupidchicken.com>
10594
10595 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10596 (x_set_frame_parameters): Don't bind it.
10597
105982008-07-07 Juanma Barranquero <lekktu@gmail.com>
10599
10600 * w32fns.c (map_w32_filename): Declare extern.
10601
106022008-07-07 Jason Rumney <jasonr@gnu.org>
10603
10604 * w32term.c (WS_EX_LAYERED): Define if not already.
10605
106062008-07-06 Chong Yidong <cyd@stupidchicken.com>
10607
10608 * xfaces.c (set_font_frame_param): Don't try to set the font
10609 parameter if it is still unspecified in the lface.
10610
106112008-07-05 Chong Yidong <cyd@stupidchicken.com>
10612
10613 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10614 face if it didn't already exist.
10615
10616 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10617
106182008-07-05 Andreas Schwab <schwab@suse.de>
10619
10620 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10621
106222008-07-05 Chong Yidong <cyd@stupidchicken.com>
10623
10624 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10625 word-wrapping.
10626 (IT_DISPLAYING_WHITESPACE): New macro.
10627 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10628 when word-wrapping. Simplify word-wrapping logic. Use correct
10629 pixel positions when saving copies of the iterator.
10630 (display_line): Use proper wrap point if the last character on a
10631 line was preceded by whitespace.
10632
106332008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10634
10635 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10636
106372008-07-04 Kenichi Handa <handa@m17n.org>
10638
10639 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10640
10641 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10642
106432008-07-02 Jason Rumney <jasonr@gnu.org>
10644
10645 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10646 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10647
10648 * xdisp.c (next_element_from_display_vector): Move assignment out
10649 of if statement.
10650
106512008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10652
10653 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10654
10655 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10656 (syms_of_fileio): Initialize and export them.
10657 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10658
10659 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10660 (Fsystem_move_file_to_trash): New function.
10661 (syms_of_w32fns): Export it to lisp.
10662
106632008-07-01 Jason Rumney <jasonr@gnu.org>
10664
10665 * w32font.c (w32font_text_extents): Don't count overhang as part
10666 of width.
10667
106682008-06-30 Miles Bader <miles@gnu.org>
10669
10670 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10671 Add `avoid_cursor_p' field.
10672
10673 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10674 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10675 (append_glyph, append_composite_glyph, produce_image_glyph)
10676 (append_stretch_glyph): Initialize avoid_cursor_p.
10677 (get_it_property): Rename from `get_line_height_property'.
10678 (x_produce_glyphs): Use get_it_property.
10679 (handle_line_prefix, push_display_prop): New functions.
10680 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10681 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10682 New variables.
10683 (syms_of_xdisp): Initialize them.
10684
106852008-06-30 Kenichi Handa <handa@m17n.org>
10686
10687 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10688 XftDefaultSubstitute (they are called in XftFontMatch).
10689 (xftfont_open): Fix args to ftfont_font_format.
10690
10691 * ftfont.c (fc_charset_table): New member lang.
10692 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10693 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10694 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10695 (ftfont_open): Fix args to ftfont_font_format.
10696 (ftfont_font_format): New arg filename.
10697
106982008-06-30 Chong Yidong <cyd@stupidchicken.com>
10699
10700 * xfaces.c (Finternal_merge_in_global_face): If default face was
10701 modified, realize it again. Update the font face attribute.
10702
107032008-06-29 Jason Rumney <jasonr@gnu.org>
10704
10705 * w32term.c (x_set_frame_alpha): Fix logic.
10706
107072008-06-29 Kenichi Handa <handa@m17n.org>
10708
10709 * fontset.c (Finternal_char_font): Return font-object instead of
10710 font-name.
10711
10712 * composite.c (get_composition_id): Fix the width calculation for TAB.
10713
107142008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10715
10716 * indent.c (Fvertical_motion): Properly handle float column arg.
10717
107182008-06-28 Jason Rumney <jasonr@gnu.org>
10719
10720 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10721 (pfnSetLayeredWindowAttributes): New function pointer.
10722 (w32_initialize): Initialize it when supported.
10723 (x_set_frame_alpha): New function.
10724
10725 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10726 (w32_frame_parm_handlers): Set alpha handler.
10727
10728 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10729
107302008-06-27 Jason Rumney <jasonr@gnu.org>
10731
10732 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10733 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10734 (w32_to_x_charset, x_to_w32_charset)
10735 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10736 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10737 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10738 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10739 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10740 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10741 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10742 (Qw32_charset_unicode): Remove.
10743 (syms_of_w32fns): Update for above changes.
10744
10745 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10746 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10747 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10748 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10749 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10750 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10751 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10752 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10753 (syms_of_w32font): Update for above changes.
10754
107552008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10756
10757 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10758 removed #if.
10759 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10760
107612008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 10762 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
10763
10764 * makefile.w32-in (LOCAL_FLAGS):
10765 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10766
10767 * sysdep.c (_spawnlp, _getpid):
10768 Declare with explicit _cdecl instead of _CRTAPI1.
10769
10770 * editfns.c (Fget_internal_run_time):
10771 Check for WINDOWSNT with #ifdef, not #if.
10772
107732008-06-26 Jason Rumney <jasonr@gnu.org>
10774
10775 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10776
10777 * w32term.c (x_draw_glyph_string_foreground)
10778 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10779 Use FONT_HANDLE macro.
10780 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10781
10782 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10783 (uniscribe_encode_char): Use FONT_HANDLE macro.
10784
10785 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10786 (w32font_text_extents): Use precast w32_font.
10787 (w32font_close): Free cached metrics.
10788 (w32font_open_internal): Allocate space for name on stack.
10789
107902008-06-26 Chong Yidong <cyd@stupidchicken.com>
10791
10792 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10793
107942008-06-26 Jason Rumney <jasonr@gnu.org>
10795
10796 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10797 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10798
107992008-06-26 Juanma Barranquero <lekktu@gmail.com>
10800
10801 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10802
108032008-06-26 Jason Rumney <jasonr@gnu.org>
10804
10805 * w32bdf.c, w32bdf.h: Remove obsolete files.
10806
10807 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10808
10809 * w32gui.h: Don't include w32bdf.h.
10810 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10811 Remove obsolete font support.
10812
10813 * w32font.h (struct w32font_info): Remove compat_w32_font.
10814 Add hfont member.
10815 (FONT_COMPAT): Remove obsolete macro.
10816
10817 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10818 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10819 (w32font_open_internal): Remove compat code. Set new hfont member.
10820 (Fx_select_font): Use new hfont member.
10821
10822 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10823 (uniscribe_encode_char): Use new hfont member.
10824
10825 * w32term.c (x_draw_glyph_string_foreground)
10826 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10827 (x_draw_glyph_string): Use metrics in w32font_info.
10828
108292008-06-26 Kenichi Handa <handa@m17n.org>
10830
10831 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10832
108332008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10834
10835 * unexnext.c:
10836 * m/ews4800.h:
10837 * m/hp9000s300.h:
10838 * m/ibm370aix.h:
10839 * m/mips-siemens.h:
10840 * m/ncr386.h:
10841 * m/next.h:
10842 * m/pmax.h:
10843 * m/powerpcle.h:
10844 * m/tandem-s2.h:
10845 * s/386bsd.h:
10846 * s/bsd386.h:
10847 * s/bsd4-1.h:
10848 * s/bsd4-2.h:
10849 * s/bsdos2-1.h:
10850 * s/bsdos2.h:
10851 * s/bsdos3.h:
10852 * s/bsdos4.h:
10853 * s/nextstep.h:
10854 * s/ultrix4-3.h:
10855 * s/usg5-0.h:
10856 * s/usg5-2-2.h:
10857 * s/usg5-2.h:
10858 * s/usg5-4-3.h:
10859 * s/ux4800.h:
10860 * s/uxpds.h:
10861 * s/uxpv.h: Remove support for obsolete systems.
10862 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10863 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10864 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10865 Remove, insert contents in s/aix4-2.h.
10866 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10867 * s/bsd4-3.h: Rename to ...
10868 * s/bsd-common.h: ... this.
10869 * data.c:
10870 * doc.c:
10871 * ecrt0.c:
10872 * emacs.c:
10873 * fileio.c:
10874 * floatfns.c:
10875 * keyboard.c:
10876 * mem-limits.h:
10877 * print.c:
10878 * process.c:
10879 * sysdep.c:
10880 * syssignal.h:
10881 * systty.h:
10882 * syswait.h:
10883 * term.c:
10884 * unexec.c:
10885 * unexelf.c:
10886 * unexhp9k800.c:
10887 * m/hp800.h:
10888 * m/ibmrs6000.h:
10889 * m/mips.h:
10890 * m/vax.h:
10891 * s/darwin.h:
10892 * s/freebsd.h:
10893 * s/gnu.h:
10894 * s/ms-w32.h:
10895 * s/msdos.h:
10896 * s/netbsd.h:
10897 * s/template.h: Remove references to obsolete variables.
10898
10899 * Makefile.in: Add dependencies for all unexec files.
10900 (admindir): Remove unused variable.
10901 (UNEXEC_SRC): Remove references.
10902
109032008-06-25 Chong Yidong <cyd@stupidchicken.com>
10904
10905 * xfns.c (x_default_font_parameter): If Xft is available, first
10906 try Monospace-12 for the default font.
10907
109082008-06-25 Jason Rumney <jasonr@gnu.org>
10909
10910 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10911
109122008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10913
10914 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10915
10916 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10917
109182008-06-25 Juanma Barranquero <lekktu@gmail.com>
10919
10920 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10921 <scroll-conservatively>: Fix typo in docstring.
10922
10923 * xselect.c (Fx_send_client_event): Doc fix.
10924
109252008-06-25 Kenichi Handa <handa@m17n.org>
10926
10927 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10928
10929 * font.c (font_parse_fcname): Remove unused variables.
10930 (font_sort_entites): Delete the arg SPEC. Caller changed.
10931 Fix for the case of ! best_only.
10932 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10933
10934 * lisp.h (Fstring_to_unibyte): EXFUN it.
10935
10936 * character.h (str_to_unibyte): Extern it.
10937
10938 * character.c (str_to_unibyte): New function.
10939
10940 * fns.c (Fstring_to_unibyte): New function.
10941 (syms_of_fns): Defsubr it.
10942
109432008-06-24 Kenichi Handa <handa@m17n.org>
10944
10945 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10946 DPI too.
10947 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10948
109492008-06-24 Andreas Schwab <schwab@suse.de>
10950
10951 * Makefile.in (${lispsource}loaddefs.el): Rename from
10952 ../lisp/loaddefs.el.
10953 (bootstrap-clean): Do what distclean does but don't remove
10954 Makefile.
10955 (distclean): Depend on bootstrap-clean and remove Makefile.
10956
109572008-06-24 Chong Yidong <cyd@stupidchicken.com>
10958
10959 * buffer.h (struct buffer): New member word_wrap.
10960
10961 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10962 word-wrap.
10963 (init_buffer_once): Initialize them.
10964
10965 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10966 line_wrap enum possessing three possible values.
10967
10968 * termopts.h: Replace truncate_partial_width_windows with
10969 Vtruncate_partial_width_windows.
10970
10971 * dispnew.c (direct_output_for_insert): Avoid direct output when
10972 inserting a space with word wrap on.
10973
10974 * indent.c (compute_motion): Obey integer values of
10975 truncate-partial-width-windows.
10976
10977 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10978 replacing truncate_partial_width_windows.
10979 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10980 truncate only if the window width is below that integer.
10981 (start_display, resize_mini_window, produce_stretch_glyph)
10982 (display_string, move_it_in_display_line_to): Use line_wrap.
10983 (back_to_previous_visible_line_start, reseat_1): Reset
10984 string_from_display_prop_p.
10985 (display_line): Extend default face to end of line when wrapping.
10986
109872008-06-24 Kim F. Storm <storm@cua.dk>
10988
10989 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10990 to wrap continued lines at word boundaries.
10991
109922008-06-24 Jason Rumney <jasonr@gnu.org>
10993
10994 * font.c (Ffont_face_attributes): Multiply pixel size before point
10995 conversion to avoid multiplying rounding error.
10996
109972008-06-23 Jason Rumney <jasonr@gnu.org>
10998
10999 * w32term.c (x_draw_glyph_string_background)
11000 (x_draw_glyph_string): Remove old bdf font code.
11001
11002 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11003
110042008-06-22 Kenichi Handa <handa@m17n.org>
11005
11006 * font.c (font_find_for_lface): Try the adstyle specified in
11007 the property of LFACE_FONT of LFACE (if any).
11008
110092008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11010 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11011
11012 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11013
110142008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11015
11016 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11017 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11018 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11019 (witness-emacs): Remove.
11020 (lisp, shortlisp): Move loaddefs.el earlier.
11021 (mostlyclean): Forget about witness-emacs.
11022
110232008-06-22 Glenn Morris <rgm@gnu.org>
11024
11025 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11026 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11027
110282008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11029
11030 * Makefile.in (PRECOMP): Remove.
11031 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11032 (witness-emacs): Run `compile-first'.
11033 (.el.elc): Use the new compile-onefile target.
11034
110352008-06-21 Kenichi Handa <handa@m17n.org>
11036
11037 * xftfont.c (xftfont_open): Handle QCembolden only when
11038 FC_EMBOLDEN is defined.
11039
110402008-06-21 Andreas Schwab <schwab@suse.de>
11041
11042 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11043 (.el.elc): Likewise.
11044
110452008-06-21 Miles Bader <miles@gnu.org>
11046
11047 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11048 build dir, not the lisp source dir.
11049
110502008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11051
11052 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11053 (bootstrapclean): Remove.
11054 (.el.elc): New rule.
11055 (PRECOMP): New var.
11056 (../lisp/subdirs.el): Remove.
11057 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11058 (witness-emacs): New target.
11059 (mostlyclean): Remove witness-emacs as well.
11060 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11061 Add witness-emacs dependency.
11062
110632008-06-20 Chong Yidong <cyd@stupidchicken.com>
11064
11065 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11066 defined by the font.
11067
110682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11069
11070 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11071 (bootstrap-clean): New target that keeps TAGS around.
11072 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11073 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11074
110752008-06-20 Jason Rumney <jasonr@gnu.org>
11076
11077 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11078 Remove obsolete font code.
11079
11080 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11081 to determine language support.
11082
110832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11084
11085 * sysdep.c (cfsetspeed): New fun extracted from the code.
11086 (cfmakeraw): Move before first use.
11087
110882008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11089
11090 * sysdep.c (cfmakeraw): Provide fallback implementation.
11091 (serial_configure): Provide fallback implementation of cfsetspeed.
11092
110932008-06-20 Kenichi Handa <handa@m17n.org>
11094
11095 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11096 the pattern.
11097
11098 * fontset.c (fontset_from_font): Copy font_spec before changing
11099 the elements.
11100
11101 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11102
111032008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11104
11105 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11106 for explicit `font' parameters.
11107
11108 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11109
111102008-06-19 Kenichi Handa <handa@m17n.org>
11111
11112 * frame.c: Include <ctype.h>.
11113 (x_set_font_backend): Allow spacing characters in the X resource
11114 for FontBackend.
11115
111162008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11117
11118 * w32fns.c, xfns.c (Qfont_param): New var.
11119 (syms_of_w32fns): Initialize it.
11120 (x_default_font_parameter): Record explicit `font' into
11121 `font-parameter'.
11122
111232008-06-18 Kenichi Handa <handa@m17n.org>
11124
11125 * font.c (font_parse_xlfd): Fix previous change.
11126 (font_parse_fcname): Don't use :fc-unknown-spec.
11127 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11128 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11129 (font_add_log): Prepend the driver name to the resulting fonts.
11130
11131 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11132 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11133 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11134
11135 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11136 (QCembolden): New variables.
11137 (syms_of_xftfont): DEFSYM them.
11138 (xftfont_open): Call XftFontMatch. Don't trust the result of
11139 XftTextExtents8 if the pixel_size is less than 5.
11140
111412008-06-18 Andreas Schwab <schwab@suse.de>
11142
11143 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11144 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11145
111462008-06-18 Jason Rumney <jasonr@gnu.org>
11147
11148 * w32font.c (w32font_list, w32font_match): Add logging.
11149
11150 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11151
111522008-06-17 Chong Yidong <cyd@stupidchicken.com>
11153
11154 * font.c (font_parse_fcname): Store divider characters for
11155 unknown-spec list. For known key symbols, intern using correct
11156 symbol name.
11157
111582008-06-17 Kenichi Handa <handa@m17n.org>
11159
11160 * xfaces.c (realize_default_face): If the frame is not on window
11161 system, set the fontset of face to nil.
11162
111632008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11164
11165 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11166
111672008-06-16 Juanma Barranquero <lekktu@gmail.com>
11168
11169 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11170 (build_font_name_from_vector): Delete externs.
11171
11172 * xfaces.c (struct font_name): Don't declare.
11173
111742008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11175
11176 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11177
111782008-06-16 Chong Yidong <cyd@stupidchicken.com>
11179
11180 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11181
111822008-06-16 Juanma Barranquero <lekktu@gmail.com>
11183
11184 * font.c (Ffont_spec): Fix usage in docstring.
11185 (Ffont_face_attributes): Doc fix.
11186
111872008-06-16 Andreas Schwab <schwab@suse.de>
11188
11189 * font.c (Ffont_face_attributes): Fix definition.
11190
111912008-06-16 Jason Rumney <jasonr@gnu.org>
11192
11193 * font.h (font_style_symbolic_from_value): Remove.
11194
11195 * font.c (font_style_symbolic_from_value): Remove.
11196 (font_style_symbolic): Revert to pre 2008-06-13 version.
11197
11198 * w32font.c (w32_to_fc_weight): New function.
11199 (w32font_full_name, logfont_to_fcname): Use it.
11200
112012008-06-16 Kenichi Handa <handa@m17n.org>
11202
11203 * font.c (font_check_object): Delete it.
11204 (font_clear_cache): Check if a font-object is alive.
11205 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11206 font-object to nil.
11207 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11208 (font_at): Don't call font_check_object.
11209 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11210
112112008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11212
11213 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11214
112152008-06-16 Chong Yidong <cyd@stupidchicken.com>
11216
11217 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11218
112192008-06-15 Chong Yidong <cyd@stupidchicken.com>
11220
11221 * font.c (font_parse_fcname): Only one decimal point.
11222 (font_unparse_fcname): Handle data in family and foundry indices
11223 as symbols, not strings.
11224 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11225
11226 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11227
11228 * font.h (font_unparse_gtkname): Add prototype.
11229
112302008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11231
11232 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11233
112342008-06-15 Andreas Schwab <schwab@suse.de>
11235
11236 * font.c (font_update_drivers): Fix crash when no drivers match.
11237
112382008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11239
11240 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11241 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11242
112432008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11244
11245 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11246
112472008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11248
11249 * process.c (Fserial_process_configure, Fprocess_send_eof):
11250 Use EQ to compare Lisp_Objects.
11251
112522008-06-13 Jason Rumney <jasonr@gnu.org>
11253
11254 * w32fns.c (Fw32_select_font): Remove old font API function.
11255
11256 * w32font.c (logfont_to_fcname): New function.
11257 (Fx_select_font): New font dialog function compatible with
11258 GTK/fontconfig version.
11259
11260 * font.c (font_style_symbolic_from_value): New function.
11261 (font_style_symbolic): Use it.
11262
11263 * font.h (font_style_symbolic_from_value): Declare new function.
11264
112652008-06-13 Juanma Barranquero <lekktu@gmail.com>
11266
11267 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11268 <font-width-table>: Fix typos in docstrings.
11269
112702008-06-13 Daniel Engeler <engeler@gmail.com>
11271
11272 These changes add serial port access.
11273 * process.c: Add HAVE_SERIAL.
11274 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11275 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11276 (list_processes_1, select_wrapper, Fstop_process)
11277 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11278 (status_notify): Modify to handle serial processes.
11279 [HAVE_SERIAL] (Fserial_process_configure)
11280 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11281 New functions.
11282 * process.h (struct Lisp_Process): Add `type'.
11283 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11284 New functions.
11285 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11286 serial ports.
b71ac3dd 11287 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11288 * w32.h: Add FILE_SERIAL.
11289 (struct _child_process): Add ovl_read, ovl_write.
11290
112912008-06-13 Kenichi Handa <handa@m17n.org>
11292
11293 * dispextern.h (enum lface_attribute_index): New member
11294 LFACE_FOUNDRY_INDEX.
11295
11296 * font.c (font_score): Delete arg alternate_families. Check only
11297 weight, slant, width, and size. Ignore the difference of alias
11298 style symbols.
11299 (font_sort_entites): Adjust for the above change. Reflect the
11300 order of font-driver to scores.
11301 (font_list_entities): Don't check alternate_familes here.
11302 (font_clear_prop): Handle foundry.
11303 (font_update_lface): Don't parse "foundry-family" form here.
11304 Handle FONT_FOUNDRY_INDEX.
11305 (font_find_for_lface): Likewise. Handle alternate families here.
11306 If registry is nil, try iso8859-1 and ascii-0.
11307 (font_open_for_lface): Pay attention to size in ENTITY.
11308 (font_open_by_name): Simplify by calling font_load_for_lface.
11309 (free_font_driver_list): Delete it.
11310 (font_update_drivers): Preserve the order of backends.
11311 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11312 of font_score and font_sort_entites.
11313 (font_update_sort_order): Likewise.
11314
11315 * xfaces.c (LFACE_FOUNDRY): New macro.
11316 (check_lface_attrs): Check foundry.
11317 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11318 (merge_face_vectors): Check foundry.
11319 (merge_face_ref): Likewise.
11320 (Finternal_set_lisp_face_attribute): Likewise.
11321 (x_update_menu_appearance): Likewise.
11322 (Finternal_get_lisp_face_attribute): Likewise.
11323 (lface_hash): Likewise.
11324 (lface_same_font_attributes_p): Likewise.
11325 (x_supports_face_attributes_p): Likewise.
11326 (tty_supports_face_attributes_p): Likewise.
11327 (Finternal_set_alternative_font_family_alist): Intern strings.
11328 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11329 (realize_default_face): Set LFACE_FOUNDRY (lface).
11330
11331 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11332 font-driver at first.
11333
11334 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11335
113362008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11337
11338 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11339
113402008-06-12 Jim Meyering <meyering@redhat.com>
11341
11342 Make unexec_free handle NULL the same way free does.
11343 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11344
113452008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11346
11347 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11348 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11349 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11350 (WEAK_ALIAS): Simplify.
11351 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11352 when searching a unibyte buffer.
11353
113542008-06-12 Chong Yidong <cyd@stupidchicken.com>
11355
11356 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11357
113582008-06-12 Juanma Barranquero <lekktu@gmail.com>
11359
11360 * w32font.c: Include ctype.h.
11361
113622008-06-11 Jason Rumney <jasonr@gnu.org>
11363
11364 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11365 misreported as space.
11366 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11367 as aliases for registry iso10646-1.
11368
113692008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11370
11371 * buffer.c (clone_per_buffer_values): Skip `name'.
11372
113732008-06-11 Chong Yidong <cyd@stupidchicken.com>
11374
11375 * font.c (font_parse_fcname): Fix last change; accept decimal
11376 points in font size.
11377
113782008-06-10 Jason Rumney <jasonr@gnu.org>
11379
11380 * w32uniscribe.c (add_opentype_font_name_to_list):
11381 Skip non unicode fonts.
11382
113832008-06-10 Chong Yidong <cyd@stupidchicken.com>
11384
11385 * xfns.c (Fx_font_dialog): New function.
11386
11387 * gtkutil.c (xg_dialog_response_cb): Rename from
11388 xg_file_response_callback.
11389 (pop_down_dialog): Rename from pop_down_file_dialog.
11390 (xg_get_file_name): Callers changed.
11391 (xg_get_font_name): New function.
11392
11393 * gtkutil.h (xg_get_font_name): Insert prototype.
11394
113952008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11396
11397 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11398 x_underline_minimum_display_offset.
11399 (syms_of_xdisp): Declare it here rather than in xterm.c.
11400 * dispextern.h (underline_minimum_offset): Declare it.
11401 * w32term.c (x_draw_glyph_string): Use it.
11402 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11403 (syms_of_xterm): Don't declare it any more.
11404 (x_draw_glyph_string): Adjust to the new name.
11405
8719abec 114062008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11407
11408 * xterm.c (x_underline_minimum_display_offset): New var.
11409 (x_draw_glyph_string): Use it.
11410 (syms_of_xterm): Declare it.
11411
114122008-06-10 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * font.c (font_parse_fcname): Accept GTK-style font names too.
11415
114162008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11417
11418 * dired.c (file_name_completion): Don't return t if the match is exact
11419 but with different capitalization.
11420 * minibuf.c (Ftry_completion): Simplify.
11421
11422 * window.c (Vwindow_point_insertion_type): New var.
11423 (set_window_buffer): Use it.
11424 (syms_of_window): Init and export it to Lisp.
11425
114262008-06-10 Kenichi Handa <handa@m17n.org>
11427
11428 * font.h (font_intern_prop): Prototype adjusted.
11429
11430 * font.c (font_intern_prop): New arg force_symbol.
11431 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11432 Adjust for the change of font_intern_prop.
11433
11434 * ftfont.c (ftfont_pattern_entity):
11435 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11436 (w32_registry):
11437 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11438 the change of font_intern_prop.
11439
114402008-06-09 Juanma Barranquero <lekktu@gmail.com>
11441
11442 * w32menu.c (digest_single_submenu): Declare extern.
11443
114442008-06-09 Jason Rumney <jasonr@gnu.org>
11445
11446 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11447
11448 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11449 (parse_single_submenu): Remove.
11450 (digest_single_submenu): Remove.
11451 (syms_of_w32menu): Don't initialise variables that have moved
11452 to menu.c.
11453 (set_frame_menubar): Sync with version in xmenu.c.
11454 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11455
11456 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11457 Make static again.
11458
114592008-06-09 Jason Rumney <jasonr@gnu.org>
11460
11461 Changes to w32 files related to the move of common menu code
11462 to menu.c on 2008-06-08 by Chong Yidong.
11463
11464 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11465 defs to w32gui.h.
11466 (single_keymap_panes, push_menu_item, push_menu_pane):
11467 Make globally visible.
11468
11469 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11470 (local_free, malloc_widget_value, free_widget_value)
11471 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11472 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11473 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11474 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11475 (menu_items, menu_items_allocated, menu_items_used)
11476 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11477 (init_menu_items, finish_menu_items, discard_menu_items)
11478 (grow_menu_items, push_submenu_start, push_submenu_end)
11479 (push_left_right_boundary, push_menu_pane, push_menu_item)
11480 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11481 (free_menubar_widget_tree_value, parse_single_submenu)
11482 (update_submenu_strings): Remove functions.
11483 (xmalloc_widget_value): Remove and declare extern.
11484
11485 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11486 (OBJ1): Build it.
11487
11488 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11489 (local_heap, local_alloc, local_free, malloc_widget_value)
11490 (free_widget_value): Define here.
11491
114922008-06-09 Kenichi Handa <handa@m17n.org>
11493
11494 * font.h (Qascii_0): Extern it.
11495
11496 * font.c (Qascii_0): New variable.
11497 (syms_of_font): DEFSYM it.
11498 (font_open_by_name): If the registry "iso8859-1" fails, try also
11499 "ascii-0".
11500
11501 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11502
115032008-06-08 Kenichi Handa <handa@m17n.org>
11504
11505 * .gdbinit (xfont): New command.
11506
115072008-06-08 Andreas Schwab <schwab@suse.de>
11508
11509 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11510 * Makefile.in (menu.o): Update dependencies.
11511
11512 * Makefile.in (obj): Always add menu.o.
11513 * emacs.c (main): Always call syms_of_menu.
11514 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11515
115162008-06-08 Chong Yidong <cyd@stupidchicken.com>
11517
11518 * Makefile.in: Compile menu.c.
11519
11520 * lisp.h: Declare syms_of_menu.
11521
11522 * emacs.c (main): Call syms_of_menu.
11523
11524 * keyboard.h: Relocate platform-independent menu definitions from
11525 xmenu.c.
11526
11527 * menu.c: New file. Relocate platform-independent menu
11528 definitions from xmenu.c. Suggested by Adrian Robert.
11529
11530 * xmenu.c: Remove platform-independent menu definitions.
11531 (menu_items menu_items_inuse, menu_items_allocated)
11532 (menu_items_used, menu_items_n_panes)
11533 (menu_items_submenu_depth): Move to keyboard.h.
11534 (init_menu_items, finish_menu_items, unuse_menu_items)
11535 (discard_menu_items, restore_menu_items, save_menu_items)
11536 (grow_menu_items, push_submenu_start, push_submenu_end)
11537 (push_left_right_boundary, push_menu_pane, push_menu_item)
11538 (keymap_panes, single_keymap_panes, single_menu_item)
11539 (list_of_panes, list_of_items, find_and_call_menu_selection)
11540 (xmalloc_widget_value, free_menubar_widget_value_tree)
11541 (parse_single_submenu, digest_single_submenu)
11542 (update_submenu_strings): Move to menu.c.
11543
115442008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11545
11546 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11547
115482008-06-06 Miles Bader <miles@gnu.org>
11549
11550 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11551 face, not frame default.
11552
115532008-06-05 Martin Rudalics <rudalics@gmx.at>
11554
11555 * window.c (pop_up_windows, pop_up_frames)
11556 (display_buffer_reuse_frames, Vpop_up_frame_function)
11557 (Vdisplay_buffer_function, Veven_window_heights)
11558 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11559 (Vspecial_display_function, Vsame_window_buffer_names)
11560 (Vsame_window_regexps, split_height_threshold)
11561 (Vsplit_window_preferred_function): Move those vars to window.el.
11562 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11563 (Fdisplay_buffer): Move those functions to window.el.
11564 (syms_of_window): Remove corresponding declarations.
11565 (display_buffer): New function.
11566 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11567 * dispnew.c (Flast_nonminibuf_frame): New function.
11568 * buffer.c (Fpop_to_buffer): Move to window.el.
11569
115702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11571
11572 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11573
115742008-06-05 Kenichi Handa <handa@m17n.org>
11575
11576 * coding.c (detect_coding): Fix previous change.
11577 (detect_coding_system): Likewise.
11578
115792008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11580
11581 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11582
11583 * keymap.c (Vminibuffer_local_filename_must_match_map):
11584 Rename from Vminibuffer_local_must_match_filename_map.
11585 (syms_of_keymap):
11586 * minibuf.c (Fcompleting_read): Adjust accordingly.
11587 * commands.h: Rename declaration as well.
11588
115892008-06-05 Kenichi Handa <handa@m17n.org>
11590
11591 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11592 family name.
11593 (Ffont_put): Likewise.
11594
11595 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11596 current font-spec.
11597
11598 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11599 is unspecified.
11600
11601 * xfaces.c (realize_x_face): If the font-related face attributes
11602 are the same as those of default face, realize a new fontset from
11603 default->fontset.
11604 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11605
116062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11609 (move_it_in_display_line): New wrapper.
11610
11611 * window.c (window_scroll_pixel_based_preserve_x)
11612 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11613 (window_scroll_pixel_based, window_scroll_line_based):
11614 Use them to preserve column positions.
11615 (syms_of_window): Initialize them.
11616
11617 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11618 (HPOS . VPOS) pair.
11619
11620 * dispextern.h (move_it_in_display_line): Declare.
11621
116222008-06-05 Juanma Barranquero <lekktu@gmail.com>
11623
11624 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11625 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11626 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11627
116282008-06-04 Juanma Barranquero <lekktu@gmail.com>
11629
11630 * window.c (Fset_window_parameter): Doc fix.
11631 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11632
116332008-06-04 Joakim Verona <joakim@verona.se>
11634
11635 * window.h (struct window): Add new member window_parameters.
11636
11637 * window.c (Fwindow_parameters, Fwindow_parameter)
11638 (Fset_window_parameter): New defuns.
11639 (syms_of_window): Defsubr the new defuns.
11640 (make_window): Initialize window_parameters to nil.
11641
116422008-06-04 John Paul Wallington <jpw@pobox.com>
11643
11644 * eval.c (Fdefmacro): Doc fix.
11645
116462008-06-04 Kenichi Handa <handa@m17n.org>
11647
11648 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11649 Be sure to call setup_coding_system when we find a proper coding system.
11650 (detect_coding_system): Fix handling of coding->head_ascii.
11651
116522008-06-03 Andreas Schwab <schwab@suse.de>
11653
11654 * font.c (font_prop_validate_spacing): Fix last change.
11655
116562008-06-03 Kenichi Handa <handa@m17n.org>
11657
11658 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11659 (font_parse_fcname): Fix handling of unknown key.
11660
11661 * xfont.c (xfont_list): Try an alias.
11662
11663 * charset.c (char_charset): Return NULL if the arg charset_list is
11664 specified and C doesn't belong to any of them.
11665
116662008-06-02 Chip Coldwell <coldwell@redhat.com>
11667
11668 * font.c (font_pixel_size): Don't take cdr of an integer.
11669
116702008-06-02 Jim Meyering <meyering@redhat.com>
11671
11672 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11673 * alloc.c (xfree): Return right away for a NULL arg.
11674 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11675 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11676 * mac.c (create_apple_event_from_event_ref): Likewise.
11677 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11678 Likewise.
11679 * doprnt.c (doprnt1): Likewise.
11680 * frame.c (frame): Likewise.
11681 * keyboard.c (wipe_kboard): Likewise.
11682 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11683 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11684 * term.c (tty_default_color_capabilities, maybe_fatal)
11685 (delete_tty): Likewise.
11686 * w16select.c (string): Likewise.
11687 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11688 * w32bdf.c (w32_free_bdf_font): Likewise.
11689 * w32fns.c (w32_unload_font): Likewise.
11690 * w32font.c (w32font_close): Likewise.
11691 * window.c (size_window): Likewise.
11692 * xselect.c (receive_incremental_selection): Likewise.
11693 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11694 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11695 * w32.c (stat): Likewise.
11696
11697 Remove useless if-before-free tests.
11698 * editfns.c (Fset_time_zone_rule): Likewise.
11699 * lread.c (nosuffix): Likewise.
11700 * ralloc.c (get_bloc): Likewise.
11701 * regex.c (reg_free): Likewise.
11702 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11703 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11704 * xsmfns.c (smc_save_yourself_CB): Likewise.
11705
117062008-06-02 Kenichi Handa <handa@m17n.org>
11707
11708 * font.c (font_find_for_lface): Handle float font size.
11709 (font_open_for_lface): Likewise.
11710
11711 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11712 comparing the properties.
11713
117142008-06-01 Jason Rumney <jasonr@gnu.org>
11715
11716 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11717 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11718 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11719 Don't add empty script list.
11720 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11721
117222008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11723
11724 * Makefile.in (dot, dotdot): Remove, update users.
11725 ".." has been used elsewhere in the file for a long time.
11726 (LIBXT_STATIC): Remove conditional based on unused variable.
11727
117282008-06-01 Miles Bader <miles@gnu.org>
11729
11730 * xfaces.c (Vface_remapping_alist): New variable.
11731 (syms_of_xfaces): Initialize it.
11732 (enum named_merge_point_kind): New type.
11733 (struct named_merge_point): Add `named_merge_point_kind' field.
11734 (push_named_merge_point): Make cycle detection respect different
11735 named-merge-point kinds.
11736 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11737 Remove face-name alias resolution.
11738 (lface_from_face_name): New definition using
11739 `lface_from_face_name_no_resolve'.
11740 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11741 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11742 (get_lface_attributes): New definition that layers face-remapping on
11743 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11744 (lookup_basic_face): New function.
11745 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11746 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11747 `get_lface_attributes'.
11748 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11749 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11750 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11751
11752 * xdisp.c (init_iterator): Pass base_face_id through
11753 `lookup_basic_face' when we actually use it as a face-id.
11754 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11755 DEFAULT_FACE_ID.
11756
11757 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11758 lookup the initial face-id.
11759
11760 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11761
117622008-06-01 Juanma Barranquero <lekktu@gmail.com>
11763
11764 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11765 (Fremove_text_properties): Fix typos in docstrings.
11766
117672008-05-31 Kenichi Handa <handa@m17n.org>
11768
11769 * font.c (font_list_entities): Fix the car part of data to be
11770 stored in the cache.
11771
11772 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11773
117742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11775
11776 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11777 Add a `test' argument so another predicate than `equal' can be used.
11778 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11779 (map_char_table): Remove unused vars `c' and `i'.
11780 * lisp.h (Foptimize_char_table): Adjust declaration.
11781 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11782
117832008-05-30 Kenichi Handa <handa@m17n.org>
11784
11785 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11786 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11787 defined.
11788
117892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11790
11791 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11792 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11793 frame-local settings for the same variable.
11794
117952008-05-30 Kenichi Handa <handa@m17n.org>
11796
11797 * fontset.c (Ffont_info): Move to font.c.
11798 (syms_of_fontset): Delete defsubr of Sfont_info.
11799
11800 * font.c (font_style_to_value, font_score): Delete casting of the
11801 args to xstcasecmp.
11802 (register_font_driver): Increment num_font_drivers only when
11803 registering the driver globally.
11804 (Ffont_info): Move from fontset.c. Handle a font object too.
11805 (syms_of_font): Defsubr Sfont_info.
11806
118072008-05-29 Kenichi Handa <handa@m17n.org>
11808
11809 * coding.h (enum define_coding_utf8_arg_index): New enum.
11810 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11811 coding_attr_utf_bom.
11812 (enum utf_bom_type): Rename from utf_16_bom_type.
11813 (struct utf_16_spec): Adjust for the above change.
11814 (struct coding_system): Add utf_8_bom in `spec' union.
11815
11816 * coding.c (CODING_UTF_8_BOM): New macro.
11817 (enum coding_category): Delete coding_category_utf_8, add
11818 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11819 coding_category_utf_8_sig.
11820 (CATEGORY_MASK_UTF_8): Delete it.
11821 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11822 (CATEGORY_MASK_UTF_8_SIG): New macros.
11823 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11824 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11825 CATEGORY_MASK_UTF_8_SIG.
11826 (CATEGORY_MASK_UTF_8): New macro.
11827 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11828 (detect_coding_utf_8): Check BOM.
11829 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11830 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11831 (encode_coding_utf_16): Likewise.
11832 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11833 (detect_coding, detect_coding_system): Handle utf-8-auto.
11834 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11835 (syms_of_coding): Fix setting up of Vcoding_category_table.
11836
118372008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11838
11839 * process.c (Faccept_process_output): If `millisec' is non-nil,
11840 `seconds' default to 0.
11841 (wait_reading_process_output): Also return non-nil if we read output
11842 from a non-running process.
11843
118442008-05-29 Jason Rumney <jasonr@gnu.org>
11845
11846 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11847 `raster' specified.
11848 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11849 in the uniscribe backend, but disallow any font that has no
11850 unicode subrange support.
11851
118522008-05-29 Juanma Barranquero <lekktu@gmail.com>
11853
11854 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11855 Fix typos in docstrings.
11856
118572008-05-29 Kenichi Handa <handa@m17n.org>
11858
11859 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11860 (Fx_family_fonts): Set frame correctly.
11861
118622008-05-28 Jason Rumney <jasonr@gnu.org>
11863
11864 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11865
118662008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11867
11868 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11869 calling build_annotations.
11870
118712008-05-28 Juanma Barranquero <lekktu@gmail.com>
11872
11873 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11874 (Fencode_coding_string):
11875 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11876 <latin-extra-code-table>: Fix typos in docstrings.
11877 (syms_of_coding) <coding-system-alist>: Doc fix.
11878 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11879
118802008-05-28 Kenichi Handa <handa@m17n.org>
11881
11882 * fontset.c (Ffont_info): Don't call font_close_object.
11883
11884 * font.c (font_parse_family_registry): Use Ffont_put to validate
11885 foundry and family.
11886 (font_delete_unmatched): Don't check spacing.
11887 (font_list_entities): Add spacing to the spec to list fonts.
11888
11889 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11890 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11891
11892 * coding.c (encode_coding_raw_text): Fix previous change.
11893 (encode_coding_object): When the dst_object is a buffer and is
11894 different from src_object, move gap to PT.
11895
118962008-05-27 Chong Yidong <cyd@stupidchicken.com>
11897
11898 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11899
119002008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11901
11902 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11903 all branches. Compute it differently.
11904
11905 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11906
119072008-05-27 Juanma Barranquero <lekktu@gmail.com>
11908
11909 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11910 into "else if () ... else ...".
11911
119122008-05-27 Jason Rumney <jasonr@gnu.org>
11913
11914 * w32font.c (w32font_open_internal): Determine if glyph indices
11915 are likely to work here.
11916
119172008-05-27 Chong Yidong <cyd@stupidchicken.com>
11918
11919 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11920 draw overlap glyphs with appropriate highlighting.
11921
119222008-05-27 Kenichi Handa <handa@m17n.org>
11923
11924 * xfont.c (xfont_open): Fix calculation of font->average_width.
11925
119262008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11927
11928 * casefiddle.c (casify_object): Try to guess better whether the
11929 argument is a byte or a char.
11930
119312008-05-26 Andreas Schwab <schwab@suse.de>
11932
11933 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11934 Always send multiples of format size.
11935
11936 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11937
119382008-05-26 Jason Rumney <jasonr@gnu.org>
11939
11940 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11941 (compute_metrics): Don't set failure if we just cleared the cache.
11942 (w32_weight_table): Remove unused variable.
11943 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11944 backwards compatibility.
11945
119462008-05-25 Kenichi Handa <handa@m17n.org>
11947
11948 * w32term.c (x_draw_glyph_string):
11949 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11950
11951 * xfaces.c: Delete unused function prototypes.
11952 (xstrlwr, font_frame): Delete them.
11953 (clear_face_cache): Delete unused variable.
11954
11955 * xftfont.c (xftfont_open): Delete unused variable.
11956 If underline_thickness is not 1, adjust underline_position.
11957
11958 * ftxfont.c (ftxfont_open): Delete unused variable.
11959
11960 * fontset.c (face_for_char): Optimize for the case of no charset
11961 property.
11962
11963 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11964 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11965 (otf_open, font_otf_capability, generate_otf_features)
11966 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11967 Comment out by surrounding "#if 0" and "#endif" for the moment.
11968 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11969 (syms_of_font): Codes for accessing above commented out.
11970
119712008-05-24 Eli Zaretskii <eliz@gnu.org>
11972
11973 * w32proc.c: Include dispextern.h.
11974
11975 * w32.c: Include dispextern.h.
11976
119772008-05-23 Juanma Barranquero <lekktu@gmail.com>
11978
11979 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11980 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11981 Fix typos in docstrings.
11982
119832008-05-23 Jason Rumney <jasonr@gnu.org>
11984
11985 * xsmfns.c: Remove includes that are already included by config.h.
11986
119872008-05-23 Kenichi Handa <handa@m17n.org>
11988
11989 * charset.c (Qemacs, charset_emacs): New variables.
11990 (char_charset): Fix for non-Unicode characters.
11991 (syms_of_charset): Define charset_emacs.
11992
11993 * w32term.c (x_draw_glyph_string): Be sure to update
11994 s->underline_thickness and s->underline_position. Be sure to draw
11995 underline within the current line area.
11996
11997 * xterm.c (x_draw_glyph_string): Be sure to update
11998 s->underline_thickness and s->underline_position. Be sure to draw
11999 underline within the current line area.
12000
12001 * fontset.c: Delete unused variables and add casting for char *
12002 throughout the file.
12003 (fontset_font): Try the fallback fonts of the current fontset
12004 before consulting the default fontset.
12005
12006 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12007
12008 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12009
120102008-05-22 Jason Rumney <jasonr@gnu.org>
12011
12012 * font.c: Don't include strings.h.
12013
12014 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12015
12016 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12017 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12018 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12019 to call xstrcasecmp.
12020
12021 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12022
12023 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12024
12025 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12026
12027 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12028
120292008-05-22 Kenichi Handa <handa@m17n.org>
12030
12031 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12032
12033 * font.c (font_prop_validate_style): Adjust for the format
12034 change of font_style_table.
12035
12036 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12037 two args.
12038
12039 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12040 two args.
12041
120422008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12043
12044 * minibuf.c (keys_of_minibuf): Delete.
12045 * lisp.h (keys_of_minibuf): Delete.
12046 * emacs.c (main): Don't call keys_of_minibuf.
12047
120482008-05-22 Kenichi Handa <handa@m17n.org>
12049
12050 * ftfont.c (ftfont_resolve_generic_family): Rename from
12051 ftfont_list_generic_family. Return a single family for each
12052 generic family.
12053 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12054 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12055 Call font_add_log.
12056 (ftfont_match): Call font_add_log.
12057
12058 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12059 (FONT_DEBUG): Define it.
12060 (font_add_log): Extern it.
12061 (font_assert): Rename from xassert.
12062
12063 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12064 (xfont_list_family): Call font_add_log.
12065 (xfont_match): Likewise.
12066 (memq_no_quit): Delete.
12067
12068 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12069 call of Ffont_xlfd_name.
12070
12071 * xfaces.c (struct table_entry, slant_table, weight_table)
12072 (swidth_table): Move to font.c.
12073
12074 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12075 xassert are changed to font_assert. Delete many unused variables.
12076 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12077 New variables.
12078 (struct table_entry): Move from xfaces.c and modified.
12079 (weight_table, slant_table, width_table): Move from xfaces.c and
12080 contents adjusted for the change of struct table_entry.
12081 (font_style_to_value, font_style_symbolic): Adjust for the
12082 format change of font_style_table.
12083 (font_parse_family_registry): Don't overwrite existing foundry and
12084 family of font_spec.
12085 (font_score): Fix calculation of diff for sizes.
12086 (font_sort_entites): Call font_add_log.
12087 (font_delete_unmatched): Return a newly created list.
12088 (font_list_entities): Fix previous change. Call font_add_log.
12089 (font_matching_entity, font_open_entity, font_close_entity):
12090 Call font_add_log.
12091 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12092 (Finternal_set_font_style_table): Delete.
12093 (BUILD_STYLE_TABLE): New macro.
12094 (build_style_table): New function.
12095 (Vfont_log, font_log_env_checked): New variables.
12096 (font_add_log): New function.
12097 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12098 Declare Lisp variables "font-weight-table", "font-slant-table",
12099 "font-width-table", and "font-log". Initialize font_style_table.
12100
121012008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12102
12103 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12104
121052008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12106 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12107
12108 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12109 (Vframe_alpha_lower_limit): New variable.
12110 (x_set_alpha): New function.
12111
12112 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12113
12114 * xfns.c (x-create-frame, Qalpha):
12115 Initialize the frame parameter `alpha'.
12116 * xterm.c (OPAQUE, OPACITY): New.
12117 (x_set_frame_alpha): New function.
12118 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12119
12120 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12121 * w32fns.c (w32_frame_parm_handlers): Likewise.
12122
121232008-05-20 Jason Rumney <jasonr@gnu.org>
12124
12125 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12126 truetype fonts to opentype list.
12127
121282008-05-20 Juanma Barranquero <lekktu@gmail.com>
12129
12130 * fontset.c (Ffontset_info): Doc fix.
12131 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12132 <ignore-relative-composition>: Fix typos in docstrings.
12133
12134 * font.c (syms-of-font) <font-encoding-alist>:
12135 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12136 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12137 (Ffont_otf_alternates): Doc fixes.
12138
121392008-05-20 Kenichi Handa <handa@m17n.org>
12140
12141 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12142 font.h through out the file.
12143 (FONT_DRIVERS): Rename from FONTOBJ.
12144 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12145 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12146
12147 * emacs.c (main): Call syms_of_font unconditionally.
12148
12149 * font.h (find_font_encoding): Extern it.
12150
12151 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12152 fontset.c.
194d44e7 12153 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12154 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12155 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12156 only when HAVE_WINDOW_SYSTEM is defined.
12157 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12158 when HAVE_WINDOW_SYSTEM is defined.
12159
12160 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12161 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12162
12163 * xfaces.c: Include font.h unconditionally.
12164 (merge_face_ref, merge_face_vectors)
12165 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12166
121672008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12168
12169 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12170 indirect_variable.
12171 * eval.c (lisp_indirect_variable): New fun.
12172 (Fuser_variable_p): Use it.
12173
121742008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12175
12176 * lisp.h (indirect_variable):
12177 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12178 Use Lisp_Symbol pointers rather than Lisp_Object.
12179 Adjust callers.
12180 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12181 To this end, change calling-convention.
12182
12183 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12184 if some non-hidden buffers are selected by string&pred.
12185
121862008-05-19 Chong Yidong <cyd@stupidchicken.com>
12187
12188 * process.c (wait_reading_process_output): Always check status
12189 when in batch mode.
12190
121912008-05-19 Kenichi Handa <handa@m17n.org>
12192
12193 * font.c (font_list_entities): Fix handling of cache.
12194 (font_matching_entity): Likewise.
12195
12196 * ftfont.c (cs_iso8859_1): Delete.
12197 (ft_face_cache): New variable.
12198 (struct ftfont_info): New member fc_charset_idx.
12199 (ftfont_build_basic_charsets): Delete.
12200 (fc_charset_table): New variable.
12201 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12202 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12203 Callers changed.
12204 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12205 (ftfont_spec_pattern): New argument fc_charset_idx.
12206 Check registry more rigidly. Change callers.
12207 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12208 change of :font-entity property of the font.
12209
12210 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12211 property of the font.
12212
122132008-05-18 Juanma Barranquero <lekktu@gmail.com>
12214
12215 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12216 (Funencodable_char_position, Fcheck_coding_systems_region)
12217 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12218 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12219 (Ffind_operation_coding_system, Fset_coding_system_priority)
12220 (Fcoding_system_eol_type): Doc fixes.
12221
122222008-05-17 Glenn Morris <rgm@gnu.org>
12223
12224 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12225
122262008-05-16 Eli Zaretskii <eliz@gnu.org>
12227
12228 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12229 and st_gid.
12230
12231 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12232 HAVE_WINDOW_SYSTEM is not defined.
12233
12234 * xfaces.c (merge_face_ref, merge_face_vectors)
12235 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12236 HAVE_WINDOW_SYSTEM is defined.
12237 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12238
122392008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12242
122432008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12244
12245 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12246
122472008-05-15 Kenichi Handa <handa@m17n.org>
12248
12249 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12250 preference.
12251
122522008-05-15 Glenn Morris <rgm@gnu.org>
12253
12254 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12255
122562008-05-15 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12259 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12260
12261 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12262
122632008-05-15 Kenichi Handa <handa@m17n.org>
12264
12265 * ftfont.c (ftfont_list): Downcase family name to check generic
12266 families.
12267
12268 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12269 font-spec for QCfont value.
12270
12271 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12272 buffer. Check the return value of it.
12273
122742008-05-14 Jason Rumney <jasonr@gnu.org>
12275
12276 * w32term.c (w32_get_glyph_overhangs): Remove.
12277 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12278
122792008-05-14 Kenichi Handa <handa@m17n.org>
12280
12281 * font.c (font_prop_validate): Make nil a valid value.
12282 (font_clear_cache): Check if the cached vector of entities is nil
12283 or not.
12284
122852008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12286
12287 * emacs.c (main_thread): Conditionalize on
12288 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12289 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12290
12291 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12292 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12293 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12294
122952008-05-14 Kenichi Handa <handa@m17n.org>
12296
12297 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12298 has no corresponding coding system.
12299
123002008-05-14 Jason Rumney <jasonr@gnu.org>
12301
12302 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12303
12304 * w32font.h (w32font_open_internal): Update declaration.
12305
12306 * w32font.c (w32font_open_internal): Change last argument from
12307 w32font_info struct to font object. Fill in font object from
12308 font_entity. Get Outline metrics if possible. Use them to
12309 calculate underline position and thickness. Use xlfd name as name
12310 property. Don't set codepage.
12311 (w32font_open): Pass font_object to w32font_open_internal. Don't
12312 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12313 (w32font_draw): Use s->font.
12314 (clear_cached_metrics): Don't clear non-existent blocks.
12315
12316 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12317 font was not found.
12318 (x_draw_glyph_string): Use underline position and thickness from font.
12319
12320 * w32uniscribe.c (uniscribe_open): Pass font_object to
12321 w32font_open_internal.
12322
123232008-05-14 Kenichi Handa <handa@m17n.org>
12324
12325 These changes are to delete all legacy font-handling codes, and
12326 make Emacs use only font-backends.
12327
12328 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12329 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12330
12331 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12332
12333 * charset.h (Vcharset_non_preferred_head)
12334 (Vcurrent_iso639_language): Extern them.
12335
12336 * charset.c (Vcharset_non_preferred_head): New variable.
12337 (Vcurrent_iso639_language): New variable.
12338 (syms_of_charset): Declare it as a Lisp variable.
12339 (char_charset): Don't check non preferred charsets. As a last
12340 resort, return charset_unicode.
12341 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12342
12343 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12344 conditionals. Don't check enable_font_backend. Delete all codes
12345 used only when USE_FONT_BACKEND is not defined.
12346
12347 * dispextern.h (struct glyph_string): Change type of `font' to
12348 `struct font *'.
12349 (struct glyph_string): New member underline_position and
12350 underline_thickness.
12351 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12352 (struct face): Change type of `font' to `struct font *'. Remove
12353 members `font_name', `font_info_id'.
12354 (per_char_metric, encode_char): Delete externs.
12355 (calc_pixel_width_or_height): Adjust the prototype.
12356
12357 * emacs.c (enable_font_backend): Delete extern.
12358 (main): Don't set enable_font_backend. Don't check the command
12359 line argument "-disable-font-backend".
12360
12361 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12362 (enum font_property_index): New members FONT_DPI_INDEX,
12363 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12364 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12365 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12366 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12367 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12368 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12369 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12370 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12371 (struct font_spec, struct font_entity): New structs.
12372 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12373 (struct font): Many members from old "struct font_info" moved to
12374 here. Members font and entity deleted.
12375 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12376 the new font-related objects.
12377 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12378 (CHECK_FONT_GET_OBJECT): Likewise.
12379 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12380 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12381 (struct font_driver): New members case_sensitive anc check. Type
12382 of the member list and open changed.
12383 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12384 (font_symbolic_width, font_find_object, font_get_spec)
12385 (font_set_lface_from_name): Delete extern.
12386 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12387
12388 * font.c: Include <strings.h>.
12389 (enable_font_backend): Delete it.
12390 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12391 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12392 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12393 (null_string): Delete it.
12394 (null_vector): Make it static.
12395 (font_family_alist): Delete it.
12396 (Qnormal): Extern it.
12397 (QCextra, QClanguage): Delete it.
12398 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12399 (font_make_spec, font_make_entity, font_make_object)
12400 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12401 the string. Callers changed.
12402 (font_pixel_size): Adjusted for the format change of font-related
12403 objects.
12404 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12405 (font_style_to_value, font_style_symbolic): New function.
12406 (build_font_family_alist): Delete it.
12407 (font_registry_charsets): Use Fassoc_string instead of
12408 assq_no_quit.
12409 (font_prop_validate_symbol): Don't return null_string.
12410 (font_prop_validate_style): Adjusted for the change of
12411 style-related values in a font vector.
12412 (font_property_table): Delete entries for QClanguage and
12413 QCantialias, add entries for QCavgwidth.
12414 (get_font_prop_index): Delete the 2nd argument FROM.
12415 (font_prop_validate): Arguments changed.
12416 (font_put_extra): Adjusted for the change of font-related objects.
12417 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12418 (font_parse_fcname, font_unparse_fcname)
12419 (font_prepare_composition): Likewise.
12420 (font_parse_family_registry): Renamed from font_merge_old_spec.
12421 (otf_open): Delete the 1st arg entity.
12422 (font_otf_capability): Adjusted for the above change.
12423 (font_score): New arg alternate_families. Adjusted for the change
12424 of font-related objects.
12425 (font_sort_entites): New arg best_only.
12426 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12427 Delete them.
12428 (font_match_p): Check alternate families.
12429 (font_find_object): Delete it.
12430 (font_check_object): New function.
12431 (font_clear_cache): Adjusted for the change of font-related objects.
12432 (font_delete_unmatched): New arg.
12433 (font_list_entities): Call font_driver->list with a spec that
12434 doesn't specify style-related properties.
12435 (font_matching_entity): Arguments changed. Caller changed.
12436 (font_open_entity): Adjusted for the change of font-related objects.
12437 (font_close_object, font_has_char, font_encode_char)
12438 (font_get_name, font_get_spec): Likewise.
12439 (font_spec_from_name, font_clear_prop, font_update_lface):
12440 New functions.
12441 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12442 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12443 (font_at): Adjusted for the change of font-related objects.
12444 (font_range): New function.
12445 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12446 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12447 (Fcopy_font_spec, Fmerge_font_spec): New function.
12448 (Ffont_family_list): Renamed from list-families.
12449 (Finternal_set_font_style_table): Arguments changed.
12450 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12451 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12452 change of font-related objects.
12453 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12454
12455 * fontset.h (struct font_info): Delete it. Most members go to
12456 struct font.
12457 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12458 (enum FONT_SPEC_INDEX): Delete it.
12459 (font_info, list_fonts_func, load_font_func, query_font_func)
12460 (set_frame_fontset_func, find_ccl_program_func)
12461 (get_font_repertory_func, new_fontset_from_font_name): Delete
12462 externs.
12463 (fontset_from_font_name): Extern it.
12464 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12465 (FONT_INFO_FROM_FACE): Deleted.
12466 (face_for_font): Adjust prototype.
12467
12468 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12469 conditionals. Don't check enable_font_backend. Delete all codes
12470 used only when USE_FONT_BACKEND is not defined.
12471 (get_font_info_func, list_font_func, load_font_func)
12472 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12473 (get_font_repertory_func): Delete them.
12474 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12475 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12476 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12477 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12478 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12479 (fontset_compare_rfontdef): New function.
12480 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12481 rfont-defs by qsort. Adjusted for the change of font-group vector.
12482 (load_font_get_repertory): Deleted.
12483 (fontset_find_font): Use new macros to ref/set elements of
12484 font-def and rfont-def.
12485 (fontset_font): Fix the timing of remembering that no font for C.
12486 (free_face_fontset): Do nothing if the face has no fontset.
12487 (face_suitable_for_char_p): Use new macros to ref/set elements of
12488 rfont-def.
12489 (face_for_char): Likewise. Call face_for_char with font_object.
12490 (fs_load_font): Delete. Delete #pragma surrounding it.
12491 (fs_query_fontset): Use strcasecmp instead of strcmp.
12492 (generate_ascii_font_name): Adjusted for the format change of
12493 font-spec.
12494 (Fset_fontset_font): Likewise. Use new macros to set elements of
12495 font-def.
12496 (Fnew_fontset): Use font_unparse_xlfd to generate
12497 FONTSET_ASCII (fontset).
12498 (new_fontset_from_font_name): Deleted.
12499 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12500 a fontset is already created for the font. FIx updating of
12501 Vfontset_alias_alist.
12502 (fontset_ascii_font): Deleted.
12503 (Ffont_info): Adjusted for the format change of font-spec.
12504 (Finternal_char_font): Likewise.
12505 (Ffontset_info): Likewise.
12506 (syms_of_fontset): Don't check load_font_func.
12507
12508 * fns.c (internal_equal): Handle PREV_FONT.
12509
12510 * frame.h: Delete USE_FONT_BACKEND conditional.
12511
12512 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12513 conditionals. Don't check enable_font_backend. Delete all codes
12514 used only when USE_FONT_BACKEND is not defined.
12515 (x_set_font): Call x_new_font, not x_new_fontset2.
12516 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12517 already set for the frame.
12518
12519 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12520 a font-entity by font_make_entity. Use font_intern_prop instead
12521 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12522 font property. If a font is scalable, set avgwidth property to 0.
12523 Set font-entity property by font_put_extra.
12524 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12525 (ffont_driver): Adjusted for the change of struct font_driver.
12526 (ftfont_spec_pattern): New function.
12527 (ftfont_list): Return a list, not vector.
12528 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12529 (ftfont_list_family): Don't downcase names.
12530 (ftfont_free_entity): Deleted.
12531 (ftfont_open): Return a font-object. Adjusted for the change of
12532 struct font. Get underline_thickness and underline_position from
12533 font property. Don't update dpyinfo->smallest_font_height and
12534 dpyinfo->smallest_char_width.
12535 (ftfont_close): Don't free `struct font'.
12536 (ftfont_has_char): Adjusted for the format change of font-entity.
12537 (ftfont_encode_char, ftfont_text_extents): Likewise.
12538
12539 * ftxfont.c (ftxfont_list): Return a list, not vector.
12540 (ftxfont_open): Return a font-object. Adjusted for the change of
12541 struct font. Get underline_thickness and underline_position from
12542 font property. Don't update dpyinfo->smallest_font_height and
12543 dpyinfo->smallest_char_width.
12544 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12545 (ftxfont_draw): Adjusted for the change of struct font.
12546
12547 * image.c (image_ascent): Don't include "charset.h". Include
12548 "character.h" and "font.h".
12549
12550 * lisp.h (enum pvec_type): New member PREV_FONT.
12551 (Fassoc_string): EXFUN it.
12552
12553 * print.c: Include font.h.
12554 (print_object): Handle font-related objects.
12555
12556 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12557 conditionals. Don't check enable_font_backend. Delete all codes
12558 used only when USE_FONT_BACKEND is not defined.
12559 (handle_auto_composed_prop): Do nothing if it->f is not on a
12560 window system. Check how many following characters can be
12561 displayed by the same font.
12562 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12563 'struct font *'.
12564 (get_char_face_and_encoding): Assign the whole encoding task to
12565 the `encode-char' method of a font driver.
12566 (fill_composite_glyph_string): Adjusted for the change of `struct
12567 face' and `struct glyph_string'.
12568 (fill_glyph_string): Likewise.
12569 (get_per_char_metric): Arguments changed.
12570 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12571 and `struct glyph_string'.
12572 (produce_stretch_glyph, calc_line_height_property)
12573 (x_produce_glyphs): Likewise.
12574
12575 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12576 conditionals. Don't check enable_font_backend. Delete all codes
12577 used only when USE_FONT_BACKEND is not defined. Use
12578 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12579 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12580 (Qp): Extern them.
12581 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12582 Deleted.
12583 (struct font_name): Deleted.
12584 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12585 (compare_fonts_by_sort_order): New function.
12586 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12587 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12588 Deleted.
12589 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12590 compare_fonts_by_sort_order.
12591 (Fx_font_family_list): Call Ffont_family_list.
12592 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12593 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12594 (face_symbolic_slant, face_symbolic_swidth)
12595 (split_font_name_into_vector, build_font_name_from_vector)
12596 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12597 (font_rescale_ratio, split_font_name, build_font_name)
12598 (free_font_names, sort_fonts, x_face_list_fonts)
12599 (face_font_available_p, sorted_font_list, cmp_font_names)
12600 (font_list_1, concat_font_list, font_list, remove_duplicates):
12601 Deleted.
12602 (Fx_list_fonts): Use Ffont_list.
12603 (LFACE_AVGWIDTH): Deleted.
12604 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12605 by FONTP.
12606 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12607 (set_lface_from_font_name): Delete it.
12608 (set_lface_from_font): Renamed from
12609 set_lface_from_font_and_fontset. Caller changed. Don't set
12610 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12611 for face.
12612 (merge_face_vectors): Copy font-spec if necessary.
12613 Clear properties of the font-spec if necessary.
12614 (merge_face_ref): Clear properties of the font-spec if necessary.
12615 (Finternal_set_lisp_face_attribute): Likewise.
12616 (set_font_frame_param): Use font_load_for_lface to load a
12617 font-object, and call Fmodify_frame_parameters with it.
12618 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12619 font name by Ffont_xlfd_name.
12620 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12621 QCslant, and QCwidth.
12622 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12623 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12624 Compare fonts by EQ.
12625 (lookup_non_ascii_face): Deleted.
12626 (face_for_font): The 2nd argument changed.
12627 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12628 Check atomic font properties by case insensitive.
12629 (realize_non_ascii_face): Set face->overstrike correctly.
12630 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12631 (dump_realized_face): Get font name from
12632 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12633
12634 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12635 conditionals. Don't check enable_font_backend. Delete all codes
12636 used only when USE_FONT_BACKEND is not defined.
12637 (xic_create_xfontset): Original code deleted and renamed from
12638 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12639 (x_make_gc): Don't set GCFont in GCs.
12640 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12641 opened by "fixed".
12642 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12643 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12644 get_font_repertory_func.
12645
12646 * xfont.c: Include <stdlib.h> and "ccl.h".
12647 (struct xfont_info): New structure.
12648 (xfont_query_font): Deleted.
12649 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12650 moved from xterm.c.
12651 (xfont_driver): Adjusted for the change of struct font_driver.
12652 (compare_font_names): New function.
12653 (xfont_list_pattern): Sort font names case insensitively. Make
12654 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12655 (xfont_list): Return a list, not vector.
12656 (xfont_match): If the font doesn't have QCname property, generate
12657 a name from the other font properties.
12658 (xfont_open): Return a font-object. Adjusted for the change of
12659 struct font. Get underline_thickness and underline_position from
12660 font property. Don't update dpyinfo->smallest_font_height and
12661 dpyinfo->smallest_char_width.
12662 (xfont_close): Don't free struct font.
12663 (xfont_prepare_face): Adjusted for the change of struct font.
12664 (xfont_done_face): Deleted.
12665 (xfont_has_char): Adjusted for the change of struct font.
12666 (xfont_encode_char, xfont_draw): Likewise.
12667 (xfont_check): New function.
12668
12669 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12670 callback function.
12671 (xftfont_match): Adjusted for the format change of font-entity.
12672 (xftfont_open): Adjusted for the format change of font-entity and
12673 font-object. Adjusted for the change of struct font. Return a
12674 font-object. Don't update dpyinfo->smallest_font_height and
12675 dpyinfo->smallest_char_width.
12676 (xftfont_close): Block input while calling XftFontClose.
12677 (xftfont_prepare_face): Don't block input while calling
12678 xftfont_get_colors. Adjusted for the change of struct font.
12679 (xftfont_shape): Return value of error case fixed.
12680
12681 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12682
12683 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12684 conditionals.
12685 (FONT_WIDTH): Return (f)->max_width.
12686 (struct x_display_info): Delete member `font'.
12687 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12688 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12689 (struct x_output): Change type of `font' to `struct font *'.
12690
12691 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12692 conditionals. Don't check enable_font_backend. Delete all codes
12693 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12694 (x_per_char_metric, x_encode_char): Deleted.
12695 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12696 (x_compute_glyph_string_overhangs): Adjusted for the change of
12697 `struct face'.
12698 (x_draw_glyph_string_foreground)
12699 (x_draw_composite_glyph_string_foreground): Likewise.
12700 (x_draw_glyph_string): Likewise. Use font->underline_position and
12701 font->underline_thickness.
12702 (x_new_font): Renamed from x_new_fontset2.
12703 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12704 (x_check_font): Call `check' method of a font driver.
12705 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12706 (x_query_font, x_get_font_repertory): Deleted.
12707 (x_find_ccl_program): Renamed and moved to xfont.c.
12708 (x_redisplay_interface): Adjusted for the change of `struct
12709 redisplay_interface'.
12710
12711 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12712 conditionals. Don't check enable_font_backend. Delete all codes
12713 used only when USE_FONT_BACKEND is not defined. Surround non-used
12714 code by "#ifdef OLD_FONT" and "endif".
12715 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12716
12717 * w32font.h (struct w32font_info): New member.
12718 (FONT_COMPAT): New macro.
12719 (w32font_open_internal): Prototype adjusted.
12720
12721 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12722 OLD_FONT" and "endif".
12723
12724 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12725 conditionals. Don't check enable_font_backend. Delete all codes
12726 used only when USE_FONT_BACKEND is not defined.
12727 (w32font_open): Return a font-object. Make a font-object by
12728 font_make_object. Adjusted for the change of struct w32font_info.
12729 (w32font_close): Don't free struct font. Adjusted for the change
12730 of struct w32font_info.
12731 (w32font_encode_char, w32font_text_extents, w32font_draw):
12732 Adjusted for the change of struct w32font_info.
12733 (w32font_draw): Likewise.
12734 (w32font_list_internal): Return a list, not vector.
12735 (w32font_open_internal): Change the 4th arg to font-object.
12736 Adjusted for the change of struct w32font_info and font-object format.
12737 (add_font_name_to_list): Don't downcase names.
12738 (w32_enumfont_pattern_entity): Make a font-entity by
12739 font_make_entity. Adjusted for the format change of font-entity.
12740 Use FONT_SET_STYLE to set a style-related font property. If a
12741 font is scalable, set avgwidth property to 0. Set font-entity
12742 property by font_put_extra.
12743 (font_matches_spec): Adjusted for the format change of font-entity.
12744 (w32_weight_table, w32_decode_weight): New variables.
12745 (w32_encode_weight): New function.
12746 (fill_in_logfont): Adjusted for the format change of font-spec.
12747 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12748 weight value.
12749 (w32font_driver): Adjusted for the change of struct font_driver.
12750
12751 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12752 conditionals. Don't check enable_font_backend. Surround non-used
12753 code by "#ifdef OLD_FONT" and "endif".
12754 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12755 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12756
12757 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12758 conditionals. Don't check enable_font_backend. Delete all codes
12759 used only when USE_FONT_BACKEND is not defined. Surround non-used
12760 code by "#ifdef OLD_FONT" and "endif".
12761
12762 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12763 (uniscribe_open): Return value changed to font-object.
12764 Adjusted for the format change of font-object.
12765 (uniscribe_otf_capability): Adjusted for the change of struct font.
12766 (add_opentype_font_name_to_list): Don't downcase names.
12767 (uniscribe_font_driver): Adjusted for the change of struct
12768 font_driver.
12769
127702008-05-13 Chong Yidong <cyd@stupidchicken.com>
12771
12772 * dispnew.c (update_frame_1): Check if tty output is still valid
12773 before flushing it.
12774
127752008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12776
12777 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12778 to Gtk+ menus.
12779
127802008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12781
12782 * dired.c (file_name_completion): Tweak the code so as to always do it
12783 in a single pass. Tighten the scope of some variables.
12784
12785 * dired.c (Qdefault_directory): New var.
12786 (file_name_completion): Use it instead of Fexpand_file_name.
12787 (syms_of_dired): Initialize it.
12788
127892008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12790
12791 * fileio.c (double_dollars): Remove dead code.
12792
127932008-05-10 Eli Zaretskii <eliz@gnu.org>
12794
12795 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12796 Mention w32-get-true-file-attributes in doc string.
12797
12798 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12799
128002008-05-09 Glenn Morris <rgm@gnu.org>
12801
12802 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12803 2008-04-23.
12804
128052008-05-09 Eli Zaretskii <eliz@gnu.org>
12806
12807 Support for reporting owner and group of each file on MS-Windows:
12808 * dired.c (stat_uname, stat_gname): New functions, with special
12809 implementation for w32.
12810 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12811
12812 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12813 (dflt_group_name): New static variable.
12814 (dflt_group): Rename from the_group.
12815 (init_user_info): Init dflt_group fields. Get user's group name
12816 from LookupAccountSid.
12817 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12818 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12819 New initialization states.
12820 (globals_of_w32): Initialize them to zero. Initialize the default
12821 group name to "None".
12822 (GetFileSecurity_Name): New global var, the name of the function
12823 to call for GetFileSecurity.
12824 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12825 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12826 (get_file_security, get_security_descriptor_owner)
12827 (get_security_descriptor_group, is_valid_sid)
12828 (get_file_security_desc, get_rid, get_name_and_id)
12829 (get_file_owner_and_group): New functions.
12830 (stat): Use get_file_security_desc and get_file_owner_and_group to
12831 report the owner and primary group of each file. Don't ignore the
12832 high 32 bits of file's size, now that st_size is 64-bit wide.
12833 Fix test when to get true file attributes.
12834 (init_user_info): Use get_rid instead of equivalent inline code.
12835 (fstat): Don't ignore the high 32 bits of file's size.
12836
128372008-05-09 Chong Yidong <cyd@stupidchicken.com>
12838
12839 * image.c (png_load): Use correct bit-depth for setting background
12840 color.
12841
128422008-05-08 Eli Zaretskii <eliz@gnu.org>
12843
12844 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12845 epa-hook.elc.
12846
128472008-05-08 Juanma Barranquero <lekktu@gmail.com>
12848
12849 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12850
128512008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12852
12853 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12854 because the original parameters are in pure storage now.
12855 (mac_window): Remove unused params. Update callers.
12856
128572008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12858
12859 * lread.c (substitute_object_recurse): Use lower-level primitives.
12860 Don't signal errors when traversing sub-char-tables.
12861 Don't loop over all the possible characters when traversing char-tables.
12862
12863 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12864 just like we do in print.c.
12865
128662008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12867
12868 * minibuf.c (Ftry_completion): Remove code left over from when we used
12869 scmp instead of Fcompare_strings.
12870
128712008-05-04 Juanma Barranquero <lekktu@gmail.com>
12872
12873 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12874
128752008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12876
12877 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12878 Create bitmap context in native byte order.
12879
12880 * macterm.c (XDrawLine)
12881 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12882 context in native byte order.
12883
128842008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12885
12886 * config.in: Regenerate.
12887
12888 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12889 New definitions for Image I/O support.
12890 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12891 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12892 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12893 (mac_data_provider_release_data, image_load_image_io)
12894 [USE_MAC_IMAGE_IO]: New functions.
12895 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12896 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12897 (init_image_func_pointer) [MAC_OSX]: Remove function.
12898 (image_load_quartz2d) [MAC_OSX]: Check availability of
12899 CGImageCreateWithPNGDataProvider at compile time.
12900 Use lowercase `false' for boolean constant.
12901 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12902 Use image_load_image_io.
12903 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12904 Don't check MyCGImageCreateWithPNGDataProvider.
12905 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12906 Don't call init_image_func_pointer.
12907
12908 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12909
12910 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12911 Make variable non-static.
12912 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12913 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12914
12915 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12916 (RED_FROM_ULONG): Mask off higher bits.
12917 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12918
12919 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12920 Include AvailabilityMacros.h.
12921 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12922 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12923
129242008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12925
12926 * chartab.c (Fset_char_table_range): If range is t, really set all
12927 chars to that value.
12928
129292008-05-03 Eli Zaretskii <eliz@gnu.org>
12930
12931 * dired.c (Ffile_attributes): Don't allow the device number become
12932 negative.
12933
129342008-05-02 Daiki Ueno <ueno@unixuser.org>
12935
12936 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12937
129382008-05-02 Juri Linkov <juri@jurta.org>
12939
12940 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12941 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12942 DEFAULT argument as a list of default values in docstrings.
12943
129442008-05-01 Chong Yidong <cyd@stupidchicken.com>
12945
12946 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12947
129482008-05-01 Martin Rudalics <rudalics@gmx.at>
12949
12950 * dispnew.c (change_frame_size_1): Preserve small windows when
12951 shrinking frames by calling set_window_height|width with third
12952 arg 2.
12953
12954 * window.h (struct window): Replace field too_small_ok by field
12955 resize_proportionally.
12956
12957 * window.c (make_window): Initialize resize_proportionally.
12958 (enlarge_window): Temporarily set resize_proportionally to make
12959 sure that shrink_windows does scale the window proportionally.
12960 (shrink_windows): When window has resize_proportionally set try
12961 to shrink it proportionally by stealing from other windows.
12962 (struct saved_window, Fset_window_configuration)
12963 (compare_window_configurations): Handle resize_proportionally.
12964 (WINDOW_TOTAL_SIZE): New macro.
12965 (window_min_size, shrink_windows, size_window): Use it.
12966 (check_min_window_sizes): Remove. Invalid values of
12967 window-min-height|width are handled by window_min_size_2 now.
12968 (size_window, Fsplit_window, enlarge_window)
12969 (adjust_window_trailing_edge, grow_mini_window): Don't call
12970 check_min_window_sizes.
12971 (window_min_size_2, window_min_size_1, window_min_size):
12972 New argument safe_p for retrieving "safe" minimum sizes.
12973 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12974 (adjust_window_trailing_edge, grow_mini_window):
12975 Adjust arguments of window_min_size... functions.
12976 (shrink_windows): Argument min_size removed. New argument
12977 safe_p allows shrinking windows to their safe minimum sizes.
12978 Calculate minimum size and decide whether a window shall be
12979 deleted for each window individually.
12980 (size_window): When nodelete_p equals 2, tell shrink_windows to
12981 delete windows only if their new minimum size is no more safe.
12982 (shrink_window_lowest_first): Call window_min_size_1 to make
12983 sure to preserve modeline of bottom-most window when resizing
12984 the minibuffer.
12985 (Fset_window_configuration, Fcurrent_window_configuration)
12986 (compare_window_configurations): Do not handle
12987 window-min-height|width any more.
12988 (syms_of_window): Clarify window-min-height|width doc-strings.
12989
129902008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12991
12992 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12993 some more. Copy some of the code from Ftry_completions.
12994 Remove special case code that dates back to initial revision when the
12995 slash was only added when necessary and that can't trigger nowadays.
12996
129972008-04-27 Kenichi Handa <handa@m17n.org>
12998
12999 * font.c (font_prop_validate): Signal `error' instead of `font'.
13000
130012008-04-29 Jason Rumney <jasonr@gnu.org>
13002
13003 * w32fns.c (Fw32_battery_status): New defun.
13004 (syms_of_w32fns): Defsubr it.
13005
130062008-04-28 Andreas Schwab <schwab@suse.de>
13007
13008 * dired.c (file_name_completion): Fix another mixing of encoded
13009 and decoded names.
13010
130112008-04-28 Juanma Barranquero <lekktu@gmail.com>
13012
13013 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13014
130152008-04-27 Juanma Barranquero <lekktu@gmail.com>
13016
13017 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13018
130192008-04-27 Andreas Schwab <schwab@suse.de>
13020
13021 * dired.c (file_name_completion): Fix inappropriate mixing of
13022 encoded and decoded names.
13023
13024 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13025
13026 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13027
130282008-04-26 Eli Zaretskii <eliz@gnu.org>
13029
13030 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13031 2008-03-31, it's not needed anymore with `struct stat' definition
13032 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13033 for the same reasons.
13034
130352008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13036
13037 * m/sparc.h: Additional redefinitions for GNU/Linux.
13038
130392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13040
13041 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13042 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13043 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13044 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13045 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13046 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13047 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13048 Likewise.
13049
13050 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13051 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13052 (mac_ax_number_of_characters): Add externs.
13053 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13054 [USE_MAC_TSM]: Likewise.
13055 (mac_handle_text_input_event) [MAC_OSX]:
13056 Handle kEventTextInputOffsetToPos for no active input area case.
13057 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13058 (mac_handle_document_access_event)
13059 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13060 (install_application_handler) [MAC_OSX]: Register handlers for
13061 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13062 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13063 Register mac_handle_document_access_event.
13064
13065 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13066 Make functions non-static.
13067
130682008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13069
13070 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13071 (read_file_name_completion_ignore_case, insert_default_directory)
13072 (Qdefault_directory): Move to minibuffer.el.
13073 (Fread_file_name): Call the new `read-file-name' instead.
13074
130752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13076
13077 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13078 Make function non-static.
13079 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13080 Remove function.
13081 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13082 Move to mactoolbox.c.
13083 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13084
13085 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13086 (mac_rect_make): New macro.
13087
13088 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13089 instead of float.
13090 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13091 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13092 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13093 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13094 CGRectMake.
13095 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13096 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13097 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13098 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13099 instead of WindowRef in argument type.
13100 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13101 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13102 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13103 instead of DISPLAY. All uses changed.
13104 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13105 (x_calc_absolute_position): Simplify so as not to use
13106 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13107
13108 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13109 instead of WindowRef in argument type.
13110 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13111 [TARGET_API_MAC_CARBON]: Remove externs.
13112 (create_apple_event, mac_event_parameters_to_lisp)
13113 [TARGET_API_MAC_CARBON]: Add externs.
13114
13115 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13116 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13117 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13118 is clicked.
13119 (x_activate_menubar): Remove extern for saved_menu_event_location.
13120 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13121 Move from mac.c.
13122
131232008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13124
13125 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13126 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13127
131282008-04-23 Jason Rumney <jasonr@gnu.org>
13129
13130 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13131 attributes only for local files.
13132
13133 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13134 default to Qlocal.
13135
131362008-04-22 Juri Linkov <juri@jurta.org>
13137
13138 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13139 read-buffer-to-switch instead of using the letter "B".
13140
131412008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13142
13143 * fileio.c (Qdefault_directory): New variable.
13144 (Fread_file_name): Use it to pass `dir' to the completion functions.
13145
131462008-04-20 Chong Yidong <cyd@stupidchicken.com>
13147
13148 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13149
131502008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13151
13152 * keyboard.c (Vpre_help_message): Remove.
13153 (show_help_echo): Remove default C code.
13154
13155 * dired.c (directory_files_internal, file_name_completion):
13156 Only call ENCODE_FILE if the string is indeed decoded.
13157
131582008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13159
13160 * Makefile.in (TOOLKIT_DEFINES): Remove.
13161 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13162
131632008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13164
13165 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13166 (mactoolbox.o): New target.
13167
13168 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13169 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13170
13171 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13172 Use mac_set_frame_window_background instead of XSetWindowBackground.
13173 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13174 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13175 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13176 instead of SetWindowTitleWithCFString.
13177 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13178 Move function to mactoolbox.c.
13179 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13180 Use mac_set_window_modified instead of SetWindowModified.
13181 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13182 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13183 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13184 FrontNonFloatingWindow. Use mac_activate_window instead of
13185 ActivateWindow. Use mac_active_non_floating_window instead of
13186 ActiveNonFloatingWindow.
13187 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13188 Use mac_show_hourglass and mac_hide_hourglass.
13189 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13190 instead of GetGlobalMouse.
13191 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13192 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13193 Use mac_bring_window_to_front instead of BringToFront.
13194 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13195 mactoolbox.c.
13196 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13197 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13198 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13199 mactoolbox.c.
13200
13201 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13202 (XtPointer): Move typedef from macmenu.c.
13203 (enum button_type): Move enum from macmenu.c.
13204 (widget_value): Move typedef from macmenu.c.
13205 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13206 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13207 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13208 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13209 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13210 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13211 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13212 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13213 (Selection): Move typedef from macselect.c.
13214 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13215 macterm.c.
13216 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13217 (mac_is_window_collapsed, mac_bring_window_to_front)
13218 (mac_send_window_behind, mac_hide_window, mac_show_window)
13219 (mac_collapse_window, mac_front_non_floating_window)
13220 (mac_active_non_floating_window, mac_activate_window)
13221 (mac_move_window_structure, mac_move_window, mac_size_window)
13222 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13223
13224 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13225 (enum mac_menu_kind): Move enum to mactoolbox.c.
13226 (min_menu_id): Move variable to mactoolbox.c.
13227 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13228 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13229 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13230 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13231 [TARGET_API_MAC_CARBON]: Likewise.
13232 (XtPointer): Move typedef to macgui.h.
13233 (enum button_type): Move enum to macgui.h.
13234 (widget_value): Move typedef to macgui.h.
13235 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13236 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13237 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13238 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13239 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13240 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13241 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13242 (popup_activated_flag): Make variable non-static.
13243 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13244 (add_menu_item, fill_menu, dispose_menus):
13245 Move functions to mactoolbox.c.
13246 (restore_show_help_function, menu_target_item_handler)
13247 (install_menu_target_item_handler, mac_handle_dialog_event)
13248 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13249 [TARGET_API_MAC_CARBON]: Likewise.
13250 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13251 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13252 (find_and_call_menu_selection, name_is_separator): Make function
13253 non-static.
13254 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13255 to mactoolbox.c.
13256 (set_frame_menubar): Don't call install_menu_quit_handler.
13257 (menu_item_selection): New variable.
13258 (mac_menu_show): Use create_and_show_popup_menu.
13259 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13260 selection but set variable menu_item_selection. All uses changed.
13261 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13262 Call install_menu_quit_handler. Move to mactoolbox.c.
13263
13264 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13265 (Selection): Move typedef to macgui.h.
13266 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13267 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13268 Make variables non-static.
13269 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13270 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13271 Make functions non-static.
13272 (Vmac_service_selection) [MAC_OSX]: Likewise.
13273 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13274 (mac_valid_selection_target_p, mac_clear_selection)
13275 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13276 (mac_put_selection_value, mac_selection_has_target_p)
13277 (mac_get_selection_value, mac_get_selection_target_list)
13278 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13279 Move functions to mactoolbox.c.
13280 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13281 Likewise.
13282 (copy_scrap_flavor_data, mac_handle_service_event)
13283 (install_service_handler) [MAC_OSX]: Likewise.
13284 (syms_of_macselect) <Vmac_dnd_known_types>:
13285 Use mac_dnd_default_known_types.
13286
13287 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13288 Move to mactoolbox.c.
13289 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13290 (Fx_selection_owner_p): Add EXFUN.
13291 (install_window_handler, remove_window_handler, XSetWindowBackground):
13292 Remove externs.
13293 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13294 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13295 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13296 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13297 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13298 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13299 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13300 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13301 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13302 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13303 (mac_valid_selection_target_p, mac_clear_selection)
13304 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13305 (mac_put_selection_value, mac_selection_has_target_p)
13306 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13307 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13308 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13309 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13310 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13311 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13312 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13313 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13314 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13315
13316 * mactoolbox.c: New file.
13317
133182008-04-18 Jason Rumney <jasonr@gnu.org>
13319
13320 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13321
133222008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13323
13324 * character.c (Fmultibyte_char_to_unibyte):
13325 Return latin1 chars unchanged.
13326
13327 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13328 relocated if it points to `name'.
13329
133302008-04-17 Kenichi Handa <handa@m17n.org>
13331
13332 * data.c (Faset): Allow setting a multibyte character in an
13333 ASCII-only unibyte string.
13334
13335 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13336
133372008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13340 done in config.h.
13341
133422008-04-16 Juanma Barranquero <lekktu@gmail.com>
13343
13344 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13345 (Fchar_direction): Add usage in the docstring.
13346
133472008-04-15 Chong Yidong <cyd@stupidchicken.com>
13348
13349 * keyboard.c (read_key_sequence): Remove always-true checks.
13350
133512008-04-14 Jason Rumney <jasonr@gnu.org>
13352
13353 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13354 compatibility struct, for better underline positioning.
13355
133562008-04-13 David Hansen <david.hansen@gmx.net>
13357
13358 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13359 string.
13360
133612008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13362
13363 * m/hp800.h (XUINT, XSET): Remove.
13364
133652008-04-12 Juanma Barranquero <lekktu@gmail.com>
13366
13367 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13368 previous change.
13369
133702008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13371
13372 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13373 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13374
133752008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13376
13377 * keymap.h (map_keymap_canonical): Declare.
13378 * xmenu.c (single_keymap_panes): Use it.
13379
133802008-04-11 Glenn Morris <rgm@gnu.org>
13381
13382 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13383 set the target's value to that of the alias.
13384
133852008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13386
13387 * term.c (set_tty_color_mode): Left over typo.
13388
133892008-04-10 Michael Albinus <michael.albinus@gmx.de>
13390
13391 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13392 only after check for file name handler functions. Signal, when
13393 native functionality is not supported.
13394 (syms_of_fileio): Declare it unconditionally.
13395
133962008-04-10 Jason Rumney <jasonr@gnu.org>
13397
13398 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13399 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13400
13401 * w32.c (logon_network_drive): Also logon to remote drives that
13402 are mapped to drive letters.
13403
134042008-04-10 Glenn Morris <rgm@gnu.org>
13405
13406 * xdisp.c (truncate-partial-width-windows): Doc fix.
13407
134082008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13409
13410 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13411 Move functions to minibuffer.el.
13412 (syms_of_fileio): Don't declare them.
13413
134142008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13415
13416 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13417 (syms_of_minibuf): Remove its initialization.
13418
13419 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13420
134212008-04-09 Juanma Barranquero <lekktu@gmail.com>
13422
13423 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13424
134252008-04-09 Jason Rumney <jasonr@gnu.org>
13426
13427 * makefile.w32-in (distclean): Delete makefile too.
13428 (maintainer-clean): New target.
13429
13430 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13431
13432 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13433 for new font backend and composite cases.
13434
134352008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13436
13437 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13438 Most of the code moved to run_timers.
13439 (do_pending_atimers): Call run_timers.
13440 (run_timers): New function.
13441
13442 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13443 run atimers.
13444
13445 * process.c (wait_reading_process_output): The same as above.
13446
134472008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13448
13449 * minibuf.c (last_exact_completion): Remove variable.
13450 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13451 (complete_and_exit_1, complete_and_exit_2)
13452 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13453 (Fdisplay_completion_list, display_completion_list_1)
13454 (Fminibuffer_completion_help, Fself_insert_and_exit)
13455 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13456 minibuffer.el.
13457 (syms_of_minibuf): Remove corresponding initializations.
13458
13459 * keyboard.c (Qdeactivate_mark): New var.
13460 (command_loop_1): Use it to call `deactivate-mark'.
13461 (syms_of_keyboard): Initialize it.
13462
13463 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13464 to another frame.
13465 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13466 Don't call set_tty_color_mode.
13467 (store_frame_param): Reset previous_frame rather than call
13468 set_tty_color_mode.
13469 * term.c (set_tty_color_mode): Rewrite.
13470 * dispextern.h (set_tty_color_mode): New type.
13471 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13472
134732008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13474
13475 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13476 for generic chars, which do not exist any more in emacs-unicode.
13477
134782008-04-08 Michael Albinus <michael.albinus@gmx.de>
13479
13480 * coding.c (detect_coding_emacs_mule)
13481 (Ffind_operation_coding_system): Fix typo.
13482
134832008-04-08 Jason Rumney <jasonr@gnu.org>
13484
13485 * w32uniscribe.c (SNAME): Extract only symbol name.
13486
13487 * w32font.h (struct w32_metric_cache): New struct.
13488 (w32font_info): Use it.
13489 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13490 (CACHE_BLOCKSIZE): New constants.
13491
13492 * w32font.c (Qja, Qko, Qzh): New symbols.
13493 (syms_of_w32font): Initialise them.
13494 (font_matches_spec): Use them to filter by language.
13495 (recompute_cached_metrics): Remove function.
13496 (compute_metrics, clear_cached_metrics): New functions.
13497 (w32font_encode_char): Use them to manage metric cache.
13498 (w32font_text_extents): Cache metrics for all glyphs on demand.
13499 Delay converting glyph indices to WORD until needed.
13500 (w32font_open_internal): Initialize metric cache to empty.
13501 (registry_to_w32_charset): Charset should always be a symbol.
13502 (fill_in_logfont, list_all_matching_fonts): Family should
13503 always be a symbol.
13504
135052008-04-06 Jason Rumney <jasonr@gnu.org>
13506
13507 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13508 Give up if glyph indices not supported. Use uniscribe obtained
13509 ABC widths for individual metrics. Map glyph clusters back to
13510 characters using fClusterStart flag. Return number of glyphs
13511 produced, not chars processed.
13512 (uniscribe_shape): Map char at FROM to current glyph.
13513
135142008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13515
13516 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13517 Use SetMenuItemHierarchicalMenu.
13518
135192008-04-05 Jason Rumney <jasonr@gnu.org>
13520
13521 * image.c (pbm_load): Allow color values up to 65535.
13522 Throw an error if max_color_idx is outside the supported range.
13523 Report an error when image size is invalid.
13524 Read two bytes at a time when raw images have max_color_idx above 255.
13525
135262008-04-05 Eli Zaretskii <eliz@gnu.org>
13527
13528 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13529 cFileName a file name that includes `?' characters, use the 8+3
13530 alias in cAlternateFileName instead.
13531
135322008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13533
13534 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13535 append "CCL: Quitted" when the CCL program is quitted.
13536 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13537
13538 * ccl.h (struct ccl_program): New member quit_silently.
13539
135402008-04-05 Chong Yidong <cyd@stupidchicken.com>
13541
13542 * search.c (compile_pattern_1): Treat non-nil and non-string of
13543 search-spaces-regexp as nil.
13544
13545 * minibuf.c (Fassoc_string): Tweak docstring.
13546
135472008-04-05 Eli Zaretskii <eliz@gnu.org>
13548
13549 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13550 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13551 2008-03-14 to force inode be positive.
13552
13553 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13554 _S_* ones, since we now use our own sys/stat.h.
13555 (stat, fstat): Don't mangle the inode number.
13556 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13557
135582008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13559
13560 * frame.h (struct frame): Give one more bit to `visible' since we use
13561 values larger than 1 to indicate obscured frames on ttys.
13562
13563 * keymap.c (Qkeymap_canonicalize): New var.
13564 (Fmap_keymap_internal): New fun.
13565 (describe_map): Use keymap-canonicalize.
13566
13567 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13568 (Fundo_boundary): Set them.
13569 (syms_of_undo): Initialize them.
13570 (record_point): Use them instead of last_point_position*.
13571 (last_undo_buffer): Change type.
13572
135732008-04-04 Jason Rumney <jasonr@gnu.org>
13574
13575 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13576 (recompute_cached_metrics): Don't set ascent and descent per char.
13577
13578 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13579 (uniscribe_check_otf): Add GC protection before consing.
13580 Rearrange loop for counting features.
13581
135822008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13583
13584 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13585 buffer with byte-size of source buffer.
13586
135872008-04-03 Chong Yidong <cyd@stupidchicken.com>
13588
13589 * callint.c (Fcall_interactively): Handle temporary region even
13590 when shift-select-mode is off.
13591
135922008-04-03 Jason Rumney <jasonr@gnu.org>
13593
13594 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13595
135962008-04-03 Kenichi Handa <handa@m17n.org>
13597
13598 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13599 (CATEGORY_MASK_UTF_16): Likewise.
13600 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13601 binary file.
13602 (detect_coding): Add null-byte detection for a binary file.
13603 (detect_coding_system): Likewise.
13604
136052008-04-03 Jason Rumney <jasonr@gnu.org>
13606
13607 * w32uniscribe.c: New file.
13608
13609 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13610
13611 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13612
13613 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13614 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13615 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13616 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13617 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13618 (Qphonetic): New symbols.
13619 (syms_of_w32font): Initialize them.
13620 (font_supported_scripts): Use them.
13621 (w32font_list_family): List all charsets.
13622 (w32font_text_extents, recompute_cached_metrics): Fix metric
13623 calculations.
13624 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13625 Give opentype fonts their own format.
13626 (font_matches_spec): New arguments backend and logfont.
13627 Handle :otf spec for uniscribe backend.
13628 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13629 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13630
13631 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13632 font backend.
13633 (globals_of_w32fns): Initialize uniscribe font backend.
13634
13635 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13636 dependencies.
13637 (w32uniscribe.$(O)): New file to build.
13638 (FONT_OBJ): Include w32uniscribe.$(O).
13639 (LIBS): Add uniscribe libraries.
13640
13641 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13642
136432008-04-02 Chong Yidong <cyd@stupidchicken.com>
13644
13645 * callint.c (Vshift_select_mode): New var.
13646 (Finteractive): Document new ^ spec.
13647 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13648 is present.
13649
13650 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13651 (command_loop_1): Avoid running the direct display versions of
13652 forward-char and backward-char if shift-selection may occur.
13653 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13654 shift-translation takes place.
13655
13656 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13657 avoid clobbering by define-minor-mode.
13658
13659 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13660 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13661
13662 * syntax.c (Fforward_word): Add ^ interactive spec.
13663
13664 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13665 (Fscroll_right): Add ^ interactive spec.
13666
136672008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13668
13669 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13670
13671 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13672
13673 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13674
136752008-03-31 Juri Linkov <juri@jurta.org>
13676
13677 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13678
136792008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13680
13681 * gtkutil.c (xg_set_geometry): Fix indentation.
13682 (xg_resize_outer_widget): Remove.
13683 (x_wm_size_hint_off): Fix indentation.
13684 (xg_frame_set_char_size): Call flush_and_sync after
13685 gtk_window_resize.
13686 (x_wm_set_size_hint): Pass NULL as geometry window to
13687 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13688 Add menu bar and tool bar height to base height.
13689 (xg_update_frame_menubar, free_frame_menubar)
13690 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13691 (update_frame_tool_bar, free_frame_tool_bar):
13692 Change xg_resize_outer_widget to xg_frame_set_char_size.
13693
136942008-03-30 Michael Albinus <michael.albinus@gmx.de>
13695
13696 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13697 (Fdbus_call_method): New parameter TIMEOUT.
13698 (dbus-send-signal): Optimize UNGCPRO call.
13699
137002008-03-29 Juri Linkov <juri@jurta.org>
13701
13702 * window.c (Fdisplay_buffer): Move call to
13703 Vsplit_window_preferred_function out of conditions that check
13704 if window is eligible for vertical splitting.
13705 When Vsplit_window_preferred_function is non-nil, call it and use
13706 its non-nil return value as window. Otherwise, continue doing
13707 vertical splitting using Fsplit_window with arg horflag=nil.
13708 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13709 default value from `split-window' to nil.
13710
137112008-03-29 Juri Linkov <juri@jurta.org>
13712
13713 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13714 for interactive code letters 'b' and 'B'.
13715
137162008-03-29 Eli Zaretskii <eliz@gnu.org>
13717
13718 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13719 multibyte string.
13720
137212008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13722
13723 * keyboard.c (pending_funcalls): New var.
13724 (timer_check): Run it.
13725 (syms_of_keyboard): Initialize it.
13726 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13727 (Vdelete_terminal_functions): New vars.
13728 (syms_of_terminal): Initialize them.
13729 (Fdelete_terminal): Run delete-terminal-functions.
13730 * xdisp.c (safe_eval): Rewrite.
13731 (safe_call2): New fun.
13732 * frame.c (Qdelete_frame_functions): New var.
13733 (syms_of_frame): Initialize it.
13734 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13735 * lisp.h (safe_call2, pending_funcalls): Declare.
13736
137372008-03-28 Andreas Schwab <schwab@suse.de>
13738
13739 * indent.c (Fmove_to_column): Move declaration before statements.
13740
137412008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13742
13743 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13744 (struct frame): Use bit fields for boolean vars.
13745
13746 * process.c (server_accept_connection): Simplify naming.
13747 (emacs_get_tty_pgrp): Use SDATA.
13748
13749 * coding.c (decode_coding_object): Fix last change.
13750
137512008-03-27 Jason Rumney <jasonr@gnu.org>
13752
13753 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13754
137552008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13756
13757 * charset.c (Fdefine_charset_internal): Change the way of
13758 registering charsets in Vcharset_order_list.
13759 (syms_of_charset): Make the charset `eight-bit' supplementary.
13760
137612008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13762
13763 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13764 operations, to avoid having the difference between pointers
13765 overflow.
13766
137672008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13768
13769 * indent.c (check_display_width): New fun.
13770 (scan_for_column): Use it.
13771
13772 * data.c (syms_of_data): Mark most-positive-fixnum and
13773 most-negative-fixnum as constants.
13774
13775 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13776
13777 * indent.c (scan_for_column): Extract from current_column_1.
13778 Merge with the same code from Fmove_to_column.
13779 (current_column_1, Fmove_to_column): Use it.
13780
137812008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13782
13783 * keymap.c (map_keymap_internal): New fun.
13784 (map_keymap): Use it.
13785 (Fmap_keymap_internal): New fun.
13786 (Fmap_keymap): Remove left-out test from before make_save_value.
13787
13788 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13789
13790 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13791 Use XCAR/XCDR.
13792
13793 * process.h (struct Lisp_Process): Remove filter_multibyte.
13794 * process.c (QCfilter_multibyte): Remove.
13795 (setup_process_coding_systems): Don't use filter_multibyte.
13796 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13797 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13798 (Fset_process_filter_multibyte): Change the coding-system to
13799 approximate the previous behavior.
13800 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13801 coding-system.
13802
13803 * coding.c (decode_coding_object): When not decoding into a buffer,
13804 obey the coding system's preference of (uni|multi)byte.
13805
138062008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13807
13808 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13809 every char is changed and has a different byte-length.
13810 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13811 Fix int -> EMACS_INT.
13812
138132008-03-23 David Hansen <david.hansen@gmx.net>
13814
13815 * dbusbind.c (xd_read_message): Remove extra copying of message
13816 strings. Check for NULL `interface' or `member'.
13817
138182008-03-22 Eli Zaretskii <eliz@gnu.org>
13819
13820 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13821 cFileName a file name that includes `?' characters, use the 8+3
13822 alias in cAlternateFileName instead.
13823
138242008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13825
13826 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13827
138282008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13829
13830 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13831 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13832 work on current_buffer only instead (that was already the case
13833 for some of the code anyway).
13834 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13835 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13836 (SET_PT, SET_PT_BOTH): Adjust.
13837 * intervals.h (set_point, temp_set_point, set_point_both)
13838 (temp_set_point_both): Remove redundant declarations.
13839
138402008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13841
13842 * fileio.c (Finsert_file_contents):
13843 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13844 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13845 when buffer != current_buffer anyway.
13846
138472008-03-20 Andreas Schwab <schwab@suse.de>
13848
13849 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13850 as default.
13851
138522008-03-19 Jason Rumney <jasonr@gnu.org>
13853
13854 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13855 (syms_of_w32fns): Initialize them.
13856 (HOURGLASS_ID): New constant.
13857 (x_window_to_frame): Don't check hourglass_window.
13858 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13859 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13860 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13861 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13862 Only change the cursor if hourglass is not active.
13863 (Fx_create_frame): Initialize frame's current_cursor.
13864 (hourglass_atimer): Remove.
13865 (hourglass_started): New function.
13866 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13867 (show_hourglass): Adapt to w32, changing argument to frame.
13868
13869 * w32term.h (struct w32_output): Remove hourglass_window.
13870 Add current_cursor.
13871
13872 * eval.c (call_debugger, Fsignal):
13873 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13874 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13875 (Fexecute_extended_command, cancel_hourglass_unwind):
13876 * minibuf.c (read_minibuf):
13877 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13878
138792008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13880
13881 * window.c (run_funs): New fun.
13882 (run_window_configuration_change_hook): Use it to run the buffer-local
13883 and the global part of the hook.
13884
13885 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13886 (unwind_format_mode_line): Restore selected window.
13887 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13888
138892008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13890
13891 * editfns.c (Fchar_equal): Check they are valid characters.
13892
13893 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13894
138952008-03-17 Andreas Schwab <schwab@suse.de>
13896
13897 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13898 against a charset.
13899
13900 * lisp.h (Fbuffer_list): Declare.
13901
139022008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13903
aac0c6e3
MR
13904 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13905 handlebox_widget is != 0.
13906
139072008-03-16 Juri Linkov <juri@jurta.org>
13908
13909 * callint.c (Fcall_interactively): For interactive code letters
13910 'b' and 'B' put the buffer list into the list of default "future"
13911 values of the minibuffer.
13912
139132008-03-16 Andreas Schwab <schwab@suse.de>
13914
13915 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13916 modifiers.
13917
13918 * regex.c (re_match_2_internal): Correct matching of a charset
13919 against latin-1 characters.
13920
139212008-03-16 Kenichi Handa <handa@m17n.org>
13922
13923 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13924 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13925 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13926 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13927 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13928 CHAR_STRING_ADVANCE.
13929 (produce_chars): Fix for the case that the source and the
13930 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13931 instead of CHAR_STRING_ADVANCE.
13932 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13933 STRING_CHAR_ADVANCE.
13934
139352008-03-15 Andreas Schwab <schwab@suse.de>
13936
13937 * regex.c (re_match_2_internal): Correct matching of eight bit
13938 characters in unibyte strings.
13939
139402008-03-15 Martin Rudalics <rudalics@gmx.at>
13941
13942 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13943 at end of range when it coincides with the end of the buffer.
13944
139452008-03-14 Eli Zaretskii <eliz@gnu.org>
13946
13947 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13948
13949 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13950
139512008-03-14 Jason Rumney <jasonr@gnu.org>
13952
13953 * editfns.c (initial_tz): New variable.
13954 (syms_of_editfns): Initialize it.
13955 (Fset_time_zone_rule): Set it when first called.
13956 Use it when TZSTRING is nil.
13957
13958 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13959 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13960 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13961 (globals_of_w32fns): Initialize them.
13962 (compute_tip_xy): Use them to position tooltips.
13963
139642008-03-14 Glenn Morris <rgm@gnu.org>
13965
13966 * emacs.c (main): Revert previous change.
13967 (standard_args): Revert -internal-script back to -scriptload,
13968 and remove the long-option form.
13969
139702008-03-13 Glenn Morris <rgm@gnu.org>
13971
13972 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13973 Remove option -enable-font-backend.
13974
139752008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13976
13977 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13978
139792008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13980
13981 * xterm.c (x_connection_closed): For GTK: If this is the last
13982 terminal just exit without closing the display.
13983
139842008-03-11 Jason Rumney <jasonr@gnu.org>
13985
13986 * w32font.c (w32font_full_name): Use floor to round.
13987
f0131492 139882008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13989
13990 * sound.c (alsa_configure): Declare vol at beginning of block.
13991
13992 * fontset.c (Ffontset_info): Remove extra semicolon.
13993
139942008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13995
13996 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13997 size of resulting string.
13998
139992008-03-10 Jason Rumney <jasonr@gnu.org>
14000
14001 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14002
140032008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14004
14005 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14006 Don't pretend as if characters with display property haven't been
14007 consumed for string-replacing-string case.
14008
140092008-03-08 Kim F. Storm <storm@cua.dk>
14010
14011 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14012 (get_next_display_element, next_element_from_string)
14013 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14014
140152008-03-08 Andreas Schwab <schwab@suse.de>
14016
14017 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14018
140192008-03-06 Jason Rumney <jasonr@gnu.org>
14020
14021 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14022 when charset not specified. Only translate ANSI to unicode when
14023 font_type is truetype.
14024 (w32font_coverage_ok): New function.
14025 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14026
140272008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14028
14029 * lread.c (Fread_char): Resolve modifiers.
14030 (Fread_char_exclusive): Likewise.
14031
14032 * character.c (char_resolve_modifier_mask): New function.
14033 (char_string): Use char_resolve_modifier_mask.
14034 (Fchar_resolve_modifiers): New function.
14035 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14036 function.
14037
140382008-03-04 Jason Rumney <jasonr@gnu.org>
14039
14040 * makefile.w32-in: Always include w32font.c in the build.
14041 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14042
140432008-03-04 Andreas Schwab <schwab@suse.de>
14044
14045 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14046 (versionclean): Likewise.
14047
140482008-03-04 Juanma Barranquero <lekktu@gmail.com>
14049
14050 * .cvsignore: Add oo.
14051
140522008-03-03 Andreas Schwab <schwab@suse.de>
14053
14054 * coding.c (decode_coding_object): Inhibit gap shrinking while
14055 decoding in place.
14056
140572008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14058
14059 * w32term.c: Remove unused include "gnu.h".
14060 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14061
14062 * gnu.h: Rename to ...
14063 * emacs-icon.h: ... this.
14064 * xterm.c: Use emacs-icon.h instead of gnu.h.
14065 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14066
140672008-03-03 Juanma Barranquero <lekktu@gmail.com>
14068
14069 * w32font.c: Include math.h.
14070
140712008-03-03 Jason Rumney <jasonr@gnu.org>
14072
14073 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14074 Compute options separately.
14075 (w32font_open_internal): Set glyph_idx before caching metrics.
14076
14077 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14078 Define if system headers don't.
14079 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14080 (w32font_encode_char): Don't declare here.
14081
14082 * w32font.c (Quniscribe, QCformat): New symbols.
14083 (syms_of_w32font): Define them.
14084 (w32font_has_char): Indicate uncertainty.
14085 (w32font_encode_char): Encode as glyph point. Make static.
14086 (recompute_cached_metrics): New function.
14087 (w32font_open_internal): Use it. Set font to use glyph points
14088 initially. Set format based on type of font.
14089 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14090 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14091 on it. Set format based on information available here.
14092 (add_font_entity_to_list): Identify backend based on opentype_only.
14093
140942008-03-02 Andreas Schwab <schwab@suse.de>
14095
14096 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14097
14098 * coding.c (decode_coding_big5, produce_chars):
14099 Fix typos in last change.
14100
141012008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14102
14103 * gnu.h: New icon.
14104
141052008-03-02 Kenichi Handa <handa@m17n.org>
14106
14107 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14108 `dos', don't decode '\r' if that is the last in the source.
14109 (decode_coding_utf_16, decode_coding_emacs_mule)
14110 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14111 (decode_coding_raw_text, decode_coding_charset): Likewise.
14112 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14113
141142008-03-01 Jason Rumney <jasonr@gnu.org>
14115
14116 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14117
141182008-03-01 Kim F. Storm <storm@cua.dk>
14119
14120 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14121
141222008-03-01 Jason Rumney <jasonr@gnu.org>
14123
14124 * w32font.c (w32font_full_name): New function.
14125 (w32font_open_internal): Use it.
14126
141272008-03-01 Kim F. Storm <storm@cua.dk>
14128
14129 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14130
141312008-03-01 Jason Rumney <jasonr@gnu.org>
14132
14133 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14134
141352008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14136
14137 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14138 xg_frame_resized when the event is for the edit widget.
14139
14140 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14141
14142 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14143 set_char_size.
14144 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14145 operations on widgets here. Just set frame size if needed.
14146 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14147 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14148 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14149 the whole frame.
14150 (xg_create_tool_bar): Move attachment of the tool bar to
14151 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14152 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14153
141542008-03-01 Jason Rumney <jasonr@gnu.org>
14155
14156 * w32fns.c (w32_msg_pump): Disable debug code.
14157
141582008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14159
14160 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14161
141622008-02-29 Chong Yidong <cyd@stupidchicken.com>
14163
14164 * xdisp.c (next_overlay_string): Don't set
14165 overlay_strings_at_end_processed_p if we're currently reading from
14166 a display string.
14167
141682008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14169
14170 * xdisp.c (get_overlay_strings_1): Fix typo.
14171
141722008-02-29 Chong Yidong <cyd@stupidchicken.com>
14173
14174 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14175
141762008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14177
14178 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14179
14180 * xdisp.c (display_mode_element): Cancel the previous change.
14181 (decode_mode_spec): Likewise.
14182 (handle_auto_composed_prop): Don't make composition if it->string
14183 is a string.
14184
141852008-02-27 Kim F. Storm <storm@cua.dk>
14186
14187 * lisp.h (GLYPH): Change type from int to struct with separate char
14188 and face_id members.
14189 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14190 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14191 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14192 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14193 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14194 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14195 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14196 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14197 handle new Lisp glyph code encoding, either an integer or a cons.
14198
14199 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14200 (GLYPH_ALIAS): Delete.
14201 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14202 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14203 (GLYPH_FROM_CHAR): Replace macro by ...
14204 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14205
14206 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14207 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14208 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14209 (GLYPH_INVALID_P): New macro.
14210 (spec_glyph_lookup_face): Update prototype.
14211
14212 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14213 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14214 new glyph code encoding.
14215 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14216 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14217
14218 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14219 Adapt to new glyph type and new glyph code encoding.
14220
14221 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14222
14223 * indent.c (current_column, current_column_1, Fmove_to_column)
14224 (compute_motion): Adapt to new glyph code encoding.
14225
14226 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14227
142282008-02-27 Chong Yidong <cyd@stupidchicken.com>
14229
14230 * process.c (wait_reading_process_output): Check for window
14231 changes caused by timers.
14232 Suggested by Johan Bockgård.
14233
142342008-02-27 Glenn Morris <rgm@gnu.org>
14235
14236 * emacs.c (USAGE1): Add `--disable-font-backend'.
14237
142382008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14239
14240 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14241 is made to the buffer.
14242
142432008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14244
14245 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14246 (face_at_string_position):
14247 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14248 (face_at_string_position):
14249 * xdisp.c (display_string, next_overlay_change):
14250 * buffer.h (overlays_at):
14251 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14252 Update callers.
14253
142542008-02-26 Chong Yidong <cyd@stupidchicken.com>
14255
14256 * editfns.c (Fformat): Doc fix.
14257
142582008-02-26 Juanma Barranquero <lekktu@gmail.com>
14259
14260 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14261 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14262 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14263
142642008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14265
14266 * buffer.c (Fbuffer_swap_text): New function.
14267 (syms_of_buffer): Defsubr it.
14268
142692008-02-25 Chong Yidong <cyd@stupidchicken.com>
14270
14271 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14272
142732008-02-25 Jason Rumney <jasonr@gnu.org>
14274
14275 * w32font.c (w32font_draw): Draw one character at a time when padding.
14276
142772008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14278
14279 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14280 Handle a nil arg. Use run_window_configuration_change_hook.
14281 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14282 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14283 Use run_window_configuration_change_hook.
14284
142852008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14286
14287 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14288 1-pixel width.
14289
142902008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14291
14292 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14293 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14294 if the glyph in the font is zero pixel with.
14295
14296 * dispextern.h (struct glyph_string): New member padding_p.
14297
14298 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14299
14300 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14301
14302 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14303
14304 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14305
14306 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14307
143082008-02-25 Jason Rumney <jasonr@gnu.org>
14309
14310 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14311
143122008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14313
14314 Allow fine-grained image-cache flushing.
14315 * dispextern.h (struct image): Add `dependencies' field.
14316 (clear_image_caches): Change arg to Lisp_Object.
14317 * image.c (make_image): Initialize `dependencies' field.
14318 (clear_image_cache): Change arg to allow fine-grained flushing.
14319 Perform the flush even if image-cache-eviction-delay is nil.
14320 (clear_image_caches): Change arg to Lisp_Object.
14321 (Fclear_image_cache): Expand meaning of the argument.
14322 (mark_image): Mark `dependencies' field.
14323 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14324 (lface_hash): Use XHASH rather than XFASTINT.
14325 (face_at_buffer_position): Fix int -> EMACS_INT position.
14326 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14327 (select_frame_for_redisplay): Remove code duplication.
14328 (redisplay_internal): Adapt arg to call to clear_image_caches.
14329
143302008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14331
14332 * s/vms4-0.h:
14333 * s/vms4-2.h:
14334 * s/vms4-4.h:
14335 * s/vms5-5.h: Remove, unused.
14336
14337 * s/irix5-2.h:
14338 * s/irix6-0.h:
14339 * s/riscos5.h:
14340 * s/mach-bsd4-3.h:
14341 * m/mips4.h: Remove files for obsolete systems.
14342
14343 * Makefile.in:
14344 * filelock.c:
14345 * unexmips.c:
14346 * m/hp9000s300.h:
14347 * m/iris4d.h:
14348 * s/aix3-1.h:
14349 * s/hpux.h:
14350 * s/msdos.h:
14351 * s/usg5-0.h:
14352 * s/usg5-2-2.h:
14353 * s/usg5-2.h:
14354 * s/usg5-3.h: Remove references to obsolete variables.
14355
14356 * s/irix5-0.h: Remove, move all the contents ...
14357 * s/irix6-5.h: ... here. Simplify.
14358 * config.in: Regenerate.
14359
143602008-02-24 Jason Rumney <jasonr@gnu.org>
14361
14362 * w32term.c (x_draw_glyph_string_background): Clear the background
14363 manually when cleartype is in use.
14364 (x_draw_glyph_string_foreground): Draw text transparently when
14365 cleartype is in use.
14366
14367 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14368 a font into it unless we have to.
14369
143702008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14371
14372 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14373 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14374
aac0c6e3
MR
143752008-02-18 Jason Rumney <jasonr@gnu.org>
14376
14377 * w32fns.c (Fw32_shell_execute): Encode parameters.
14378
143792008-02-09 Eli Zaretskii <eliz@gnu.org>
14380
14381 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14382
143832008-02-05 Juanma Barranquero <lekktu@gmail.com>
14384
14385 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14386
143872008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14388
14389 * xterm.c (x_set_offset): Don't change the gravity if
14390 CHANGE_GRAVITY is -1.
14391
143922008-02-23 Chong Yidong <cyd@stupidchicken.com>
14393
14394 * fileio.c (auto_save_error_occurred): New var.
14395 (auto_save_error): Set it.
14396 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14397 error occurred.
14398
143992008-02-23 Eli Zaretskii <eliz@gnu.org>
14400
14401 * w32.c (globals_of_w32): Add initializations for
14402 g_b_init_get_sid_sub_authority and
14403 g_b_init_get_sid_sub_authority_count.
14404
144052008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14406
14407 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14408 (font_parse_xlfd): Use them for sanity check.
14409 (Finternal_set_font_style_table): Make sure the table is bijective.
14410
14411 Consolidate the image_cache to the terminal struct.
14412 * termhooks.h (P_): Remove redundant def.
14413 (struct terminal): New field `image_cache'.
14414 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14415 of FRAME_X_IMAGE_CACHE.
14416 * xterm.h (struct x_display_info): Remove image_cache field.
14417 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14418 * w32term.h (struct w32_display_info): Remove image_cache field.
14419 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14420 * macterm.h (struct mac_display_info): Remove image_cache field.
14421 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14422 * xterm.c (x_term_init):
14423 * w32term.c (w32_term_init):
14424 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14425 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14426 Remove declarations.
14427 (clear_image_caches, mark_image_cache): New declarations.
14428 * xfaces.c (clear_face_cache):
14429 * xdisp.c (redisplay_internal): Use clear_image_caches.
14430 * image.c (clear_image_cache): Don't check that a frame is on
14431 a window-system before checking if it shares the same cache.
14432 (clear_image_caches): New function.
14433 (Fclear_image_cache): Use it.
14434 (mark_image): Move from allo.c.
14435 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14436 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14437 (mark_object): Don't call mark_image_cache for frames.
14438 (mark_terminals): Call mark_image_cache.
14439
14440 * lisp.h (Fdelete_terminal): Declare.
14441
14442 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14443 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14444 wrong_type_argument.
14445
144462008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14447
14448 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14449 malayalam.el, and tamil.el. Add sinhala.el.
14450
144512008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14452
14453 * xterm.c (x_connection_closed): Consolidate identical tests.
14454 (x_delete_terminal): Don't crash if called via x_connection_closed.
14455
144562008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14457
14458 * xdisp.c (decode_mode_spec): New arg string.
14459 (display_mode_element): Adjust for the above change.
14460
144612008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14462
14463 * callint.c (Fcall_interactively): Use AREF.
14464
144652008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14466
14467 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14468
144692008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14470
14471 * xfns.c (Fx_show_tip): Set string to " " if empty.
14472
144732008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14474
14475 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14476 with Qt.
14477
144782008-02-17 Kenichi Handa <handa@m17n.org>
14479
14480 * ftfont.c (ftfont_shape): Return Lispy number.
14481
14482 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14483 for GCs.
14484 (Finternal_set_font_selection_order): Call font_update_sort_order
14485 only when enable_font_backend is set.
14486 (realize_x_face): Set face->font_info to that of default face only
14487 when enable_font_backend is set.
14488
14489 * xdisp.c (handle_composition_prop): Set it->c to the fist
14490 character of the composed region.
14491 (fill_composite_glyph_string): Set base_face->font_info to
14492 s->font_info. Get a face for ascii from base_face->ascii_face.
14493 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14494 with a face already decided.
14495 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14496 non-negative.
14497 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14498 call font_prepare_composition unconditionally.
14499
14500 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14501
14502 * xterm.h (struct x_display_info): New member font.
14503
14504 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14505 (x_set_mouse_face_gc, x_new_font): Likewise.
14506 (x_term_init): Setup display_info->font.
14507 (x_delete_terminal): Free display_info->font.
14508
14509 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14510
14511 * ftxfont.c (ftxfont_default_fid): Delete it.
14512 (ftxfont_open): Set xfont->fid to 0.
14513 (ftxfont_end_for_frame): Clear data specific to the frame and the
14514 font-driver.
14515
14516 * xftfont.c (xftfont_default_fid): Delete it.
14517 (xftfont_open): Set xfont->fid to 0.
14518
14519 * fontset.c (FONTSET_OBJLIST): New macro.
14520 (fontset_find_font): Update font-object list of the fontset.
14521 (free_realized_fontset): New function.
14522 (free_face_fontset): Call free_realized_fontset.
14523 (Ffont_info): Call font_close_object only when enable_font_backend
14524 is set.
14525
14526 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14527 [HAVE_NTGUI]: Include w32term.h.
14528 [MAC_OS]: Include macterm.ch.
14529 (font_otf_ValueRecord): Use make_number.
14530 (font_finish_cache): Fix handling of reference count.
14531 (font_clear_cache): Update num_fonts.
14532 (font_open_entity): Update smallest_char_width and
14533 smallest_font_height of the frame.
14534 (font_close_object): Update num_fonts.
14535 (Fclear_font_cache): Fix finding the target cache data.
14536
145372008-02-16 Glenn Morris <rgm@gnu.org>
14538
14539 * fontset.c (Finternal_char_font): Fix compilation warning.
14540
145412008-02-16 Eli Zaretskii <eliz@gnu.org>
14542
14543 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14544 instead of char arrays. Enlarge the size of array passed to
14545 get_token_information.
14546
14547 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14548 warnings.
14549
145502008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14551
14552 * .gdbinit: Don't set `args', it breaks gdb --args.
14553
145542008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14555
14556 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14557 within a narrowed buffer.
14558
145592008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14560
14561 * coding.c (decode_coding_object, encode_coding_object):
14562 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14563
145642008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14565
14566 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14567 hardcoding 1.
14568 (detect_coding_system):
14569 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14570 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14571 * insdel.c (insert_from_gap):
14572 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14573 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14574 (string_to_multibyte):
14575 * character.c (chars_in_text, multibyte_chars_in_text):
14576 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14577
14578 * character.h (FETCH_STRING_CHAR_ADVANCE)
14579 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14580 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14581 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14582
14583 * casefiddle.c (casify_region): Only call after-change and composition
14584 functions on the part of the region that was changed.
14585
14586 * keyboard.c (read_avail_input):
14587 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14588
145892008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14590
14591 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14592 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14593
145942008-02-11 Juanma Barranquero <lekktu@gmail.com>
14595
14596 * w32menu.c (push_submenu_start, push_submenu_end)
14597 (push_left_right_boundary, push_menu_pane, push_menu_item):
14598 * keyboard.c (read_key_sequence): Don't pass args with side effects
14599 to AREF, it fails when compiling with -DENABLE_CHECKING.
14600
146012008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14602
14603 * Makefile.in (${lispsource}international/charprop.el):
14604 Delete this target.
14605
14606 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14607 emacs-unicode-2.
14608
146092008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14610
14611 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14612
146132008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14614
14615 * frame.c (Qnoelisp): New symbol.
14616 (syms_of_frame): Initialize it.
14617 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14618 harmless Elisp code, from a strong `force' from x_connection_closed.
14619 * frame.h (Qnoelisp): Declare.
14620 * xterm.c (x_connection_closed): Pass `noelisp'.
14621
14622 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14623 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14624 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14625 rather than `int' for the type of `type'.
14626
146272008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14628
14629 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14630
14631 * Makefile.in (GNUC): Remove support for gcc-1.x.
14632
146332008-02-10 Richard Stallman <rms@gnu.org>
14634
14635 * lisp.h (ASET): Use AREF, not ASLOT.
14636
146372008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14638
14639 * lisp.h (ASET): Check bounds.
14640
146412008-02-10 Glenn Morris <rgm@gnu.org>
14642
14643 * buffer.c (mode-name): Doc fix.
14644
146452008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14646
14647 * Makefile.in:
14648 * emacs.c:
14649 * gmalloc.c:
14650 * keyboard.c:
14651 * lisp.h:
14652 * m/ibm370aix.h:
14653 * process.c:
14654 * regex.c:
14655 * s/hpux.h:
14656 * sysdep.c:
14657 * sysselect.h:
14658 * systty.h:
14659 * unexec.c:
14660 * w32term.c:
14661 * xsmfns.c:
14662 * xterm.c: Remove code that deals with obsolete variables.
14663
14664 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14665
14666 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14667 nothing else needs it anymore.
14668
146692008-02-09 Eli Zaretskii <eliz@gnu.org>
14670
14671 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14672 instead of unibyte_char_to_multibyte.
14673
146742008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14675
14676 * s/gnu-linux.h: Remove commented out code.
14677
14678 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14679
14680 * Makefile.in: Update what RMS says about using autoconf.
14681 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14682 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14683 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14684 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14685
146862008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14687
14688 * keymap.c (Fkey_description): Move side effect outside of macro call.
14689
14690 * xfaces.c (Finternal_make_lisp_face):
14691 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14692
14693 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14694 (syms_of_fontset): Use ASET.
14695
14696 * fns.c (concat): Move side effect outside of macro call.
14697 (hash_clear): Use ASET.
14698
146992008-02-08 Richard Stallman <rms@gnu.org>
14700
14701 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14702 If FORCE, and frame has a surrogate minibuffer for another frame,
14703 delete the other frame first.
14704
147052008-02-07 Timo Savola <timo.savola@iki.fi>
14706
14707 * xterm.c (x_detect_focus_change): Handle embed client message.
14708 (handle_one_xevent): Ditto.
14709 (handle_one_xevent): If embedded and we get a button press/release,
14710 request focus.
14711 (xembed_set_info, xembed_send_message): New functions.
14712 (x_make_frame_visible): Call xembed_set_info if embedded.
14713 (x_make_frame_invisible): Call xembed_set_info if embedded.
14714 (x_term_init): Initialize Xatom_XEMBED.
14715 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14716 (x_iconify_frame): Ditto.
14717
14718 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14719 (enum xembed_info, enum xembed_message, enum xembed_focus)
14720 (enum xembed_modifier, enum xembed_accelerator): New.
14721 (xembed_set_info, xembed_send_message): Declare.
14722 (FRAME_X_EMBEDDED_P): New.
14723
14724 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14725 gtk_plug_new.
14726
14727 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14728 window ID of a frame.
14729 (x_window): Reparent frame if embedded.
14730 (Fx_create_frame): Don't set border width if embedded.
14731
14732 * emacs.c (USAGE3): Add --parent-id.
14733 (standard_args): Ditto.
14734
147352008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14736
14737 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14738
147392008-02-07 Jim Meyering <meyering@redhat.com>
14740
14741 Use "do...while (0)", not "if (1)...else" in macro definitions.
14742 The latter provokes a warning from gcc about the empty else, when
14743 followed by ";". Also, without that trailing semicolon, it would
14744 silently swallow up any following statement.
14745 * syntax.h (SETUP_SYNTAX_TABLE)
14746 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14747 * buffer.h (DECODE_POSITION): Likewise.
14748 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14749 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14750 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14751 (FETCH_CHAR_ADVANCE): Likewise.
14752 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14753
147542008-02-07 Jim Meyering <meyering@redhat.com>
14755
14756 * lread.c [lint]: Don't include <sys/inode.h>.
14757
147582008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14759
14760 * xselect.c (x_handle_dnd_message):
14761 * xmenu.c (digest_single_submenu, xmenu_show):
14762 * xdisp.c (with_echo_area_buffer_unwind_data)
14763 (format_mode_line_unwind_data, unwind_format_mode_line)
14764 (display_menu_bar):
14765 * eval.c (Ffetch_bytecode):
14766 * doc.c (store_function_docstring):
14767 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14768 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14769 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14770
147712008-02-07 Kenichi Handa <handa@m17n.org>
14772
14773 * ftxfont.c (ftxfont_open): Don't set
14774 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14775
14776 * ftfont.c (ftfont_open): Fix previous change.
14777
147782008-02-06 Jason Rumney <jasonr@gnu.org>
14779
14780 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14781 Use cached metrics for ASCII characters.
14782 (w32font_open_internal): Don't set font's owning_frame.
14783 Cache metrics for ASCII characters.
14784
14785 * w32font.h (struct w32font_info): Add ascii_metrics.
14786 Remove owning_frame.
14787
147882008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14789
14790 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14791 to negative value.
14792
14793 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14794
14795 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14796
14797 * charset.c (syms_of_charset): Set QCtest and Qeq.
14798
147992008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14800
14801 * process.c (Fstart_process):
14802 * callproc.c (Fcall_process): Handle the case where
14803 Funhandled_file_name_directory returns nil.
14804
14805 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14806 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14807 * font.c (check_gstring): Use them and AREF to access the vector before
14808 we know it's really a gstring.
14809 (Ffont_shape_text): Fix typo.
46e722a9 14810 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14811
14812 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14813 Declare.
14814
14815 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14816
148172008-02-05 Jason Rumney <jasonr@gnu.org>
14818
14819 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14820 Set smallest_font_height and smallest_char_width in display info.
14821
148222008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14823
14824 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14825
148262008-02-05 Miles Bader <miles@gnu.org>
14827
14828 * xfaces.c (get_lface_attributes, merge_named_face)
14829 (lookup_named_face, lookup_derived_face, realize_named_face):
14830 Revert 2008-02-01 change by cyd@stupidchicken.com.
14831
148322008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14833
14834 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14835 fallback fonts.
14836 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14837
148382008-02-04 Jason Rumney <jasonr@gnu.org>
14839
14840 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14841 set full_name.
14842 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14843
148442008-02-03 Jason Rumney <jasonr@gnu.org>
14845
14846 * makefile.w32-in (OBJ1): Include font.o here.
14847 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14848
148492008-02-02 Jason Rumney <jasonr@gnu.org>
14850
14851 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14852
148532008-02-01 Jason Rumney <jasonr@gnu.org>
14854
14855 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14856
14857 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14858
148592008-02-01 Andreas Schwab <schwab@suse.de>
14860
14861 * Makefile.in (shortlisp, lisp): Update for rename of
14862 ../lisp/language/myanmar.el.
14863
148642008-02-01 Chong Yidong <cyd@stupidchicken.com>
14865
14866 * xfaces.c (get_lface_attributes): Delete function.
14867 (merge_named_face, lookup_named_face, lookup_derived_face)
14868 (realize_named_face): Call lface_from_face_name directly, and use
14869 the fact that merge_face_vectors does not alter its FROM argument.
14870
148712008-02-01 Jason Rumney <jasonr@gnu.org>
14872
14873 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14874 input in the default locale. Handle non-Unicode multibyte input.
14875
148762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14877
14878 * fontset.c (reorder_font_vector): Exclude nil elements from the
14879 font group. Don't try multiple fonts.
14880 (fontset_font): Adjust for the above change.
14881 (Finternal_char_font): Return nil if the found font doesn't
14882 contain the character ch.
14883
14884 * Makefile.in (lisp, shortlisp): Add cham.el.
14885
148862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14887
14888 * font.h (FONTP): Make it return 1 also for a font-object.
14889
14890 * .gdbinit (xfontset): New function.
14891
14892 * font.c (font_find_for_lface): Check if the character C is
14893 supported or not only for the first font.
14894
14895 * fontset.c (reorder_font_vector): Fix typo.
14896 (fontset_find_font): Don't add a font-spec specifying a script.
14897 Use 0 (not Qt) for the indication of empty font-group. Change the
14898 format of RFONT-DEF. Return Qt if no font in the font-group
14899 support the character.
14900 (fontset_font): Adjust for the above change. If no font was
14901 found the character, remember that.
14902 (face_for_char): Adjust for the change of RFONT-DEF.
14903 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14904 no font for the target.
14905 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14906
149072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14908
14909 * font.c (font_load_for_face): Handle the case that the font in
14910 face->lface is a string.
14911
149122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14913
14914 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14915
149162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14917
14918 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14919 Fix previous change. If the frame is not on a window system,
14920 signal an error.
14921
149222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14923
14924 * coding.c (decode_coding_object, encode_coding_object): Adjust
14925 marker positions after conversion.
14926
14927 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14928
149292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14930
14931 * font.c (font_find_for_lface): Fix the handling of the return
14932 value of font_has_char.
14933 (Ffont_shape_text): Fix previous change.
14934
14935 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14936 (fontset_ref_and_range): Delete it.
14937 (fontset_find_font): Call char_table_ref_and_range instead of
14938 FONTSET_REF_AND_RANGE.
14939 (make_fontset): Don't setup font groups of Latin here.
14940 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14941 (new_fontset_from_font): Make the specified font the default for
14942 all Latin characters.
14943
149442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14945
14946 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14947 is on a window system before accessing the fontset of the frame.
14948
149492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14950
14951 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14952
14953 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14954 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14955
14956 * font.c (Ffont_shape_text): If the font driver doesn't have a
14957 shaper function, make zero-width glyphs to have at least one-pixel
14958 width. Fix setting of `to' field of glyphs.
14959
149602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14961
14962 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14963 glyphs.
14964
14965 * font.h (struct font_driver): Improve docstring of member `shape'.
14966
149672008-02-01 Kenichi Handa <handa@m17n.org>
14968
14969 * composite.c (syms_of_composite): Fix docstring of
14970 auto-composition-function.
14971
14972 * font.h (LGLYPH_SIZE): New macro.
14973
14974 * font.c (Ffont_fill_gstring): Stop filling when a character not
14975 supported by the font is found.
14976 (Ffont_shape_text): When a shape callback function returns nil,
14977 try at most two more times with larger gstring.
14978 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14979
14980 * xdisp.c (handle_auto_composed_prop): Change the argument to
14981 auto-composition-function.
14982
14983 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14984 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14985 Lispy glyph and store it in the lgstring.
14986
14987 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14988
14989 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14990
149912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14992
14993 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14994
14995 * fontset.c (Vfont_encoding_charset_alist): New variable.
14996 (syms_of_fontset): DEFVAR it.
14997 (reorder_font_vector, fontset_find_font): Optimize for the case of
14998 no need of reordering.
14999 (face_for_char): Map the charset property by
15000 Vfont_encoding_charset_alist.
15001
150022008-02-01 Jason Rumney <jasonr@gnu.org>
15003
15004 * w32font.c (logfonts_match): Don't check adstyle here.
15005 (font_matches_spec): Check here against physical font instead.
15006 (add_font_entity_to_list): Avoid some substitutions.
15007
15008 * font.c (font_parse_fcname): Default weight and slant to normal.
15009 (font_score): Prefer normal fonts if weight or slant unspecified.
15010 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15011 match freetype scores.
15012
150132008-02-01 Jason Rumney <jasonr@gnu.org>
15014
15015 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15016 font, as it may have been deleted.
15017 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15018 most common hyphenless variation.
15019 (logfonts_match): Check generic family.
15020 (font_matches_spec): Don't check generic family here.
15021 (fill_in_logfont): Set generic family based on adstyle.
15022
15023 * w32font.h (w32font_get_cache): Update declaration.
15024
150252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15026
15027 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15028
15029 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15030 If none of the new drivers are available, call font_update_drivers
15031 with the old drivers.
15032
15033 * w32font.c (w32font_get_cache): Adjust the argument type.
15034
15035 * xfont.c (xfont_get_cache): Adjust the argument type.
15036
15037 * font.h (struct font_driver): Change argument type of get_cache.
15038
15039 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15040
15041 * font.c (Ffont_get): Fix arguments to Fassoc.
15042 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15043 (font_clear_cache): New function.
15044 (font_list_entities, font_matching_entity): Use font_get_cache.
15045 (font_update_drivers): Call font_clear_cache when finishing a driver.
15046
15047 * fontset.c (fontset_find_font): Fix previous change.
15048
150492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15050
15051 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15052 dpyinfo->font_table.
15053 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15054 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15055
15056 * font.c (font_at): Handle the case that the arg C is negative.
15057 Handle the unibyte case.
15058 (Ffont_at): Call font_at with the arg C -1.
15059
15060 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15061 the position here, and call font_at with the arg C -1.
15062 Don't check the range of the existing composition at the point.
15063
150642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15065
15066 * fontset.c (fontset_add): New args charset_id and family.
15067 Change caller.
15068 (load_font_get_repertory, fontset_find_font): Assume that
15069 font_spec is always a font-spec object.
15070 (Fset_fontset_font): Always store a font-spec object in a fontset.
15071
15072 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15073 instead of get_property_and_range.
15074
150752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15076
15077 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15078 (xftfont_open): Don't keep locking face.
15079 (xftfont_close): Don't unlock face.
15080 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15081
15082 * fontset.c (fontset_find_font): Don't prefer a font of
15083 supplementary charset.
15084
150852008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15088 script, langsys_tag to langsys, new member script.
15089 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15090 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15091 listing to the script specified in that property. Fix arg to
15092 OTF_check_features.
15093
150942008-02-01 Jason Rumney <jasonr@gnu.org>
15095
15096 * w32font.h: New file.
15097
15098 * w32font.c: Include it.
15099 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15100 (w32font_open): Set owning_frame.
15101 (w32font_text_extents): Use owning_frame.
15102 (struct font_callback_data): Add opentype_only field.
15103 (add_font_entity_to_list): Use it to filter fonts.
15104 Don't check against full name.
15105 (w32font_list_internal): New function.
15106 (w32font_list): Use it.
15107 (w32font_match_internal): New function.
15108 (w32font_match): Use it.
15109 (w32font_open_internal): New function.
15110 (w32font_open): Use it.
15111 (w32font_get_cache, w32font_close, w32font_has_char)
15112 (w32font_encode_char, w32font_text_extents, w32font_draw):
15113 Make non-static.
15114
15115 * makefile.w32-in (w32font.o): Depend on w32font.h.
15116
151172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15118
15119 * charset.c (Fdefine_charset_internal): Record a supplementary
15120 charset at the tail of Vcharset_order_list.
15121
15122 * font.c (Ffont_shape_text): Fix the return value.
15123
15124 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15125
15126 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15127
151282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15129
15130 * ftfont.c (struct OpenTypeSpec): New struct.
15131 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15132 (ftfont_get_open_type_spec): New function.
15133 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15134
15135 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15136
151372008-02-01 Jason Rumney <jasonr@gnu.org>
15138
15139 * w32font.c (add_font_entity_to_list): Compare only the beginning
15140 of full name.
15141
151422008-02-01 Kenichi Handa <handa@m17n.org>
15143
15144 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15145 Never return HANDLED_RECOMPUTE_PROPS.
15146
151472008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * font.c (font_gstring_produce): Delete it.
15150
15151 * composite.h (COMPOSITION_METHOD):
15152 Handle COMPOSITION_WITH_GLYPH_STRING.
15153
151542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15155
15156 * xfont.c (Qx): Delete.
15157 (syms_of_xfont): Don't initialize Qx.
15158
15159 * composite.h (enum composition_method):
15160 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15161
151622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15163
15164 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15165 (choose_face_font): Accept new form of font-spec.
15166
15167 * frame.h (font_driver_list): Declare it unconditionally.
15168 (struct frame): Define members font_driver_list and font_data_list
15169 unconditionally.
15170
15171 * fontset.c: Include "font.h" unconditionally.
15172 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15173 (Fset_fontset_font): Accept a font-spec object.
15174
15175 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15176 PIXEL_SIZE part a wild card.
15177
15178 * dispextern.h (struct glyph_string): Define members clip and
15179 num_clips unconditionally.
15180 (struct face): Define members font_info and extra unconditionally.
15181
15182 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15183 ftfont_info only when HAVE_LIBOTF is defined.
15184
151852008-02-01 Andreas Schwab <schwab@suse.de>
15186
15187 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15188 and end.
15189
151902008-02-01 Jason Rumney <jasonr@gnu.org>
15191
15192 * w32font.c (w32font_driver): Add new fields.
15193
151942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15195
15196 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15197 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15198 (LIBES): Add @M17N_FLT_CFLAGS@.
15199
15200 * composite.c (compose_text): Don't treat the new style
15201 composition specially.
15202
15203 * emacs.c (main): Call syms_of_font unconditionally.
15204
15205 * font.h (FONT_ENTITY_NOT_LOADABLE)
15206 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15207 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15208 (struct font_driver): New member shape.
15209 (font_registry_charsets): Extern it.
15210 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15211 (font_otf_capability, font_drive_otf): Delete their externs.
15212
15213 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15214 (font_charset_alist, font_registry_charsets): Move from xfont.c
15215 and rename.
15216 (font_prop_validate_otf): New function.
15217 (font_property_table): Register it for QCotf.
15218 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15219 (font_drive_otf): Delete.
15220 (font_prepare_composition): New arg F. Adjust for the change of
15221 lispy gstring.
15222 (font_find_for_lface): New arg C.
15223 (font_load_for_face): Adjust for the change of font_find_for_lface.
15224 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15225 lispy gstring.
15226 (Ffont_shape_text): New function.
15227 (Fopen_font): If the font size is not given, use 12-pixel.
15228 (Ffont_at): New arg STRING.
15229 (syms_of_font): Initalize font_charset_alist.
15230 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15231 conditionally.
15232
15233 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15234 fonts of the same font-spec. Change the format of RFONT-DEF.
15235 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15236 Adjust for the change of RFONT-DEF.
15237 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15238
15239 * ftfont.h: New file.
15240
15241 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15242 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15243 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15244 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15245 font_otf_capability and font_drive_otf, set ftfont_shape.
15246 (ftfont_list): Adjust for the change of :otf property value.
15247 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15248 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15249 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15250 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15251 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15252 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15253
15254 * w32term.c (x_draw_composite_glyph_string_foreground):
15255 Adjust for the change of lispy gstring.
15256
15257 * xdisp.c (handle_composition_prop): Adjust for the change of
15258 lispy gstring. Call a function for auto-composition with the
15259 third arg it->window.
15260 (fill_composite_glyph_string): Adjust for the change of lispy string.
15261 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15262
15263 * xfaces.c (set_font_frame_param): Adjust for the change of
15264 font_find_for_lface.
15265
15266 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15267 (xfont_registry_charsets): Likewise. Change caller.
15268 (syms_of_xfont): Don't handle x_font_charset_alist.
15269
15270 * xftfont.c: Include "ftfont.h".
15271 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15272 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15273 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15274 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15275 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15276 Set xftfont_driver.shape to xftfont_shape.
15277
15278 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15279 the change of lispy gstring.
15280
152812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15282
15283 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15284
152852008-02-01 Jason Rumney <jasonr@gnu.org>
15286
15287 * w32font.c (w32font_draw): Fill background manually.
15288
152892008-02-01 Jason Rumney <jasonr@gnu.org>
15290
15291 * font.c (Qfontp): Remove unused symbol.
15292 (QCantialias): New symbol.
15293 (syms_of_font): Define it.
15294 (font_property_table): Set a validator for QCantialias.
15295
15296 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15297 Define if not already.
15298 (QCfamily): Share with xfaces.c.
15299 (Qstandard, Qsubpixel, Qnatural): New symbols.
15300 (syms_of_w32font): Define them. Don't define QCfamily here.
15301 (w32_antialias_type, lispy_antialias_type): New functions.
15302 (w32_enumfont_pattern_entity): New arg requested_font.
15303 Set antialias parameter if non-default was requested.
15304 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15305
153062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15307
15308 * lread.c (read1): Undo the previous change.
15309
153102008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15311
15312 * frame.c (Fdelete_frame): Call font_update_drivers only when
15313 USE_FONT_BACKEND is defined.
15314
153152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15316
15317 * font.h (struct font_bitmap): New member bits_per_pixel.
15318 (struct font_driver): New members start_for_frame and end_for_frame.
15319 (struct font_data_list): New struct.
15320 (font_put_frame_data, font_get_frame_data): Extern them.
15321
15322 * frame.h (struct frame): New member font_data_list.
15323
15324 * font.c (font_update_drivers): Call driver->start_for_frame and
15325 driver->end_for_frame at proper timings.
15326 (font_put_frame_data, font_get_frame_data): New functions.
15327 (Ffont_spec): Add usage in the docstring.
15328
15329 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15330 (Fdelete_frame): Call font_update_drivers.
15331
15332 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15333 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15334 (xftfont_get_xft_draw): New function.
15335 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15336 (xftfont_end_for_frame): New function.
15337 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15338
15339 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15340 Change argument. Cache GCs in the per-frame data.
15341 (struct ftxfont_frame_data): New struct.
15342 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15343 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15344 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15345 (ftxfont_end_for_frame): New function.
15346 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15347
15348 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15349
153502008-02-01 Kenichi Handa <handa@m17n.org>
15351
15352 * xselect.c (Vselection_coding_system)
15353 (Vnext_selection_coding_system): Delete them.
15354 (syms_of_xselect): Don't declare selection-coding-system and
15355 next-selection-coding-system. They are declared in select.el.
15356
153572008-02-01 Jason Rumney <jasonr@gnu.org>
15358
15359 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15360
15361 * w32fns.c: Include imm.h.
15362 (get_composition_string_fn, get_ime_context_fn): New optional
15363 system functions.
15364 (globals_of_w32fns): Load them from imm32.dll.
15365 (ignore_ime_char): New flag.
15366 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15367 WM_IME_ENDCOMPOSITION messages.
15368
15369 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15370 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15371
153722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15373
15374 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15375 (READCHAR_REPORT_MULTIBYTE): New macro.
15376 (readchar): New 2nd arg MULTIBYTE.
15377 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15378 Make symbol's name multibyte according to the multibyteness of the
15379 source.
15380
153812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15382
15383 * xfaces.c (face_for_overlay_string): Call lookup_face with
15384 correct arguments (fix of synching with the trunk).
15385
153862008-02-01 Kenichi Handa <handa@m17n.org>
15387
15388 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15389 (font_prop_validate_non_neg, font_prop_validate_spacing):
15390 Delete argument prop_index.
15391 (font_property_table): Change arguments to validater. Change Callers.
15392 (font_lispy_object): Delete.
15393 (font_at): Use font_find_object instead fo font_lispy_object.
15394
153952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15396
15397 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15398 and file names.
15399
154002008-02-01 Jason Rumney <jasonr@gnu.org>
15401
15402 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15403 (font_matches_spec): Remove debug output.
15404 (add_font_entity_to_list): Avoid using substituted fonts.
15405
154062008-02-01 Jason Rumney <jasonr@gnu.org>
15407
15408 * doc.c (Fsnarf_documentation):
15409 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15410
154112008-02-01 Miles Bader <miles@gnu.org>
15412
15413 * dispextern.h (struct glyph_row): Only define "clip" field if
15414 HAVE_WINDOW_SYSTEM is defined.
15415
154162008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15417
15418 Fix up multi-tty merge.
15419
15420 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15421 and indentation.
15422
15423 * xfaces.c (free_realized_face, clear_face_gcs):
15424 Include font_done_for_face in the input_blocked section, just in case.
15425
15426 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15427 (get_char_face_and_encoding): Undo last change and remove the *other*
15428 duplicate definition (i.e. keep the one that's better scoped and that
15429 includes code for the font-backend).
15430
15431 * terminal.c (create_terminal): Default keyboard_coding to
15432 `no-conversion' and terminal_coding to `undecided'.
15433
15434 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15435
15436 * fontset.c (free_realized_fontsets): Check that the table entry does
15437 contain a fontset before trying to compare it to `base'.
15438
15439 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15440 syms_of_charset, and syms_of_coding earlier because init_window_once
15441 now needs Vcoding_system_hash_table to be setup.
15442
15443 * coding.h (default_buffer_file_coding): Remove.
15444
15445 * coding.c (default_buffer_file_coding): Remove.
15446 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15447 than ->symbol, and use the terminal-local coding system.
15448 (syms_of_coding): Don't setup the coding-systems that are not
15449 terminal-local.
15450 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15451
15452 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15453 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15454
15455 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15456 in chartab.c and were re-added here by mistake.
15457 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15458
15459 * doc.c (Fsnarf_documentation):
15460 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15461 src to etc.
15462
15463 * ChangeLog.10: Add mistakenly removed entry.
15464
154652008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15466
15467 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15468
154692008-02-01 Miles Bader <miles@gnu.org>
15470
15471 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15472 Add extra args to FACE_FOR_CHAR.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15477 in sequence.
15478
15479 * chartab.c (map_sub_char_table, map_char_table): If the range
15480 contains just one character, call the function with that character
15481 even if the depth is not 3.
15482
154832008-02-01 Jason Rumney <jasonr@gnu.org>
15484
15485 * w32font.c (w32font_text_extents): Calculate metrics for the
15486 whole string.
15487
154882008-02-01 Jason Rumney <jasonr@gnu.org>
15489
15490 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15491
154922008-02-01 Jason Rumney <jasonr@gnu.org>
15493
15494 * w32term.c (x_set_glyph_string_clipping): Use
15495 get_glyph_string_clip_rects.
15496 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15497 Adjust for the change of struct glyph_string.
15498
15499 * w32font.c (w32font_draw): Do clipping here.
15500
155012008-02-01 Kenichi Handa <handa@m17n.org>
15502
15503 * xftfont.c (xftfont_draw): Adjust for the change of struct
15504 glyph_string.
15505
15506 * xterm.c (x_set_glyph_string_clipping): Use
15507 get_glyph_string_clip_rects.
15508 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15509 Adjust for the change of struct glyph_string.
15510
15511 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15512 the resulting clip(s}.
15513 (expose_overlaps): Add arg r. Change callers. Set it to
15514 row->clip temporarily.
15515 (expose_window): Redraw rows overlapping the exposed area.
15516
15517 * dispextern.h (struct glyph_row): New member clip.
15518 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15519 clip_height, new member clip, and num_clips.
15520
155212008-02-01 Kenichi Handa <handa@m17n.org>
15522
15523 * data.c (Fchar_or_string_p): Fix docstring.
15524
155252008-02-01 Kenichi Handa <handa@m17n.org>
15526
15527 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15528 create a temporary XftDraw object.
15529
155302008-02-01 Kenichi Handa <handa@m17n.org>
15531
15532 * font.c (Ffontp): Fix docstring.
15533
15534 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15535 strong evidence of ISO-2022.
15536
155372008-02-01 Kenichi Handa <handa@m17n.org>
15538
15539 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15540 SYNTAX_ENTRY_FOLLOW_PARENT.
15541
155422008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15543
15544 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15545 its type.
15546 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15547 Update to the new type of weak_hash_tables and next_weak.
15548
15549 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15550 a plain C pointer to Lisp_Hash_Table.
15551
15552 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15553 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15554 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15555 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15556 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15557 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15558 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15559 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15560 (GC_EQ): Remove since they've been identical to their non-GC_
15561 alter-egos ever since the markbit was eradicated.
15562
15563 * alloc.c:
15564 * buffer.c:
15565 * buffer.h:
15566 * data.c:
15567 * fileio.c:
15568 * filelock.c:
15569 * fns.c:
15570 * frame.h:
15571 * lisp.h:
15572 * macterm.c:
15573 * print.c:
15574 * process.c:
15575 * w32fns.c:
15576 * w32menu.c:
15577 * w32term.c:
15578 * xfns.c:
15579 * xmenu.c:
15580 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * chartab.c (map_sub_char_table): Make it work for the top-level
15585 char-table. Fix handling of parent char-table.
15586 (map_char_table): Adjust for the above change.
15587
155882008-02-01 Jason Rumney <jasonr@gnu.org>
15589
15590 * w32font.c (Qgdi): Rename from Qw32.
15591
155922008-02-01 Jason Rumney <jasonr@gnu.org>
15593
15594 * w32bdf.c (get_quoted_string): Make function static.
15595
155962008-02-01 Kenichi Handa <handa@m17n.org>
15597
15598 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15599 bigger ascent and descent than those of the font, use them as
15600 font's ascent and descent.
15601
156022008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * Makefile.in (${lispsource}international/charprop.el): Move this
15605 target within "#ifdef HAVE_UNIDATA" and "#endif".
15606
156072008-02-01 Kenichi Handa <handa@m17n.org>
15608
15609 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15610 (shortlisp): Add ../lisp/language/tai-viet.el.
15611
156122008-02-01 Ulrich Mueller <ulm@gentoo.org>
15613
15614 * Makefile.in (${lispsource}international/charprop.el): Depend on
15615 temacs${EXEEXT}.
15616
156172008-02-01 Jason Rumney <jasonr@gnu.org>
15618
15619 * w32font.c (w32font_close): Delete the GDI font object.
15620
15621 * w32menu.c: Include character.h.
15622
15623 * w32proc.c: Likewise.
15624
15625 * w32select.c: Likewise.
15626
15627 * makefile.w32-in (w32proc.o): Depend on character.h.
15628
156292008-02-01 Jason Rumney <jasonr@gnu.org>
15630
15631 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15632
15633 * w32menu.c (syms_of_w32menu): Likewise.
15634
15635 * w32proc.c (syms_of_ntproc): Likewise.
15636
15637 * w32select.c (syms_of_w32select): Likewise.
15638
15639 * w32term.c (syms_of_w32term): Likewise.
15640
156412008-02-01 Jason Rumney <jasonr@gnu.org>
15642
15643 * w32font.c (w32font_draw): Delete brush after using it.
15644
156452008-02-01 Jason Rumney <jasonr@gnu.org>
15646
15647 * w32font.c (w32font_open): Don't set font_idx.
15648 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15649 to font settings.
15650 (w32font_draw): Fill background explicitly.
15651
156522008-02-01 Jason Rumney <jasonr@gnu.org>
15653
15654 * w32term.c (w32_initialize): Don't call w32font_initialize.
15655
15656 * w32font.c (w32font_info): Remove subranges.
15657 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15658 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15659 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15660 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15661 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15662 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15663 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15664 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15665 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15666 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15667 New symbols.
15668 (font_callback_data): New struct.
15669 (w32font_list, w32font_match): Use it.
15670 (w32font_open): Don't populate subranges.
15671 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15672 (w32font_encode_char): Always return unicode code-point as-is.
15673 (w32font_text_extents): Supply a transformation matrix to
15674 GetGlyphOutline. Never look up by glyph index. Avoid looping
15675 twice. Use unicode version of GetTexExtentPoint32 instead of
15676 glyph index version.
15677 (set_fonts_frame): Remove.
15678 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15679 set frame parameter. Use backward compatible fake foundries.
15680 Save generic family in extra slot under QCfamily. Make width slot
15681 constant. Save QCspacing value. Save list of scripts instead of
15682 binary subranges.
15683 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15684 (add_font_entity_to_list): Use font_callback_data struct. Filter
15685 unwanted fonts.
15686 (add_one_font_entity_to_list): Use font_callback_data struct.
15687 (w32_registry): Default to iso10646_1.
15688 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15689 string font registries. Don't fill in font name if it is a generic
15690 family name, fill family instead. Use spacing, family and script
15691 extra info to fill pitch, family and charset fields.
15692 (list_all_matching_fonts): Use font_callback_data struct.
15693 (unicode_range_for_char): Remove.
15694 (font_supported_scripts): New function.
15695 (w32font_initialize): Remove.
15696 (syms_of_w32font): Update which symbols are defined.
15697
156982008-02-01 Jason Rumney <jasonr@gnu.org>
15699
15700 * font.c (font_pixel_size): Reverse assq_no_quit args.
15701
15702 * w32term.h (FONT_WIDTH): Report max width, not average.
15703 (FONT_MAX_WIDTH): Remove.
15704 (FONT_AVG_WIDTH): New macro.
15705
15706 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15707 redefinition of FONT_WIDTH.
15708
15709 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15710 (w32_cache_char_metrics): Use FONT_WIDTH.
15711
15712 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15713
157142008-02-01 Jason Rumney <jasonr@gnu.org>
15715
15716 * w32font.c (w32font_open): Make lfHeight negative.
15717
15718 * w32fns.c (x_default_font_parameter): Use new style font name.
15719 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15720
157212008-02-01 Jason Rumney <jasonr@gnu.org>
15722
15723 * w32font.c (QCsubranges): New symbol.
15724 (w32font_open, w32font_has_char): Get subranges from subproperty
15725 of extra.
15726 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15727 (syms_of_w32font): Define :subranges symbol.
15728
15729 * font.c (font_put_extra): Expose externally.
15730
15731 * font.h (font_put_extra): Move declaration from font.c.
15732
15733 * font.c (Ffont_get): Use font driver to determine otf capability.
15734 (adjust_anchor): Check if driver defines anchor_point before using.
15735
15736 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15737 (w32font_draw): Use options.
15738 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15739 Fix detection of truetype fonts.
15740 (registry_to_w32_charset): Handle charsets other than iso8859-1
15741 expressed as lisp symbols.
15742 (w32_registry): Express charset as lisp symbol.
15743 (fill_in_logfont): Reverse pixel and point height logic.
15744 Don't set width here. Set quality to default.
15745
15746 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15747 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15748
15749 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15750 Remove redundant loop and allocation.
15751
15752 * makefile.w32-in (font.o, w32font.o): New objects.
15753 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15754 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15755
15756 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15757 STORE_XCHARB a valid l-value.
15758
15759 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15760 calculations for non-Truetype fonts.
15761 (x_draw_glyph_string): Sync with xterm.c.
15762 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15763 Remove redundant code.
15764 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15765
15766 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15767 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15768
15769 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15770 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15771
15772 * w32font.c: New file for w32 font backend.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * term.c: Don't include "buffer.h" twice.
15777
157782008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * character.c (Funibyte_string): New function.
15781 (syms_of_character): Defsubr it.
15782
157832008-02-01 Jason Rumney <jasonr@gnu.org>
15784
15785 * w32term.c [USE_FONT_BACKEND]:
15786 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15787 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15788 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15789 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15790 (x_free_frame_resources): Sync with xterm.c.
15791
157922008-02-01 Andreas Schwab <schwab@suse.de>
15793
15794 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15795 char-table size.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15804 font_otf_gpos, add font_drive_otf.
15805
15806 * fontset.c (fontset_find_font): Pay attention to font size
15807 specified for a font.
15808 (reorder_font_vector): Check contents of font_def.
15809
15810 * font.c (struct otf_list): Delete it.
15811 (otf_list): Make it a lisp variable.
15812 (otf_open): Use lispy otf_list.
15813 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15814 (check_otf_features): New function.
15815 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15816 New functions.
15817 (font_drive_otf): New function merging font_otf_gsub and
15818 font_otf_gpos.
15819 (font_open_for_lface): New arg spec. Change argument order.
15820 (font_load_for_face): Adjust for the change of font_open_for_lface.
15821 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15822 Ffont_otf_gpos.
15823 (syms_of_font): Staticpro otf_list. Delete defsubr of
15824 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15825
15826 * xfaces.c (set_font_frame_param): Adjust for the change of
15827 font_open_for_lface.
15828
15829 * font.h (font_open_for_lface): Adjust prototype.
15830 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15831 member otf_drive.
15832 (font_otf_gsub, font_otf_gpos): Delete externs.
15833 (font_drive_otf): Extern it.
15834
158352008-02-01 Kenichi Handa <handa@m17n.org>
15836
15837 * font.c (font_at): If the window W is not on a window system,
15838 return Qnil.
15839
15840 * coding.c (produce_chars, encode_coding): Don't call
15841 insert_from_gap if no characters to produce.
15842
158432008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15846 Fclear_face_cache.
15847
15848 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15849
158502008-02-01 Miles Bader <miles@gnu.org>
15851
15852 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15853 Parse "--disable-font-backend" option.
15854 (standard_args): Add "--disable-font-backend" option.
15855
158562008-02-01 Kenichi Handa <handa@m17n.org>
15857
15858 * fontset.c (fontset_find_font): New function.
15859 (fontset_font): Use fontset_find_font.
15860 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15861 Register the specified font for all Latin characters.
15862 (new_fontset_from_font): Register the specified font for all Latin
15863 characters.
15864 (dump_fontset): For a realized fontset, include the base fontset
15865 name in the returned vector.
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * character.h (CHAR_STRING): Cast C to unsigned on calling
15870 char_string.
15871
15872 * character.c (char_string): Type of arg C changed to unsigned.
15873 Signal an error if C is an invalid character code.
15874
15875 * editfns.c (general_insert_function, Fchar_to_string):
15876 Use CHARACTERP, not INTEGERP.
15877
158782008-02-01 Kenichi Handa <handa@m17n.org>
15879
15880 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15881 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15882
15883 * regex.c (analyse_first): Fix for multibyte characters in "case
15884 charset:" and "case categoryspec:".
15885
158862008-02-01 Andreas Schwab <schwab@suse.de>
15887
15888 * Makefile.in (LIBES): Move standard libraries to the end.
15889
158902008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15893 nonzero, don't shrink the buffer nextb.
15894
15895 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15896
15897 * coding.c (coding_alloc_by_making_gap): New arg offset.
15898 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15899 offset.
15900 (decode_coding_iso_2022): Update coding->safe_charsets.
15901 (decode_coding_gap): Temporarily set
15902 current_buffer->text->inhibit_shrinking to 1.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15907 indexing into elements of s->cmp and s->char2b.
15908
159092008-02-01 Juanma Barranquero <lekktu@gmail.com>
15910
15911 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15916 target_multibyte instead of multibyte.
15917 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15918 (bcmp_translate): Change the argument name from multibyte to
15919 target_multibyte.
15920
159212008-02-01 Kenichi Handa <handa@m17n.org>
15922
15923 These changes are to compile a regexp into a pattern that can be
15924 used both for multibyte and unibyte targets.
15925
15926 * Makefile.in (search.o): Depend on charset.h.
15927
15928 * character.c (multibyte_char_to_unibyte_safe): New function.
15929
15930 * search.c: Include "charset.h".
15931 (compile_pattern_1): Delete argument multibyte. Don't set
15932 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15933 (compile_pattern): Don't compare cp->buf.target_multibyte.
15934 Compare cp->buf.charset_unibyte.
15935 (compile_pattern): Set cp->buf.target_multibyte.
15936
15937 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15938
15939 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15940
15941 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15942 multibyte. Change callers.
15943 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15944 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15945 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15946 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15947 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15948 (regex_compile): Make the compiled pattern usable both for
15949 multibyte and unibyte targets.
15950 (analyse_first): Make the fastmap usable both for multibyte and
15951 unibyte targets.
15952 (TRANSLATE_VIA_MULTIBYTE): Delete.
15953 (re_match_2_internal): Pay attention to the case that the
15954 multibyteness of bufp and target may be different.
15955
159562008-02-01 Kenichi Handa <handa@m17n.org>
15957
15958 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15959 empty box occupy at least one column width.
15960
159612008-02-01 Miles Bader <miles@gnu.org>
15962
15963 * Makefile.in: Remove redundant HAVE_XFT clause.
15964
159652008-02-01 Kenichi Handa <handa@m17n.org>
15966
15967 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15968
159692008-02-01 Kenichi Handa <handa@m17n.org>
15970
15971 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15972 being nil.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15977
159782008-02-01 Kenichi Handa <handa@m17n.org>
15979
15980 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15981
159822008-02-01 Kenichi Handa <handa@m17n.org>
15983
15984 * search.c (simple_search): Fix previous change.
15985
159862008-02-01 Kenichi Handa <handa@m17n.org>
15987
15988 * xftfont.c (ftfont_font_format): Extern declaration.
15989
15990 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15991
15992 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15993 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15994
15995 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15996 (ftfont_font_format): Fix previous change.
15997
15998 * font.h (Ffont_xlfd_name): EXFUN it.
15999
16000 * font.c (font_parse_xlfd): Fix the array size of `f'.
16001 (register_font_driver): Use EQ to compare driver->type.
16002
16003 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16004 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16005 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16006
160072008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16010 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16011
160122008-02-01 Kenichi Handa <handa@m17n.org>
16013
16014 * xfont.c (xfont_open): Set font->format.
16015
16016 * xftfont.c (xftfont_open): Set font->format.
16017
16018 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16019 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16020 (ftfont_open): Set font->format.
16021 (ftfont_font_format): New function.
16022
16023 * font.h (struct font): New member format.
16024
16025 * font.c (Qopentype): New variable.
16026 (syms_of_font): Defsym it.
16027 (Fquery_font): Change the format of the last element of the return
16028 value.
16029
160302008-02-01 Kenichi Handa <handa@m17n.org>
16031
16032 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16033 last resort.
16034
160352008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * coding.c (detect_coding_charset): Fix detection of multi-byte
16038 charset.
16039
160402008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16041
16042 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16043
160442008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * xdisp.c (get_next_display_element): Set it->face_id for the
16047 first component of a composition.
16048 (x_produce_glyphs): Check if the font is changed or not for composition.
16049
160502008-02-01 Kenichi Handa <handa@m17n.org>
16051
16052 * fontset.c (Qlatin): New variable.
16053 (syms_of_fontset): Define it as a lisp symbol.
16054 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16055
160562008-02-01 Kenichi Handa <handa@m17n.org>
16057
16058 * font.c (font_unparse_fcname): Pay attention to the case that
16059 some of font property is a null string.
16060
160612008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * term.c: Include "composite.h".
16064 (encode_terminal_code): Output all components of composition.
16065 Check the size of encode_terminal_src.
16066 (produce_glyphs): For composition, call produce_composite_glyph.
16067 (append_composite_glyph, produce_composite_glyph): New functions.
16068
16069 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16070 is not found, get font_info from the current ascii face.
16071
160722008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16075 buffer-file-name to Qnil before calling insert_from_buffer.
16076
16077 * font.c (font_unparse_fcname): Pay attention to the case that
16078 foundry is a null string.
16079
160802008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16083
16084 * font.c (Qunicode_sip): New variable.
16085 (syms_of_font): Declare it as a Lisp symbol.
16086
16087 * font.h (Qunicode_sip): Extern it.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * composite.c (get_composition_id): Pay attention to TAB component.
16092
16093 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16094 TAB. Adjust for the change of s->char2b which always points to
16095 the first element of allocated memory.
16096
16097 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16098
16099 * xdisp.c (handle_composition_prop): Set it->c to the first
16100 non-TAB component.
16101 (fill_composite_glyph_string): Change argument.
16102 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16103 (x_produce_glyphs): Fix handling of left/right padding.
16104
161052008-02-01 Kenichi Handa <handa@m17n.org>
16106
16107 * coding.c (detect_coding_system): Fix for handling off
16108 inhibit_iso_escape_detection. Fix for the case that no coding
16109 system is defined for a specific coding category.
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * font.c (font_matching_entity): Delete unused local var.
16114
16115 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16116 opening a font.
16117
16118 * fileio.c (Finsert_file_contents): On recovering a file, assume
16119 Unix-like eol.
16120 (choose_write_coding_system): On auto-saving a file, force
16121 Unix-like eol.
16122
16123 * coding.c (setup_coding_system): Fix setting of
16124 coding->common_flags based on eol_type.
16125 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16126 inherit from it.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * alloc.c (NSTATICS): Increas to 0x600.
16131
161322008-02-01 Kenichi Handa <handa@m17n.org>
16133
16134 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16135 (ftfont_list): Don't check :name property.
16136 (ftfont_match): New function.
16137 (ftfont_pattern_entity): If the pattern doesn't contain
16138 FC_SPACING, don't assume FC_MONO.
16139
16140 * font.h (struct font_driver): New member `match'.
16141 (font_update_drivers): Adjust prototype.
16142
16143 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16144 property of FONT.
16145 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16146 them unconditionally.
16147 (font_matching_entity): New function.
16148 (font_open_by_name): Try font_matching_entity if exact match is
16149 not found.
16150 (font_update_drivers): Delete the arg FONT. Return a list of
16151 actually used backends. Don't free faces, font caches here.
16152 Don't store data in frame parameters. Don't call x_set_font.
16153 (Ffont_spec): Store :name property as is.
16154 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16155 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16156 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16157 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16158 Call font->driver->otf_gsub instead of font_otf_gsub.
16159
16160 * frame.c (x_set_font_backend): Do more works that were done in
16161 font_update_drivers before.
16162
16163 * xfont.c (xfont_match): New function.
16164 (xfont_driver): Set xfont_driver.match to xfont_match.
16165 (xfont_draw): Set font in GC if necessary.
16166
16167 * ftxfont.c (ftxfont_match): New function.
16168 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16169
16170 * xftfont.c (xftfont_match): New function.
16171 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16172
161732008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * font.h (struct font): New member scalable.
16176 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16177 (font_otf_gsub): Adjust prototype.
16178
16179 * font.c (font_otf_capability): Fix handling of the default langsys.
16180 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16181 Check the contents of SPEC.
16182 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16183 (check_gstring): New function.
16184 (REPLACEMENT_CHARACTER): New macro.
16185 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16186 glyph codes of GSTRING.
16187 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16188 (font_prepare_composition): Set cmp->glyph_len.
16189 (font_open_entity): Set font->scalable.
16190 (Ffont_get): Handle :otf property.
16191 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16192 functions.
16193 (Fquery_font): Use font->font.full_name.
16194 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16195 Sfont_otf_alternates.
16196
16197 * ftfont.c (ftfont_open): Set font->font.full_name and
16198 font->font.name properly. Fix calculation of font->font.height
16199 and font->min_width.
16200
16201 * ftxfont.c (ftxfont_create_gcs): New function.
16202 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16203 (ftxfont_draw_backgrond): Fix filling region.
16204 (ftxfont_default_fid): New function.
16205 (ftxfont_open): Set xfont->fid to the return value of
16206 ftxfont_default_fid.
16207 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16208 (ftxfont_done_face): Free only GCs that are created by
16209 ftxfont_create_gcs.
16210 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16211
16212 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16213 Clip to src->width, etc (not src->clip_XXX).
16214
16215 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16216 FontBackend frame parameter.
16217
162182008-02-01 Kenichi Handa <handa@m17n.org>
16219
16220 * font.h (struct font_driver_list): New member `on'.
16221 (Fclear_font_cache): EXFUN it.
16222 (font_update_drivers): Extern it.
16223
16224 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16225 (font_list_entities): Check driver_list->on.
16226 (register_font_driver): Initalize `on' member to 0.
16227 (font_update_drivers): New function.
16228 (Fclear_font_cache): Check driver_list->on.
16229
16230 * frame.h (Qfont_backend): Extern it.
16231 (x_set_font_backend): Extern it.
16232
16233 * frame.c (Qfont_backend): New variable.
16234 (frame_parms): New element for font-backend.
16235 (x_set_font_backend): New function.
16236
16237 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16238 FontBackend frame parameter.
16239 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16240 x_set_font_backend.
16241
16242 * xfont.c (xfont_list): Don't try listing by :name property if the
16243 name is not for XLFD.
16244
162452008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16248 (LGLYPH_SET_TO): New macros.
16249 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16250 element of G is vector or not.
16251 (font_at): Extern it.
16252
16253 * font.c: Include window.h.
16254 (font_lispy_object): New function.
16255 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16256 end of valid glyph.
16257 (font_close_object): Fix getting (struct font *).
16258 (font_at): New function.
16259 (Ffont_get): If FONT is a font-object, get entity from it.
16260 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16261 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16262 range check.
16263 (Ffont_at): New function.
16264 (syms_of_font): Defsubr Sfont_at.
16265
16266 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16267 before the entry for Qcomposition.
16268 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16269 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16270 the font in gstring.
16271 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16272 LGLYPH_FORM (g) to detect the end of valid glyph.
16273 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16274 we are composing with gstring.
16275
16276 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16277 Check if adjustment is vector or not.
16278
16279 * Makefile.in (font.o): Make it depends on window.h.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16284 adjustment is vector or not.
16285
162862008-02-01 Miles Bader <miles@gnu.org>
16287
16288 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16289
162902008-02-01 Kenichi Handa <handa@m17n.org>
16291
16292 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16293 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16294 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16295
16296 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16297 (DEVICE_DELTA): Fix typo.
16298 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16299 LGLYPH format.
16300
16301 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16302 the change of LGLYPH format.
16303
163042008-02-01 Kenichi Handa <handa@m17n.org>
16305
16306 * ftfont.c (ftfont_list): Fix typo.
16307 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16308
163092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16310
16311 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16312
16313 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16314 xftface_info is non-NULL.
16315
163162008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16317
16318 * ftfont.c (ftfont_list): Move misplaced #endif.
16319
163202008-02-01 Kenichi Handa <handa@m17n.org>
16321
16322 * ftfont.c (ftfont_list): Pay attention to the case that
16323 FC_CAPABILITY is not defined.
16324
163252008-02-01 Kenichi Handa <handa@m17n.org>
16326
16327 * xftfont.c (xftfont_open): Set charset related members to -1.
16328
16329 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16330 QCname.
16331 (ftfont_open): Set charset related members to -1.
16332
16333 * fontset.c (Votf_script_alist): New variable.
16334 (syms_of_fontset): Initialize it.
16335 (fontset_font): Delete unused variable.
16336
16337 * fontset.h (Votf_script_alist): Extern it.
16338
16339 * font.c (font_find_for_lface): Optimize code.
16340
16341 * font.h (font_close_object, font_merge_old_spec): Extern them.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16346 (syms_of_font): Initialize them.
16347 (font_pixel_size): Allow float value in dpi.
16348 (font_prop_validate_type): Delete.
16349 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16350 Change caller.
16351 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16352 (font_prop_validate_extra): Delete.
16353 (font_prop_validate_spacing): New function.
16354 (font_property_table): Add elements for all known properties.
16355 (get_font_prop_index): Rename from check_font_prop_name. New
16356 argument FROM. Change caller.
16357 (font_prop_validate): Validate all known properties.
16358 (font_put_extra): Delete argument force. Change caller.
16359 (font_expand_wildcards): Make it static. Fix the way of shrinking
16360 the possible range.
16361 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16362 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16363 Change caller.
16364 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16365 (font_parse_fcname): Delete argument merge. Fix parsing of point
16366 size. Don't validate properties values here. Change caller.
16367 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16368 (font_open_by_name): Delete unused variable.
16369 (Ffont_spec): Likewise. Validate property values.
16370 (Ffont_match_p): New function.
16371
16372 * font.h (QCscalable): Extern it.
16373 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16374
16375 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16376
16377 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16378 (xfont_list_pattern): New function.
16379 (xfont_list): Use xfont_list_pattern.
16380
163812008-02-01 Kenichi Handa <handa@m17n.org>
16382
16383 * font.h (Flist_fonts): EXFUN it.
16384
163852008-02-01 Jason Rumney <jasonr@gnu.org>
16386
16387 * w32term.c (w32_initialize): Add back smoothing_type and
16388 smoothing_enabled definitions.
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16393 s->face->font on determining underline position.
16394
163952008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16398 (font_has_char): Accept font-object too.
16399 (font_find_for_lface): Try at first with a size specified in face.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16404 font_open_by_name.
16405
164062008-02-01 Kenichi Handa <handa@m17n.org>
16407
16408 * font.h (QCspacing, QCdpi): Extern them.
16409 (enum font_spacing): New enum.
16410 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16411
16412 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16413 (QCspacing, QCdpi): New variables.
16414 (syms_of_font): Initialize them.
16415 (font_pixel_size): New function.
16416 (font_put_extra): New function.
16417 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16418 in FONT_EXTRA.
16419 (font_parse_fcname): Handle enumerated values (e.g. bold).
16420 Fix handling font size. Add QCname property that contains only
16421 unknown properties.
16422 (font_score): Change argument. Change caller. Pay attention to
16423 FONT_PIXEL_SIZE_QUANTUM.
16424 (font_sort_entites, font_list_entities, font_find_for_lface)
16425 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16426 (Ffont_spec): Add QCname property that contains only unknown properties.
16427
16428 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16429 include weight in listing pattern, instead check weight of each
16430 listed font. Don't include scalable in pattern. Pay attention to
16431 FONT_PIXEL_SIZE_QUANTUM.
16432
164332008-02-01 Kenichi Handa <handa@m17n.org>
16434
16435 * font.c (font_parse_fcname): Fix parsing of point-size.
16436 (font_unparse_fcname): Produce symbolic names for style properties.
16437 (font_list_entities): Handle float size correctly.
16438 (font_open_by_name): Prefer `normal' property values if the name
16439 doesn't specify them.
16440
16441 * fontset.c (Finternal_char_font): Use font_get_name, not
16442 Ffont_xlfd_name.
16443
16444 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16445 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16446 pattern. Don't force scalable.
16447
16448 * xftfont.c (xftfont_open): For generating a name, start from
16449 96-byte buffer.
16450
164512008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16452
16453 * frame.h (x_new_fontset2): Fix prototype.
16454
164552008-02-01 Kenichi Handa <handa@m17n.org>
16456
16457 * font.h (struct font_driver): Delete member parse_name.
16458 (font_match_p, font_get_spec, font_parse_fcname)
16459 (font_unparse_fcname): Extern them.
16460 (font_get_name): Adjust prototype.
16461
16462 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16463 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16464 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16465 unnecessary checks for weight, slant, and swidth.
16466 (font_parse_fcname): New function.
16467 (font_unparse_fcname): New function.
16468 (font_parse_name): New function.
16469 (font_match_p): New function.
16470 (font_get_name): Change return value to Lisp string.
16471 (font_get_spec): New function.
16472 (Qunspecified, Qignore_defface): Don't extern them.
16473 (font_find_for_lface): Assume that LFACE is fully specified.
16474 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16475 object, use it for FACE.
16476 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16477 driver->parse_name.
16478 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16479
16480 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16481 prototype.
16482
16483 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16484 argument F. Don't call Fnew_fontset. Instead, directly call
16485 make_fontset.
16486
16487 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16488
16489 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16490 of x_new_fontset2.
16491
16492 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16493 (Qsans__serif): New variables.
16494 (ftfont_generic_family_list): New variable.
16495 (syms_of_ftfont): Initialize the above variables.
16496 (ftfont_pattern_entity): Delete argument NAME.
16497 (ftfont_list_generic_family): New function.
16498 (ftfont_parse_name): Delete this function.
16499 (ftfont_list): Try generic family only when FcFontList found no font.
16500 (ftfont_list_family): Fix args to FcObjectSetBuild.
16501
16502 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16503 object in attrs[LFACE_FONT_INDEX].
16504 (set_lface_from_font_name): Cancel all changes for font-backend.
16505 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16506 function.
16507 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16508 font object in QCfont attribute.
16509 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16510 (realize_default_face) [USE_FONT_BACKEND]: Call
16511 set_lface_from_font_and_fontset.
16512
16513 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16514 "fixed", and signal error here if no suitable font was found.
16515
16516 * xfont.c (xfont_parse_name): Delete this function.
16517
16518 * xftfont.c (xftfont_open): Change coding style of error
16519 handling. Generate fontconfig's fontname pattern.
16520
16521 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16522 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16523
16524 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16525 Both args FONTSET and FONT_OBJECT must be existing ones.
16526
165272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16528
16529 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16530
165312008-02-01 Kenichi Handa <handa@m17n.org>
16532
16533 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16534
16535 * font.h (struct font): Fix typo.
16536
16537 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16538 XLFD_XXX_INDEX.
16539 (enum xlfd_field_mask): New enum.
16540 (intern_font_field): Changed argument. Change caller. If digits
16541 are followed by non-digits, return a symbol.
16542 (font_expand_wildcards): New function.
16543 (font_parse_xlfd): Fix wildcard handling.
16544 (Ffont_spec): If :name is specified, reflect the info in the other
16545 properties.
16546
16547 * ftfont.c (ftfont_pattern_entity): Fix typo.
16548 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16549 locale.
16550
165512008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16554
16555 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16556 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16557 registry doesn't specify encoding part.
16558 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16559 (font_open_by_name): At first try parsing the name.
16560 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16561 as Lisp symbols.
16562
16563 * fontset.c (reorder_font_vector): Pay attention to the case that
16564 the 3rd element of font_def is nil.
16565 (fontset_font): For the default fontset, append one more fontset
16566 elements for a script-based font specification. Don't add script
16567 attribute on finding a font.
16568 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16569 font name.
16570 (fontset_ascii_font): If a font can't be opened, return nil.
16571
16572 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16573 (ftfont_pattern_entity): New function.
16574 (ftfont_get_cache): Assume that freetype_font_cache is already
16575 initialized.
16576 (ftfont_list): Handle the case that a file is specified in font
16577 name. Use ftfont_pattern_entity to generate entities.
16578 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16579 (syms_of_ftfont): Initialize freetype_font_cache.
16580
16581 * xftfont.c (xftfont_open): Make the font name fontconfig's
16582 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16583 (xftfont_close): Free font->font.name if not NULL.
16584
16585 * xfont.c (xfont_list): If script is specified for a font, return
16586 null_vector.
16587 (xfont_list_family): Declare argument type.
16588
16589 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16590 name, set LFACE_FONT (lface) to nil.
16591
16592 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16593 return Qnil.
16594
165952008-02-01 Kenichi Handa <handa@m17n.org>
16596
16597 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16598 (standard_args): Add "-enable-font-backend".
16599
166002008-02-01 Kenichi Handa <handa@m17n.org>
16601
16602 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16603 (struct xftdraw_list, xftdraw_list): Delete them.
16604 (register_xftdraw, check_xftdraw): Delete them.
16605 (xftfont_prepare_face): Don't call register_xftdraw.
16606 (xftfont_done_face): Don't call check_xftdraw.
16607 (xftfont_draw): Get background color only when with_background is
16608 nonzero.
16609
16610 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16611
166122008-02-01 Kenichi Handa <handa@m17n.org>
16613
16614 These changes are for the new font handling codes.
16615
16616 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16617 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16618 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16619 (FONTSRC, FONTOBJ): New variables.
16620 (obj): Add $(FONTOBJ).
16621 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16622 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16623 @LIBOTF_LIBS@.
16624 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16625 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16626
16627 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16628
16629 * character.h (Vscript_representative_chars): Extern it.
16630
16631 * character.c (Vscript_representative_chars): New variable.
16632 (syms_of_character): Declare it as a Lisp variable.
16633
16634 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16635 enable_font_backend is nonzero, accept the composition method
16636 COMPOSITION_WITH_GLYPH_STRING.
16637
16638 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16639 enumeration COMPOSITION_WITH_GLYPH_STRING.
16640
16641 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16642 members clip_x, clip_y, clip_width, and clip_height.
16643 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16644
16645 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16646 --enable-font-backend. Call syms_of_font.
16647
16648 * fns.c (assoc_no_quit): New function.
16649
16650 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16651 (face_for_font, new_fontset_from_font)
16652 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16653
16654 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16655 (fontset_font, fontset_ascii, face_for_char)
16656 (make_fontset_for_ascii_face, Ffont_info)
16657 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16658 is nonzero, use font-backend mechanism.
16659 (find_font_encoding): Make it non-static.
16660 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16661 New functions.
16662
16663 * frame.h (struct frame): New members resx and resy.
16664 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16665 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16666
16667 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16668 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16669
16670 * lisp.h (assoc_no_quit): Extern it.
16671
16672 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16673 Through out the file, use FONT_INFO_FROM_FACE instead of
16674 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16675 rif->per_char_metric.
16676 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16677 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16678 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16679 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16680 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16681 nonzero, use font-backend mechanism.
16682 (get_per_char_metric): New function.
16683
16684 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16685 (set_lface_from_font_name)
16686 (set_font_frame_param, free_realized_face)
16687 (prepare_face_for_display, clear_face_gcs)
16688 (Finternal_set_font_selection_order, realize_x_face)
16689 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16690 font-backend mechanism.
16691 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16692 (load_face_font) [USE_FONT_BACKEND]: Abort.
16693 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16694 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16695
16696 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16697 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16698 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16699 nonzero, register all available font drivers. Call
16700 x_default_font_parameter for deciding a font.
16701 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16702
16703 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16704 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16705 (x_set_glyph_string_clipping_exactly)
16706 (x_compute_glyph_string_overhangs)
16707 (x_draw_glyph_string_foreground)
16708 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16709 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16710 enable_font_backend is nonzero, use font-backend mechanism.
16711 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16712
167132008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16716 system_eol_type.
16717 (syms_of_coding): Initialize system_eol_type.
16718
16719 * process.c (Fset_process_coding_system): Inherit system's eol
16720 format if necessary.
16721
167222008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16723
16724 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16725
167262008-02-01 Kenichi Handa <handa@m17n.org>
16727
16728 * coding.c (decode_eol): Pay attention to buffer relocation in
16729 del_range_2.
16730 (decode_coding): Call decode_eol before restoring undo_list.
16731
167322008-02-01 Kenichi Handa <handa@m17n.org>
16733
16734 * charset.c (Fdefine_charset_internal): Fix setting of
16735 emacs_mule_bytes.
16736
167372008-02-01 Kenichi Handa <handa@m17n.org>
16738
16739 * keyboard.c (read_char): Check if C is a character or not before
16740 looking up Vkeyboard_translate_table.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16745 condition to terminate the loop.
16746
167472008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * coding.c (produce_composition): Compare charbuf[i] instead of
16750 args[i] against 0.
16751 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16752
167532008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16756 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16757 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16758 detect_coding.
16759 (emacs_mule_char): Handle old style (Emacs 20) component character
16760 of a composition.
16761 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16762 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16763 composition rule.
16764 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16765
167662008-02-01 Kenichi Handa <handa@m17n.org>
16767
16768 * coding.c (encode_coding_ccl): Allocate destination dynamically
16769 when necessary.
16770
167712008-02-01 Kenichi Handa <handa@m17n.org>
16772
16773 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16774 the loop. When quitted, show a proper error message.
16775
167762008-02-01 Kenichi Handa <handa@m17n.org>
16777
16778 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16779 src->clip_head and src->clip_tail temporarily instead of src->hl.
16780
16781 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16782 character sequence.
16783 (Fccl_execute_on_string): Use ASET, not XSET.
16784
167852008-02-01 Kenichi Handa <handa@m17n.org>
16786
16787 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16788
167892008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * coding.c (decode_coding): Fix the condition of terminating the
16792 decoding loop.
16793
167942008-02-01 Kenichi Handa <handa@m17n.org>
16795
16796 * data.c (Faset): On setting a character bigger than 255 in a
16797 unibyte string, signal an error instead of make the string multibyte.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16802 made by a mapping table.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16807 not.
16808 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16809 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16810
16811 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16812 s->face is NULL or not.
16813
168142008-02-01 Kenichi Handa <handa@m17n.org>
16815
16816 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16817 (x_draw_glyph_string): Fix drawing of right_overhang and
16818 left_overhang around/on cursor.
16819
16820 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16821
168222008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16825
168262008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * coding.c (Fdefine_coding_system_internal)
16829 (Fdefine_coding_system_alias): Avoid a duplicated element in
16830 Vcoding_system_alist.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16835
16836 * coding.c (Qcoding_system_define_form): New variable.
16837 (syms_of_coding): Intern and staticpro it.
16838 (Fcoding_system_p): Check Qcoding_system_define_form.
16839 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16840
16841 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16842 Fcoding_system_p.
16843 (CHECK_CODING_SYSTEM): If ID is not available, call
16844 Fcheck_coding_system.
16845 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16846 Try also Fcheck_coding_system.
16847
168482008-02-01 Kenichi Handa <handa@m17n.org>
16849
16850 * coding.c (code_conversion_restore): GCPRO arg.
16851
168522008-02-01 Kenichi Handa <handa@m17n.org>
16853
16854 * character.c (lisp_string_width): Check multibyteness of STRING.
16855
168562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16857
16858 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16859 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16860 (decode_mac_font_name): Use decode_coding_c_string instead of
16861 decode_coding.
16862 (x_load_font): Initialize fontp->fontset to -1. Set
16863 fontp->encoding_type.
16864
168652008-02-01 Kenichi Handa <handa@m17n.org>
16866
16867 * search.c (search_buffer): Give up BM search on case-fold-search
16868 if one of a target character has a case-equivalence of different
16869 byte length even if that target charcter is an ASCII.
16870 (simple_search): Fix calculation of byte length of matched text.
16871 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16872
168732008-02-01 Kenichi Handa <handa@m17n.org>
16874
16875 * coding.c (decode_coding): Fix handling of invalid bytes.
16876
168772008-02-01 Kenichi Handa <handa@m17n.org>
16878
16879 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16880 Unicode characters.
16881
168822008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * coding.c (encode_coding_object): If a pre-write-conversion
16885 function makes a new buffer, kill it.
16886
168872008-02-01 Kenichi Handa <handa@m17n.org>
16888
16889 * coding.c (QCascii_compatible_p): New variable.
16890 (syms_of_coding): Initialize it.
16891 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16892 calling string_char.
16893 (record_conversion_result): Add `default:' case.
16894 (coding_charset_list): Delete unused variable `coding_type'.
16895 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16896 property in the plist of the coding system.
16897 (Fcoding_system_put): Check QCascii_compatible_p.
16898
168992008-02-01 Miles Bader <miles@gnu.org>
16900
16901 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16902 removed calculation of frame `f', as it's now used.
16903
169042008-02-01 Kenichi Handa <handa@m17n.org>
16905
16906 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16907 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16908 (UNIDATA): New variable.
16909 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16910 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16911 $(RUN_TEMACS) unconditionally.
16912
169132008-02-01 Kenichi Handa <handa@m17n.org>
16914
16915 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16916 (admindir): New variable.
16917 ($(lispsource)international/charprop.el): New target.
16918
169192008-02-01 Miles Bader <miles@gnu.org>
16920
16921 * character.c (chars-in-region): Remove obsolete function.
16922 (syms_of_character): Remove its initialization.
16923
169242008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16925
16926 * w32select.c (validate_coding_system)
16927 (setup_windows_coding_system): New functions.
16928 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16929 setup_windows_coding_system.
16930 (setup_config, Fw32_get_clipboard_data): Use
16931 validate_coding_system.
16932 (Fx_selection_exists): Move call to setup_config to a place
16933 where signals are allowed.
16934
16935 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16936 (Fcheck_coding_system): Add declarations.
16937
169382008-02-01 Kenichi Handa <handa@m17n.org>
16939
16940 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16941
169422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16943
16944 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16945 string as the second argument for x_new_fontset.
16946
169472008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16950 (encode_coding_object): Use safe_call instead of call2.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16955
16956 * Makefile.in (lisp): Include charprop.el.
16957
169582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16959
16960 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16961 Not sure if it's unnecessary.
16962
169632008-02-01 Steven Tamm <steventamm@mac.com>
16964
16965 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16966 some possibly unnecessary fontset checking code that crashed
16967 when creating a new frame.
16968
169692008-02-01 Kenichi Handa <handa@m17n.org>
16970
16971 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16972 lookup_face.
16973
16974 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16975
16976 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16977
169782008-02-01 Kenichi Handa <handa@m17n.org>
16979
16980 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16981 (coding_charset_list): New function.
16982
16983 * coding.h (coding_charset_list): Extern it.
16984
169852008-02-01 Kenichi Handa <handa@m17n.org>
16986
16987 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16988 concatenation of family and registry.
16989
169902008-02-01 Kenichi Handa <handa@m17n.org>
16991
16992 * character.h (BYTE8_STRING): Fix typo.
16993
16994 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16995 string to multibyte (sync to HEAD).
16996
16997 * casefiddle.c (casify_region): Handle changes in byte-length
16998 using replace_range_2 (sync to HEAD).
16999
170002008-02-01 Andreas Schwab <schwab@suse.de>
17001
17002 * chartab.c (map_char_table): GCPRO table and arg.
17003
170042008-02-01 Kenichi Handa <handa@m17n.org>
17005
17006 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17007 already at limit.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17012 instead of fast_c_string_match_ignore_case.
17013 (find_font_encoding): Change argument to Lisp_Object. Use
17014 fast_string_match_ignore_case instead of
17015 fast_c_string_match_ignore_case. Change caller.
17016
170172008-02-01 Kenichi Handa <handa@m17n.org>
17018
17019 * xdisp.c (get_next_display_element): In unibyte case, decide to
17020 display in octal form by checking a character by
17021 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17022
17023 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17024
17025 * character.c (unibyte_has_multibyte_table): New variable.
17026
17027 * character.h (unibyte_has_multibyte_table): Extern it.
17028 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17029
170302008-02-01 Kenichi Handa <handa@m17n.org>
17031
17032 * coding.c (encode_coding_iso_2022): Fix handling of charset
17033 annotation.
17034
170352008-02-01 Kenichi Handa <handa@m17n.org>
17036
17037 * coding.c (setup_coding_system): If coding_system is nil, use
17038 Qundecided.
17039 (Fterminal_coding_system): Return nil if terminal coding system is
17040 `undecided'.
17041 (syms_of_coding): Define coding-system `undecided' here. Setup
17042 terminal_coding as `undecided'.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * xdisp.c (message_dolog, set_message_1): Call
17047 unibyte_char_to_multibyte with arg type int.
17048
17049 * lread.c (read1): Fix reading of a char-table.
17050
17051 * print.c (print_object): Include sub char-table in circularities
17052 detection.
17053
170542008-02-01 Kenichi Handa <handa@m17n.org>
17055
17056 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17057 Append the found sequences in car of ARGS instead of prepending.
17058
170592008-02-01 Kenichi Handa <handa@m17n.org>
17060
17061 * fileio.c (report_file_error): Make a unibyte string from
17062 strerror (errorno).
17063 (Fsubstitute_in_file_name): Fix the arg to
17064 unibyte_char_to_multibyte. It is evaluated twice.
17065
170662008-02-01 Kenichi Handa <handa@m17n.org>
17067
17068 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17073 BOM is not found.
17074 (detect_coding, detect_coding_system): Optimization for ISO-2022
17075 when no 8-bit data is found.
17076
170772008-02-01 Jason Rumney <jasonr@gnu.org>
17078
17079 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17080
170812008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17084 CHARS.
17085
170862008-02-01 Steven Tamm <steventamm@mac.com>
17087
17088 * macterm.c (mac_encode_char): Add charset argument and update
17089 to use encoding_type.
17090 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17091 switch to pure fontset.
17092 (decode_mac_font_name): Temporarily remove decoding.
17093 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17094 (x_load_font): Temporarily remove encoding.
17095
170962008-02-01 Kenichi Handa <handa@m17n.org>
17097
17098 * xfaces.c (Fface_font): If frame is not on a window system,
17099 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17100 refer to face->font.
17101 (split_font_name_into_vector, build_font_name_from_vector)
17102 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17103 when HAVE_WINDOW_SYSTEM is defined.
17104
171052008-02-01 Kenichi Handa <handa@m17n.org>
17106
17107 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17108 (x_produce_glyphs): Fix setting of members of cmp in case
17109 cmp->glyph_len is zero.
17110
17111 * fontset.c (Fset_fontset_font): Fix docstring.
17112 (Ffontset_info): Make it backward compatible. New arg ALL.
17113
171142008-02-01 Kim F. Storm <storm@cua.dk>
17115
17116 * process.c (read_process_output): Grow decoding_buf when needed;
17117 this could cause a crash in allocate_string and compact_small_strings.
17118
171192008-02-01 Kenichi Handa <handa@m17n.org>
17120
17121 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17122
171232008-02-01 Kenichi Handa <handa@m17n.org>
17124
17125 * coding.c (setup_coding_system): Set coding->common_flags
17126 correctly for raw-text.
17127 (consume_chars): On encoding unibyte text by raw-text, don't check
17128 multibyte form.
17129 (encode_coding): On encoding by raw-text, never use translation tables.
17130
17131 * fileio.c (e_write): Short cut for the case of no encoding.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * coding.c (detect_coding, detect_coding_system): Delete unused
17136 variables.
17137
171382008-02-01 Kenichi Handa <handa@m17n.org>
17139
17140 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17141 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17142
171432008-02-01 Kenichi Handa <handa@m17n.org>
17144
17145 * coding.c (Ffind_coding_systems_region_internal): Include
17146 raw-text and no-conversion in the result.
17147
171482008-02-01 Kenichi Handa <handa@m17n.org>
17149
17150 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17151 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17152 FONT_DEF.
17153 (font_def_arg, add_arg, from_arg, to_arg): New args.
17154 (set_fontset_font): Change argument.
17155 (Fset_fontset_font): Fix for the case that TARGET is a script
17156 name and charset name.
17157 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17158
171592008-02-01 Kenichi Handa <handa@m17n.org>
17160
17161 * fontset.c (fontset_font): Rename from fontset_face. Change return
17162 value.
17163 (face_suitable_for_char_p, face_for_char): Adjust for the change
17164 of fontset_font.
17165 (make_fontset_for_ascii_face): Fix setting of the fontset element
17166 for ASCII.
17167 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17168 to get a font name.
17169 (Ffontset_info): Adjust for the change of fontset_font.
17170
17171 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17172
17173 * character.h (LEADING_CODE_LATIN_1_MIN)
17174 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17175
171762008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * editfns.c (check_translation): New function.
17179 (Ftranslate_region_internal): Handle M:N mapping.
17180
171812008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17184
171852008-02-01 Kenichi Handa <handa@m17n.org>
17186
17187 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17188 goto invalid_code.
17189 (decode_coding_iso_2022): Fix handling of invalid designation.
17190
17191 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17192 after calling code_conversion_save.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17197
17198 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17199
17200 * fontset.c: Include "intervals.h".
17201 (fontset_face): Fix comparing of Lisp_Objects.
17202 (free_face_fontset, new_fontset_from_font_name): Fix
17203 Lisp_Object/int mixup.
17204
17205 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17206
17207 * coding.c: Add many prototypes for static functions.
17208 (get_translation_table): Allow max_lookup to be NULL.
17209 (decode_coding, Ffind_coding_systems_region_internal)
17210 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17211 get_translation_table with max_lookup NULL.
17212
172132008-02-01 Kenichi Handa <handa@m17n.org>
17214
17215 * coding.c (get_translation_table): Declare it as Lisp_Object.
17216 (LOOKUP_TRANSLATION_TABLE): New macro.
17217 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17218 instead of CHAR_TABLE_REF.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17223 annotation data format.
17224 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17225 Change arguments FROM and TO to single argument NCHARS. Change caller.
17226 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17227 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17228 (decode_coding_ccl, decode_coding_charset): Pay attention to
17229 coding->charbuf_used.
17230 (get_translation): New function.
17231 (produce_chars): New arguments translation_table and last_block.
17232 Translate characters here. Return number of carryover chars.
17233 Change caller.
17234 (produce_composition): New argument pos. Change caller.
17235 Adjust for the change of annotation data format.
17236 (produce_charset, produce_annotation): Likewise.
17237 (decode_coding, encode_coding): Don't call translate_chars.
17238 (consume_chars): New arg translation_table. Change caller.
17239 (translate_chars): Delete.
17240 (syms_of_coding): Make translation-table's number of extra slots 2.
17241
172422008-02-01 Kenichi Handa <handa@m17n.org>
17243
17244 * search.c (simple_search): Fix setting this_pos_byte in backward
17245 search.
17246
17247 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17248 byte sequence.
17249 (detect_coding_ccl): Fix setting of the variable valids.
17250
172512008-02-01 Kenichi Handa <handa@m17n.org>
17252
17253 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17254
17255 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17256
17257 * editfns.c (Ftranslate_region_internal): Rename from
17258 Ftranslate_region. Accept a char-table in TABLE.
17259 (syms_of_editfns): Defsubr Stranslate_region_internal.
17260
17261 * xfaces.c (set_lface_from_font_name): If a font is specified for
17262 a frame, generate a fontset from the font.
17263 (build_scalable_font_name): If the scalable font is requested for
17264 a specific size, don't change that size.
17265 (try_font_list): Try a scalable font also in the case that a
17266 pattern string is specified.
17267
172682008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * xfaces.c (Fface_font): New optional arg CHARACTER.
17271
172722008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 * charset.h (CHARSET_OFFSET): New macro.
17275
172762008-02-01 Kenichi Handa <handa@m17n.org>
17277
17278 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17279
17280 * fontset.c (fontset_face): Handle the case that repertory is a
17281 char-table.
17282 (find_font_encoding): Return nil for unknown encoding.
17283 (Fset_fontset_font): Ignore a font of unknown encoding.
17284
172852008-02-01 Kenichi Handa <handa@m17n.org>
17286
17287 * keymap.c (describe_vector): Handle default value of a char table.
17288
17289 * fontset.c (fontset_face): Handle fallback fonts correctly.
17290 (Ffontset_info): Return infomation about fallback fonts.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * fontset.c (FONTSET_DEFAULT): New macro.
17295 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17296 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17297 the case that it is nil.
17298 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17299 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17300
17301 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17302 subset or superset.
17303
173042008-02-01 Kenichi Handa <handa@m17n.org>
17305
17306 * emacs.c (main): Call init_charset after syms_of_XXX.
17307
17308 * charset.c (Vcharset_map_directory): Delete.
17309 (Vcharset_map_path): New variable.
17310 (load_charset_map_from_file): Use Vcharset_map_path instead.
17311 (init_charset): Initialize Vcharset_map_path.
17312 (syms_of_charset): Delete declaration of "charset-map-directory",
17313 add declaration of "charset-map-path".
17314
173152008-02-01 Kenichi Handa <handa@m17n.org>
17316
17317 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17318 ASCII only string.
17319
17320 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17321
17322 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17323 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17328
17329 * coding.c (QCmnemonic, QCdefalut_char)
17330 (QCdecode_translation_table, QCencode_translation_table)
17331 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17332 (get_translation_table): Return a list of translation tables if
17333 necessary.
17334 (decode_coding): Call get_translation_table with ENCODEP 0.
17335 (char_encodable_p): If translation_table is non-nil, always call
17336 translate_char.
17337 (Fdefine_coding_system_internal): Accept list of translation
17338 tables as :encode-translation-table and :decode-translation-table.
17339 (Fcoding_system_put): New function.
17340 (syms_of_coding): Declare new symbols. Defsubr
17341 Scoding_system_put.
17342 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17343 typically JISX0212.
17344
17345 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17346 when the charset is superset type.
17347
17348 * character.c (translate_char): Accept list of translation tables.
17349
173502008-02-01 Kenichi Handa <handa@m17n.org>
17351
17352 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17353 (CODING_ATTR_TRANS_TBL): New macro.
17354
17355 * coding.c (get_translation_table): New function.
17356 (translate_chars): Fix the bug of skipping annotation data.
17357 (decode_coding, encode_coding): Utilize get_translation_table.
17358 (char_encodable_p, Funencodable_char_position): Translate char if
17359 necessary.
17360 (Ffind_coding_systems_region_internal)
17361 (Fcheck_coding_systems_region): Setup translation table for encode
17362 in a coding system attribute vector in advance.
17363 (Fdefine_coding_system_internal): Allow a symbol as translation
17364 table. For shift-jis type coding system, allow 4th charset.
17365
173662008-02-01 Kenichi Handa <handa@m17n.org>
17367
17368 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17369
17370 * xdisp.c (get_next_display_element): Pass -1 as POS to
17371 FACE_FOR_CHAR if displaying a C-string.
17372
173732008-02-01 Kenichi Handa <handa@m17n.org>
17374
17375 * composite.c (get_composition_id): Handle xoff and yoff in a
17376 composition rule.
17377
17378 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17379 (struct composition): New member lbearing and rbearing.
17380
17381 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17382 (x_get_glyph_overhangs): Handle a composition glyph.
17383 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17384
17385 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17386 composition glyph.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * print.c: Include charset.h.
17391 (Vprint_charset_text_property): New variable.
17392 (Qdefault): Extern it.
17393 (PRINT_STRING_NON_CHARSET_FOUND)
17394 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17395 (print_check_string_result): New variable.
17396 (print_check_string_charset_prop): New function.
17397 (print_prune_charset_plist): New variable.
17398 (print_prune_string_charset): New function.
17399 (print_object): Call print_prune_string_charset if
17400 Vprint_charset_text_property is not t.
17401 (print_interval): Print nothing if interval->plist is nil.
17402 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17403 variable. Init and staticpro print_prune_charset_plist.
17404
174052008-02-01 Kenichi Handa <handa@m17n.org>
17406
17407 * fontset.c (new_fontset_from_font_name): Use the specified font
17408 for all characters in the new fontset.
17409
17410 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17411 OBJECT args.
17412
17413 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17414 OBJECT args for composition too.
17415
17416 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17417 OBJECT args.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17422
17423 * fontset.c (reorder_font_vector): Adjust for the change of
17424 FONT_DEF format.
17425 (fontset_face): New arg id. Change caller.
17426 (face_for_char): New args pos and object.
17427 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17428 (fs_query_fontset): Check NAME by Fassoc too.
17429 (Fset_fontset_font): Allow non-XLFD font name.
17430 (Ffontset_info): Adjust for the change of FONT_DEF format.
17431
17432 * fontset.h (face_for_char): Adjust prototype.
17433
17434 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17435 (append_space, extend_face_to_end_of_line)
17436 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17437 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17438
17439 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17440 POS and OBJECT args.
17441
17442 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17443 POS and OBJECT args.
17444
174452008-02-01 Jason Rumney <jasonr@gnu.org>
17446
17447 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17448 of GlobalAlloc'ed memory.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17453
17454 * charset.h (charset_table_used): Delete extern.
17455
17456 * charset.c (charset_table_used): Make it static.
17457 (map_charset_chars): Fix args to c_function with.
17458
17459 * chartab.c (map_sub_char_table_for_charset): Fix args to
17460 c_function with.
17461
17462 * coding.h (enum coding_result_code): Delete
17463 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17464
17465 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17466 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17467 (Vlast_code_conversion_error): New variables.
17468 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17469 (ONE_MORE_BYTE): Record error if any instead of signaling an
17470 error. If non-ASCII multibyte char is found, return the negative
17471 value of the code. All callers changed to check it.
17472 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17473 (record_conversion_result): New function. Change all codes setting
17474 coding->result to call this function.
17475 (detect_coding_utf_8, decode_coding_utf_8)
17476 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17477 Don't use the local variable incomplete.
17478 (emacs_mule_char): Change the second arg to `const'.
17479 (decode_coding): Fix of flushing out unprocessed data.
17480 (make_conversion_work_buffer): Fix making of a work buffer.
17481 (decode_coding_object): Return coding->dst_object.
17482
17483 * fontset.c (set_fontset_font): Fix args.
17484
17485 * lisp.h (CHARACTERBITS): Define as 22.
17486
17487 * process.c (send_process): Be sure to set coding->src_multibyte.
17488
17489 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * xdisp.c (handle_auto_composed_prop): Give limit to
17494 Fnext_single_char_property_change.
17495
174962008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * composite.c (syms_of_composite): Don't make the composition hash
17499 table weak.
17500
17501 * fontset.c (Fset_fontset_font): Fix docstring.
17502
17503 * lisp.h (detect_coding_system): Adjust prototype.
17504
17505 * fileio.c (kill_workbuf_unwind): Delete this function.
17506 (Finsert_file_contents): Adjust the call of detect_coding_system.
17507 Get conversion_buffer by code_conversion_save. Use the macro
17508 CODING_MAY_REQUIRE_DECODING. After decoding, update
17509 coding_system.
17510
17511 * coding.h (make_conversion_work_buffer): Delete extern.
17512 (code_conversion_save): Extern it.
17513
17514 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17515 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17516 (decode_coding_utf_8): Don't do eol converion.
17517 (detect_coding_utf_16): Check coding->src_chars, not
17518 coding->src_bytes. Add heuristics for those that have no signature.
17519 (decode_coding_emacs_mule, decode_coding_iso_2022)
17520 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17521 Don't do eol converion.
17522 (adjust_coding_eol_type): Return a new coding system.
17523 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17524 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17525 each change.
17526 (decode_coding): Pay attention to undo_list. Do eol conversion for
17527 all types of coding-systems (if necessary).
17528 (Vcode_conversion_work_buf_list): Delete it.
17529 (Vcode_conversion_reused_workbuf): Rename from
17530 Vcode_conversion_reused_work_buf.
17531 (Vcode_conversion_workbuf_name): New variable.
17532 (reused_workbuf_in_use): New variable.
17533 (make_conversion_work_buffer): Delete the arg DEPTH.
17534 (code_conversion_restore): Change argument to cons.
17535 (code_conversion_save): Delete the argument BUFFER. Change callers.
17536 (detect_coding_system): New argument src_chars. Change callers.
17537 Fix for utf-16 detection.
17538 (init_coding_once): Don't use ISO_carriage_return.
17539 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17540 reused_workbuf_in_use.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * keymap.c (store_in_keymap): Pay attention to the case that idx
17545 is a cons specifying a character range.
17546
175472008-02-01 Kenichi Handa <handa@m17n.org>
17548
17549 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17550 HANDLED_RECOMPUTE_PROPS.
17551
17552 * coding.c (Fdefine_coding_system_internal): Fix checking of
17553 ascii compatibility.
17554
175552008-02-01 Kenichi Handa <handa@m17n.org>
17556
17557 * charset.c (find_charsets_in_text): Delete unused locale variable.
17558 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17559
17560 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17561 Resync charset_list to Vemacs_mule_charset_list.
17562
17563 * keymap.c (store_in_keymap): Pay attention to the case that idx
17564 is a cons specifying a character range.
17565
175662008-02-01 Kenichi Handa <handa@m17n.org>
17567
17568 * composite.c (update_compositions): Bind inhibit-read-only, etc
17569 to t before calling remove-list-of-text-properties.
17570
17571 * print.c (print_object): Always print ASCII chars as is.
17572
175732008-02-01 Kenichi Handa <handa@m17n.org>
17574
17575 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17576
17577 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17578 is a char table.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17583
175842008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * xfaces.c (set_lface_from_font_name): Fix for the case that
17587 FONTNAME is not fontset name.
17588
175892008-02-01 Kenichi Handa <handa@m17n.org>
17590
17591 * fns.c (base64_encode_1): Fix previous change.
17592
175932008-02-01 Kenichi Handa <handa@m17n.org>
17594
17595 * fontset.c (set_fontset_font): New function.
17596 (Fset_fontset_font): If a font is specified for a charset, use
17597 map_charset_chars to store the font spec in a fontset.
17598
175992008-02-01 Kenichi Handa <handa@m17n.org>
17600
17601 * fontset.c (fontset_face): Create a fallback fontset on demand.
17602 (make_fontset): Don't create a fallback fontset here.
17603 (free_face_fontset): Free a fallback fontset (if any) too.
17604 (n_auto_fontsets): Delete this variable.
17605 (auto_fontset_alist): New variable.
17606 (new_fontset_from_font_name): Check auto_fontset_alist.
17607 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17608 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17609 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17610 Defsubr Sfontset_list_all.
17611
176122008-02-01 Kenichi Handa <handa@m17n.org>
17613
17614 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17615
176162008-02-01 Kenichi Handa <handa@m17n.org>
17617
17618 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * editfns.c (Fgoto_char): Fix docstring.
17623
176242008-02-01 Kenichi Handa <handa@m17n.org>
17625
17626 * insdel.c (insert_from_gap): Adjust intervals correctly.
17627
176282008-02-01 Jason Rumney <jasonr@gnu.org>
17629
17630 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17631 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17632 (w32_initialize): Try to load it.
17633 (x_get_font_repertory): Use it if available.
17634 (w32_encode_char): Add shortcut for unicode output.
17635
17636 * w32fns.c (w32_load_system_font): Default charset to -1.
17637 (x_to_w32_charset): Match all fonts for unicode.
17638 (w32_to_x_charset): New parameter matching. Don't return partial
17639 or wildcard charsets.
17640 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17641 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17642 (w32_to_x_font): Match charset to real charset.
17643 (enum_font_cb2): Always list unicode versions.
17644
17645 * makefile.w32-in (temacs): Increase EMHEAP.
17646
176472008-02-01 Jason Rumney <jasonr@gnu.org>
17648
17649 * w32term.c (w32_encode_char): New charset parameter.
17650 font_info.encoding becomes encoding_type.
17651 (x_get_font_repertory): New function. Warning: stub only!
17652 (x_new_font): Return quickly if font already set.
17653 (x_new_fontset): fontsetname parameter is Lisp_Object.
17654 Use new fs_query_fontset. Try new_fontset_from_font_name.
17655 Use fontset_name for return value.
17656
17657 * w32term.h: Declare x_get_font_repertory.
17658
17659 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17660 place of find_charset_in_text. Use encode_coding_object in place
17661 of encode_coding.
17662 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17663 decode_coding.
17664
17665 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17666 of x_new_fontset.
17667 (w32_load_system_font): Initialize charset as unicode.
17668 font_info.encoding becomes encoding_type.
17669 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17670 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17671 (syms_of_w32fns): Set get_font_repertory_func.
17672
17673 * w32console.c: Include character.h. Use terminal_encode_buffer
17674 from term.c.
17675 (write_glyphs): Use new version of encode_terminal_code. Use
17676 encode_coding_object in place of encode_coding.
17677
17678 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17679 encoding becomes encoding_type.
17680
17681 * term.c (terminal_encode_buffer): Make externally visible.
17682
17683 * makefile.w32-in: Add character.h dependancies.
17684 (character.o, chartab.o): New targets.
17685
176862008-02-01 Kenichi Handa <handa@m17n.org>
17687
17688 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17689 CODING_ID_EOL_TYPE.
17690
176912008-02-01 Andreas Schwab <schwab@suse.de>
17692
17693 * coding.c (produce_chars): Revert last change.
17694
176952008-02-01 Kenichi Handa <handa@m17n.org>
17696
17697 * charset.h (charset_unicode): Extern it.
17698
17699 * charset.c (string_xstring_p): Check by (C >= 0x100).
17700 (find_charsets_in_text): Change format of the arc CHARSETS. New
17701 arg MULTIBYTE.
17702 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17703 change of find_charsets_in_text.
17704 (Fsplit_char): Fix doc. Never return unknown.
17705
17706 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17707
17708 * coding.c (Fdefine_coding_system_alias): Update
17709 Vcoding_system_list.
17710
17711 * fontset.c (load_font_get_repertory): Pay attention to the case
17712 that ENCODING of a font is specified by a char-table.
17713
17714 * xterm.c (x_get_font_repertory): Handle the case that the
17715 encoding of font is other than Unicode.
17716
177172008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17720 if a character is encodable by the terminal coding system. If
17721 not, produces proper number of `?'s. Update
17722 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17723 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17724
177252008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17728 variables.
17729 (encode_terminal_code): Change argument. Encode multiple
17730 characters at once. Store the result of encoding in
17731 terminal_encode_buffer.
17732 (write_glyphs, insert_glyphs): Adjust for the change of
17733 encode_terminal_code.
17734 (term_init): Initialize terminal_encode_buffer and
17735 terminal_encode_buf_size.
17736
17737 * coding.c (consume_chars): If coding->src_object is nil, don't
17738 check annotation.
17739
177402008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * character.c (char_string): Use ASCII_CHAR_P instead of
17743 SINGLE_BYTE_CHAR_P.
17744
177452008-02-01 Kenichi Handa <handa@m17n.org>
17746
17747 * xdisp.c (handle_auto_composed_prop): Check if the last
17748 characters of auto-composed region is newly composed with the
17749 following characters.
17750 (handle_composition_prop): Fix checking of point being inside
17751 composition.
17752
177532008-02-01 Kenichi Handa <handa@m17n.org>
17754
17755 * fns.c (concat): Don't change multibyteness of the result by
17756 concatenating an 8-bit character.
17757
17758 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17759 multibyteness of the result when newelt is an 8-bit character.
17760
177612008-02-01 Dave Love <fx@gnu.org>
17762
17763 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17764 EMACS_INT.
17765
17766 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17767
17768 * xfaces.c (face_numeric_value): Declare dim size_t.
17769 (Finternal_lisp_face_equal_p): Remove unused f.
17770
17771 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17772 (MATRIX_ROW): Remove unused vars.
17773 (draw_glyphs, x_insert_glyphs, fast_find_position)
17774 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17775 byte/char counts.
17776
17777 * regex.c (regex_compile): Remove unused var.
17778
17779 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17780
17781 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17782 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17783
17784 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17785
17786 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17787
17788 * fileio.c (Fwrite_region): Remove unused var.
17789
17790 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17791 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17792
17793 * composite.c (Fremove_list_of_text_properties): Declare.
17794
17795 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17796 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17797 (coding_inherit_eol_type): Remove unused attrs.
17798 (detect_coding): Cast arg of detect_eol.
17799
17800 * charset.c (syms_of_charset): Remove unused var p.
17801 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17802 byte/char counts.
17803
17804 * casetab.c (set_case_table): Remove unused var.
17805
17806 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17807 unused vars.
17808
178092008-02-01 Dave Love <fx@gnu.org>
17810
17811 * xterm.c (x_bitmap_mask): Declare.
17812
178132008-02-01 Dave Love <fx@gnu.org>
17814
17815 * xterm.c (x_term_init): Fix type error.
17816
17817 * lisp.h: Add Funibyte_char_to_multibyte.
17818
17819 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17820 (Fset_coding_system_priority): Doc fix.
17821
17822 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17823
17824 * indent.c (check_composition): Make start and end EMACS_INT.
17825
17826 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17827
17828 * xdisp.c (handle_composition_prop, check_point_in_composition):
17829 Make buffer positions EMACS_INT.
17830
17831 * composite.c (find_composition, run_composition_function)
17832 (update_compositions, Ffind_composition_internal): Make buffer
17833 positions EMACS_INT.
17834
17835 * composite.h (find_composition, update_compositions): Make
17836 position args EMACS_INT.
17837
17838 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17839
17840 * intervals.c (get_property_and_range):
17841 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17842
17843 * unexalpha.c: Don't include varargs.h.
17844
178452008-02-01 Dave Love <fx@gnu.org>
17846
17847 * coding.h (ENCODE_UTF_8): New.
17848
17849 * Makefile.in (gtkutil.o): Depend on coding.h.
17850
17851 * coding.c (Fset_coding_system_priority): Doc fix.
17852
178532008-02-01 Kenichi Handa <handa@m17n.org>
17854
17855 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17856 the case of auto saving.
17857
178582008-02-01 Andreas Schwab <schwab@suse.de>
17859
17860 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17861 `range' from GC.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17866
178672008-02-01 Kenichi Handa <handa@m17n.org>
17868
17869 * fileio.c (choose_write_coding_system): Return a decided coding system.
17870 (Fwrite_region): Set Vlast_coding_system_used to the return value
17871 of choose_write_coding_system.
17872
178732008-02-01 Kenichi Handa <handa@m17n.org>
17874
17875 * charset.c (Fset_charset_priority): Pay attention to duplicated
17876 arguments.
17877
17878 * coding.c (QCcategory): New variable.
17879 (syms_of_coding): Defsym it. Set all elements of
17880 Vcoding_category_table and their symbol values.
17881 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17882 coding-category-XXX, and coding-category-list.
17883 (Fdefine_coding_system_internal): Add category in the plist.
17884
178852008-02-01 Kenichi Handa <handa@m17n.org>
17886
17887 * callproc.c (Fcall_process): Handle carryover correctly.
17888
17889 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17890 (raw_text_coding_system): Check NILP (coding_system).
17891 (coding_inherit_eol_type): Check NILP (coding_system) and
17892 NILP (parent).
17893 (consume_chars): Fix for the case of raw-text.
17894
17895 * process.c (read_process_output): Handle carryover correctly.
17896
178972008-02-01 Dave Love <fx@gnu.org>
17898
17899 * regex.c (re_search_2): Fix last change.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17904 target_multibyte. Even in a unibyte case, return a converted
17905 multibyte char.
17906 (GET_CHAR_AFTER): New macro.
17907 (PATFETCH): Translate via multibyte char.
17908 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17909 (SETUP_MULTIBYTE_RANGE): New macro.
17910 (regex_compile): Setup compiled code so that its multibyteness
17911 matches that of a target. Fix the handling of "[X-YZ]" using
17912 SETUP_MULTIBYTE_RANGE.
17913 (analyse_first) <charset>: For filling fastmap for all multibyte
17914 characters, don't check by BASE_LEADING_CODE_P.
17915 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17916 the same as RE_MULTIBYTE_P (bufp) now.
17917 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17918 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17919 (TRANSLATE_VIA_MULTIBYTE): New macro.
17920 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17921 It is the same as RE_MULTIBYTE_P (bufp) now.
17922 <exactn>: Translate via multibyte.
17923 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17924 translate it.
17925 <charset, charset_not>: Fetch a character by
17926 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17927 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17928 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17929 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17930 by GET_CHAR_AFTER.
17931 (bcmp_translate): Likewise.
17932
17933 * search.c (compile_pattern): Check the member target_multibyte,
17934 not the member multibyte of buf.
17935
17936 * lread.c (read1): While reading a string, set force_singlebyte
17937 and force_multibyte correctly.
17938
17939 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17940 up of unibyte_to_multibyte_table.
17941
179422008-02-01 Kenichi Handa <handa@m17n.org>
17943
17944 * coding.c (setup_coding_system): If coding has
17945 post-read-conversion or pre-write-conversion, set
17946 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17947 respectively.
17948 (decode_coding_gap): Run post-read-conversion if any.
17949
17950 * fileio.c (Finsert_file_contents): Even if we read into a
17951 unibyte buffer, check if we must decode the result or not.
17952
179532008-02-01 Kenichi Handa <handa@m17n.org>
17954
17955 * coding.c (make_conversion_work_buffer): Change the work buffer
17956 name to the same one as that of Emacs 21.
17957
179582008-02-01 Kenichi Handa <handa@m17n.org>
17959
17960 * coding.h (make_conversion_work_buffer): Adjust prototype.
17961 (code_conversion_restore): Don't extern it.
17962
17963 * coding.c (detected_mask): Delete unused variable.
17964 (decode_coding_iso_2022): Pay attention to the byte sequence of
17965 CTEXT extended segment, and retain those bytes as is.
17966 (decode_coding_ccl): Delete unused variable `valids'.
17967 (setup_coding_system): Delete unused variable `category'.
17968 (consume_chars): Delete unused variable `category'. Make it work
17969 for non-multibyte case.
17970 (make_conversion_work_buffer): Change argument.
17971 (saved_coding): Delete unused variable.
17972 (code_conversion_restore): Don't check saved_coding->destination.
17973 (code_conversion_save): New function.
17974 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17975 instead of record_unwind_protect.
17976 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17977 (detect_coding_system): Delete unused variable `mask'.
17978 (Fdefine_coding_system_internal): Delete unused variable id.
17979
17980 * fileio.c (kill_workbuf_unwind): New function.
17981 (Finsert_file_contents): On replacing, call
17982 make_conversion_work_buffer with correct args, and call
17983 record_unwind_protect with the first arg kill_workbuf_unwind.
17984
17985 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17986
179872008-02-01 Kenichi Handa <handa@m17n.org>
17988
17989 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17990 (fontset_add): Fix for the case that TO is less than TO1.
17991 (Ffontset_info): Don't use fallback fontset on checking the
17992 default fontset.
17993 (dump_fontset): New function for debugging.
17994
17995 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17996 coding_type is Qcharset.
17997
179982008-02-01 Kenichi Handa <handa@m17n.org>
17999
18000 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18001 (map_char_table): Don't inherit the value from the parent on
18002 initializing VAL. Adjust for the above change.
18003
180042008-02-01 Kenichi Handa <handa@m17n.org>
18005
18006 * coding.c (Qsignature, Qendian): Delete these variables.
18007 (syms_of_coding): Don't initialize them.
18008 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18009 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18010 detect_info->found.
18011 (decode_coding_utf_16): Don't detect BOM here.
18012 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18013 is NOT utf_16_without_bom.
18014 (setup_coding_system): For a coding system of type utf-16, check
18015 if the attribute :endian is Qbig or not (not nil or not), and set
18016 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18017 (detect_coding): If coding type is utf-16 and BOM detection is
18018 required, detect it.
18019 (Fdefine_coding_system_internal): For a coding system of type
18020 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18021
180222008-02-01 Kenichi Handa <handa@m17n.org>
18023
18024 * coding.c (coding_set_source): Fix for the case that the current
18025 buffer is different from coding->src_object.
18026 (decode_coding_object): Don't use the conversion work buffer if
18027 DST_OBJECT is a buffer.
18028
180292008-02-01 Dave Love <fx@gnu.org>
18030
18031 * lread.c (read_emacs_mule_char) [len==2]: Index
18032 emacs_mule_charset correctly.
18033
180342008-02-01 Dave Love <fx@gnu.org>
18035
18036 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18037 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18038 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18039 treated specially.)
18040 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18041 (detected_mask): Remove Big5 bits.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 The following changes are to make the font rescaling facility
18046 compatible with Emacs 21.
18047
18048 * xfaces.c (Vface_font_rescale_alist): Rename from
18049 Vface_resizing_fonts.
18050 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18051 (font_rescale_ratio): Rename from font_resizing_ratio.
18052 (split_font_name): Set font->rescale_ratio.
18053 (better_font_p): Pay attention to font->rescale_ratio.
18054 (build_scalable_font_name): Likewise. Change RESX, and RESY
18055 fields.
18056 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18057
180582008-02-01 Kenichi Handa <handa@m17n.org>
18059
18060 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18061 (Qutf_16_le): Remove these variables.
18062 (syms_of_coding): Don't DEFSYM them.
18063 (decode_coding_utf_16): Fix handling of BOM.
18064 (encode_coding_utf_16): Fix handling of BOM.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 * fileio.c (Finsert_file_contents): On replacing, before decoding
18069 the file into the work buffer, set point of the work buffer to the end.
18070
180712008-02-01 Dave Love <fx@gnu.org>
18072
18073 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18074
180752008-02-01 Dave Love <fx@gnu.org>
18076
18077 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18078 and fix C types.
18079
180802008-02-01 Kenichi Handa <handa@m17n.org>
18081
18082 * xdisp.c (SKIP_GLYPHS): New macro.
18083 (set_cursor_from_row): Pay attention to string display properties.
18084
18085 * category.c (copy_category_entry): Fix for the case that RANGE
18086 is an integer.
18087
18088 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18089
18090 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18091
180922008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * charset.c (Fcharset_id_internal): New function.
18095 (syms_of_charset): Defsubr it.
18096
18097 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18098 with the last arg charset_list acquired from coding.
18099 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18100 the attribute coding_attr_ccl_valids.
18101
18102 * coding.h (enum define_coding_ccl_arg_index): Set the first
18103 member coding_arg_ccl_decoder to coding_arg_max.
18104
18105 * ccl.h (ccl_driver): Adjust prototype.
18106
18107 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18108 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18109 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18110 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18111 last arg Qnil.
18112
181132008-02-01 Kenichi Handa <handa@m17n.org>
18114
18115 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18116 call encode_char.
18117
18118 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18119
181202008-02-01 Dave Love <fx@gnu.org>
18121
18122 * composite.c (syms_of_composite): Make composition_hash_table weak.
18123
181242008-02-01 Kenichi Handa <handa@m17n.org>
18125
18126 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18127 (font_name_registry): Don't extern them.
18128 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18129
18130 * fontset.h (Qfontset): Don't extern it.
18131 (new_fontset_from_font_name): Extern it.
18132
18133 * fontset.c: Give 8 extra slots to fontset objects.
18134 (Qfontset_info): New variable.
18135 (syms_of_fontset): Defsym it.
18136 (FONTSET_FALLBACK): New macro.
18137 (fontset_face): Try also the default fontset.
18138 (make_fontset): Realize a fallback fontset from the default fontset.
18139 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18140 using split_font_name_into_vector and build_font_name_from_vector.
18141 (Fset_fontset_font): Access the elements of font_spec by enum
18142 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18143 name by using split_font_name_into_vector.
18144 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18145 generate a proper font name from the fontset name. Update
18146 Vfontset_alias_alist.
18147 (n_auto_fontsets): New variable.
18148 (new_fontset_from_font_name): New function.
18149 (Ffont_info): Store the information about fonts generated from the
18150 default fontset in the first extra slot of the returned char-table.
18151
18152 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18153 (font_name_registry): Delete function.
18154 (split_font_name_into_vector): New function.
18155 (build_font_name_from_vector): New function.
18156 (font_list): The argument REGISTRY is now a list of registry names.
18157 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18158 specifies an explicit font name, return the name as is. Make a
18159 list of registy names.
18160
18161 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18162 of x_new_fontset.
18163 (Fx_create_frame): Don't call x_new_fontset here. Just use
18164 x_list_fonts to check the existence of fonts.
18165
18166 * xterm.h (x_new_fontset): Adjust prototype.
18167
18168 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18169 string. Use new_fontset_from_font_name to create a fontset from a
18170 font name.
18171
181722008-02-01 Kenichi Handa <handa@m17n.org>
18173
18174 * syntax.c (Vfind_word_boundary_function_table): New name for
18175 Vnext_word_boundary_function_table.
18176 (find-word-boundary-function-table): New name for
18177 next-word-boundary-function-table.
18178
181792008-02-01 Dave Love <fx@gnu.org>
18180
18181 * Makefile.in: Fix some dependencies.
18182
18183 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18184 set it to nil before returning.
18185
18186 * composite.c (update_compositions): Fix type error.
18187
18188 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18189
181902008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * xterm.c (x_new_font): Optimize for the case that the font is
18193 already set for the frame.
18194
181952008-02-01 Kenichi Handa <handa@m17n.org>
18196
18197 * chartab.c (char_table_ascii): Check if the char table contents
18198 is sub-char-table or not.
18199 (char_table_set, char_table_set_range): Fix argument to
18200 char_table_ascii.
18201
18202 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18203 (detect_coding_utf_8, detect_coding_utf_16)
18204 (detect_coding_emacs_mule, detect_coding_iso_2022)
18205 (detect_coding_sjis, detect_coding_big5)
18206 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18207 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18208 sequence is valid in this coding system. Change callers.
18209 (MAX_ANNOTATION_LENGTH): New macro.
18210 (ADD_ANNOTATION_DATA): New macro.
18211 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18212 ADD_ANNOTATION_DATA. Change the format of annotation data.
18213 (ADD_CHARSET_DATA): New macro.
18214 (emacs_mule_char): New argument ID. Change callers.
18215 (decode_coding_emacs_mule, decode_coding_iso_2022)
18216 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18217 Produce charset annotation data in coding->charbuf.
18218 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18219 to charset annotation data in coding->charbuf.
18220 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18221 coding->common_flags if the coding system is iso-2022 based and
18222 uses designation.
18223 (produce_composition): Adjust for the new annotation data format.
18224 (produce_charset): New function.
18225 (produce_annotation): Handle charset annotation.
18226 (handle_composition_annotation, handle_charset_annotation): New
18227 functions.
18228 (consume_chars): Handle charset annotation. Utilize the above two
18229 functions.
18230 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18231 buffer, get the deleted text as a string and set
18232 coding->src_object to that string.
18233 (detect_coding, detect_coding_system): Use the new struct
18234 coding_detection_info.
18235
18236 * coding.h (struct coding_detection_info): New structure.
18237 (struct coding_system): Adjust prototype of the member `detector'.
18238 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18239
182402008-02-01 Kenichi Handa <handa@m17n.org>
18241
18242 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18243
182442008-02-01 Dave Love <fx@gnu.org>
18245
18246 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18247 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18248 to new local and nullify apropos_accumulate before returning.
18249 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18250
182512008-02-01 Kenichi Handa <handa@m17n.org>
18252
18253 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18254 correctly.
e3eea1fc 18255
aac0c6e3
MR
182562008-02-01 Dave Love <fx@gnu.org>
18257
18258 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18259
182602008-02-01 Kenichi Handa <handa@m17n.org>
18261
18262 The following changes are to make character composition happen
18263 automatically on displaying.
18264
18265 * Makefile.in (lisp, shortlisp): Add composite.elc.
18266
18267 * composite.h (Qauto_composed, Vauto_composition_function)
18268 (Qauto_composition_function): Extern them.
18269
18270 * composite.c (Vcomposition_function_table)
18271 (Qcomposition_function_table): Delete variables.
18272 (Qauto_composed, Vauto_composition_function)
18273 (Qauto_composition_function): New variables.
18274 (run_composition_function): Don't call
18275 compose-chars-after-function.
18276 (update_compositions): Clear `auto-composed' text property.
18277 (compose_chars_in_text): Delete this function.
18278 (syms_of_composite): Staticpro Qauto_composed and
18279 Qauto_composition_function. Declare Vauto_composition_function as
18280 a Lisp variable.
18281
18282 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18283
18284 * xdisp.c (it_props): Add an entry for Qauto_composed.
18285 (handle_auto_composed_prop): New function.
18286
18287 * xselect.c (selection_data_to_lisp_data): Don't call
18288 compose_chars_in_text.
18289
182902008-02-01 Dave Love <fx@gnu.org>
18291
18292 * keyboard.c (read_char): Modify checking around use of
18293 Vkeyboard_translate_table.
18294
18295 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18296 and fix C types.
18297
182982008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18301 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18302 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18303 the case that the last byte is '\r' correctly.
18304 (decode_coding): Flush out the unprocessed data correctly.
18305 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18306
183072008-02-01 Dave Love <fx@gnu.org>
18308
18309 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18310 Add XK_ISO... case.
18311 (xaw_scroll_callback): Revert last change.
18312
183132008-02-01 Kenichi Handa <handa@m17n.org>
18314
18315 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18316
183172008-02-01 Kenichi Handa <handa@m17n.org>
18318
18319 * xfaces.c (Vface_resizing_fonts): New variable.
18320 (struct font_name): New member `resizing_ratio'.
18321 (font_resizing_ratio): New function.
18322 (split_font_name): Set font->resizing_ratio.
18323 (better_font_p): Pay attention to font->resizing_ratio.
18324 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18325 RESX, and RESY fields.
18326 (try_alternative_families): Try scalable fonts if
18327 Vscalable_fonts_allowed is not Qt.
18328 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18329
183302008-02-01 Dave Love <fx@gnu.org>
18331
18332 * xterm.c (xaw_scroll_callback): Cast correctly.
18333
183342008-02-01 Dave Love <fx@gnu.org>
18335
18336 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18337 (lispy_kana_keys): Comment out.
18338 (make_lispy_event) [XK_kana_A]: Comment out.
18339
18340 * xterm.c (xaw_scroll_callback): Cast call_data.
18341 (XTread_socket): Deal with ASCII keysyms.
18342 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18343
183442008-02-01 Dave Love <fx@gnu.org>
18345
18346 * xterm.c (Vx_keysym_table): New.
18347 (syms_of_xterm): Initialize it.
18348 (XTread_socket): Use it.
18349 From head: Eliminate incorrect optimization that tried to avoid
18350 decoding the output of X*LookupString.
18351 (x_get_font_repertory): Delete charset declaration.
18352
183532008-02-01 Kenichi Handa <handa@m17n.org>
18354
18355 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18356 return 0.
18357 (Fdefine_coding_system_internal): Setup
18358 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18359
183602008-02-01 Dave Love <fx@gnu.org>
18361
18362 * coding.c (Fcheck_coding_system): Doc fix.
18363
18364 * editfns.c (Finsert_byte): Return a proper value.
18365
183662008-02-01 Kenichi Handa <handa@m17n.org>
18367
18368 * coding.c (decode_coding): Fix args to translate_chars. Pay
18369 attention to Vstandard_translation_table_for_decode.
18370 (encode_coding): Fix args to translate_chars. Pay attention to
18371 Vstandard_translation_table_for_encode.
18372
18373 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18374 SINGLE_BYTE_CHAR_P.
18375
18376 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18377 not by SINGLE_BYTE_CHAR_P.
18378
18379 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18380 SINGLE_BYTE_CHAR_P.
18381
18382 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18383 SINGLE_BYTE_CHAR_P.
18384
18385 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18386 by SINGLE_BYTE_CHAR_P.
18387
18388 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18389 SINGLE_BYTE_CHAR_P.
18390
183912008-02-01 Dave Love <fx@gnu.org>
18392
18393 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18394
183952008-02-01 Dave Love <fx@gnu.org>
18396
18397 * fns.c (Flanginfo): Fix typo.
18398
18399 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18400
184012008-02-01 Kenichi Handa <handa@m17n.org>
18402
18403 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18404 (detect_coding_emacs_mule, detect_coding_iso_2022)
18405 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18406 incomplete byte sequence. Don't update *mask when correctly detected.
18407 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18408 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18409 (detect_coding, detect_coding_system): Adjust for the changes above.
18410
184112008-02-01 Kenichi Handa <handa@m17n.org>
18412
18413 * character.c (char_string): Rename from
18414 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18415 (string_char): Rename from string_char.
18416
18417 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18418 if C is greater than MAX_3_BYTE_CHAR.
18419 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18420 string_char instead of string_char_with_unification.
18421
184222008-02-01 Dave Love <fx@gnu.org>
18423
18424 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18425
184262008-02-01 Kenichi Handa <handa@m17n.org>
18427
18428 * keymap.c (push_key_description): Pay attention to force_multibyte.
18429
18430 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18431
184322008-02-01 Dave Love <fx@gnu.org>
18433
18434 * charset.c (define_charset_internal): Rename `supprementary'.
18435
18436 * Makefile.in (lisp, shortlisp): Remove latin-N.
18437
184382008-02-01 Dave Love <fx@gnu.org>
18439
18440 * xfns.c (x_window, x_window): Use use_xim.
18441
18442 * xterm.c (use_xim): Initialize.
18443 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18444 (x_term_init): Maybe set use_xim.
18445
18446 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18447
184482008-02-01 Kenichi Handa <handa@m17n.org>
18449
18450 * search.c (search_buffer): Fix case-fold-search of multibyte
18451 characters.
18452 (boyer_moore): Rename the last argument to char_high_bits.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * xdisp.c (display_string): Fix for the case of zero width glyph.
18457
18458 * xfns.c (x_set_font): Change the error message of the case that
18459 x_new_fontset returns Qt.
18460
18461 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18462 (Finternal_set_lisp_face_attribute): Use signal_error for the
18463 error of invalid fontset.
18464
18465 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18466 fontset, return Qt.
18467
184682008-02-01 Dave Love <fx@gnu.org>
18469
18470 * unexelf.c (unexec): Make .got handling not SGI-specific.
18471
18472 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18473
18474 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18475
18476 * keyboard.c (read_key_sequence): Fix type error.
18477
18478 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18479 type error.
18480
18481 * fontset.c (fontset_add): Return Lisp_Object.
18482
184832008-02-01 Dave Love <fx@gnu.org>
18484
18485 * charset.h (charset_ordered_list_tick): Declare extern.
18486
184872008-02-01 Kenichi Handa <handa@m17n.org>
18488
18489 The following changes (and some of 2008-02-01 changes of mine) are
18490 for handling syntax, category, and case conversion for unibyte
18491 characters by converting them to multibyte on the fly. With these
18492 changes, we don't have to setup syntax and case tables for unibyte
18493 characters in each language environment.
18494
18495 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18496 multibyte if necessary.
18497
18498 * bytecode.c (Fbyte_code): Likewise.
18499
18500 * character.h (LEADING_CODE_LATIN_1_MIN)
18501 (LEADING_CODE_LATIN_1_MAX): New macros.
18502 (unibyte_to_multibyte_table): Extern it.
18503 (unibyte_char_to_multibyte): New macro.
18504 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18505 (CHAR_LEADING_CODE): New macro.
18506 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18507
18508 * character.c (unibyte_to_multibyte_table): New variable.
18509 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18510 (multibyte_char_to_unibyte): If C is an eight-bit character,
18511 convert it to the corresponding byte value.
18512
18513 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18514 not 1, signals an error. Update the elements of
18515 unibyte_to_multibyte_table.
18516 (init_charset_once): Initialize unibyte_to_multibyte_table.
18517 (syms_of_charset): Define the charset `iso-8859-1'.
18518
18519 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18520 as is without converting it to unibyte. In a unibyte buffer,
18521 convert C to multibyte before checking the syntax.
18522
18523 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18524
18525 * minibuf.c (Fminibuffer_complete_word): Use the macro
18526 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18527
18528 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18529
18530 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18531 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18532 that is zero, convert an eight-bit char to multibyte.
18533 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18534 non-emacs case.
18535 (PATFETCH): Convert an eight-bit char to multibyte.
18536 (HANDLE_UNIBYTE_RANGE): New macro.
18537 (regex_compile): Setup the compiled pattern for multibyte chars
18538 even if the given regex string is unibyte. Use PATFETCH_RAW
18539 instead of PATFETCH in many places. To handle `charset'
18540 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18541 only for ASCII chars.
18542 (analyse_first) <exactn>: Simplify because the compiled pattern
18543 is multibyte.
18544 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18545 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18546 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18547 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18548 multibyte always 1.
18549 (re_search_2): In emacs, set the locale variable multibyte to 1,
18550 otherwise to 0. New local variable target_multibyte. Check it
18551 to decide the multibyteness of STR1 and STR2. If
18552 target_multibyte is zero, convert unibyte chars to multibyte
18553 before translating and checking fastmap.
18554 (TARGET_CHAR_AND_LENGTH): New macro.
18555 (re_match_2_internal): In emacs, set the locale variable multibyte
18556 to 1, otherwise to 0. New local variable target_multibyte. Check
18557 it to decide the multibyteness of STR1 and STR2. Use
18558 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18559 <charset, charset_not>: If multibyte is nonzero, check fastmap
18560 only for ASCII chars. Call bcmp_translate with
18561 target_multibyte, not with multibyte.
18562 <begline>: Declare the local variable C as `unsigned'.
18563 (bcmp_translate): Change the last arg name to target_multibyte.
18564
18565 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18566 the regexp pattern and the matching target. Set cp->buf.multibyte
18567 to the multibyteness of the regexp pattern. Set
18568 cp->but.target_multibyte to the multibyteness of the matching target.
18569 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18570 FETCH_STRING_CHAR_ADVANCE.
18571 (Freplace_match): Convert unibyte chars to multibyte.
18572
18573 * syntax.c (char_quoted, back_comment, scan_words)
18574 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18575 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18576 unibyte chars to multibyte.
18577 (skip_chars): Delete the arg syntaxp, and move the code for
18578 handling syntaxes to skip_syntaxes. Change callers.
18579 Fix the case that the multibyteness of STRING and the current
18580 buffer doesn't match.
18581 (skip_syntaxes): New function.
18582 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18583 SINGLE_BYTE_CHAR_P.
18584
185852008-02-01 Kenichi Handa <handa@m17n.org>
18586
18587 * xfaces.c (QCfontset): New variable.
18588 (LFACE_FONTSET): New macro.
18589 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18590 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18591 (Finternal_set_lisp_face_attribute)
18592 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18593 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18594 check also LFACE_FONTSET_INDEX.
18595 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18596 attrs[LFACE_FONT_INDEX].
18597 (syms_of_xfaces): Intern and staticpro QCfontset.
18598
18599 * dispextern.h (enum lface_attribute_index): New member
18600 LFACE_FONTSET_INDEX.
18601
18602 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18603
186042008-02-01 Kenichi Handa <handa@m17n.org>
18605
18606 * coding.c (coding_set_destination): Fix coding->destination for
18607 the case converting a region.
18608 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18609 (encode_coding_object): Fix coding->dst_pos and
18610 coding->dst_pos_byte for the case converting a region.
18611
18612 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18613
18614 * character.h (BYTE8_STRING): New macro.
18615
18616 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18621 characters by octal form.
18622
18623 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18624
18625 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18626 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18627 _fetch_multibyte_char_len.
18628 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18629
18630 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18631
18632 * casefiddle.c (casify_object): Simplify. Handle the case that
18633 the case conversion change the byte length.
18634 (casify_region): Likewise.
18635
18636 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18637
18638 * character.c (_fetch_multibyte_char_len): Delete this variable.
18639 (syms_of_character): Setup Vprintable_chars.
18640
18641 * editfns.c (Fchar_equal): Fix for the unibyte case.
18642 (Finsert_byte): New function.
18643 (syms_of_editfns): Defsubr it.
18644
18645 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18646 of direct code 0x3ffff.
18647
18648 * search.c (Freplace_match): Fix for the unibyte case.
18649
186502008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * lread.c (safe_to_load_p): Fix the logic.
18653
18654 * syntax.c (scan_words): Don't treat characters belonging to
18655 different scripts as constituting a word.
18656
18657 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18658
18659 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18660
18661 * emacs.c (main): In the case of --unibyte, instead of aborting on
18662 finding non-empty buffer, make it unibyte.
18663
186642008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18667 to create a fontset.
18668
186692008-02-01 Dave Love <fx@gnu.org>
18670
18671 * character.c (Funibyte_char_to_multibyte): Doc fix.
18672
18673 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18674
186752008-02-01 Kenichi Handa <handa@m17n.org>
18676
18677 * fontset.c (fontset_add): Make the type `int'.
18678 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18679
18680 * character.c (unibyte_char_to_multibyte)
18681 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18682 charset_unibyte, not charset_primary.
18683
18684 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18685
18686 * charset.c (charset_unibyte): Rename from charset_primary.
18687 (Funibyte_charset): Rename from Fprimary_charset.
18688 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18689 (syms_of_charset): Adjust for the above changes.
18690
18691 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18692 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18693 it->multibyte_p is zero.
18694
18695 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18696 Delete extern.
18697
186982008-02-01 Kenichi Handa <handa@m17n.org>
18699
18700 * coding.c (Fdefine_coding_system_internal): Fix category setting
18701 for a coding system of type iso-2022.
18702
187032008-02-01 Kenichi Handa <handa@m17n.org>
18704
18705 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18706
187072008-02-01 Kenichi Handa <handa@m17n.org>
18708
18709 * syntax.c (Vnext_word_boundary_function_table): New variable.
18710 (next-word-boundary-function-table): Declare it as a Lisp variable
18711 in syms_of_syntax.
18712 (scan_words): Call functions in Vnext_word_boundary_function_table
18713 if any.
18714
18715 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18716
18717 * fontset.c (fs_load_font): If fontp->charset is not negative,
18718 return fontp without setting its members.
18719
187202008-02-01 Dave Love <fx@gnu.org>
18721
18722 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18723
18724 * m/sparc.h (HAVE_ALLOCA): Delete.
18725
18726 * s/irix6-5.h: Don't include strings.h.
18727 (bcopy, bzero, bcmp): Don't undef.
18728
18729 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18730
18731 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18732 (TIOCSIGSEND): Don't test IRIX6.
18733 (bcopy, bzero, bcmp): Define conditionally.
18734
187352008-02-01 Kenichi Handa <handa@m17n.org>
18736
18737 * buffer.c (Qas, Qmake, Qto): New variables.
18738 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18739 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18740
18741 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18742 we are inserting a process output into a multibyte buffer.
18743
18744 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18745 multibyte_char_to_unibyte.
18746
18747 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18748 by the primary charset, make it eight-bit char.
18749 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18750
18751 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18752 (charset_8_bit__control, charset_8_bit_graphic)
18753 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18754 (define_charset_internal): New function.
18755 (syms_of_charset): Call define_charset_internal for pre-defined
18756 charsets.
18757
18758 * charset.h (charset_8_bit): Extern it.
18759
18760 * coding.c (make_conversion_work_buffer): Adjust for the change
18761 of Fset_buffer_multibyte.
18762 (encode_coding_raw_text): Increment p0 in the loop.
18763
18764 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18765
18766 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18767 for the change of Fset_buffer_multibyte.
18768
18769 * fns.c (Fstring_to_multibyte): New function.
18770 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18771
187722008-02-01 Dave Love <fx@gnu.org>
18773
18774 * xfns.c (x_put_x_image): Declare args.
18775
18776 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18777 (try_font_list): Declare an arg.
18778
18779 * xdisp.c (message2_nolog, set_message): Declare an arg.
18780
18781 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18782
18783 * syntax.c (scan_sexps_forward): Declare an arg.
18784
18785 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18786 Declare an arg.
18787
18788 * lisp.h (Fnew_fontset): Declare.
18789
18790 * keymap.c (push_key_description): Call CHARACTERP correctly.
18791
18792 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18793 (face_for_char): Delete unused vars.
18794 (Fset_fontset_font): Doc fix. Delete unused vars.
18795
18796 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18797
18798 * composite.c (update_compositions): Declare arg.
18799
18800 * cm.c (calccost, cmgoto): Declare args.
18801
18802 * charset.c: Remove `emacs' conditional. Doc fixes.
18803 (map_char_table_for_charset): Declare.
18804
18805 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18806
18807 * ccl.c: Remove `emacs' conditional.
18808
188092008-02-01 Kenichi Handa <handa@m17n.org>
18810
18811 The following changes are to allow specifying multiple font
18812 patterns for a character range (specified by script or charset).
18813
18814 * Makefile.in (abbrev.o): Depend on syntax.h.
18815 (xfaces.o): Depend on charset.h.
18816
18817 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18818 SINGLE_BYTE_CHAR_P.
18819
18820 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18821
18822 * character.h (Vchar_script_table): Extern it.
18823
18824 * character.c (Vscript_alist): Delete.
18825 (Vchar_script_table, Qchar_script_table): New variable.
18826 (syms_of_character): Declare Vchar_script_table as a lisp variable
18827 and initialize it.
18828
18829 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18830 have property char-table-extra-slots, make no extra slot.
18831
18832 * dispextern.h (struct face): Delete member `charset'.
18833 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18834 SINGLE_BYTE_CHAR_P.
18835 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18836 Add prototypes.
18837 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18838 (generate_ascii_font_name): Rename from generate_ascii_font.
18839
18840 * fontset.h (get_font_repertory_func): New prototype.
18841 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18842 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18843
18844 * fontset.c (Qprepend, Qappend): New variables.
18845 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18846 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18847 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18848 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18849 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18850 (load_font_get_repertory): New functions.
18851 (fontset_set): Delete.
18852 (fontset_face): New arg FACE. Return face ID, not face.
18853 Complete re-write to handle new fontset structure. Change caller.
18854 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18855 (face_for_char): Don't call lookup_face.
18856 (make_fontset_for_ascii_face): New arg FACE.
18857 (fs_load_font): New arg CHARSET_ID. Don't check
18858 Vfont_encoding_alist here.
18859 (find_font_encoding): New function.
18860 (list_fontsets): Use STRINGP, not ! NILP.
18861 (accumulate_script_ranges): New function.
18862 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18863 re-written to handle new fontset structure.
18864 (Ffontset_font): Return a copy of element.
18865 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18866 docstring of font-encoding-alist.
18867
18868 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18869 (Fset_fotset_font): Fix arguments to 5.
18870
18871 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18872
18873 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18874 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18875 (highlight_trailing_whitespace): Adjust for the change of
18876 lookup_named_face.
18877
18878 * xfaces.c: Include charset.h.
18879 (load_face_font): Delete argument C. Change caller.
18880 (generate_ascii_font_name): Rename from generate_ascii_font.
18881 (font_name_registry): New function.
18882 (cache_face): Store ascii faces before non-ascii faces in buckets.
18883 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18884 Lookup only ascii faces.
18885 (lookup_non_ascii_face): New function.
18886 (lookup_named_face): Delete argument C. Change caller.
18887 (lookup_derived_face): Delete argument C. Change caller.
18888 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18889 a string, just call font_list with it.
18890 (choose_face_font): Delete arguments FACE and C. New arg
18891 FONT_SPEC. Change caller.
18892 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18893 Change caller.
18894 (realize_non_ascii_face): New function.
18895 (realize_x_face): Call load_face_font here.
18896 (realize_tty_face): Delete argument C. Change caller.
18897 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18898 get a face ID.
18899 (dump_realized_face): Don't print charset of FACE.
18900
18901 * xfns.c (x_set_font): Always call x_new_fontset and
18902 store_frame_parameter.
18903 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18904 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18905
18906 * xterm.h (x_get_font_repertory): Extern it.
18907
18908 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18909 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18910 it->multibyte_p is zero.
18911 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18912 (x_new_fontset): If FONTSETNAME doesn't match any existing
18913 fontsets, create a new one.
18914 (x_get_font_repertory): New function.
18915
189162008-02-01 Kenichi Handa <handa@m17n.org>
18917
18918 * coding.c (Ffind_coding_systems_region_internal): Detect an
18919 ASCII only string correctly.
18920
18921 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18922 version is 0.
18923
189242008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * lread.c: Include "coding.h".
18927 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18928 (load_each_byte, unread_char): New variables.
18929 (readchar_backlog): Delete.
18930 (readchar): Return a character unless load_each_byte is nonzero.
18931 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18932 cons. If unread_char is not -1, simply return it.
18933 (unreadchar): Handle the case that readcharfun is
18934 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18935 (read_multibyte): Delete.
18936 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18937 (read_emacs_mule_char): New functions.
18938 (Fload): Even if the file doesn't have the extension ".elc", if
18939 safe_to_load_p returns a positive version number, assume that the
18940 file contains bytecompiled code. If the version is less than 22,
18941 load the file while decoding multibyte sequences by emacs-mule.
18942 (readevalloop): Don't use readchar_backlog.
18943 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18944 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18945 (read_escape): Delete the arg BYTEREP.
18946 (read1): Set load_each_byte to 1 temporarily while handling
18947 #@NUMBER. Don't call read_multibyte.
18948 (read_vector): Call Fread with a cons. If readcharfun is
18949 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18950 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18951 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18952 and Qload_force_doc_strings.
18953
189542008-02-01 Kenichi Handa <handa@m17n.org>
18955
18956 * xdisp.c (face_before_or_after_it_pos): Call
18957 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18958
189592008-02-01 Kenichi Handa <handa@m17n.org>
18960
18961 * character.h (TRAILING_CODE_P): New macro.
18962 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18963 (string_char_with_unification): Fix prototype.
18964 (Vscript_alist): Extern it.
18965
18966 * character.c (Vscript_alist): New variable.
18967 (string_char_with_unification, str_as_unibyte)
18968 (string_escape_byte8): Add `const' to local variables.
18969 (syms_of_character): Declare script-alist as a Lisp variable.
18970
18971 * charset.h (Vcharset_ordered_list): Extern it.
18972 (charset_ordered_list_tick): Extern it.
18973 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18974 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18975 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18976 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18977 (Funify_charset): Adjust for the change of Funify_charset.
18978
18979 * charset.c (charset_ordered_list_tick): New variable.
18980 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18981 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18982 deunify intead of unify a charset.
18983 (string_xstring_p): Add `const' to local variables.
18984 (find_charsets_in_text): Add `const' to arguments and local variables.
18985 (encode_char): Adjust for the change of Funify_charset. Fix
18986 detecting of invalid code.
18987 (Fset_charset_priority): Increment charset_ordered_list_tick.
18988 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18989 and TO_CODE.
18990
18991 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18992 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18993 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18994 (decode_coding_ccl, consume_chars)
18995 (Ffind_coding_systems_region_internal)
18996 (Fcheck_coding_systems_region): Add `const' to local variables.
18997
18998 * print.c (print_object): Use octal form for printing the
18999 contents of a bool vector.
19000
190012008-02-01 Dave Love <fx@gnu.org>
19002
19003 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19004 <version == 20>: Refuse to load.
19005
190062008-02-01 Dave Love <fx@gnu.org>
19007
19008 * fns.c: Move coding.h.
19009 (Qcodeset, Qdays, Qmonths): New.
19010 (concat): Use CHARACTERP instead of INTEGERP.
19011 (Flocale_codeset): Delete.
19012 (Flanginfo): New function.
19013 (syms_of_fns): Change accordingly.
19014
19015 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19016
190172008-02-01 Dave Love <fx@gnu.org>
19018
19019 * casetab.c (init_casetab_once, init_casetab_once): Fix
19020 CHAR_TABLE_SET call.
19021
19022 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19023
19024 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19025
19026 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19027 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19028 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19029
19030 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19031
19032 * coding.c (ENCODE_DESIGNATION, decode_eol)
19033 (make_conversion_work_buffer, code_conversion_restore)
19034 (Fdefine_coding_system_internal): Convert Lisp types.
19035 (code_conversion_restore): Use EQ, not ==.
19036 (Fencode_coding_string): Fix code_convert_string call.
19037
19038 * coding.h (code_convert_region): Fix prototype.
19039
19040 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19041
19042 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19043 (Ffontset_info): Convert Lisp types.
19044
19045 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19046
19047 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19048
19049 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19050
19051 * chartab.c: Include "...h", not <...h> in some cases.
19052
19053 * callproc.c (Fcall_process): Remove unused variables.
19054
190552008-02-01 Dave Love <fx@gnu.org>
19056
19057 * coding.c (Fset_coding_system_priority): Allow null arg list.
19058
190592008-02-01 Dave Love <fx@gnu.org>
19060
19061 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19062 (Fself_insert_and_exit): Use CHARACTERP.
19063
19064 * callproc.c (Fcall_process): Remove unused vars.
19065
19066 * xterm.c (XTread_socket): Add extra dead keysyms.
19067
19068 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19069
19070 * dispextern.h: Remove prototypes for redraw_frame,
19071 redraw_garbaged_frames.
19072
19073 * cmds.c (Fself_insert_command): Use CHARACTERP.
19074
19075 * chartab.c (make_sub_char_table): Remove unused var.
19076 (Fset_char_table_default, Fmap_char_table): Doc fix.
19077
19078 * keymap.c (access_keymap): Remove generic char code.
19079 (push_key_description): Use CHARACTERP.
19080
190812008-02-01 Dave Love <fx@gnu.org>
19082
19083 * charset.c: Doc fixes.
19084 (Funify_charset): Extra checking.
19085
190862008-02-01 Dave Love <fx@gnu.org>
19087
19088 * lread.c: Remove some unused variables.
19089 (safe_to_load_p): If safe, return the magic number version byte.
19090 (Fload): Maybe use load-with-code-conversion.
19091
190922008-02-01 Kenichi Handa <handa@m17n.org>
19093
19094 * category.c (Fmodify_category_entry): Don't modify the contents
19095 of category_set for characters out of the range. Avoid
19096 unnecessary modification.
19097
19098 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19099 Vchar_unify_table. The default value of the table is now nil.
19100
19101 * character.c (syms_of_character): Setup Vchar_width_table for
19102 eight-bit-control and raw-byte chars.
19103
19104 * charset.h (enum define_charset_arg_index): Delete
19105 charset_arg_parents and add charset_arg_subset and
19106 charset_arg_superset.
19107 (enum charset_attr_index): Delete charset_parents and add
19108 charset_subset and charset_superset.
19109 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19110 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19111 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19112 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19113 (CHARSET_SUPERSET): New macros.
19114 (charset_work): Extern it.
19115 (ENCODE_CHAR): Use charset_work.
19116 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19117 (map_charset_chars): Extern it.
19118
19119 * charset.c (load_charset_map): Set the default value of encoder
19120 and deunifier char-tables to nil.
19121 (map_charset_chars): Change argument. Change callers. Use
19122 map_char_table_for_charset instead of map_char_table.
19123 (Fmap_charset_chars): New optional args from_code and to_code.
19124 (Fdefine_charset_internal): Adjust for the change of
19125 `define-charset' (:parents -> :subset or :superset).
19126 (charset_work): New variable.
19127 (encode_char, syms_of_charset): Adjust for the change of
19128 Fdefine_charset_internal.
19129 (Ffind_charset_string): Setup the vector `charsets' correctly.
19130
19131 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19132 the previous change.
19133 (char_table_ref_and_range): Adjust for the above change.
19134 (map_sub_char_table_for_charset): New function.
19135 (map_char_table_for_charset): New function.
19136
19137 * keymap.c (describe_vector): Handle a char-table directly here.
19138 (describe_char_table): Delete.
19139
19140 * lisp.h (map_charset_chars): Delete.
19141
191422008-02-01 Dave Love <fx@gnu.org>
19143
19144 * fns.c (count_combining): Comment out (unused).
19145 (Flocale_codeset): New.
19146 (syms_of_fns): Defsubr it.
19147
19148 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19149 (size_t): Remove.
19150
191512008-02-01 Dave Love <fx@gnu.org>
19152
19153 * Makefile.in (chartab.o): Depend on charset.h.
19154
191552008-02-01 Kenichi Handa <handa@m17n.org>
19156
19157 * character.c (syms_of_character): Set the default value of
19158 Vprintable_chars to Qnil.
19159
191602008-02-01 Dave Love <fx@gnu.org>
19161
19162 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19163
191642008-02-01 Kenichi Handa <handa@m17n.org>
19165
19166 * charset.c (load_charset_map): Handle the case that from < to
19167 correctly.
19168
19169 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19170 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19171 Pay attention to raw-8-bit chars.
19172
191732008-02-01 Kenichi Handa <handa@m17n.org>
19174
19175 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19176 It is not bytecompiled now.
19177
19178 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19179 (charset_jisx0208): New variables.
19180 (Fdefine_charset_internal): Setup them if appropriate.
19181 (init_charset_once): Initialize them to -1.
19182
19183 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19184 (charset_jisx0208): Extern them.
19185
19186 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19187 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19188 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19189 (setup_iso_safe_charsets): Fix arguments to Fassq.
19190 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19191 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19192 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19193 (encode_coding_iso_2022): Change the 1st arg to
19194 ENCODE_ISO_CHARACTER to a variable.
19195
191962008-02-01 Kenichi Handa <handa@m17n.org>
19197
19198 * charset.h (enum define_charset_arg_index): New enums
19199 charset_arg_min_code and charset_arg_max_code.
19200 (struct charset): New member char_index_offset.
19201
19202 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19203 Take charset->char_index_offset into account.
19204 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19205 args[charset_arg_max_code]. Setup charset.char_index_offset.
19206 (syms_of_charset): Fix args to Fdefine_charset_internal.
19207
192082008-02-01 Dave Love <fx@gnu.org>
19209
19210 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19211
192122008-02-01 Dave Love <fx@gnu.org>
19213
19214 * coding.c: Doc fixes.
19215 (Fcoding_system_aliases): Fix return value.
19216 (Qmac): Remove (duplicated) definition.
19217
192182008-02-01 Dave Love <fx@gnu.org>
19219
362654a6
JB
19220 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19221 New functions.
aac0c6e3
MR
19222
19223 * character.c (Fstring): Doc fix.
19224
19225 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19226
362654a6 19227 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19228 (font-encoding-alist): Doc fix.
19229
192302008-02-01 Dave Love <fx@gnu.org>
19231
19232 * term.c (costs_set): Declare static, non-initialized for pcc.
19233 (encode_terminal_code): Remove unused var.
19234
19235 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19236 for K&R.
19237
19238 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19239
19240 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19241 (suffixes): Move out of make_subsidiaries for K&R.
19242
19243 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19244
19245 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19246
192472008-02-01 Dave Love <fx@gnu.org>
19248
19249 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19250
19251 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19252
192532008-02-01 Yong Lu <lyongu@asia-infonet.com>
19254
19255 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19256
19257 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19258
192592008-02-01 Kenichi Handa <handa@m17n.org>
19260
19261 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19262 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19263
192642008-02-01 Kenichi Handa <handa@m17n.org>
19265
19266 * coding.c (decode_coding_charset): Adjust for the change of
19267 Fdefine_coding_system_internal.
19268 (Fdefine_coding_system_internal): For a coding system of
19269 `charset' type, store a list of charset IDs in
19270 `charset_attr_charset_valids' element of coding attributes.
19271
192722008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19275 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19276 caller. Handle 2-byte and 3-byte charsets correctly.
19277 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19278 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19279 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19280 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19281 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19282 sequence.
19283 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19284 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19285 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19286 and alt&rule composition.
19287 (decode_coding_iso_2022): Handle composition correctly.
19288 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19289
19290 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19291 re-defining a charset. If the charset has :emacs-mule-id, setup
19292 emacs_mule_bytes.
19293 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19294
192952008-02-01 Kenichi Handa <handa@m17n.org>
19296
19297 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19298 (encode_coding_big5, encode_coding_charset): If coding requires safe
19299 encoding, produce a character specified by
19300 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19301
193022008-02-01 Dave Love <fx@gnu.org>
19303
19304 * xterm.c (XSetIMValues): Declare.
19305
19306 * process.c: Conditionally include sys/wait.h, pty.h.
19307
19308 * print.c (print_object): Fix print format for 64-bit systems.
19309
19310 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19311
19312 * buffer.c (emacs_strerror): Declare.
19313
19314 * fontset.c (Fclear_face_cache): Declare.
19315 (accumulate_font_info): Comment-out (unused).
19316 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19317 variables.
19318
19319 * character.h (string_escape_byte8): Declare.
19320
19321 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19322 unused vars.
19323 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19324 (Fmap_charset_chars): Doc fix.
19325
19326 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19327 (Fset_coding_system_priority, Fset_coding_system_priority)
19328 (Fdefine_coding_system_internal): Doc fix.
19329
193302008-02-01 Dave Love <fx@gnu.org>
19331
19332 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19333
193342008-02-01 Kenichi Handa <handa@m17n.org>
19335
19336 * character.c (string_escape_byte8): Make multibyte string with
19337 correct size.
19338
19339 * charset.c (Fmake_char): Delete unnecessary code.
19340
193412008-02-01 Kenichi Handa <handa@m17n.org>
19342
19343 * xfns.c (x_encode_text): Allocate coding.destination here, and
19344 call encode_coding_object with dst_object Qnil.
19345
19346 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19347 multibyte form correctly.
19348
19349 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19350 against Vfont_encoding_alist.
19351
19352 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19353 handling of charset list.
19354 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19355 (decode_coding_object): Move point to coding->dst_pos before
19356 calling post-read-conversion function.
19357 (encode_coding_object): Give correct arguments to
19358 pre-write-conversion. Ignore the return value of
19359 pre-write-conversion function. Pay attention to the case that
19360 pre-write-conversion changes the current buffer. If dst_object is
19361 Qt, even if coding->src_bytes is zero, allocate at least one byte
19362 to coding->destination.
19363
19364 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19365
19366 * charset.c (Fmake_char): Make it more backward compatible.
19367 (Fmap_charset_chars): Fix docstring.
19368
193692008-02-01 Dave Love <fx@gnu.org>
19370
19371 * coding.c: Doc fixes.
19372 (Fdefine_coding_system_alias): Use names, not symbols, in
19373 coding-system-alist.
19374
193752008-02-01 Kenichi Handa <handa@m17n.org>
19376
19377 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19378 of calling free_realized_face.
19379
193802008-02-01 Yong Lu <lyongu@asia-infonet.com>
19381
19382 * charset.c (read_hex): Don't treat SPC as a comment starter.
19383 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19384 (Fdecode_char): Fix typo.
19385
193862008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * charset.h (struct charset): New member `code_space_mask'.
19389
19390 * coding.c (coding_set_source): Delete the local variable beg_byte.
19391 (encode_coding_charset, Fdefine_coding_system_internal):
19392 Delete the local variable charset.
19393 (Fdefine_coding_system_internal): Setup
19394 attrs[coding_attr_charset_valids] correctly.
19395
19396 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19397 member to check if CODE is valid or not.
19398 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19399 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19400 is within the range of charset->min_code and carset->max_code.
19401
194022008-02-01 Dave Love <fx@gnu.org>
19403
19404 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19405
19406 * dispextern.h (generate_ascii_font): Fix return type.
19407
19408 * xfaces.c (generate_ascii_font): Fix arg declaration.
19409
19410 * coding.c (coding_inherit_eol_type)
19411 (Fset_terminal_coding_system_internal)
19412 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19413
194142008-02-01 Kenichi Handa <handa@m17n.org>
19415
19416 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19417 multiple charsets correctly.
19418
194192008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * search.c (boyer_moore): Fix handling of multibyte character
19422 translation.
19423
19424 * xdisp.c (display_mode_element): When the variable `elt' is
19425 changed, update `this' and `lisp_string'.
19426
194272008-02-01 Kenichi Handa <handa@m17n.org>
19428
19429 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19430
19431 * callproc.c (Fcall_process): Be sure to give the current buffer
19432 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19433
19434 * charset.c (struct charset_map_entries): New struct.
19435 (load_charset_map): Rename from parse_charset_map. New args
19436 entries and n_entries. Change caller.
19437 (load_charset_map_from_file): Rename from load_charset_map.
19438 Change caller. New arg control_flag. Call load_charset_map at
19439 the tail.
19440 (load_charset_map_from_vector): New function.
19441 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19442 (encode_char): If the charset is compact, change a character index
19443 to a code point.
19444
19445 * coding.c (coding_alloc_by_making_gap): Check the case that the
19446 source and destination are the same correctly.
19447 (decode_coding_raw_text): Set coding->consumed_char and
19448 coding->consumed to 0.
19449 (produce_chars): If coding->chars_at_source is nonzero, update
19450 coding->consumed_char and coding->consumed before calling
19451 alloc_destination.
19452 (Fdefine_coding_system_alias): Register ALIAS in
19453 Vcoding_system_alist.
19454 (syms_of_coding): Define `no-conversion' coding system at the tail.
19455
19456 * fileio.c (Finsert_file_contents): Set coding_system instead of
19457 val. If the current buffer is multibyte, always call
19458 decode_coding_gap.
19459
19460 * xfaces.c (try_font_list): Give higher priority to fontset's
19461 family than face's family.
19462
194632008-02-01 Kenichi Handa <handa@m17n.org>
19464
19465 * callproc.c (Fcall_process): Be sure to give the current buffer
19466 to decode_coding_c_string.
19467
19468 * xfaces.c (try_font_list): Give a family specified in a fontset
19469 higher priority than a family specified in a face.
19470
194712008-02-01 Kenichi Handa <handa@m17n.org>
19472
19473 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19474 Fix arguments to insert_from_buffer.
19475
19476 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19477
194782008-02-01 Kenichi Handa <handa@m17n.org>
19479
19480 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19481 (decode_coding_gap): Set coding->dst_multibyte correctly.
19482
194832008-02-01 Kenichi Handa <handa@m17n.org>
19484
19485 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19486 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19487 (encode_coding_utf_16): Substitute coding->default_char for
19488 non-Unicode characters.
19489 (decode_coding): Don't call record_insert here.
19490 (setup_coding_system): Initialize `surrogate' of
19491 coding->spec.utf_16 to 0.
19492 (EMIT_ONE_BYTE): Fix for multibyte case.
19493
19494 * insdel.c (insert_from_gap): Call record_insert.
19495
194962008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * casefiddle.c (casify_region): Fix multibyte case.
19499
19500 * character.c (c_string_width): Add return type `int'.
19501 (char_string_with_unification): Delete arg ADVANCED.
19502
19503 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19504 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19505 (CHAR_STRING_ADVANCE): Make it do-while statement.
19506
19507 * chartab.c (sub_char_table_set_range): Optimize for the case
19508 DEPTH == 3. Add workaround code for a GCC optimization bug.
19509
19510 * charset.c (parse_charset_map): Remove an unused variable.
19511
19512 * coding.c: Delete unused variables.
19513
19514 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19515 earlier. If inserted is zero and the coding system doesn't
19516 require flushing, don't call decode_coding_gap.
19517
19518 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 The following changes are for using Unicode as an internal
19523 character model, and use UTF-8 format for buffer/string
19524 representation.
19525
19526 * .gdbinit (xchartable): Adjust for the change of char table structure.
19527 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19528
19529 * Makefile.in (obj): Add character.o and chartab.o.
19530 (lisp, shortlisp): Remove utf-8.elc.
19531 (*.o): For many files, change dependency on charset.h to
19532 character.h, and add dependency on character.h.
19533 (character.o, chartab.o): New targets.
19534
19535 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19536 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19537 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19538 of "charset.h".
19539
19540 * dired.c, filelock.c: Include "character.h".
19541
19542 * alloc.c: Include "character.h" instead of "charset.h".
19543 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19544 (syms_of_alloc): Remove defsubr for Smake_char_table.
19545
19546 * buffer.c: Include "character.h" instead of "charset.h", don't
19547 include "coding.h".
19548 (Fset_buffer_multibyte): Adjust for UTF-8.
19549
19550 * buffer.h: EXFUN Fbuffer_live_p.
19551
19552 * callproc.c: Include "character.h" instead of "charset.h".
19553 (Fcall_process): Big change for the new code-conversion APIs.
19554
19555 * casetab.c: Include "character.h" instead of "charset.h".
19556 (set_canon, set_identity, shuffle): Adjust for the new
19557 map_char_table spec.
19558 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19559 accessing the char table structure.
19560
19561 * chartab.c: New file that implements char table.
19562
19563 * category.c: Include "character.h".
19564 (copy_category_entry): New function.
19565 (copy_category_table): Call map_char_table and copy_category_entry.
19566 (Fmake_category_table): Initialize all top-level slots.
19567 (char_category_set): New function.
19568 (modify_lower_category_set): Delete.
19569 (Fmodify_category_entry): Call char_table_ref_and_range.
19570
19571 * category.h (CATEGORY_SET): Just call char_category_set.
19572
19573 * ccl.c: Include "character.h".
19574 (Qccl, Qcclp): New variables.
19575 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19576 it's less than 256.
19577 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19578 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19579 and DST type.
19580 (ccl_driver): Change types of argument, adjust code accordingly.
19581 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19582 ccl_driver.
19583 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19584
19585 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19586 New members src_multibyte, dst_multibyte, consumed, and produced.
19587 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19588 (CODING_SPEC_CCL_PROGRAM): New macro.
19589 (ccl_driver): Update prototype.
19590 (Qccl, Qcclp, Fccl_program_p): Extern them.
19591 (CHECK_CCL_PROGRAM): New macro.
19592
19593 * character.c, character.h, chartab.c: New files.
19594
19595 * charset.c: Mostly re-written. Move character and multibyte sequence
19596 handling codes to character.c.
19597
19598 * charset.h: Mostly re-written. Move character and multibyte sequence
19599 handling codes to character.h.
19600
19601 * coding.c, coding.h: Mostly re-written.
19602
19603 * composite.c: Include "character.h" instead of "charset.h".
19604 (CHAR_WIDTH): Move to character.h.
19605 (HASH_KEY, HASH_VALUE): Delete.
19606
19607 * composite.h (enum composition_method): Change order of enumeration
19608 symbols.
19609
19610 * data.c: Include "character.h" instead of "charset.h".
19611 (Faref): Call CHAR_TABLE_REF for a char table.
19612 (Faset): Call CHAR_TABLE_SET for a char table.
19613
19614 * dispextern.h (free_realized_face, check_face_attribytes)
19615 (generate_ascii_font): Extern them.
19616 (free_realized_multibyte_face): Delete extern.
19617
19618 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19619 table structure.
19620
19621 * editfns.c: Include "character.h" instead of "charset.h".
19622 (Fchar_to_string): Always call CHAR_STRING.
19623
19624 * emacs.c (main): Call init_charset_once, init_charset,
19625 syms_of_chartab, and syms_of_character.
19626
19627 * fileio.c: Include "character.h" instead of "charset.h".
19628 (Finsert_file_contents): Big change for the new code-conversion API.
19629 (choose_write_coding_system, Fwrite_region): Likewise.
19630 (build_annotations_2): Delete.
19631 (e_write): Big change for the new code-conversion API.
19632
19633 * fns.c: Include "character.h" instead of "charset.h".
19634 (copy_sub_char_table): Move to chartab.c.
19635 (Fcopy_sequence): Call copy_char_table for a char table.
19636 (concat): Delete codes calling count_multibyte.
19637 (string_char_to_byte, string_byte_to_char): Adjust for the new
19638 multibyte form.
19639 (internal_equal): Adjust for the change of char table structure.
19640 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19641 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19642 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19643 (char_table_translate, optimize_sub_char_table)
19644 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19645 chartab.c.
19646 (char_table_ref_and_index): Delete.
19647 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19648 (Fmd5): Call preferred_coding_system instead of accessing
19649 Vcoding_category_list. Adjust for the new code-conversion API.
19650 (syms_of_fns): Move defsubr for char table related functions to
19651 chartab.c.
19652
19653 * fontset.c: Mostly re-written.
19654
19655 * fontset.h (struct font_info): Change type of the member encoding_type.
19656 (enum FONT_SPEC_INDEX): New enum.
19657 (fontset_font_pattern, fs_load_font): Update prototype.
19658 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19659
19660 * indent.c: Include "character.h" instead of "charset.h".
19661 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19662
19663 * insdel.c: Include "character.h" instead of "charset.h".
19664 (copy_text): Don't refer to Vnonascii_translation_table.
19665 (insert_from_gap): New function.
19666
19667 * keyboard.c: Include "character.h" instead of "charset.h".
19668 (command_loop_1): Never call direct_output_forward_char before
19669 a non-ASCII character.
19670 (read_char): If Vkeyboard_translate_table is a char table, always
19671 translate a character.
19672
19673 * keymap.c: Include "character.h".
19674 (store_in_keymap): Handle the case that IDX is a cons.
19675 (Fdefine_key): Handle the case that KEY is a cons and the car part
19676 is also a cons (range).
19677 (push_key_description): Adjust for the new character code.
19678 (describe_vector): Call describe_char_table for a char table.
19679 (describe_char_table): New function.
19680
19681 * keymap.h (describe_char_table): Extern it.
19682
19683 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19684 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19685 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19686 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19687 Delete.
19688 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19689 structure.
19690 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19691 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19692 (CHARTAB_SIZE_BITS_3): New macros.
19693 (chartab_size): Extern it.
19694 (struct Lisp_Char_Table): Re-design.
19695 (struct Lisp_Sub_Char_Table): New structure.
19696 (HASH_KEY, HASH_VALUE): Move from fns.c.
19697 (CHARACTERBITS): Define as 22.
19698 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19699 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19700 (GC_SUB_CHAR_TABLE_P): New macro.
19701 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19702 (code_convert_string_norecord): Deleted extern.
19703 (init_character_once, syms_of_character, init_charset)
19704 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19705
19706 * lread.c: Include "character.h".
19707 (read_multibyte): New arg NBYTES.
19708 (read_escape): Change the meaning of returned *BYTEREP.
19709 (to_multibyte): Delete.
19710 (read1): Adjust the handling of char table and string.
19711
19712 * print.c: Include "character.h" instead of "charset.h".
19713 (print_string): Convert 8-bit raw bytes to octal form by
19714 string_escape_byte8.
19715 (print_object): Adjust for the new multibyte form. Print 8-bit
19716 raw bytes always in octal form. Handle sub char table correctly.
19717
19718 * process.c: Include "character.h" instead of "charset.h".
19719 (read_process_output, send_process): Adjust for the new
19720 code-conversion API.
19721
19722 * puresize.h (BASE_PURESIZE): Increase.
19723
19724 * regex.c: Include "character.h" instead of "charset.h".
19725 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19726 (regex_compile): Accept a range whose starting and ending
19727 character have different leading bytes.
19728 (analyse_first): Adjust for the above change.
19729
19730 * search.c: Include "character.h" instead of "charset.h".
19731 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19732 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19733
19734 * syntax.c: Include "character.h" instead of "charset.h".
19735 (syntax_parent_lookup): Delete.
19736 (Fmodify_syntax_entry): Accept a cons as CHAR.
19737 (skip_chars): Adjust for the new multibyte form.
19738 (init_syntax_once): Call char_table_set_range instead of directly
19739 accessing the structure of a char table.
19740
19741 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19742 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19743 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19744 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19745
19746 * term.c: Include "buffer.h" and "character.h".
19747 (encode_terminal_code, write_glyphs): Adjust for the new
19748 code-conversion API.
19749 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19750
19751 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19752
19753 * xdisp.c: Include "character.h".
19754 (get_next_display_element): Adjust for the new multibyte form.
19755 (disp_char_vector): Adjust for the new char table structure.
19756 (decode_mode_spec_coding): Adjust for the new structure of
19757 coding system.
19758 (decode_mode_spec): Adjust for the new code-conversion API.
19759
19760 * xfaces.c: Include "character.h" instead of "charset.h".
19761 (load_face_font): Adjust for the change of choose_face_font and
19762 FS_LOAD_FONT.
19763 (generate_ascii_font): New function.
19764 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19765 (set_font_frame_param): Adjust for the change of choose_face_font.
19766 (free_realized_face): Make it public.
19767 (free_realized_faces_for_fontset): Rename from
19768 free_realized_multibyte_face. Free also faces realized for ASCII.
19769 (choose_face_font): Change arguments. Adjust for the change of
19770 fontset_font_pattern and FS_LOAD_FONT.
19771
19772 * xfns.c: Include "character.h".
19773 (x_encode_text): Adjust for the new code-conversion API.
19774
19775 * xselect.c: Don't include "charset.h".
19776 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19777
19778 * xterm.c: Include "character.h".
19779 (x_encode_char): New argument CHARSET. Change caller.
19780 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19781 Call ENCODE_CHAR instead of SPLIT_CHAR.
19782 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19783 CHAR_WIDTH instead of CHARSET_WIDTH.
19784 (XTread_socket): Adjust for the new code-conversion API.
19785 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19786 (x_load_font): Adjust for the change of struct font.
19787
197882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19789
19790 * xfaces.c (face_at_buffer_position): Remove unused vars.
19791
197922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19793
19794 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19795 Fix overflow checking.
19796
197972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19798
19799 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19800 Cancel previous change.
19801
198022008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19803
19804 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19805 ccl->eight_bit_control. Fix check for buffer overflow.
19806 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19807 (ccl_driver): Initialize extra_bytes to 0.
19808
198092008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19810
19811 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19812 return it ORed with ctrl_modifier.
19813
198142008-01-29 Miles Bader <miles@gnu.org>
19815
19816 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19817
198182008-01-28 Jason Rumney <jasonr@gnu.org>
19819
19820 * w32.c (stat): Don't double check for networked drive.
19821
198222008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19823
19824 * window.c (run_window_configuration_change_hook): New function.
19825 Code extracted from set_window_buffer. Set the selected frame.
19826 (set_window_buffer): Use it.
19827 * window.h (run_window_configuration_change_hook): Declare.
19828 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19829
19830 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19831
198322008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19833
19834 * Makefile.in: Remove references to unused macros.
19835
198362008-01-26 Eli Zaretskii <eliz@gnu.org>
19837
19838 * w32.c (g_b_init_get_sid_sub_authority)
19839 (g_b_init_get_sid_sub_authority_count): New static variables.
19840 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19841 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19842 (init_user_info): Use them to retrieve uid and gid.
19843 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19844 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19845 st_uid and st_gid of the file.
19846
198472008-01-26 Jason Rumney <jasonr@gnu.org>
19848
19849 * w32.c (logon_network_drive): New function.
19850 (stat): Use it.
19851
198522008-01-26 Chong Yidong <cyd@stupidchicken.com>
19853
19854 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19855 invisible text covered with an ellipsis.
19856
198572008-01-25 Richard Stallman <rms@gnu.org>
19858
19859 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19860 jump back to beginning. Move some other initializations after that.
19861 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19862 New variables.
19863 (syms_of_xdisp): Init them.
19864
19865 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19866
19867 * buffer.c (reset_buffer_local_variables):
19868 Implement `permanent-local-hook'.
19869 (Qpermanent_local_hook): New variable.
19870 (syms_of_buffer): Init and staticpro it.
19871
198722008-01-25 Michael Albinus <michael.albinus@gmx.de>
19873
19874 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19875
198762008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19877
19878 * fns.c (Fclrhash): Return TABLE.
19879
198802008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19881
19882 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19883 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19884 is set even without positional changes.
19885 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19886
19887 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19888
198892008-01-23 Jason Rumney <jasonr@gnu.org>
19890
19891 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19892
19893 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19894 the unicode range available in MULE by locale-coding-system.
19895 Improve dbcs lead byte detection. Set event timestamp and modifiers
19896 earlier.
19897
198982008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19899
19900 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19901 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19902 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19903 when used on child processes.
19904
199052008-01-21 Michael Albinus <michael.albinus@gmx.de>
19906
19907 * dbusbind.c (Fdbus_method_return_internal): Rename from
19908 Fdbus_method_return.
19909 (Fdbus_unregister_object): Move to dbus.el.
19910 (Fdbus_call_method, Fdbus_method_return_internal)
19911 (Fdbus_send_signal): Improve debug messages.
19912
199132008-01-20 Martin Rudalics <rudalics@gmx.at>
19914
19915 * undo.c (undo_inhibit_record_point): New variable.
19916 (syms_of_undo): Initialize it.
19917 (record_point): Don't record point when undo_inhibit_record_point
19918 is set.
19919
199202008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19921
19922 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19923
19924 * xdisp.c (Qauto_hscroll_mode): New var.
19925 (syms_of_xdisp): Initialize it.
19926 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19927 window's buffer.
19928 (hscroll_windows): Don't check automatic_hscrolling_p here.
19929
19930 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19931 vscroll if we're setting window-buffer to the value it already has.
19932
199332008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19934
19935 * m/intel386.h: Remove references to XENIX.
19936
199372008-01-17 Andreas Schwab <schwab@suse.de>
19938
19939 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19940 instead of HAVE_X86_64_LIB64_DIR.
19941 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19942
199432008-01-17 Glenn Morris <rgm@gnu.org>
19944
19945 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19946 to HAVE_X86_64_LIB64_DIR.
19947
199482008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19949
19950 * s/irix3-3.h:
19951 * s/irix4-0.h:
19952 * s/386-ix.h:
19953 * s/domain.h:
19954 * s/hpux9-x11r4.h:
19955 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19956
19957 * sysdep.c: Remove code containing references to symbols defined
19958 by unsupported systems.
19959
199602008-01-16 Glenn Morris <rgm@gnu.org>
19961
19962 * coding.c (select-safe-coding-system-function): Doc fix.
19963
199642008-01-15 Glenn Morris <rgm@gnu.org>
19965
19966 * config.in: Revert 2008-01-13 change: this is a generated file.
19967
199682008-01-13 Tom Tromey <tromey@redhat.com>
19969
19970 * lisp.h: Fix typo.
19971
199722008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19973
19974 * m/sequent-ptx.h:
19975 * m/sequent.h:
19976 * s/ptx.h:
19977 * s/ptx4-2.h:
19978 * s/ptx4.h: Remove files for systems no longer supported.
19979
19980 * callproc.c (Fcall_process): Fix previous change.
19981
199822008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19983
19984 * unexsunos4.c: Remove file, system not supported anymore.
19985
19986 * m/mips.h:
19987 * m/intel386.h:
19988 * callproc.c:
19989 * config.in:
19990 * ecrt0.c:
19991 * emacs.c:
19992 * fileio.c:
19993 * frame.c:
19994 * getpagesize.h:
19995 * keyboard.c:
19996 * lread.c:
19997 * process.c:
19998 * puresize.h:
19999 * sysdep.c:
20000 * systty.h:
20001 * syswait.h:
20002 * unexec.c:
20003 * xdisp.c:
20004 * alloc.c: Remove code containing references to symbols defined by
20005 unsupported systems.
20006
200072008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20008
20009 * coding.c (detect_coding_mask): Fix previous change.
20010
200112008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20012
20013 * coding.c (detect_coding_iso2022): New arg
20014 latin_extra_code_state. Allow Latin extra codes only
20015 when *latin_extra_code_state is nonzero.
20016 (detect_coding_mask): If there is a NULL byte, detect the encoding
20017 as UTF-16 or binary. If Latin extra codes exist, detect the
20018 encoding as ISO-2022 only when there's no other proper encoding is
20019 found.
20020
200212008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20022
20023 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20024 #ifdef MAC_OS.
20025
200262008-01-08 Richard Stallman <rms@gnu.org>
20027
20028 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20029
200302008-01-06 Nick Roberts <nickrob@snap.net.nz>
20031
20032 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20033 menu bar in parentheses.
20034
200352008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20036
20037 * m/7300.h:
20038 * m/acorn.h:
20039 * m/alliant-2800.h:
20040 * m/alliant.h:
20041 * m/alliant1.h:
20042 * m/alliant4.h:
20043 * m/altos.h:
20044 * m/amdahl.h:
20045 * m/apollo.h:
20046 * m/att3b.h:
20047 * m/aviion-intel.h:
20048 * m/aviion.h:
20049 * m/celerity.h:
20050 * m/clipper.h:
20051 * m/cnvrgnt.h:
20052 * m/convex.h:
20053 * m/cydra5.h:
20054 * m/delta88k.h:
20055 * m/dpx2.h:
20056 * m/dual.h:
20057 * m/elxsi.h:
20058 * m/f301.h:
20059 * m/gould-np1.h:
20060 * m/gould.h:
20061 * m/i860.h:
20062 * m/ibmps2-aix.h:
20063 * m/ibmrt-aix.h:
20064 * m/ibmrt.h:
20065 * m/irist.h:
20066 * m/is386.h:
20067 * m/isi-ov.h:
20068 * m/mega68.h:
20069 * m/mg1.h:
20070 * m/news-r6.h:
20071 * m/news-risc.h:
20072 * m/news.h:
20073 * m/nh3000.h:
20074 * m/nh4000.h:
20075 * m/ns16000.h:
20076 * m/ns32000.h:
20077 * m/nu.h:
20078 * m/orion.h:
20079 * m/orion105.h:
20080 * m/paragon.h:
20081 * m/pfa50.h:
20082 * m/plexus.h:
20083 * m/pyramid.h:
20084 * m/pyrmips.h:
20085 * m/sh3el.h:
20086 * m/sps7.h:
20087 * m/sr2k.h:
20088 * m/stride.h:
20089 * m/sun1.h:
20090 * m/sun2.h:
20091 * m/sun3-68881.h:
20092 * m/sun3-fpa.h:
20093 * m/sun3-soft.h:
20094 * m/sun3.h:
20095 * m/sun386.h:
20096 * m/symmetry.h:
20097 * m/tad68k.h:
20098 * m/tahoe.h:
20099 * m/targon31.h:
20100 * m/tek4300.h:
20101 * m/tekxd88.h:
20102 * m/tower32.h:
20103 * m/tower32v3.h:
20104 * m/ustation.h:
20105 * m/wicat.h:
20106 * m/xps100.h:
20107 * s/cxux.h:
20108 * s/cxux7.h:
20109 * s/dgux.h:
20110 * s/dgux4.h:
20111 * s/dgux5-4-3.h:
20112 * s/dgux5-4r2.h:
20113 * s/esix.h:
20114 * s/esix5r4.h:
20115 * s/hiuxmpp.h:
20116 * s/hiuxwe2.h:
20117 * s/iris3-5.h:
20118 * s/iris3-6.h:
20119 * s/isc2-2.h:
20120 * s/isc3-0.h:
20121 * s/isc4-0.h:
20122 * s/isc4-1.h:
20123 * s/newsos5.h:
20124 * s/newsos6.h:
20125 * s/osf1.h:
20126 * s/osf5-0.h:
20127 * s/riscix1-1.h:
20128 * s/riscix12.h:
20129 * s/sco4.h:
20130 * s/sco5.h:
20131 * s/sunos4-0.h:
20132 * s/sunos4-1.h:
20133 * s/sunos413.h:
20134 * s/sunos4shr.h:
20135 * s/umax.h:
20136 * s/unipl5-2.h:
20137 * s/xenix.h:
20138 * cxux-crt0.s:
20139 * unexapollo.c:
20140 * unexconvex.c:
20141 * unexenix.c:
20142 * unexsni.c: Remove files for systems no longer supported.
20143
20144 * m/intel386.h: Remove references to unsupported systems.
20145
20146 * w32.c (get_emacs_configuration): Remove reference to i860.
20147
20148 * sysdep.c: Remove dead code.
20149
201502008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20151
20152 * s/rtu.h:
20153 * m/masscomp.h: Remove files. Platform is obsolete.
20154
201552008-01-04 Michael Albinus <michael.albinus@gmx.de>
20156
20157 * dbusbind.c (Fdbus_method_return): New function.
20158 (xd_read_message): Add the serial number to the event.
20159 (Fdbus_register_method): Activate the function.
20160
201612008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20162
20163 * keyboard.c (read_key_sequence): Fix typo.
20164
201652008-01-03 Michael Albinus <michael.albinus@gmx.de>
20166
20167 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20168 (xd_signature, xd_append_arg): Handle element type detection for
20169 empty arrays.
20170 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20171 SDATA () calls; this must be solved more general.
20172 (Fdbus_register_signal): Use SBYTES instead of strlen.
20173
201742008-01-03 Magnus Henoch <magnus@zemdatav>
20175
20176 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20177 unsigned int for byte values (necessary for big-endian platform).
20178 (Fdbus_call_method): Handle the case of no returned arguments.
20179
201802007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20181
20182 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20183
201842007-12-31 Magnus Henoch <mange@freemail.hu>
20185
20186 * dbusbind.c (xd_signature): Signature of variant is just "v".
20187
201882007-12-30 Michael Albinus <michael.albinus@gmx.de>
20189
20190 * dbusbind.c: Fix several errors and compiler warnings.
20191 Reported by Tom Tromey <tromey@redhat.com>.
20192 (XD_ERROR, XD_DEBUG_MESSAGE)
20193 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20194 (xd_append_arg): Part for basic D-Bus types rewritten.
20195 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20196 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20197 appropriate.
20198 (xd_read_message): Return Qnil. Don't signal an error; it is not
20199 useful during event reading.
20200 (Fdbus_register_signal): Signal an error if the check for
20201 FUNCTIONP fails.
20202 (Fdbus_register_method): New function. The implementation is not
20203 complete, the call of the function signals an error therefore.
20204 (Fdbus_unregister_object): New function, renamed from
20205 Fdbus_unregister_signal. The initial check signals an error, if
20206 the object is not well formed.
20207
202082007-12-30 Richard Stallman <rms@gnu.org>
20209
20210 * textprop.c (get_char_property_and_overlay):
20211 Signal error if POSITION is out of range in a buffer.
20212
202132007-12-29 Martin Rudalics <rudalics@gmx.at>
20214
20215 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20216 because the original parameters are in pure storage now.
20217
202182007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20219
20220 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20221
202222007-12-22 Eli Zaretskii <eliz@gnu.org>
20223
20224 * callint.c (syms_of_callint) <command-history>: Add reference to
20225 history-length in the doc string.
20226
202272007-12-17 Jason Rumney <jasonr@gnu.org>
20228
20229 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20230 before passing as wParam.
20231
202322007-12-22 Michael Albinus <michael.albinus@gmx.de>
20233
20234 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20235 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20236 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20237 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20238 as number.
20239 (Fdbus_call_method): Fix docstring.
20240
202412007-12-21 Michael Albinus <michael.albinus@gmx.de>
20242
20243 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20244 New macros.
20245 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20246 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20247 Simplify.
20248 (xd_signature): New function.
20249 (xd_append_arg): Compute also signatures. Major rewrite.
20250 (xd_retrieve_arg): Make debug messages friendly.
20251 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20252 Check for signatures of arguments.
20253
202542007-12-19 Michael Albinus <michael.albinus@gmx.de>
20255
20256 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20257 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20258 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20259 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20260 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20261 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20262 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20263 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20264 (xd_retrieve_value): Remove. Functionality included in ...
20265 (xd_append_arg): New function.
20266 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20267
202682007-12-16 Michael Albinus <michael.albinus@gmx.de>
20269
20270 * dbusbind.c (top): Include <stdio.h>.
20271 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20272 dbus_message_new_method_call and dbus_message_new_signal.
20273 (Fdbus_register_signal): Rename unique_name to uname.
20274 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20275 non-existing unique name. Fix typos in matching rule. Return an
20276 object which is useful in Fdbus_unregister_signal.
20277 (Fdbus_unregister_signal): Reimplementation, in order to remove
20278 only the corresponding entry.
20279 (Vdbus_registered_functions_table): Change the order of entries.
20280 Apply these changes in xd_read_message and Fdbus_register_signal.
20281
202822007-12-16 Andreas Schwab <schwab@suse.de>
20283
20284 * fileio.c (Finsert_file_contents): Fix overflow check to not
20285 depend on undefined integer overflow.
20286
202872007-12-14 Jason Rumney <jasonr@gnu.org>
20288
20289 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20290 for characters above 127.
20291
202922007-12-13 Jason Rumney <jasonr@gnu.org>
20293
20294 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20295 before dereferencing array.
20296 (lookup_vk_code): Remove zero comparison.
20297
202982007-12-14 Michael Albinus <michael.albinus@gmx.de>
20299
20300 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20301 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20302 Use `unsigned int' instead of `uint'.
20303 (xd_read_message, Fdbus_register_signal): Split expressions into
20304 multiple lines before operators "&&" and "||", according to the
20305 GNU Coding Standards.
20306
203072007-12-14 Eli Zaretskii <eliz@gnu.org>
20308
20309 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20310
203112007-12-12 Juri Linkov <juri@jurta.org>
20312
20313 * buffer.c (Frename_buffer): In interactive spec replace
20314 `read-buffer' with `read-string' that uses `buffer-name-history'
20315 as history, and the current buffer's name as default.
20316
203172007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20318
20319 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20320 manipulating the backtrace manually.
20321 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20322 (struct backtrace, backtrace_list): Remove.
20323 (command_loop_1): Remove dead var `no_direct'.
20324
20325 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20326 preserve non-built-in buffer-local variables.
20327 (Fkill_all_local_variables): Don't re-create&re-set permanent
20328 buffer-local variables.
20329
203302007-12-09 Juri Linkov <juri@jurta.org>
20331
20332 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20333 Lisp code that uses `read-buffer' with current buffer as default.
20334
203352007-12-08 Michael Albinus <michael.albinus@gmx.de>
20336
20337 * dbusbind.c (xd_read_message): Generate an event for every
20338 registered handler. There might be several handlers registered
20339 for the same signal.
20340 (Fdbus_register_signal): Don't overwrite a registration for the
20341 same signal. Add a new registration if handlers are different.
20342 (Vdbus_registered_functions_table): Rework doc string.
20343
203442007-12-07 Michael Albinus <michael.albinus@gmx.de>
20345
20346 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20347 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20348 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20349 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20350 Unify argument lists.
20351 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20352 arguments and hash table keys. Use unique name for service.
20353 (Fdbus_unregister_signal): Remove checks.
20354 (Vdbus_registered_functions_table): Fix doc string.
20355
203562007-12-05 Magnus Henoch <mange@freemail.hu>
20357
20358 * process.c (make_process): Initialize pty_flag to 0.
20359
203602007-12-05 Jason Rumney <jasonr@gnu.org>
20361
20362 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20363 specified XBMs.
20364
203652007-12-05 Richard Stallman <rms@gnu.org>
20366
20367 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20368
203692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20370
20371 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20372 New variable.
20373 (mac_try_close_socket) [MAC_OSX]: New function.
20374 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20375 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20376
20377 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20378 Use mac_try_close_socket.
20379
203802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20381
20382 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20383 reloc_base.
20384 (copy_dysymtab): Compute relocation base here.
20385 (rebase_reloc_address) [__ppc64__]: New function.
20386 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20387 changed.
20388
203892007-12-05 Jason Rumney <jasonr@gnu.org>
20390
20391 * w32proc.c (sys_spawnve): Quote args with wildcards.
20392
203932007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20394
20395 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20396 __objc_* sections.
20397 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20398
203992007-12-05 Michael Albinus <michael.albinus@gmx.de>
20400
20401 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20402 Move check for Vdbus_registered_functions_table to
20403 xd_read_queued_messages.
20404 (xd_read_queued_messages): Protect xd_read_message calls by
20405 internal_condition_case_1.
20406
204072007-12-04 Michael Albinus <michael.albinus@gmx.de>
20408
20409 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20410 Qdbus_system_bus and Qdbus_session_bus, respectively.
20411 (Vdbus_intern_symbols): Remove.
20412 (Vdbus_registered_functions_table): New hash table.
20413 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20414 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20415 Rewrite in order to manage registered functions by hash table
20416 Vdbus_registered_functions_table.
20417
204182007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20419
20420 * xterm.c: Update URL to Window Manager Specification in comment.
20421
204222007-12-02 Michael Albinus <michael.albinus@gmx.de>
20423
20424 * config.in (HAVE_DBUS): Add.
20425
20426 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20427 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20428 (obj): Add $(DBUS_OBJ).
20429 (LIBES): Add $(DBUS_LIBS).
20430 (dbusbind.o): New target.
20431
20432 * dbusbind.c: New file.
20433
20434 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20435
20436 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20437 (Qdbus_event): New Lisp symbol.
20438 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20439 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20440 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20441
20442 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20443
204442007-12-01 Richard Stallman <rms@gnu.org>
20445
20446 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20447
204482007-11-30 Jason Rumney <jasonr@gnu.org>
20449
20450 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20451 (w32con_reset_terminal_modes): Clear screen buffer.
20452 (w32_face_attributes): Don't use color indexes that are out of range.
20453 Only reverse the default colors.
20454
20455 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20456 WINDOWSNT.
20457
20458 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20459
204602007-11-29 Jason Rumney <jasonr@gnu.org>
20461
20462 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20463 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20464 if the terminal colors are initialized.
20465 (unspecified_fg, unspecified_bg): Remove unused declarations.
20466
204672007-11-29 Andreas Schwab <schwab@suse.de>
20468
20469 * keyboard.c (apply_modifiers): Fix typo.
20470
204712007-11-29 Richard Stallman <rms@gnu.org>
20472
20473 * keymap.c (Fcurrent_local_map): Doc fix.
20474
204752007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20476
20477 * s/gnu-kfreebsd.h: New file.
20478
204792007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20480
20481 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20482 Don't cast redundantly.
20483
20484 * keyboard.c (KEY_TO_CHAR): New macro.
20485 (parse_modifiers, apply_modifiers): Accept integer arguments.
20486 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20487 for chars and symbol keys.
20488 After doing such remapping, apply function-key-map again.
20489
204902007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20491
20492 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20493 compiled anymore.
20494
204952007-11-26 Andreas Schwab <schwab@suse.de>
20496
20497 * process.c (list_processes_1): Fix indentation level of the
20498 command column.
20499
205002007-11-23 Andreas Schwab <schwab@suse.de>
20501
20502 * editfns.c (Fformat): Handle %c specially since it requires the
20503 argument to be of type int.
20504
205052007-11-23 Markus Triska <markus.triska@gmx.at>
20506
20507 * emacs.c (main): Call init_editfns before init_process, since
20508 init_process sets Vprocess_connection_type depending on OS release.
20509
205102007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20511
20512 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20513 (find_symbol_value): Use do_symval_forwarding.
20514
20515 * data.c (set_internal): Set the value in the `cons-cell' (for
20516 Buffer_Local_values) not only for frame-local variables.
20517
205182007-11-22 Andreas Schwab <schwab@suse.de>
20519
20520 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20521 values to sprintf.
20522 * keymap.c (Fsingle_key_description): Likewise.
20523 * print.c (print_object): Likewise.
20524
205252007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20526
20527 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20528 file for image is nil.
20529
205302007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20531
20532 * term.c: Include stdarg.h.
20533 (fatal): Implement using varargs.
20534 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20535
205362007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20537
20538 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20539 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20540 Update call to buffer_slot_type_mismatch.
20541 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20542 (buffer_slot_type_mismatch): Update.
20543 * buffer.c (buffer_local_types): Remove.
20544 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20545 (defvar_per_buffer): Set the type in the buffer_objfwd.
20546
205472007-11-21 Jason Rumney <jasonr@gnu.org>
20548
20549 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20550 CreateFileMapping returns NULL on failure.
20551
205522007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20553
20554 * search.c (Fset_match_data): Remove the `evaporate' feature.
20555 (unwind_set_match_data): Don't use the `evaporate' feature.
20556
205572007-11-21 Jason Rumney <jasonr@gnu.org>
20558
20559 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20560
20561 * w32console.c (w32con_write_glyphs): Remove unused variables.
20562
205632007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20564
20565 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20566
20567 * s/darwin.h (MULTI_KBOARD): Remove.
20568
20569 * macfns.c (x_create_tip_frame, Fx_create_frame)
20570 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20571
205722007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20573
20574 * buffer.c (Fbuffer_local_value): Remove redundant test.
20575 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20576 than in `current-buffer' to match the comment.
20577 Do the swap using swap_in_global_binding.
20578
20579 * data.c (store_symval_forwarding, set_internal):
20580 * eval.c (specbind): Remove dead code.
20581
20582 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20583 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20584 Since we do not want to see internal Lisp_*fwd objects here.
20585
205862007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20587
20588 * sysdep.c (init_system_name): Use getaddrinfo if available.
20589
20590 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20591 (x_scroll_bar_note_movement): start, end, with, height in struct
20592 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20593
205942007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20595
20596 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20597
205982007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20599
20600 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20601 This undoes Richard's change of 14-Oct-2002.
20602
20603 * alloc.c (allocate_other_vector):
20604 * lisp.h (allocate_other_vector): Remove.
20605
20606 * window.c (struct save_window_data): Move non-lisp data to the end
20607 and make it `int' rather than Lisp_Object.
20608 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20609 Done wrap/unwrap integer values.
20610 (Fset_window_configuration, compare_window_configurations):
20611 Update use of fields to their new types.
20612
20613 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20614 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20615 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20616 (SET_SCROLL_BAR_X_WINDOW): Remove.
20617 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20618 Access the new x_window field directly.
20619 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20620 Don't wrap/unwrap integers into Lisp_Objects.
20621 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20622 (x_scroll_bar_report_motion):
20623 Don't wrap/unwrap integers into Lisp_Objects.
20624 (x_term_init): Use SDATA.
20625 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20626 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20627 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20628 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20629 * xfns.c (x_set_background_color):
20630 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20631 Access the new x_window field directly.
20632
20633 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20634 (allocate_pseudovector): Make non-static.
20635
20636 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20637 (allocate_pseudovector): Declare.
20638 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20639
206402007-11-15 Andreas Schwab <schwab@suse.de>
20641
20642 * editfns.c (Fformat): Correctly format EMACS_INT values.
20643 Also take precision into account when formatting an integer.
20644
20645 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20646
206472007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20648
20649 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20650 (syms_of_keyboard): Defsubr it.
20651
20652 * data.c (swap_in_global_binding): Fix longstanding bug where
20653 store_symval_forwarding was not called with the right second argument,
20654 thus causing objfwd-ing from being dropped.
20655
206562007-11-14 Juanma Barranquero <lekktu@gmail.com>
20657
20658 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20659 (Fx_display_pixel_height, Fx_display_planes)
20660 (Fx_display_color_cells, Fx_server_max_request_size)
20661 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20662 (Fx_display_visual_class, Fx_display_save_under):
20663 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20664 (Fx_display_pixel_height, Fx_display_planes)
20665 (Fx_display_color_cells, Fx_server_max_request_size)
20666 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20667 (Fx_display_mm_height, Fx_display_mm_width)
20668 (Fx_display_backing_store, Fx_display_visual_class)
20669 (Fw32_select_font, Fx_display_save_under):
20670 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20671 (Fx_display_pixel_height, Fx_display_planes)
20672 (Fx_display_color_cells, Fx_server_max_request_size)
20673 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20674 (Fx_display_save_under): Fix typos in docstrings.
20675
206762007-11-14 Juanma Barranquero <lekktu@gmail.com>
20677
20678 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20679 corresponding to deleted entries; they are an implementation detail.
20680 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20681 Remove variables.
20682 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20683 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20684 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20685 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20686 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20687 (Fw32_define_rgb_color, Fw32_load_color_file)
20688 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20689 Fix typos in docstrings.
20690 (Fx_server_version): Reflow docstring.
20691 (Fw32_shell_execute): Doc fixes.
20692
206932007-11-13 Juanma Barranquero <lekktu@gmail.com>
20694
20695 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20696 if w32_parse_hot_key returned nil.
20697
206982007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20699
20700 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20701
207022007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20703
aac0c6e3
MR
20704 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20705
20706 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20707
20708 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20709 Remove W32_SCROLL_BAR_CLICK_EVENT.
20710
20711 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20712 Add MULTIMEDIA_KEY_EVENT.
20713
20714 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20715 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20716 (make_lispy_event) [WINDOWSNT]: Use it to translate
20717 MULTIMEDIA_KEY_EVENT.
20718
20719 * w32term.h (WM_APPCOMMAND): Define if not already.
20720 (GET_APPCOMMAND_LPARAM): Likewise.
20721
20722 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20723 WM_APPCOMMAND.
20724
20725 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20726 (syms_of_w32fns): Export and initialize it.
20727 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20728
207292007-11-09 Chong Yidong <cyd@stupidchicken.com>
20730
20731 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20732 twice.
20733
20734 * xdisp.c (handle_face_prop): Fix last change.
20735
207362007-11-09 Richard Stallman <rms@gnu.org>
20737
20738 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20739 not just for after-strings and before-strings.
20740 Call face_for_overlay_string and pass the overlay to it.
20741 (handle_display_prop): Determine whether property came from an overlay.
20742 Pass OVERLAY arg to handle_single_display_spec.
20743 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20744 (load_overlay_strings): Fill in it->string_overlays.
20745 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20746
20747 * xfaces.c (face_for_overlay_string): Function renamed from
20748 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20749
20750 * dispextern.h (struct it): New elt string_overlays.
20751 New elt from_overlay, also in stack.
20752 Rearrange a few elements.
20753 (face_for_overlay_string): Decl renamed from
20754 face_at_buffer_position_no_overlays, and add argument.
20755
207562007-11-09 Richard Stallman <rms@gnu.org>
20757
20758 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20759 to get the base face for an overlay string.
20760
20761 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20762
20763 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20764
20765 * xdisp.c (handle_stop): Move some code out of loop.
20766
207672007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20768
20769 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20770 Fix conversion from Lisp object to ATSUFontID.
20771
207722007-11-09 Jason Rumney <jasonr@gnu.org>
20773
20774 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20775
207762007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20777
20778 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20779 Don't assume regions are aligned to page boundary.
20780 (print_load_command_name): Add LC_UUID if defined.
20781
207822007-11-09 Richard Stallman <rms@gnu.org>
20783
20784 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20785
207862007-11-07 Jason Rumney <jasonr@gnu.org>
20787
20788 * s/windows95.h: Remove.
20789
207902007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20791
20792 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20793 abort with a message on unhandled store_type values.
20794
207952007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20796
20797 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20798 Remove HAVE_X11R5 and HAVE_X11R4.
20799
208002007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20801
20802 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20803
208042007-11-01 Johan Bockgård <bojohan@gnu.org>
20805
20806 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20807 Don't set s->stippled_p here, since it has already been set by
20808 x_set_glyph_string_gc from x_draw_glyph_string.
20809
208102007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20811
20812 * sunfns.c: Remove file.
20813
20814 * m/sun386.h:
20815 * m/sun2.h:
20816 * m/sparc.h: Remove Sun windows code.
20817
208182007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20819
20820 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20821 (init_keyboard): Set current_kboard's window-system to nil.
20822 (tty_read_avail_input): Typo.
20823 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20824
208252007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20826
20827 * s/usg5-4.h:
20828 * s/usg5-3.h:
20829 * s/ptx.h:
20830 * m/is386.h:
20831 * m/ibmps2-aix.h:
20832 * Makefile.in: Remove all mentions of X10.
20833
20834 * dispnew.c (syms_of_display): Don't mention version 10.
20835
208362007-10-28 Juanma Barranquero <lekktu@gmail.com>
20837
20838 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20839 ($(BLD)/abbrev.$(O)): Remove.
20840
208412007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20842
20843 Rewrite abbrev.c in Elisp.
20844 * image.c (Qcount): Don't declare as extern.
20845 (syms_of_image): Initialize and staticpro `Qcount'.
20846 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20847 * emacs.c (main): Don't call syms_of_abbrev.
20848 * Makefile.in (obj): Remove abbrev.o.
20849 (abbrev.o): Remove.
20850 * abbrev.c: Remove.
20851
208522007-10-26 Martin Rudalics <rudalics@gmx.at>
20853
20854 * window.c (window_min_size_2): Don't count header-line.
20855
208562007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20857
20858 * frame.h (struct frame): Move all bit fields after the first bit
20859 field to take advantage of the available space. Group all the
20860 chars together to reduce wasted space due to padding.
20861
208622007-10-26 Juanma Barranquero <lekktu@gmail.com>
20863
20864 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20865
20866 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20867 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20868 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20869 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20870 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20871 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20872 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20873 (last_marked, mark_object_loop_halt): Make static.
20874
20875 * frame.c (syms_of_frame) <delete-frame-functions>:
20876 Fix typo in docstring.
20877
208782007-10-25 Juanma Barranquero <lekktu@gmail.com>
20879
20880 * w32.c (init_environment): Fix tiny memory leak.
20881 (w32_get_resource): Remove unused variable `ok'.
20882
208832007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20884
20885 Make `window-system' into a keyboard-local variable (rather than
20886 frame-local as done originally by multi-tty).
20887
20888 * keyboard.h (struct kboard): Add Vwindow_system.
20889 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20890 (mark_kboards): Mark Vwindow_system.
20891
20892 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20893 (init_display): Don't set the obsolete `window-system' frame-param.
20894
20895 * xterm.c (x_term_init):
20896 * w32term.c (w32_create_terminal):
20897 * term.c (init_tty): Set Vwindow_system.
20898 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20899 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20900
20901 * xfns.c (Fx_create_frame, x_create_tip_frame):
20902 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20903 * macfns.c (Fx_create_frame):
20904 Don't set the obsolete `window-system' frame-param.
20905
20906 * frame.h (Qwindow_system): Remove.
20907 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20908 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20909
209102007-10-24 Richard Stallman <rms@gnu.org>
20911
20912 * frame.c (x_figure_window_size): For fullscreen case,
20913 set USPosition | PPosition without clobbering rest of window_prompting.
20914
20915 * keyboard.c (Fcurrent_idle_time): Doc fix.
20916
20917 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20918
209192007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20920
20921 * process.c (unwind_request_sigio): Only define if __ultrix__.
20922
20923 * callproc.c (child_setup): Remove spurious *.
20924
20925 * lisp.h (Fget_text_property): Declare.
20926 (have_menus_p): Declare it here rather than in sys-dep header files.
20927 * macterm.h (have_menus_p):
20928 * msdos.h (have_menus_p):
20929 * xterm.h (have_menus_p): Remove.
20930
20931 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20932 (Fmake_variable_frame_local): Just check the variable's const-ness
20933 rather than checking nil or t.
20934
209352007-10-22 Jason Rumney <jasonr@gnu.org>
20936
20937 * w32fns.c: Include math.h.
20938 (w32_abort): Declaration moved to nt/config.nt.
20939
20940 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20941 (abort): Redefinition moved to nt/config.nt.
20942
20943 * m/windowsnt.h: Remove.
20944
209452007-10-22 Juanma Barranquero <lekktu@gmail.com>
20946
20947 * emacs.c (Fdump_emacs): Fix typo in message.
20948 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20949 <installation-directory>: Reflow docstring.
20950
209512007-10-22 Juri Linkov <juri@jurta.org>
20952
20953 * minibuf.c: Allow minibuffer default to be a list of default values.
20954 With empty input use the first element of this list as returned default.
20955 (string_to_object)
20956 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20957 (read_minibuf): If defalt is cons, set histstring to its car.
20958 (Fread_string): If default_value is cons, set val to its car.
20959 (Fread_buffer): If def is cons, use its car.
20960 (Fcompleting_read): If defalt is cons, set val to its car.
20961
209622007-10-21 Michael Albinus <michael.albinus@gmx.de>
20963
20964 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20965
209662007-10-20 Juanma Barranquero <lekktu@gmail.com>
20967
20968 * doc.c (Fdocumentation): Check for advice in all cases.
20969
209702007-10-19 Chong Yidong <cyd@stupidchicken.com>
20971
20972 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20973
209742007-10-19 Richard Stallman <rms@gnu.org>
20975
20976 * doc.c (Fdocumentation): Check for and handle an advised function.
20977
209782007-10-19 Juanma Barranquero <lekktu@gmail.com>
20979
20980 * process.c (Fset_process_filter): Doc fix.
20981
209822007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20983
20984 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20985 which caused key-translation-map to applied repeatedly (thus breaking
20986 double-mode).
20987
209882007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20989
20990 * xselect.c (x_own_selection, x_handle_selection_clear)
20991 (x_clear_frame_selections):
20992 * w32menu.c (list_of_panes, list_of_items):
20993 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20994 * textprop.c (validate_plist, interval_has_all_properties)
20995 (interval_has_some_properties, interval_has_some_properties_list)
20996 (add_properties, text_property_list):
20997 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20998 * minibuf.c (Fassoc_string):
20999 * macselect.c (x_own_selection, x_clear_frame_selections)
21000 (Fx_disown_selection_internal):
21001 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21002 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21003
210042007-10-17 Chong Yidong <cyd@stupidchicken.com>
21005
21006 * process.c: Link to libs for calling res_init() if available.
21007 (Fmake_network_process): Call res_init() before getaddrinfo or
21008 gethostbyname, if possible.
21009
210102007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21011
21012 * lread.c (read1): Set pvectype for char_tables.
21013
21014 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21015 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21016 Add type checks.
21017 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21018
21019 * alloc.c (free_misc): Use XMISCTYPE.
21020 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21021
210222007-10-17 Glenn Morris <rgm@gnu.org>
21023
21024 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21025 (syms_of_minibuf): Add Qcompletion_ignore_case.
21026 * dired.c (Qcompletion_ignore_case): Change to external.
21027 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21028 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21029 (Fread_file_name): Use it rather than intern'ing.
21030
21031 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21032 (Fread_coding_system): Ignore case of user input.
21033
210342007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21035
21036 * xdisp.c (handle_display_prop): Ignore display specs after
21037 replacing one when string text is being replaced.
21038 (handle_single_display_spec): Pretend as if characters with display
21039 property haven't been consumed only when buffer text is being replaced.
21040
210412007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21042
21043 * xfns.c (Fx_create_frame, Fx_display_list):
21044 * window.c (window_fixed_size_p, enlarge_window)
21045 (shrink_window_lowest_first):
21046 * macterm.c (init_font_name_table):
21047 * macfns.c (Fx_create_frame, Fx_display_list):
21048 * lread.c (close_load_descs):
21049 * keyboard.c (read_char_x_menu_prompt):
21050 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21051 * coding.c (code_convert_region_unwind): Test the type of an object
21052 rather than just !NILP before extracting data from it.
21053
21054 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21055
21056 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21057 (XMISCANY): New macro.
21058 (XMISCTYPE): Use it.
21059 (struct Lisp_Misc_Any): New type.
21060 (union Lisp_Misc): Use it.
21061 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21062 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21063 (find_symbol_value, set_internal, default_value, Fset_default)
21064 (Fmake_variable_buffer_local, Fmake_local_variable)
21065 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21066 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21067 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21068 * alloc.c (allocate_buffer): Set the size and tag.
21069 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21070 Use XMISCANY.
21071 (die): Follow the GNU convention for error messages.
21072 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21073 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21074 tag any more.
21075 (set_buffer_internal_1):
21076 * frame.c (store_frame_param):
21077 * eval.c (specbind):
21078 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21079
21080 * doc.c (Fsnarf_documentation): Simplify.
21081
210822007-10-14 Juanma Barranquero <lekktu@gmail.com>
21083
21084 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21085 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21086
210872007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21088
21089 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21090
210912007-10-14 Juanma Barranquero <lekktu@gmail.com>
21092
21093 * eval.c (do_autoload): Don't save autoloads.
21094
21095 * data.c (Ffset): Save autoload of the function being set.
21096
210972007-10-07 John Paul Wallington <jpw@pobox.com>
21098
21099 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21100 parameter before setting up faces.
21101
211022007-10-13 Eli Zaretskii <eliz@gnu.org>
21103
21104 * ccl.c (Fregister_code_conversion_map):
21105 * keyboard.c (append_tool_bar_item): Reformat last change.
21106
21107 * lisp.h (eabs): Rename from `abs'. All callers changed.
21108
211092007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21110
21111 * buffer.c (add_overlay_mod_hooklist):
21112 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21113 * fontset.c (make_fontset):
21114 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21115 (append_tool_bar_item):
21116 * macmenu.c (grow_menu_items):
21117 * w32menu.c (grow_menu_items):
21118 * xmenu.c (grow_menu_items): Use larger_vector.
21119
211202007-10-13 Eli Zaretskii <eliz@gnu.org>
21121
21122 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21123 selected frame'' on MSDOS).
21124
211252007-10-12 Martin Rudalics <rudalics@gmx.at>
21126
21127 * frame.c (Qexplicit_name): New variable.
21128 (x_report_frame_params): Report it in parameter alist.
21129 (syms_of_frame): Intern and staticpro it.
21130
211312007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21132
21133 * macfns.c (x_create_tip_frame): Set terminal for frame.
21134
211352007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21136
21137 * frame.c (Qenvironment): Remove.
21138 (syms_of_frame) <Qenvironment>: Don't initialize.
21139 (Fdelete_frame): Don't treat the `environment' param specially.
21140 * frame.h (Qenvironment): Don't declare.
21141 * callproc.c (set_initial_environment): Don't set unused frame param.
21142
21143 * frame.c (Fframe_with_environment): Remove.
21144 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21145
21146 * lisp.h (Fframe_with_environment): Don't declare.
21147
211482007-10-10 Juanma Barranquero <lekktu@gmail.com>
21149
21150 * indent.c (indent_tabs_mode, last_known_column)
21151 (last_known_column_modified): Make static.
21152 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21153
211542007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21155
21156 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21157
211582007-10-09 Jason Rumney <jasonr@gnu.org>
21159
21160 * w32term.c (x_set_window_size): Disable code that attempts to tell
21161 Lisp code about a size change before it actually happens.
21162
211632007-10-09 Richard Stallman <rms@gnu.org>
21164
21165 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21166 return HANDLED_RETURN.
21167
211682007-10-08 Martin Rudalics <rudalics@gmx.at>
21169
21170 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21171 when there's an unread command event.
21172
21173 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21174 window autoselection act appropriately when leaving selected frame.
21175 (syms_of_frame): Initialize focus_follows_mouse.
21176 * frame.h (focus_follows_mouse): Extern it.
21177 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21178 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21179 * msdos.c (dos_rawgetc): Likewise.
21180 * w32term.c (w32_read_socket): Likewise.
21181 * xterm.c (handle_one_xevent): Likewise.
21182 * xdisp.c (syms_of_xdisp): In doc-string of
21183 mouse-autoselect-window mention focus-follows-mouse.
21184
211852007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21186
21187 * macterm.c (mac_load_query_font): Fix missing return value.
21188 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21189 Add BLOCK_INPUT.
21190
211912007-10-08 Richard Stallman <rms@gnu.org>
21192
21193 * xdisp.c (get_window_cursor_type): Implement documented behavior
21194 for cursor-in-non-selected-windows = t.
21195
211962007-10-08 Jason Rumney <jasonr@gnu.org>
21197
21198 * w32.c (w32_get_resource): Always close registry keys.
21199
212002007-10-08 Jason Rumney <jasonr@gnu.org>
21201
21202 * makefile.w32-in (LIBS): Add COMCTL32.
21203
21204 * w32fns.c (globals_of_w32fns): Init common controls.
21205
212062007-10-08 Richard Stallman <rms@gnu.org>
21207
21208 * image.c (our_memory_buffer): Rename from omfib_buffer.
21209
212102007-10-08 Richard Stallman <rms@gnu.org>
21211
21212 * buffer.c (Foverlays_at): Doc fix.
21213
212142007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21215
21216 * fns.c (Fplist_put): Preserve uneven tail data.
21217
212182007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21219
21220 * termhooks.h (enum event_kind): Remove trailing comma.
21221
21222 * frame.h (enum): Remove trailing comma.
21223
212242007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21225
21226 * w32proc.c (delete_child): Don't terminate threads of zombies.
21227
212282007-10-08 Martin Rudalics <rudalics@gmx.at>
21229
21230 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21231
21232 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21233 last-repeatable-command.
21234 (init_kboard): Initialize Vlast_repeatable_command.
21235 (command_loop_1): Set it to real_this_command unless that was
21236 bound to an input event.
21237 (mark_kboards): Mark it.
21238
212392007-10-08 Richard Stallman <rms@gnu.org>
21240
21241 * eval.c (condition-case): Doc fix.
21242
212432007-10-08 Masatake YAMATO <jet@gyve.org>
21244
21245 * xfaces.c (tty_supports_face_attributes_p): Fix code
21246 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21247 was copied and not edited.
21248
212492007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21250
21251 Add new `input-decode-map' keymap and use it for terminal
21252 escape sequences.
21253 * keyboard.h (struct kboard): Add Vinput_decode_map.
21254 Remove Vlocal_key_translation_map.
21255 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21256 (init_kboard): Init input-decode-map.
21257 Replace local-key-translation-map back with key-translation-map.
21258 (syms_of_keyboard): Declare input-decode-map.
21259 Remove local-key-translation-map. Update docstrings.
21260 (mark_kboards): Mark Vinput_decode_map.
21261 Don't mark Vlocal_key_translation_map.
21262 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21263 Replace local-key-translation-map back with key-translation-map.
21264 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21265 Bind in input-decode-map rather than function-key-map.
21266
21267 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21268 This was made redundant by the previous introduction of XSETPVECTYPE.
21269
212702007-10-09 Richard Stallman <rms@gnu.org>
21271
21272 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21273
212742007-09-29 Richard Stallman <rms@gnu.org>
21275
21276 * eval.c (internal_condition_case_2, internal_condition_case_1)
21277 (internal_condition_case): Reenable abort if x_catching_errors ()
21278 to see if that really happens and why.
21279
212802007-10-06 Andreas Schwab <schwab@suse.de>
21281
21282 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21283
212842007-10-04 Juanma Barranquero <lekktu@gmail.com>
21285
21286 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21287
212882007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21289
21290 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21291
212922007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21293
21294 * window.h (struct window):
21295 * window.c (struct save_window_data, struct saved_window):
21296 * termhooks.h (struct terminal):
21297 * process.h (struct Lisp_Process):
21298 * frame.h (struct frame):
21299 * buffer.h (struct buffer):
21300 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21301 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21302 The size field of (pseudo)vectors is now unsigned.
21303 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21304
21305 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21306 Turn `count' into an integer.
21307
21308 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21309 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21310 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21311 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21312 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21313
21314 * alloc.c (allocate_pseudovector): New fun.
21315 (ALLOCATE_PSEUDOVECTOR): New macro.
21316 (allocate_window, allocate_terminal, allocate_frame)
21317 (allocate_process): Use it.
21318 (mark_vectorlike): New function.
21319 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21320 (mark_terminals): Use it.
21321 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21322 (Fmake_byte_code): Use XSETPVECTYPE.
21323
21324 * frame.c (Fframe_parameters): Minor simplification.
21325
21326 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21327
21328 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21329
21330 * buffer.c (Fget_buffer_create, init_buffer_once):
21331 * lread.c (defsubr):
21332 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21333
21334 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21335 defined differently in the m/*.h files.
21336 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21337 (XSETPVECTYPE): New macro.
21338 (XSETPSEUDOVECTOR): Use it.
21339
21340 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21341 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21342
21343 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21344 * lread.c (defvar_per_buffer):
21345 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21346
21347 * window.c (candidate_window_p): Only consider as visible frames that
21348 are on the same terminal.
21349
21350 * m/ibms390x.h (MARKBIT): Remove unused macro.
21351
213522007-10-01 Juanma Barranquero <lekktu@gmail.com>
21353
21354 * lread.c (Fload): Fix typo in docstring.
21355
213562007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21357
21358 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21359 of a non-zero value can't yield zero.
21360
213612007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21362
21363 * term.c (term_clear_mouse_face, term_mouse_highlight)
21364 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21365
21366 * print.c (safe_debug_print): Use XHASH.
21367
21368 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21369 Lisp elements such as tags.
21370 (XHASH): New macro.
21371 (EQ): Use it.
21372 (SREF, SSET, STRING_COPYIN): Use SDATA.
21373 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21374
21375 * alloc.c (mark_terminal): Remove left-over declaration.
21376 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21377 (allocate_vectorlike): Remove type argument. Adjust callers.
21378 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21379 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21380
21381 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21382 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21383 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21384 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21385 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21386 Use them.
21387
21388 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21389 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21390 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21391
213922007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21393
21394 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21395 loaded by default.
21396
213972007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21398
21399 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21400 on this tty.
21401 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21402
21403 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21404 Update all users.
21405 (handle_one_term_event): Use Gpm_DrawPointer.
21406 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21407 Signal errors instead of returning nil. Always return nil.
21408 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21409 Make it a noop if gpm-mouse was not activated.
21410 (syms_of_term): Update names.
21411
214122007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21413
21414 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21415 (init_sys_modes): Check that gpm_tty is the current tty.
21416
21417 * alloc.c (allocate_terminal): Set the vector size to only count the
21418 lisp fields. Initialize those to nil.
21419 (mark_object): Don't treat terminals specially.
21420 (mark_terminal): Remove.
21421 (mark_terminals): Use mark_object instead.
21422
21423 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21424 the GC to the beginning.
21425
21426 * indent.h:
21427 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21428
21429 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21430
214312007-09-25 Jason Rumney <jasonr@gnu.org>
21432
21433 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21434
21435 * w32console.c (create_w32cons_output): Remove.
21436
21437 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21438
21439 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21440 (reset_sys_modes): Use reset_terminal_modes_hook.
21441
214422007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21443
21444 * eval.c (do_autoload): Don't output any message.
21445
214462007-09-24 Juri Linkov <juri@jurta.org>
21447
21448 * emacs.c (standard_args): Change priority of "--no-splash"
21449 from 40 to 3. Add "--no-desktop" with the same priority.
21450
214512007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21452
21453 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21454 and optimize the case where they are all 1.
21455
214562007-09-23 Johannes Weiner <hannes@saeurebad.de>
21457
21458 * lisp.h (abs): Define if not defined.
21459 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21460 Don't define `abs', since it's defined in lisp.h.
21461
214622007-09-22 Eli Zaretskii <eliz@gnu.org>
21463
21464 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21465 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21466 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21467 (init_tty): Use DEV_TTY instead of "/dev/tty".
21468 [WINDOWSNT]: No need to protect from NAME arg being null.
21469
214702007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21471
21472 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21473 up the tty state.
21474
214752007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21476
21477 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21478 (gpm_tty): Change its type.
21479 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21480 (gpm_tty): Change its type and initialize it.
21481 (Fterm_open_connection): Check the frame is indeed a tty.
21482 Use the new gpm_tty.
21483 (Fterm_close_connection): Use the new gpm_tty.
21484 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21485 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21486
214872007-09-21 Juanma Barranquero <lekktu@gmail.com>
21488
21489 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21490 underline_color, to draw strike-through.
21491
214922007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21493
21494 * lisp.h (allocate_terminal): Declare.
21495
21496 * window.c (candidate_window_p): Consider frames that are being placed
21497 by the user as somewhere between visible and iconified.
21498 (window_loop): Prefer windows on the current frame.
21499 (Fselect_window): Move the use of select-frame to the beginning so we
21500 can just delegate all the work (it'll call us back anyway).
21501
21502 * frame.c (Qdisplay_environment_variable):
21503 * frame.h (Qdisplay_environment_variable): Delete.
21504
21505 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21506 of the first arg, since that value may be a union.
21507
21508 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21509 parameter rather than Qdisplay_environment_variable. If all else
21510 fails, look for DISPLAY in initial-environment.
21511
215122007-09-21 Glenn Morris <rgm@gnu.org>
21513
21514 * Makefile.in (emacstool): Remove target.
21515 (lisp, shortlisp): Remove termdev.elc.
21516
215172007-09-21 Markus Triska <markus.triska@gmx.at>
21518
21519 * xterm.c (x_delete_display): Compile session management conditionally.
21520
215212007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21522
21523 * callproc.c (getenv_internal_1): New function.
21524 (getenv_internal): Use it.
21525 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21526
21527 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21528 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21529 (Fset_terminal_parameter): Work with dead terminals as well.
21530 (Fmodify_terminal_parameters): Remove.
21531
21532 * terminal.c (get_terminal): Handle terminals.
21533 Make sure the terminal returned is live.
21534 (create_terminal): Use allocate_terminal.
21535 (mark_terminals): Move to alloc.c.
21536 (delete_terminal): Use terminal->name as liveness status.
21537 NULL out fields after freeing their contents.
21538 Don't deallocate the object.
21539 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21540 rather than an int.
21541 (Fterminal_live_p): Accept non-integer arguments.
21542 (Fterminal_list): Return terminal objects rather than an ints.
21543
21544 * alloc.c (enum mem_type): New member for `terminal' objects.
21545 (allocate_terminal): New function.
21546 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21547 Handle terminals.
21548 (mark_terminal): New fun.
21549 (mark_terminals): Move from terminal.c.
21550
21551 * term.c (get_tty_terminal): Don't treat output_initial specially.
21552 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21553 (delete_tty): Use terminal->name as liveness status.
21554
21555 * termhooks.h (struct terminal): Make it into a pseudovector.
21556 Remove `deleted' replaced by checking `name's nullness.
21557
21558 * print.c (print_object): Handle terminals.
21559
21560 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21561 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21562
21563 * frame.c (make_terminal_frame):
21564 * keyboard.c (tty_read_avail_input):
21565 * w32term.c (x_delete_terminal):
21566 * xfns.c (Fx_create_frame, x_create_tip_frame):
21567 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21568
215692007-09-20 Glenn Morris <rgm@gnu.org>
21570
21571 * process.c (Fmake_network_process): Doc fix.
21572
215732007-09-19 Jason Rumney <jasonr@gnu.org>
21574
21575 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21576
215772007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21578
21579 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21580 Fix a C warning regarding variable constness.
21581
21582 * xterm.c (handle_one_xevent): Fix a C warning.
21583
215842007-09-18 Jason Rumney <jasonr@gnu.org>
21585
21586 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21587
215882007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21589
21590 * gtkutil.c (gdpy_def): New variable.
21591 (xg_initialize): Initialize gdpy_def.
21592 (xg_display_close): If no other display exists, set gdpy_def to a
21593 new connection.
21594
215952007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21596
21597 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21598 when we have no file name for the icon.
21599 (xg_tool_bar_expose_callback): Remove.
21600 (xg_create_tool_bar): Don't connect expose signal to
21601 xg_tool_bar_expose_callback.
21602 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21603
216042007-09-16 Andreas Schwab <schwab@suse.de>
21605
21606 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21607 values instead of zapping them.
21608
216092007-09-14 Glenn Morris <rgm@gnu.org>
21610
21611 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21612 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21613 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21614 scope and rename to omfib_buffer for clarity.
21615 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21616
216172007-09-14 Kenichi Handa <handa@m17n.org>
21618
21619 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21620
216212007-09-13 Jason Rumney <jasonr@gnu.org>
21622
21623 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21624
21625 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21626
21627 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21628 (mac_term_init): Call here instead, passing rif.
21629
216302007-09-13 Glenn Morris <rgm@gnu.org>
21631
21632 * s/hpux.h: No longer define `static' as nothing.
21633
216342007-09-13 Johan Bockgård <bojohan@gnu.org>
21635
21636 * callint.c (Fcall_interactively): Remove unused var `fun'.
21637
216382007-09-12 Romain Francoise <romain@orebokech.com>
21639
21640 * window.c (prefer_window_split_horizontally, display_buffer):
21641 Revert 2007-09-08 change.
21642
216432007-09-12 Glenn Morris <rgm@gnu.org>
21644
21645 * alloca.c: Remove file.
21646 * Makefile.in (alloca): Do not undef.
21647 (allocaobj, alloca.o): Remove.
21648 (otherobj): Remove allocaobj.
21649 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21650 * regex.c (C_ALLOCA): Remove all references and code that was only
21651 used when this was defined.
21652 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21653 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21654 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21655
21656 * Makefile.in (SOURCES, unlock, relock): Delete.
21657
21658 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21659 (menu_grab_callback): All uses changed.
21660
21661 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21662 (x_reply_selection_request): All uses changed.
21663
216642007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21665
21666 * lread.c (load_warn_old_style_backquotes): Change message to look
21667 better when it appears in the middle of byte-compiler messages.
21668
216692007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21670
21671 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21672
21673 * xterm.c (x_create_terminal): Add comment.
21674
21675 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21676
216772007-09-10 Richard Stallman <rms@gnu.org>
21678
21679 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21680
216812007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21682
21683 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21684 (DEFUN): Document `intspec', use it instead of `prompt'.
21685
21686 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21687
21688 * data.c (Finteractive_form): If the interactive specification starts
21689 with a `(', use it as a Lisp form.
21690
21691 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21692 name and file modes.
21693
21694 * callint.c (Fcall_interactively): Comment fixes.
21695
216962007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21697
21698 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21699 and compiled functions.
21700
217012007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21702
21703 * window.c (prefer_window_split_horizontally): New variable.
21704 (display_buffer): Consider splitting window horizontally depending
21705 on prefer_window_split_horizontally.
21706
217072007-09-08 Eli Zaretskii <eliz@gnu.org>
21708
21709 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21710
217112007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21712
21713 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21714
21715 * frame.c (x_set_frame_parameters): Check number is positive before
21716 using XFASTINT.
21717
21718 * window.c (freeze_window_start): Don't presume selected_window holds
21719 a window object.
21720 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21721
217222007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21723
21724 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21725
217262007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21727
21728 * window.c (Vsplit_window_preferred_function): New var.
21729 (Fdisplay_buffer): Use it.
21730 (syms_of_window): Export, and initialize it.
21731
217322007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21733
21734 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21735
217362007-09-06 Glenn Morris <rgm@gnu.org>
21737
21738 * gtkutil.c (menu_grab_callback) <cnt>:
21739 * xselect.c (x_reply_selection_request) <cnt>: Move static
21740 variable to file scope.
21741
217422007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21743
21744 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21745 consistent values of selected_frame and selected_window.
21746
217472007-09-04 Jason Rumney <jasonr@gnu.org>
21748
21749 * w32console.c (initialize_w32_display): Zero unused hooks.
21750
217512007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21752
21753 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21754 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21755
217562007-09-04 Jason Rumney <jasonr@gnu.org>
21757
21758 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21759 in w32console.c. Set up input. Remove XXX comments that have been
21760 confirmed as correct.
21761
21762 * s/ms-w32.h (MULTI_KBOARD): Define.
21763
21764 * w32console.c (one_and_only_w32cons): Remove.
21765 (initialize_w32_display): Take terminal argument.
21766
21767 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21768 initialize_w32_display.
21769 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21770
21771 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21772
21773 * keyboard.c (discard_mouse_events): Discard it.
21774 (make_lispy_event): Translate it to a lisp event.
21775 (lispy_wheel_names): Add wheel-left and right events.
21776 (syms_of_keyboard): Enlarge wheel_syms.
21777
21778 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21779 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21780
21781 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21782
21783 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21784 from WM_MOUSEHWHEEL.
21785 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21786
21787 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21788 terminal.
21789
21790 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21791 keyboard for the terminal.
21792
217932007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21794
21795 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21796 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21797 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21798 and resume-tty-function to resume-tty-hook.
21799 (Fsuspend_tty, Fresume_tty): Use new names.
21800
218012007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21802
21803 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21804 if it starts with "n:".
21805
218062007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21807
21808 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21809
218102007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21811
21812 * frame.h:
21813 * frame.c (Qterm_environment_variable): Remove.
21814 (syms_of_frame): Don't init and staticpro it.
21815
21816 * callproc.c (getenv_internal): Remove special case for $TERM.
21817
21818 * callproc.c (Vinitial_environment): New variable.
21819 (set_initial_environment): Initialize it.
21820 (syms_of_callproc): Declare it.
21821 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21822 TERM under which a process runs is never related to the TERM in which
21823 Emacs is running.
21824
218252007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21826
21827 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21828 * s/darwin.h: ... do it here.
21829
218302007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21831
21832 * lisp.h (set_initial_environment): Rename from set_global_environment.
21833
21834 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21835 removed by mistake on the multi-tty branch.
21836
21837 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21838 (Fmodify_frame_parameters): Return a value.
21839
21840 * image.c (png_load): Comment-out var only used in commented-out code.
21841
21842 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21843 before passing it to mark_object.
21844
21845 * xfaces.c (internal_resolve_face_name): Return a value.
21846 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21847
21848 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21849 (x_icon): Comment-out var only used in commented-out code.
21850
218512007-08-29 Romain Francoise <romain@orebokech.com>
21852
21853 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21854 QUIT hasn't been provided.
21855
218562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21857
21858 * callproc.c (child_setup, getenv_internal): Use the
21859 display-environment-variable and term-environment-variable frame params.
21860 (set_initial_environment): Initialise Vprocess_environment.
21861
21862 * config.in: Disable multi-keyboard support on a mac.
21863
21864 * frame.c (Qterm_environment_variable)
21865 (Qdisplay_environment_variable): New variables.
21866 (syms_of_frame): Intern and staticpro them.
21867 (Fmake_terminal_frame): Disable output method test.
21868
21869 * frame.h: Declare them here.
21870
21871 * macfns.c (x_set_mouse_color): Get rif from the frame.
21872 (x_set_tool_bar_lines): Don't use updating_frame.
21873 (mac_window): Add 2 new parameters for consistency with other systems.
21874 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21875 frame parameters following what is done in X11 and w32. Don't use
21876 FRAME_MAC_DISPLAY_INFO.
21877 (Fx_open_connection, start_hourglass): Remove window-system check.
21878 (x_create_tip_frame): Get the keyboard from the terminal.
21879
21880 * macmenu.c: Reorder includes.
21881 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21882
21883 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21884 terminal parameter.
21885 (x_clear_frame): Add a frame parameter.
21886 (note_mouse_movement): Get rif from the frame.
21887 (mac_term_init): Initialize the terminal.
21888 (mac_initialize): Make static and move terminal initialization ...
21889 (mac_create_terminal): ... to this new function.
21890
21891 * macterm.h (struct mac_display_info): Add terminal.
21892 (mac_initialize): Delete declaration.
21893
21894 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21895
21896 * sysdep.c: Comment out text after #endif.
21897
21898 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21899 is defined. Better initialize ttys in windows. Use terminal
21900 specific mouse_position_hook.
21901
21902 * termhooks.h (union display_info): Add mac_display_info.
21903
21904 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21905 Set the default minibuffer frame, window_system and the rest of the
21906 frame parameters following what is done in X11.
21907
21908 * w32term.c (w32_initialize): Make static.
21909
21910 * xselect.c (x_handle_selection_clear): Only access
21911 terminal->kboard when MULTI_KBOARD is defined.
21912
21913 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21914 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21915
219162007-08-29 Jason Rumney <jasonr@gnu.org>
21917
21918 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21919 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21920
21921 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21922 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21923
21924 * keyboard.c (restore_kboard_configuration): Only define when
21925 MULTI_KBOARD defined.
21926
21927 * makefile.w32-in: Update dependancies from Makefile.in.
21928 (OBJ1): Add terminal.$(O)
21929
21930 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21931 Don't define function body.
21932 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21933
21934 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21935
21936 * w32.c (request_sigio, unrequest_sigio): Remove.
21937
21938 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21939 (w32con_clear_frame, w32con_clear_end_of_line)
21940 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21941 (w32con_delete_glyphs, w32con_set_terminal_window)
21942 (scroll_line, w32_sys_ring_bell): Add frame arg.
21943 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21944 Add terminal arg.
21945 (PICK_FRAME): Remove.
21946 (w32con_write_glyphs): Use frame specific terminal coding.
21947 (one_and_only_w32cons): New global variable.
21948 (initialize_w32_display): Use it for storing hooks.
21949 (create_w32cons_output): New function.
21950
21951 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21952 arg a frame.
21953
21954 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21955 Set window_system.
21956 (x_set_tool_bar_lines): Don't use updating_frame.
21957 (Fx_create_frame): Set terminal and ref count.
21958 (Fx_open_connection): Remove window-system check.
21959
21960 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21961
21962 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21963 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21964 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21965 Add frame arg.
21966 (x_delete_terminal, w32_create_terminal): New functions.
21967 (w32_term_init): Create a terminal.
21968 (w32_initialize): Move terminal specific initialization to
21969 w32_create_terminal.
21970
21971 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21972 (w32_clear_rect, w32_clear_area): Use background from frame.
21973 (w32_display_info): Add terminal.
21974 (w32_sys_ring_bell, x_delete_display): Declare here.
21975
21976 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21977
21978 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21979
219802007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21981
21982 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21983 Fix get_named_tty calls for the controlling tty.
21984
219852007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21986
194d44e7 21987 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21988
219892007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21990
21991 * term.c (tty_insert_glyphs): Add missing first parameter.
21992
219932007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21994
21995 * buffer.c (Fbuffer_list, Fbury_buffer):
21996 Take frame->buried_buffer_list into account.
21997
21998 * cm.c (current_tty): New variable, for cmputc().
21999 (cmputc): Use it.
22000 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22001 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22002 (cmgoto): Add tty parameter. Pass it on to calccost().
22003 Use emacs_tputs() instead of tputs().
22004
22005 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22006 tputs().
22007 (current_tty): New variable, for cmputc().
22008 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22009
22010 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22011 (internal_condition_case, internal_condition_case_1)
22012 (internal_condition_case_2): Don't abort when x_catching_errors.
22013
22014 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22015 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22016 prevent crashes caused by bogus longjmps in read_char.
22017
22018 * keymap.h (Fset_keymap_parent): Add EXFUN.
22019
22020 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22021 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22022 Remove redundant definition.
22023
22024 * macfns.c (x_set_mouse_color, x_make_gc):
22025 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22026
22027 * w32term.c (x_free_frame_resources):
22028 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22029 (w32_initialize): Use the accessor macros for terminal characteristics.
22030
22031 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22032 Use the accessor macros for terminal characteristics.
22033 * msdos.c (internal_terminal_init): Use the accessor macros for
22034 terminal characteristics.
22035 (ScreenVisualBell, internal_terminal_init):
22036 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22037
22038 * termopts.h (no_redraw_on_reenter): Declare.
22039
22040 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22041 (mark_terminals, mark_ttys): Declare.
22042 (Fgarbage_collect): Call them.
22043 (mark_object): Mark buried_buffer_list.
22044
22045 * prefix-args.c: Include stdlib.h for exit.
22046
22047 * syssignal.h: Add comment.
22048
22049 * indent.c: Include stdio.h.
22050
22051 * window.h (Vinitial_window_system): Declare.
22052 (Vwindow_system): Delete declaration.
22053
22054 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22055
22056 * image.c (lookup_image): Don't initialize `c' until the xasserts
22057 have been run.
22058
22059 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22060 FRAME_FOREGROUND_PIXEL.
22061
22062 * print.c (print_preprocess): Don't lose print_depth levels while
22063 iterating.
22064
22065 * widget.c (update_from_various_frame_slots):
22066 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22067
22068 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22069 frames.
22070 (window_internal_height): Remove bogus make_number call.
22071 (init_window_once): Call make_terminal_frame with two zero parameters.
22072
22073 * fileio.c (Fread_file_name): Update comment.
22074
22075 * callint.c (Fcall_interactively):
22076 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22077 Make sure it is correctly unwound.
22078
22079 * xsmfns.c (x_session_close): New function.
22080
22081 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22082 Delete declarations.
22083
22084 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22085 (x_output): Remove background_pixel and foreground_pixel fields.
22086 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22087 (x_delete_device, x_session_close): Declare.
22088
22089 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22090 (read_filtered_event): Call `read_char' with a local
22091 `wrong_kboard_jmpbuf'.
22092
22093 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22094 Don't call single_kboard_state. Use FRAME_RIF.
22095
22096 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22097 systems.
22098
22099 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22100 (Fframe_with_environment, Fset_input_meta_mode)
22101 (Fset_quit_char): EXFUN.
22102 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22103 (init_sys_modes, reset_sys_modes): Update prototypes.
22104 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22105
22106 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22107 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22108 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22109 Delete declarations.
22110 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22111 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22112 New declarations.
22113
22114 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22115 already does that during init_display(). Call syms_of_keymap
22116 before syms_of_keyboard. Call `syms_of_terminal'.
22117 Call set_initial_environment, not set_process_environment.
22118 (shut_down_emacs): Call reset_all_sys_modes() instead of
22119 reset_sys_modes().
22120
22121 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22122 (internal_resolve_face_name, resolve_face_name_error): New functions.
22123 (resolve_face_name): Protect against loops and errors thrown by Fget.
22124 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22125 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22126
22127 * scroll.c: Replace CURTTY() with local variables throughout the
22128 file (where applicable).
22129 (calculate_scrolling, calculate_direct_scrolling)
22130 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22131 characteristics.
22132
22133 * keymap.c (Vfunction_key_map): Remove.
22134 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22135 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22136 (Vkey_translation_map): Remove.
22137 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22138 (Fdescribe_buffer_bindings)
22139 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22140 Update for terminal-local key-translation-map.
22141
22142 * Makefile.in (callproc.o): Update dependencies.
22143 (lisp, shortlisp): Add termdev.elc.
22144 (obj): Add terminal.o.
22145 (terminal.o): Add dependencies.
22146 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22147 (data.o, fns.o): Add termhooks.h dependency.
22148 (SOME_MACHINE_LISP): Add dnd.elc.
22149 (minibuf.o): Fix typo.
22150 Update dependencies.
22151
22152 * data.c (do_symval_forwarding, store_symval_forwarding)
22153 (find_symbol_value): Use the selected frame's keyboard, not
22154 current_kboard.
22155
22156 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22157 Vwindow_system.
22158
22159 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22160 Fmenu_bar_open.
22161 (syms_of_xmenu): Update defsubr.
22162 (mouse_position_for_popup, Fx_popup_menu)
22163 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22164 (set_frame_menubar, free_frame_menubar)
b97439ce 22165 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22166 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22167 an X frame.
22168
22169 * xselect.c (x_own_selection): Abort if not an X frame.
22170 (some_frame_on_display): Check if it is an X frame.
22171 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22172
22173 * coding.c: Include frame.h and termhooks.h.
22174 (terminal_coding, keyboard_coding): Delete.
22175 (Fset_terminal_coding_system_internal)
22176 (Fset_keyboard_coding_system_internal)
22177 (Fkeyboard_coding_system)
22178 (Fterminal_coding_system): Add a terminal parameter.
22179 Get terminal_coding from the terminal.
22180 (init_coding_once): Don't call setup_coding_system here.
22181
22182 * dispextern.h (set_scroll_region, turn_off_insert)
22183 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22184 (tty_clear_end_of_line, tty_setup_colors)
22185 (delete_tty, updating_frame)
22186 (produce_special_glyphs, produce_glyphs, write_glyphs)
22187 (insert_glyphs): Remove.
22188 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22189 (tty_turn_off_highlight, get_tty_size): Add declaration.
22190 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22191
22192 * frame.h (enum output_method): Add output_initial.
22193 (struct x_output): Delete.
22194 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22195 Access foreground_pixel and background_pixel directly from the frame.
22196 (tty_display): Delete.
22197 (struct frame): Add buried_buffer_list, foreground_pixel,
22198 background_pixel and terminal. Delete kboard.
22199 (union output_data): Add tty.
22200 (FRAME_KBOARD): Get the kboard from the terminal.
22201 (FRAME_INITIAL_P): New macro.
22202 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22203 (Qterm_environment_variable, Qdisplay_environment_variable)
22204 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22205 New declarations.
22206
22207 * termchar.h (tty_output, tty_display_info): New structures.
22208 (tty_list): Declare.
22209 (FRAME_TTY, CURTTY): New macros.
22210 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22211 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22212 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22213 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22214
22215 * callproc.c: Include frame.h and termhooks.h, for terminal
22216 parameters.
22217 (add_env): New function.
22218 (child_setup): Use it.
22219 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22220 (getenv_internal): Fix get_terminal_param call.
22221 (Fgetenv_internal, egetenv): Update doc.
22222 (syms_of_callproc): Initialize Vprocess_environment to nil.
22223 Register and initialize them. Remove obsolete defvars. Update doc
22224 strings.
22225 (child_setup): Handle Vlocal_environment_variables.
22226 (getenv_internal): Add terminal parameter.
22227 Handle Vlocal_environment_variables.
22228 (Fgetenv_internal): Add terminal parameter.
22229 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22230 environment in a frame (not terminal) parameter. Update doc strings.
22231 (set_initial_environment): Rename from set_global_environment.
22232 Store Emacs environment in initial frame parameter.
22233
22234 * xdisp.c (redisplay_internal): Update references to
22235 `previous_terminal_frame'.
22236 (display_mode_line, Fformat_mode_line): Replace calls to
22237 `push_frame_kboard' with `push_kboard'.
22238 (get_glyph_string_clip_rects): Add extra parentheses and
22239 braces to prevent compiler warnings.
22240 (calc_pixel_width_or_height): Add xassert to check that the
22241 frame is alive. Don't call `lookup_image' on a termcap frame.
22242 (message2_nolog, message3_nolog, redisplay_internal)
22243 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22244 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22245 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22246 (Fx_display_pixel_width, Fx_display_pixel_height)
22247 (Fx_display_planes, Fx_display_color_cells)
22248 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22249 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22250 (Fx_display_backing_store, Fx_display_visual_class)
22251 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22252 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22253
22254 * xfns.c (x_set_foreground_color x_set_background_color)
22255 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22256 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22257 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22258 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22259 terminal that is being deleted.
22260 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22261 frame parameter, and make sure it overrides any user-supplied setting.
22262 (Fx_close_connection, Fx_synchronize): Unify argument names with
22263 the rest of the DEFUNs.
22264
22265 * dispnew.c (Fsend_string_to_terminal): Update call to
22266 `get_tty_terminal'.
22267 (Fredraw_frame, Fsend_string_to_terminal)
22268 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22269 FRAME_TERMCAP_P and FRAME_TTY.
22270 (window_change_signal): Don't believe width/height values that are
22271 impossibly small.
22272 (Vinitial_window_system): Rename from Vwindow_system.
22273 (termscript, Wcm, rif): Delete.
22274
22275 * termhooks.h (struct terminal): New struct containing the
22276 previously global text display hooks and new members NAME,
22277 DELETED and PARAM_ALIST.
22278 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22279 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22280 (FRAME_RIF): New macros.
22281 (get_terminal_param, get_device): New declarations.
22282 (termscript): Delete declaration.
22283
22284 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22285 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22286 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22287 FRAME_FOREGROUND_PIXEL.
22288 (x_fully_uncatch_errors): Disable definition.
22289 (x_scroll_bar_expose): Fix reference to foreground pixel.
22290 (XTread_socket): Disable loop on all X displays.
22291 (x_delete_terminal): Don't set terminal->deleted and let
22292 delete_terminal delete the frames on the terminal.
22293 (x_delete_display): Doc update to reflect changes in
22294 delete_terminal.
22295 (x_display_info) <terminal>: Move member earlier in the struct.
22296 (deleting_tty): Remove old variable.
22297 (Fsuspend_tty): Call clear_tty_hooks.
22298 (Fresume_tty, init_tty): Call set_tty_hooks.
22299 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22300 errors on X frames.
22301 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22302 (handle_one_xevent): Initialize `f' to NULL.
22303 (x_delete_terminal, x_create_terminal): New functions.
22304 (XTset_terminal_modes, XTreset_terminal_modes)
22305 (XTread_socket, x_connection_closed, x_term_init)
22306 (x_term_init, x_delete_display): Add terminal parameter.
22307 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22308 X connections.
22309
22310 * frame.c: Include termchar.h.
22311 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22312 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22313 (Qdisplay_environment_variable): New vars.
22314 (Fframep): Deal with output_initial.
22315 (Fframe-live-p): Doc fix.
22316 (Fwindow-system): New function.
22317 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22318 (make_terminal_frame): Don't create frames on a terminal that is
22319 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22320 (store_frame_param): Check for found_for_frame before calling XFRAME.
22321 (Fmake_terminal_frame): Handle NULL tty names correctly.
22322 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22323 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22324 frames to refer to a deleted frame in their 'environment parameter.
22325 (Fframe_with_environment): New function.
22326 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22327 (get_future_frame_param): New function.
22328 (Fmake_terminal_frame): Use it.
22329 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22330
22331 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22332 * sysdep.c (reset_sys_modes): Update for renames.
22333
22334 * keyboard.c (tty_read_avail_input): New function.
22335 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22336 (syms_of_keyboard): Defsubr them.
22337 (Fset_input_meta_mode, Fset_quit_char): New functions.
22338 (Fset_input_mode): Split to above functions.
22339 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22340 parameter. Use it in call to `read_char'.
22341 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22342 Set wrong_kboard_jmpbuf correctly in recursive calls.
22343 Use current_kboard to access Vkeyboard_translate_table.
22344 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22345 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22346 Update longjmp invocations. Remember the original current_kboard,
22347 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22348 changes it. Comment out unnecessary calls to
22349 `record_single_kboard_state' and `any_kboard_state'.
22350 Update recursive calls.
22351 (wrong_kboard_jmpbuf): Remove global variable.
22352 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22353 Handle deleted interrupted_kboards correctly; that is a legal
22354 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22355 and read_char calls. Abort if interrupted_kboard died in read_char.
22356 (any_kboard_state, single_kboard_state)
22357 (push_frame_kboard): Remove function.
22358 (pop_kboard): Switch out of single_kboard mode if the kboard has
22359 been deleted. Remove unused variable. Help debugging by not
22360 changing current_kboard unnecessarily. Set current_kboard to the
22361 kboard of the selected frame when the stored kboard object has
22362 been deleted before pop_kboard.
22363 (temporarily_switch_to_single_kboard): Change first parameter to a
22364 frame pointer. Throw an error when caller wants to change kboards
22365 while in single_kboard mode. Don't push_kboard if we weren't in
22366 single kboard state. Don't pop_kboard if we popped into any
22367 kboard state.
22368 (restore_kboard_configuration): Abort if pop_kboard changed the
22369 kboard in single_kboard mode. Call pop_kboard only after setting
22370 up single_kboard mode.
22371 (Frecursive_edit): Switch to single_kboard mode only in nested
22372 command loops.
22373 (cmd_error, command_loop, command_loop_1, timer_check):
22374 Comment out unnecessary call to `any_kboard_state' and
22375 `record_single_kboard_state'.
22376 (delete_kboard): Exit single_kboard mode if we have just deleted
22377 that kboard. Use FRAME_KBOARD.
22378 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22379 `fatal_error_signal'.
22380 (record_single_kboard_state): Don't push_kboard if we weren't in
22381 single kboard state. Don't pop_kboard if we popped into any
22382 kboard state.
22383 (push_frame_kboard): Rename to push_kboard.
22384 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22385 (read_avail_input): Read input from all terminals.
22386 (mark_kboards): Also mark Vkeyboard_translate_table.
22387 (kbd_buffer_store_event_hold): Simplify condition.
22388 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22389 (Vkeyboard_translate_table): Move to struct kboard.
22390 (init_kboard): Initialize Vkeyboard_translate_table.
22391 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22392 Vkeyboard_translate_table. Update doc strings. Update docs of
22393 local-function-key-map and function-key-map.
22394
22395 * terminal.c: New file.
22396
22397 * term.c: Include errno.h.
22398 (Vring_bell_function, device_list, initial_device)
22399 (next_device_id, ring_bell, update_begin, update_end)
22400 (set_terminal_window, cursor_to, raw_cursor_to)
22401 (clear_to_end, clear_frame, clear_end_of_line)
22402 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22403 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22404 (syms_of_term): Move their initialization to terminal.c.
22405 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22406 (Ftty_display_color_cells)
22407 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22408 (clear_tty_hooks, set_tty_hooks)
22409 (init_tty, maybe_fatal): New functions.
22410 (Ftty_type): Return nil if terminal is not on a tty instead of
22411 throwing an error. Doc update.
22412 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22413 Doc update. Initialize new subrs and variables.
22414 (delete_tty): Use terminal->deleted.
22415 (tty_set_terminal_modes): Rename from set_terminal_modes.
22416 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22417 (set_scroll_region): Rename to `tty_set_scroll_region'.
22418 (turn_on_insert): Rename to `tty_turn_on_insert'.
22419 (turn_off_insert): Rename to `tty_turn_off_insert'.
22420 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22421 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22422 (toggle_highligh): Rename to `tty_toggle_highlight'.
22423 (background_highlight): Rename to `tty_background_highlight'.
22424 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22425 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22426 (tty_set_scroll_region, tty_background_highlight)
22427 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22428 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22429 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22430 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22431 Add static modifier.
22432 (tty_reset_terminal_modes, tty_set_terminal_window)
22433 (tty_set_scroll_region, tty_background_highlight)
22434 (tty_highlight_if_desired, tty_cursor_to)
22435 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22436 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22437 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22438 renames.
22439
224402007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22441
22442 * keyboard.c: Qrtl is new.
22443 (parse_tool_bar_item): Handle :rtl keyword.
22444 (syms_of_keyboard): Intern :rtl keyword.
22445
22446 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22447
22448 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22449 so no Lisp code is executed.
22450 (file_for_image, find_rtl_image): New functions.
22451 (xg_get_image_for_pixmap): Use file_for_image.
22452 (update_frame_tool_bar): If direction is RTL, use RTL image if
22453 defined. Use Gtk stock images if defined.
22454
224552007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22456
22457 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22458 for nonexistent or zero-width glyph in composition glyph.
22459
224602007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22461
22462 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22463
22464 * xdisp.c (Finvisible_p): New function.
22465 (syms_of_xdisp): defsubr it.
22466
224672007-08-24 Juanma Barranquero <lekktu@gmail.com>
22468
22469 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22470 Doc fixes.
22471
224722007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22473
22474 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22475
224762007-08-24 Martin Rudalics <rudalics@gmx.at>
22477
22478 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22479 whether decoding has modified buffer contents.
22480
224812007-08-24 Jason Rumney <jasonr@gnu.org>
22482
22483 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22484 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22485 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22486 (init_svg_functions) [HAVE_NTGUI]: New function.
22487 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22488 (svg_load_image): Use them.
22489 (svg_load_image) [HAVE_NTGUI]: Implement background.
22490
224912007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22492
22493 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22494 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22495 (LIBX): Remove @RSVG_LIBS@.
22496 (LIBES): Add $(RSVG_LIBS).
22497
22498 * image.c (svg_load_image): Blend with specified background if exists.
22499 Use IMAGE_BACKGROUND. Add Mac OS Support.
22500
22501 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22502 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22503 Remove macros.
22504 [MAC_OSX] (socket_callback): Do nothing.
22505 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22506 ReceiveNextEvent.
22507 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22508 socket_callback.
22509 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22510
225112007-08-22 Glenn Morris <rgm@gnu.org>
22512
22513 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22514
225152007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22516
22517 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22518
22519 * image.c: Add support for SVG images. Some additional comments
22520 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22521 (svg_image_p): New function to test for SVG image.
22522 (svg_load): New function to load SVG image.
22523 (svg_load_image): New function, helper for svg_load.
22524 (Qsvg): New Lisp_object.
22525 (svg_keyword_index): New enum.
22526 (svg_format): New static `image_keyword' struct.
22527 (svg_type): New static `image_type' struct.
22528 (librsvg/rsvg.h): Include it.
22529
225302007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22531
22532 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22533
225342007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22535
22536 * lread.c (Qold_style_backquotes): New var.
22537 (syms_of_lread): Init and staticpro it.
22538 (load_warn_old_style_backquotes): New fun.
22539 (Fload): Use them to warn about old style backquotes.
22540 (end_of_file_error, Fload): Remove unused vars.
22541
22542 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22543
22544 * lread.c (Vold_style_backquotes): New var.
22545 (syms_of_lread): Init and export it to Elisp.
22546 (read1): Set it when we find an old-style (back)quote.
22547
225482007-08-22 Jason Rumney <jasonr@gnu.org>
22549
22550 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22551
225522007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22553
22554 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22555
225562007-08-19 Richard Stallman <rms@gnu.org>
22557
22558 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22559
225602007-08-19 Andreas Schwab <schwab@suse.de>
22561
22562 * alloc.c (pure): Round PURESIZE up.
22563
225642007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22565
22566 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22567 active frame.
22568
225692007-08-16 Richard Stallman <rms@gnu.org>
22570
22571 * eval.c (Fcommandp): Add parens to clarify.
22572
22573 * minibuf.c (Fall_completions): Use enum for type of table.
22574
22575 * emacs.c (USAGE2): Improve text.
22576
225772007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22578
22579 * term.c (tty_default_color_capabilities): Declare static
22580 variables in file scope, to avoid HPUX compiler problem.
22581
225822007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22583
22584 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22585 to gtk_toolbar_insert.
22586
225872007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22588
22589 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22590
22591 * insdel.c (reset_var_on_error): New fun.
22592 (signal_before_change, signal_after_change):
22593 Use it to reset (after|before)-change-functions to nil in case of error.
22594 Bind inhibit-modification-hooks to t.
22595 Don't bind (after|before)-change-functions to nil while they run.
22596
225972007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22598
22599 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22600 filling pixmap with stippled background.
22601
226022007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22603
22604 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22605 Don't use invisible frame as parent window for repositioning.
22606
226072007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22608
22609 * print.c (new_backquote_output): Rename from old_backquote_output.
22610 (print): Inverse its logic (according to its name) so as to match the
22611 behavior of new_backquote_flag in lread.c.
22612
226132007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22614
22615 * gmalloc.c (posix_memalign): New function.
22616
22617 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22618 ActivateControl/DeactivateControl here.
22619 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22620 frame-notice-user-settings is non-nil.
22621 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22622 for kEventParamFMFontStyle.
22623 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22624 mac_pass_command_to_system and mac_pass_control_to_system here.
22625 (XTread_socket): Call ActivateControl/DeactivateControl here.
22626 (XTread_socket) [TARGET_API_MAC_CARBON]:
22627 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22628 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22629 for window repositioning.
22630
226312007-08-08 Glenn Morris <rgm@gnu.org>
22632
22633 * Replace `iff' in doc-strings and comments.
22634
226352007-08-07 Chong Yidong <cyd@stupidchicken.com>
22636
22637 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22638
226392007-08-07 Martin Rudalics <rudalics@gmx.at>
22640
22641 * fileio.c (Finsert_file_contents): Run format-decode and
22642 after_insert_file_functions on entire buffer when REPLACE is
22643 non-nil and inhibit modification_hooks and point_motion_hooks.
22644 For consistency, run after_insert_file_functions iff something
22645 got inserted. Move signal_after_change and update_compositions
22646 after code running after_insert_file_functions. Make sure that
22647 undo_list doesn't record intermediate steps of the decoding process.
22648
226492007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22650
22651 * emacs.c (main)
22652 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22653 Call malloc_enable_thread on interactive startup.
22654
22655 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22656 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22657 [USE_PTHREAD]: Conditionalize with it.
22658 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22659 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22660 New functions.
22661
226622007-08-06 Chong Yidong <cyd@stupidchicken.com>
22663
22664 * xdisp.c (redisplay_window): When restoring original buffer
22665 position, make sure it is still valid.
22666
22667 * image.c (png_load): Ignore png-supplied background color.
22668
226692007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22670
22671 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22672 Use kCFAbsoluteTimeIntervalSince1970.
22673
22674 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22675 New variable.
22676 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22677 event loop should be quit.
22678 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22679 Quit dialog event loop if quit_dialog_event_loop is set.
22680
22681 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22682 (Selection): New typedef. Use instead of ScrapRef.
22683 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22684 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22685 (mac_clear_selection): Rename from clear_scrap.
22686 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22687 scrap_has_target_type. All uses changed.
22688 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22689 (mac_selection_has_target_p): New functions.
22690 (mac_put_selection_value): Rename from put_scrap_string.
22691 (mac_get_selection_value): Rename from get_scrap_string.
22692 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22693 (put_scrap_private_timestamp, scrap_has_target_type)
22694 (get_scrap_private_timestamp): Remove functions.
22695 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22696 (x_own_selection, x_get_local_selection):
22697 Use mac_valid_selection_value_p.
22698 (x_own_selection): Don't use put_scrap_private_timestamp.
22699 Record OWNERSHIP-INFO into Vselection_alist instead.
22700 (x_get_local_selection): Don't check type if request is local.
22701 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22702 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22703
227042007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22705
22706 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22707 add comment explaining why.
22708
227092007-08-03 Richard Stallman <rms@gnu.org>
22710
22711 * fileio.c (Fvisited_file_modtime): Use make_time.
22712
227132007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22714
22715 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22716 build.
22717
227182007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22719
22720 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22721
227222007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22723
22724 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22725
227262007-07-30 Richard Stallman <rms@gnu.org>
22727
22728 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22729
227302007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22731
22732 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22733
227342007-07-28 Nick Roberts <nickrob@snap.net.nz>
22735
22736 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22737 remote default-directory.
22738
22739 * buffer.c (mode-line-format): Update doc string.
22740
227412007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22742
22743 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22744 scroll bar gap.
22745 (x_scroll_bar_create): Set bar->fringe_extended_p.
22746 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22747 on frame edge. Check fringe background extension. Don't clear
22748 extended fringe background area.
22749
22750 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22751 (w32_fill_area): Enclose multiple statements with do ... while (0).
22752
22753 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22754 Extend fringe background to scroll bar gap.
22755 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22756 Set bar->fringe_extended_p.
22757 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22758 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22759 background extension. Don't clear extended fringe background area.
22760
22761 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22762 New member fringe_extended_p.
22763
227642007-07-25 Glenn Morris <rgm@gnu.org>
22765
22766 * Relicense all FSF files to GPLv3 or later.
22767
22768 * COPYING: Switch to GPLv3.
22769
227702007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22771
22772 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22773
22774 * data.c (Finteractive_form): Check for the presence of an
22775 `interactive-form' symbol property more thoroughly.
22776
22777 * data.c (Finteractive_form): Use an `interactive-form' property if
22778 present, analogous to the function-documentation property.
22779
227802007-07-24 Jason Rumney <jasonr@gnu.org>
22781
22782 * w32fns.c (x_real_positions): Get real position from OS instead of
22783 calculating it.
22784
227852007-07-23 Jason Rumney <jasonr@gnu.org>
22786
22787 * filelock.c (current_lock_owner): Allow for @ sign in username.
22788
227892007-07-22 Nick Roberts <nickrob@snap.net.nz>
22790
22791 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22792 remote default-directory.
22793
22794 * buffer.c (mode-line-format): Describe above case in doc string.
22795
227962007-07-20 Eli Zaretskii <eliz@gnu.org>
22797
22798 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22799 Define if not defined.
22800
228012007-07-18 Jason Rumney <jasonr@gnu.org>
22802
22803 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22804
228052007-07-18 Richard Stallman <rms@gnu.org>
22806
22807 * data.c (Fsetq_default): Doc fix.
22808
22809 * eval.c (Fsetq): Doc fix.
22810
228112007-07-18 Juanma Barranquero <lekktu@gmail.com>
22812
22813 * coding.c (Ffind_operation_coding_system):
22814 * eval.c (For, Fand): Doc fixes.
22815 Reported by Johan Bockgård.
22816
228172007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22818
22819 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22820
22821 * xterm.h: Declare x_ewmh_activate_frame.
22822
22823 * xterm.c (x_ewmh_activate_frame): New function.
22824 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22825
228262007-07-17 Martin Rudalics <rudalics@gmx.at>
22827
22828 * window.c (Fdisplay_buffer): If largest or LRU window is the
22829 only window, split it even if it is not eligible for splitting.
22830 This restores the original behavior broken by the 2007-07-15
22831 change.
22832
228332007-07-17 Glenn Morris <rgm@gnu.org>
22834
22835 * abbrev.c (abbrev_check_chars): New function.
22836 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22837 Call abbrev_check_chars to check abbrev characters are word
22838 constituents. Doc fix.
22839
228402007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22841
22842 * process.c (Fstart_process, Fmake_network_process)
22843 (read_process_output): Fix up last changes.
22844
228452007-07-16 Eli Zaretskii <eliz@gnu.org>
22846
22847 * makefile.w32-in (clean): Don't delete *~.
22848
228492007-07-16 Andreas Schwab <schwab@suse.de>
22850
22851 * window.c (Fdisplay_buffer): Use NILP.
22852 (Fset_window_scroll_bars): Likewise.
22853
228542007-07-15 Martin Rudalics <rudalics@gmx.at>
22855
22856 * window.c (window_min_size_2): New function.
22857 (window_min_size_1, size_window, Fdisplay_buffer)
22858 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22859 windows without mode- or header-lines when window-min-height is
22860 too small.
22861 (size_window): Reset nodelete_p after testing it, following an
22862 earlier note by Kim F. Storm.
22863 (display_buffer): Do not set split_height_threshold to twice the
22864 value of window_min_height to avoid changing the value of a
22865 customizable variable. Rather explicitly check whether the
22866 height of the window that shall be splitted is at least as large
22867 as split_height_threshold.
22868 (Fwindow_full_width_p): New defun.
22869 (syms_of_window): Defsubr it.
22870
22871 * window.h: Add EXFUN for Fwindow_full_width_p.
22872
228732007-07-14 Jason Rumney <jasonr@gnu.org>
22874
22875 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22876
228772007-07-14 Richard Stallman <rms@gnu.org>
22878
22879 * eval.c (maybe_call_debugger): New function.
22880 (find_handler_clause): Use maybe_call_debugger.
22881 Call it when the handler says `debug'.
22882 Eliminate DEBUGGER_VALUE_PTR.
22883 (Fsignal): Eliminate debugger_value.
22884 (Qdebug): New variable.
22885 (syms_of_eval): Initialize it.
22886
228872007-07-14 Juanma Barranquero <lekktu@gmail.com>
22888
22889 * eval.c (Fprogn):
22890 * keyboard.c (Ftrack_mouse):
22891 * print.c (Fwith_output_to_temp_buffer):
22892 * window.c (Fsave_window_excursion): Doc fix.
22893
228942007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22895
22896 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22897
228982007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22899
22900 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22901 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22902 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22903 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22904 Remove unused encoding_carryover.
22905 * process.c: Adjust all functions accordingly.
22906
229072007-07-12 Richard Stallman <rms@gnu.org>
22908
22909 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22910
229112007-07-11 Jason Rumney <jasonr@gnu.org>
22912
22913 * makefile.w32-in (LIBS): Include OLE32.
22914
22915 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22916 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22917
229182007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22919
22920 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22921 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22922 from a Lisp_Object into a bare pointer.
22923 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22924 Adjust the code correspondingly.
22925
22926 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22927
22928 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22929 (term_show_mouse_face): Remove unused var `j'.
22930 (handle_one_term_event): Remove unused vars `i' and `j'.
22931 Don't cast return value of ttyname since it's not necessary.
22932
229332007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22934
22935 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22936 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22937
22938 * fns.c (map_char_table): Use an array of int for `indices' rather than
22939 an array of Lisp_Objects (which are only ever integers anyway).
22940 (Fmap_char_table): Update caller.
22941 * lisp.h: Update prototype.
22942 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22943 * fontset.c (Ffontset_info):
22944 * casetab.c (set_case_table): Update callers.
22945
22946 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22947
22948 * keymap.c (struct accessible_keymaps_data)
22949 (struct where_is_internal_data): New structures.
22950 (accessible_keymaps_1, where_is_internal_1): Use them to change
22951 interface to adhere to the one used by map_keymap.
22952 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22953 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22954
22955 * keymap.h (map_keymap_function_t): More informative prototype.
22956
229572007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22958
22959 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22960 (looking_at_1): Don't change search_regs and last_thing_searched
22961 if `inhibit-changing-match-data' is non-nil.
22962 (string_match_1, search_buffer, set_search_regs): Likewise.
22963 (syms_of_search): Add Lisp level definition for
22964 `inhibit-changing-match-data' and set it to nil.
22965 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22966 start and end of the match, instead of using values in search_regs.
22967
229682007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22969
22970 * minibuf.c (Fcompleting_read): New value `confirm-only'
22971 for `require-match'.
22972
229732007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22974
22975 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22976 part of the 2007-06-27 change to syms_of_fileio.
22977
229782007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22979
22980 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22981 Check WINDOWP before using XWINDOW. Consolidate return statements.
22982
229832007-06-27 Richard Stallman <rms@gnu.org>
22984
22985 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22986
229872007-06-27 Juanma Barranquero <lekktu@gmail.com>
22988
22989 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22990
229912007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22992
22993 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22994 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22995 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22996 (_free_internal, memalign): Use them.
22997 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22998 Initialize to PTHREAD_MUTEX_INITIALIZER.
22999 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23000 (morecore_nolock): Rename from morecore. All uses changed.
23001 Use only nolock versions of internal allocation functions.
23002 (_malloc_internal_nolock, _realloc_internal_nolock)
23003 (_free_internal_nolock): New functions created from
23004 _malloc_internal, _realloc_internal, and _free_internal.
23005 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23006 Copy hook value to automatic variable before its use.
23007 (memalign): Copy hook value to automatic variable before its use.
23008
230092007-06-26 Kenichi Handa <handa@m17n.org>
23010
23011 * coding.c (Ffind_operation_coding_system): Docstring improved.
23012 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23013
230142007-06-25 David Kastrup <dak@gnu.org>
23015
23016 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23017 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23018 cater for additional parameter.
23019
23020 * keymap.h: Adjust number of parameters to `current-active-maps'.
23021
23022 * doc.c (Fsubstitute_command_keys): Adjust call of
23023 `current-active-maps'.
23024
230252007-06-25 David Kastrup <dak@gnu.org>
23026
23027 * callint.c (Fcall_interactively): Make the parsing of interactive
23028 specs somewhat more readable.
23029
230302007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23031
23032 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23033 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23034 if extended background has already been filled.
23035
230362007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23037
23038 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23039 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23040
23041 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23042 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23043 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23044 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23045 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23046 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23047 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23048 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23049 Run timers during dialog popup.
23050 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23051
230522007-06-21 Jason Rumney <jasonr@gnu.org>
23053
23054 * image.c (convert_mono_to_color_image): Swap fore and background.
23055
230562007-06-20 Jason Rumney <jasonr@gnu.org>
23057
23058 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23059 (w32_free_bdf_font): Unmap memory not handle.
23060
230612007-06-20 Sam Steingold <sds@gnu.org>
23062
23063 * gmalloc.c (__morecore): Fix the declaration to comply with the
23064 definition.
23065
230662007-06-20 Juanma Barranquero <lekktu@gmail.com>
23067
23068 * w32term.c (w32_delete_display): Remove leftover declaration.
23069 (w32_define_cursor, w32_initialize): Make static.
23070
23071 * w32.c (_wsa_errlist): Fix typo in error message.
23072 (init_environment): Ignore any environment variable from the
23073 registry having a null value.
23074
230752007-06-20 Glenn Morris <rgm@gnu.org>
23076
23077 * Makefile.in (LIBGIF): Default to -lgif.
23078
230792007-06-17 Jason Rumney <jasonr@gnu.org>
23080
23081 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23082 unicode strings.
23083
230842007-06-16 Juanma Barranquero <lekktu@gmail.com>
23085
23086 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23087 Fix typo in docstring.
23088
230892007-06-16 Eli Zaretskii <eliz@gnu.org>
23090
23091 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23092 and their keybindings.
23093
230942007-06-15 Chong Yidong <cyd@stupidchicken.com>
23095
23096 * composite.c (update_compositions): Fix last fix.
23097
230982007-06-14 Jason Rumney <jasonr@gnu.org>
23099
23100 * w32.c (get_process_times_fn): New function pointer.
23101 (globals_of_w32): Intialize it if present in kernel32.dll.
23102 (w32_get_internal_run_time): New function.
23103
23104 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23105
231062007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23107
23108 * composite.c (update_compositions): Check the validness of
23109 compositions.
23110
231112007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23112
23113 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23114 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23115
23116 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23117 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23118
23119 * macgui.h (USE_MAC_TOOLBAR): New define.
23120
23121 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23122 Return immediately unless popup is activated.
23123
23124 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23125 background to scroll bar gap.
23126 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23127 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23128 scroll bars on frame edge. Check fringe background extension.
23129 Don't clear extended fringe background area.
23130 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23131 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23132 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23133 [USE_MAC_TOOLBAR]: New macros.
23134 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23135 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23136 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23137 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23138 [USE_MAC_TOOLBAR]: New functions.
23139 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23140 manually if previous repositioning has failed.
23141 (mac_handle_keyboard_event): Use precomputed event kind.
23142 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23143 as tool bar item click. Handle mouse movement over tool bar items.
23144
23145 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23146 toolbar_win_gravity.
23147 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23148 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23149 Add externs.
23150
23151 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23152 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23153
231542007-06-14 Chong Yidong <cyd@stupidchicken.com>
23155
23156 * image.c (search_image_cache): Remove unused variable.
23157
231582007-06-13 Chong Yidong <cyd@stupidchicken.com>
23159
23160 * xfns.c, xmenu.c: Link to xaw3d if available.
23161
231622007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23163
23164 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23165 frame_foreground and frame_background.
23166
23167 * image.c (lookup_image): Save frame foreground and background colors.
23168 (search_image_cache): Check if saved and current frame colors match.
23169
231702007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23171
23172 * regex.c (regex_compile): Remove the `regnum' counter.
23173 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23174
231752007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23176
23177 * term.c: Include intervals.h to declare Fget_text_property.
23178
231792007-06-10 Jason Rumney <jasonr@gnu.org>
23180
23181 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23182
231832007-06-08 Juanma Barranquero <lekktu@gmail.com>
23184
23185 * callint.c (Fcall_interactively):
23186 * editfns.c (Fdelete_and_extract_region):
23187 * fileio.c (Fread_file_name):
23188 * fns.c (Fmapconcat):
23189 * keyboard.c (cmd_error_internal):
23190 * keymap.c (Fkey_description):
23191 * lread.c (openp):
23192 * minibuf.c (read_minibuf):
23193 * search.c (wordify):
23194 * sunfns.c (sel_read):
23195 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23196 * xfns.c (x_default_scroll_bar_color_parameter):
23197 * xmenu.c (menu_help_callback):
23198 * xselect.c (Fx_get_atom_name):
23199 * xterm.c (x_term_init): Use empty_unibyte_string.
23200
232012007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23202
23203 * alloc.c (init_strings): Initialize canonical empty strings.
23204 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23205 canonical empty string when the requested size is 0.
23206
23207 * emacs.c (empty_unibyte_string): Rename from empty_string.
23208 (empty_multibyte_string): New canonical empty string.
23209 (syms_of_emacs): Don't initialize empty_string.
23210
23211 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23212 string, if appropriate.
23213 (empty_unibyte_string, empty_multibyte_string): New externs.
23214 (empty_string): Remove extern.
23215
23216 * lread.c (syms_of_lread): Use empty_unibyte_string.
23217
232182007-06-07 Jason Rumney <jasonr@gnu.org>
23219
23220 * s/ms-w32.h: Don't define HAVE_TZNAME.
23221
23222 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23223
232242007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23225
23226 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23227
23228 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23229 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23230
23231 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23232 Don't call next handler.
23233 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23234 Remove argument. Install handler to application.
23235 (set_frame_menubar): Don't change deep_p.
23236 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23237 FRAME_OUTER_TO_INNER_DIFF_Y.
23238 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23239 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23240 [HAVE_DIALOGS]: New macros.
23241 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23242 Use them.
23243 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23244
23245 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23246 init_service_handler. All callers changed. Return OSStatus value.
23247
23248 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23249 All callers changed so as not to call SetPortWindowPort.
23250 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23251 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23252 mac_draw_string_common.
23253 (mac_draw_image_string_qd): Likewise.
23254 (mac_draw_string_common): Use them. Add INLINE.
23255 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23256 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23257 GetGlobalMouse.
23258 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23259 and FRAME_OUTER_TO_INNER_DIFF_Y.
23260 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23261 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23262 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23263 repositioning window to mac_handle_window_event.
23264 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23265 saving window location to mac_handle_window_event
23266 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23267 (install_menu_target_item_handler): Remove argument in extern.
23268 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23269 Also accept command events.
23270 (do_keystroke): New function created from XTread_socket.
23271 (init_command_handler): Remove functions.
23272 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23273 and save window location by kEventWindowShowing and kEventWindowHiding
23274 handlers here. Don't call next handler for window state change and
23275 focus events.
23276 (mac_handle_application_event, mac_handle_keyboard_event)
23277 [TARGET_API_MAC_CARBON]: New functions.
23278 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23279 kEventWindowShowing and kEventWindowHiding events. Move installation
23280 of mouse, font, text input and menu target item handlers to
23281 install_application_handler.
23282 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23283 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23284 New function.
23285 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23286 Register it.
23287 (XTread_socket) [TARGET_API_MAC_CARBON]:
23288 Consolidate SendEventToEventTarget calls.
23289 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23290 Move application activation handler to mac_handle_application_event.
23291 Move keyboard handler to mac_handle_keyboard_event.
23292 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23293 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23294 init_command_handler. Call install_application_handler.
23295
23296 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23297 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23298
232992007-06-07 Glenn Morris <rgm@gnu.org>
23300
23301 * emacs.c (main): Use `emacs-copyright' in --version output.
23302
233032007-06-06 Chong Yidong <cyd@stupidchicken.com>
23304
23305 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23306
233072007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23308
23309 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23310
23311 * macgui.h: Replace WindowPtr with WindowRef.
23312
23313 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23314 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23315 Replace ControlHandle with ControlRef.
23316 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23317
23318 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23319 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23320 Replace ControlHandle with ControlRef.
23321 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23322 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23323
23324 * macterm.h (struct scroll_bar): Rename member control_handle_low
23325 and control_handle_high to control_ref_low and control_ref_high.
23326 All uses changed.
23327 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23328 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23329 respectively. All uses changed.
23330 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23331 (install_window_handler, remove_window_handler): Replace WindowPtr
23332 with WindowRef in externs.
23333
233342007-06-05 Juanma Barranquero <lekktu@gmail.com>
23335
23336 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23337
233382007-06-03 Nick Roberts <nickrob@snap.net.nz>
23339
23340 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23341
23342 * frame.c (Fmouse_position, Fmouse_pixel_position):
23343 Condition on HAVE_GPM too.
23344
23345 * term.c (term_mouse_highlight): Remove unused variables.
23346 (Fterm_open_connection): Set gpm_zerobased to 1.
23347 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23348 Use zero based co-ordinates.
23349 (handle_one_term_event): Report a drag as mouse movement too.
23350
23351 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23352
233532007-06-03 Chong Yidong <cyd@stupidchicken.com>
23354
23355 * image.c (search_image_cache): New function. Require background
23356 color match if background color is unspecified in the image spec.
23357 (uncache_image, lookup_image): Use it.
23358
233592007-06-01 Juanma Barranquero <lekktu@gmail.com>
23360
23361 * window.c (Fshrink_window): Reflow docstring.
23362
233632007-06-02 Chong Yidong <cyd@stupidchicken.com>
23364
23365 * Version 22.1 released.
23366
233672007-06-01 Richard Stallman <rms@gnu.org>
23368
23369 * xfns.c (x_encode_text): Add GCPRO.
23370
233712007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23372
23373 * xfns.c (x_set_name_internal): Save encoded name before
23374 x_encode_text in case string data is relocated.
23375
233762007-05-31 Richard Stallman <rms@gnu.org>
23377
23378 * buffer.c (syms_of_buffer): Doc fix.
23379
233802007-05-30 Nick Roberts <nickrob@snap.net.nz>
23381
23382 * sysdep.c (init_sys_modes): Add rather than replace with
23383 O_NONBLOCK.
23384
23385 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23386 term_mouse_moveto.
23387
23388 * termhooks.h (term_mouse_moveto): New extern.
23389
23390 * term.c (mouse_face_window): Rename...
23391 (Qmouse_face_window): ...to this.
23392 (term_show_mouse_face, term_clear_mouse_face)
23393 (term_mouse_highlight): Use Qmouse_face_window.
23394 (term_mouse_moveto): New function.
23395 (term_mouse_position): Make it work.
23396 (syms_of_term): Uncomment assignment to mouse_position_hook.
23397 Staticpro Qmouse_face_window.
23398
233992007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23400
23401 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23402 around current_column call.
23403
234042007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23405
23406 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23407 * xdisp.c (next_element_from_buffer):
23408 * window.c (delete_window):
23409 * term.c (term_mouse_highlight):
23410 * msdos.c (getdefdir):
23411 * macterm.c (mac_create_bitmap_from_bitmap_data)
23412 (init_font_name_table):
23413 * fns.c (Fsxhash):
23414 * data.c (Fmake_local_variable):
23415 * ccl.c (ccl_driver): Likewise.
23416
234172007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23418
23419 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23420 Call mac_wakeup_from_rne on window size change.
23421
234222007-05-25 Chong Yidong <cyd@stupidchicken.com>
23423
23424 * image.c (uncache_image): Fix typo.
23425
234262007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23427
23428 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23429
234302007-05-22 Richard Stallman <rms@gnu.org>
23431
23432 * xterm.c (x_connection_closed): Remove NO_RETURN.
23433
234342007-05-22 Martin Rudalics <rudalics@gmx.at>
23435
23436 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23437
234382007-05-21 Chong Yidong <cyd@stupidchicken.com>
23439
23440 * image.c (uncache_image): New function.
23441 (Fimage_refresh): New function.
23442
234432007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23444
23445 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23446
234472007-05-20 Nick Roberts <nickrob@snap.net.nz>
23448
23449 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23450 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23451
234522007-05-20 Nick Roberts <nickrob@snap.net.nz>
23453
23454 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23455 conditional on [HAVE_GPM_H].
23456
234572007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23458
23459 * syntax.c (skip_chars): Update syntax-table only after we checked that
23460 the new location is valid.
23461
234622007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23463
23464 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23465 mac_get_window_bounds.
23466
234672007-05-20 Nick Roberts <nickrob@snap.net.nz>
23468
23469 * Makefile.in (LIBGPM): Allow it to be set from configure.
23470 If set then link Emacs with it.
23471
23472 * config.in: Regenerate.
23473
23474 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23475 New externs.
23476
23477 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23478 Include gpm.h.
23479 (handle_one_term_event, term_gpm): New externs.
23480
23481 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23482 and allow it to be interrupted by SIGIO.
23483
23484 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23485 (wait_reading_process_output): Wait on gpm_fd too.
23486 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23487 (add_gpm_wait_descriptor_called_flag): New variable.
23488 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23489
23490 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23491 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23492 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23493 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23494 (make_lispy_event): Add case GPM_CLICK_EVENT.
23495 (read_avail_input): Handle mouse input.
23496
23497 * term.c (write_glyphs_with_face): New function.
23498 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23499 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23500 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23501 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23502 (last_mouse_x, last_mouse_y): New variables.
23503 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23504 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23505 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23506 (Fterm_close_connection): New functions.
23507 (term_init): Initialise mouse_face_window.
23508
235092007-05-19 Chong Yidong <cyd@stupidchicken.com>
23510
23511 * xdisp.c (redisplay_window): If first window line is a
23512 continuation line, recompute the new window start instead of
23513 recentering.
23514
235152007-05-18 Glenn Morris <rgm@gnu.org>
23516
23517 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23518 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23519
235202007-05-17 Glenn Morris <rgm@gnu.org>
23521
23522 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23523
235242007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23525
23526 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23527 dead key repeat and up events.
23528
235292007-05-14 Chong Yidong <cyd@stupidchicken.com>
23530
23531 * image.c (pbm_load): Check image size for monochrome pbm.
23532
235332007-05-13 Chong Yidong <cyd@stupidchicken.com>
23534
23535 * xterm.c (XTread_socket): Revert last change.
23536
235372007-05-12 Chong Yidong <cyd@stupidchicken.com>
23538
23539 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23540
23541 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23542
235432007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23544
23545 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23546 mixup (YAILOM).
23547
235482007-05-07 Andreas Schwab <schwab@suse.de>
23549
23550 * keymap.c (Flookup_key): Fix typo in last change.
23551
235522007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23553
23554 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23555 mapping for unibyte strings.
23556
235572007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23558
23559 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23560 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23561
235622007-04-29 Richard Stallman <rms@gnu.org>
23563
23564 * insdel.c (replace_range): For undo, record insertion first.
23565
235662007-04-29 Andreas Schwab <schwab@suse.de>
23567
23568 * lisp.h (VECSIZE): Use OFFSETOF.
23569
235702007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23571
23572 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23573 disabled lines.
23574
235752007-04-28 Richard Stallman <rms@gnu.org>
23576
23577 * lread.c (read_escape): In a string, \s is always space.
23578
235792007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23580
23581 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23582
23583 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23584 submenu for menu bar items.
23585
23586See ChangeLog.10 for earlier changes.
23587
23588;; Local Variables:
23589;; coding: utf-8
23590;; add-log-time-zone-rule: t
aac0c6e3
MR
23591;; End:
23592
e3eb1dae 23593 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23594
23595 This file is part of GNU Emacs.
23596
23597 GNU Emacs is free software: you can redistribute it and/or modify
23598 it under the terms of the GNU General Public License as published by
23599 the Free Software Foundation, either version 3 of the License, or
23600 (at your option) any later version.
23601
23602 GNU Emacs is distributed in the hope that it will be useful,
23603 but WITHOUT ANY WARRANTY; without even the implied warranty of
23604 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23605 GNU General Public License for more details.
23606
23607 You should have received a copy of the GNU General Public License
23608 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23609
23610;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40