Simplify temacs build rule.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5fdb7468
GM
12010-05-16 Glenn Morris <rgm@gnu.org>
2
8877ca0f
GM
3 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
5 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8
5fdb7468
GM
9 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
10 Remove ${STARTFLAGS}, nothing ever sets it.
11
95adb4b1
DN
122010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
13
14 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
15
676b6304
GM
162010-05-16 Glenn Morris <rgm@gnu.org>
17
9beab9ce
GM
18 * Makefile.in (LIBX_BASE): Always define.
19
8a95f0e7
GM
20 * Makefile.in (LIBX_OTHER): Move out of cpp section.
21
676b6304
GM
22 * Makefile.in (LIBXT): Always define.
23
6e546d18
GM
242010-05-15 Glenn Morris <rgm@gnu.org>
25
4235ca47 26 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 27
6e546d18
GM
28 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
29 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
30
8c5ff6dd
KR
312010-05-15 Ken Raeburn <raeburn@raeburn.org>
32
52766425
KR
33 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an
34 rvalue. (bug#5916)
35 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
36
8b4eb796
KR
37 * emacs.c (main): Initialize initial-environment and
38 process-environment before generating from env, not after.
39
8c5ff6dd
KR
40 Handle --version reasonably in CANNOT_DUMP configuration.
41 * emacs.c (emacs_version, emacs_copyright): New string variables.
42 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
43 (syms_of_emacs): Defvar them, and initialize them from the C
44 string variables.
45 (main): If initialization hasn't been done, print initial version
46 info from the C strings, instead of starting an interactive session.
47
dbd3f723
EZ
482010-05-15 Eli Zaretskii <eliz@gnu.org>
49
d20e1419
EZ
50 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
51 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
52 (bidi_paragraph_init): Remove redundant assertion that we are at
53 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
54
55 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
56 (syms_of_xdisp): Defsubr it.
57
dbd3f723
EZ
58 * Makefile.in: Fix MSDOS-related comments.
59
02be533b
GM
602010-05-15 Glenn Morris <rgm@gnu.org>
61
1a82cca9
GM
62 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
63 (really-lwlib, really-oldXMenu): Always define.
64 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
65
3df7b338
GM
66 * Makefile.in: Simplify cpp conditional.
67
2b5f541b
GM
68 * Makefile.in (${ns_appdir}): Simplify using umask.
69
02be533b
GM
70 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
71
4e2db1fe
SM
722010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
73
74 * eval.c (specbind): Remove left-over duplicate test.
75 Disallow let-binding frame-local vars. Add comment.
76
4b292a22
EZ
772010-05-14 Eli Zaretskii <eliz@gnu.org>
78
2fe72643 79 Make the cache of bidi iterator states dynamically allocated.
1edbd309 80 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
81 (bidi_init_it): Call it.
82 (bidi_cache_iterator_state): Enlarge the cache if needed.
83
4e2db1fe 84 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
85 bidi_get_next_char_visually. All callers changed.
86
82ebc97b
KH
872010-05-14 Kenichi Handa <handa@m17n.org>
88
89 * dispextern.h (struct composition_it): New member reversed_p.
90
91 * composite.c (composition_compute_stop_pos): Search backward if
92 ENDPOS < CHARPOS.
93 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
94 Set CMP_IT->reversed_p.
b4b6e17e 95 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 96
4e2db1fe
SM
97 * xdisp.c (set_iterator_to_next):
98 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
99 scanning backward. Call composition_compute_stop_pos if scan
100 direction is changed.
101 (next_element_from_buffer): Call composition_compute_stop_pos with
102 negative ENDPOS if we are scanning backward.
103 (next_element_from_composition): Pay attention to
104 IT->cmp_it.reversed_p.
105
0e5d7800
KH
1062010-05-14 Kenichi Handa <handa@m17n.org>
107
108 * font.c (font_range): Return the range for the font found at
109 first.
110
cb027b32
GM
1112010-05-14 Glenn Morris <rgm@gnu.org>
112
177b0288
GM
113 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
114
fbc00890
GM
115 * Makefile.in (mktime, X11, register): Move undefs to configure.
116
f14d1dfd
GM
117 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
118 (MSDOS_X_OBJ): New variable.
119 (MSDOS_SUPPORT_REAL): New constant.
120 (MSDOS_SUPPORT): Set as a variable, not with cpp.
121 (obj): Use MSDOS_X_OBJ.
122 (lisp): Use MSDOS_SUPPORT as a variable.
123
11842bd8
GM
124 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
125 (GPM_MOUSE_SUPPORT): Now it's a constant.
126 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
127 not cpp.
128
489d31a4 129 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 130 (ns_appresdir): Remove, unused.
e20f1f07 131
489d31a4
GM
132 * Makefile.in (SHELL): Move outside cpp section.
133
cb027b32
GM
134 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
135
5a903aa9
GM
1362010-05-13 Glenn Morris <rgm@gnu.org>
137
3369c79f
GM
138 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
139 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
140
d5e982a6
GM
141 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
142 HAVE_WINDOW_SYSTEM must be too.
143
6192e163
GM
144 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
145 (lisp): Remove WINNT_SUPPORT.
146
472c5d6b
GM
147 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
148 Let configure set these variables (to empty) in this case as well.
149
0116466b
GM
150 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
151 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
152
5a903aa9
GM
153 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
154 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
155 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
156 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
157 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 158 the values output by configure.
5a903aa9
GM
159 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
160
1a0d7c06
GM
1612010-05-12 Glenn Morris <rgm@gnu.org>
162
b5457f14
GM
163 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
164 (LINKER_WAS_SPECIFIED): Remove.
165
1a0d7c06
GM
166 * Makefile.in (LIB_GCC): Set using configure, not cpp.
167 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
168 * m/arm.h (LIB_GCC) [GNU_LINUX]:
169 * s/cygwin.h (LIB_GCC):
170 * s/freebsd.h (LIB_GCC):
171 * s/gnu-linux.h (LIB_GCC):
172 * s/msdos.h (LIB_GCC):
173 * s/netbsd.h (LIB_GCC):
174 Move to configure.
175
3ffd4615 1762010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
177
178 * ftfont.c: Fix incorrect parentheses of #if condition for
179 definining M17N_FLT_USE_NEW_FEATURE.
180
acddf8ae
GM
1812010-05-11 Glenn Morris <rgm@gnu.org>
182
183 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
184 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
185
ae5e04fa
EZ
1862010-05-10 Eli Zaretskii <eliz@gnu.org>
187
188 * xdisp.c (init_iterator): Don't turn on bidi reordering in
189 unibyte buffers. See
190 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
191
7490175b
GM
1922010-05-10 Glenn Morris <rgm@gnu.org>
193
97efb629
GM
194 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
195 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
196 (LIBES): Use LIBS_SYSTEM as a variable.
197 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
198 * s/aix4-2.h (LIBS_SYSTEM):
199 * s/freebsd.h (LIBS_SYSTEM):
200 * s/hpux10-20.h (LIBS_SYSTEM):
201 * s/sol2-6.h (LIBS_SYSTEM):
202 * s/unixware.h (LIBS_SYSTEM):
203 Move to configure.
204
7490175b
GM
205 * s/aix4-2.h (MAIL_USE_LOCKF):
206 * s/bsd-common.h (MAIL_USE_FLOCK):
207 * s/darwin.h (MAIL_USE_FLOCK):
208 * s/gnu-linux.h (MAIL_USE_FLOCK):
209 * s/irix6-5.h (MAIL_USE_FLOCK):
210 * s/template.h (MAIL_USE_FLOCK):
211 Move to configure.
212
0235128c 2132010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
214
215 * Version 23.2 released.
216
0235128c 2172010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
218
219 * composite.c (autocmp_chars): Save point as marker before calling
220 auto-composition-function (Bug#5984).
221
222 * lisp.h (restore_point_unwind): Add prototype.
223
224 * fileio.c (restore_point_unwind): Remove static attribute.
225
0235128c 2262010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
227
228 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
229 new feature of libotf and m17n-flt.
0235128c
SM
230 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
231 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
232 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
233 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
234 that OUT is NULL. Use OTF_drive_gsub_with_log and
235 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
236 OTF_drive_gpos.
237 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
238 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
239 Setup mflt_enable_new_feature and mflt_try_otf.
240
4721152c
J
2412010-05-08 Jan Djärv <jan.h.d@swipnet.se>
242
243 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
244
245 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
246 box and toolbar (Bug #6139).
247 (xg_create_tool_bar): Remove comment (Bug #6139).
248 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
249 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
250
ee0a16cf
JB
2512010-05-08 Juanma Barranquero <lekktu@gmail.com>
252
253 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
254 Update dependencies.
255
96d79611
EZ
2562010-05-08 Eli Zaretskii <eliz@gnu.org>
257
258 * fringe.c (update_window_fringes): Set up truncation bitmaps for
259 R2L lines.
260
40c17879
GM
2612010-05-08 Glenn Morris <rgm@gnu.org>
262
7b42b29f
GM
263 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
264
40c17879
GM
265 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
266 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
267 (termcapobj): Replace with TERMCAP_OBJ.
268 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
269 (LIBES): Use LIBS_TERMCAP as a variable.
270
271 * s/freebsd.h (osreldate.h): No longer include, since this file
272 does not use __FreeBSD_version any more.
273
274 * s/aix4-2.h (TERMINFO):
275 * s/cygwin.h (TERMINFO):
276 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
277 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
278 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
279 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
280 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
281 * s/irix6-5.h (TERMINFO):
282 * s/netbsd.h (LIBS_TERMCAP):
283 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
284 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
285 * s/usg5-4.h (TERMINFO):
286 Move to configure.
287
94b612ad
SM
2882010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
289
290 * eval.c (unbind_to): Don't unbind a local binding into the global
291 binding when the local binding disappeared. Inversely, don't unbind
292 a global binding into a newly created local binding.
293 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
294 can specify the frame to use, when applicable. Adjust callers.
295
15e12598
VB
2962010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
297 Stefan Monnier <monnier@iro.umontreal.ca>
298
299 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
300
f724825e
EZ
3012010-05-07 Eli Zaretskii <eliz@gnu.org>
302
5cba3209
EZ
303 * w32fns.c: Include w32.h.
304 (Fw32_shell_execute): Decode the error message before passing it
305 to `error'. (Bug#6126)
306
d16bdfc3
EZ
307 * msdos.c (dos_set_window_size):
308 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
309 instead of `XSYMBOL (foo)->value'.
310
59d93e87
EZ
3112010-05-07 Eli Zaretskii <eliz@gnu.org>
312
9fdec8bc
EZ
313 Fix the MS-DOS build, broken by autoconfiscation.
314
315 * Makefile.in: Don't use Make-style comments past the "start of
316 cpp stuff" line.
317 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
318
319 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
320 edited directly by msdos/sed1v2.inp).
f724825e 321
2f86b22b
GM
3222010-05-07 Glenn Morris <rgm@gnu.org>
323
324 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
325 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
326 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
327 move out of cpp section.
328 * s/freebsd.h (LD_SWITCH_SYSTEM):
329 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
330 * s/netbsd.h (LD_SWITCH_SYSTEM):
331 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
332
49ebbd65
DN
3332010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
334
335 Define LIB_STANDARD and START_FILES using autoconf.
336 * s/usg5-4.h (LIB_STANDARD):
337 * s/netbsd.h (START_FILES):
338 * s/irix6-5.h (LIB_STANDARD):
339 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
340 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
341 * s/freebsd.h (START_FILES):
342 * s/darwin.h (START_FILES):
343 * s/cygwin.h (START_FILES):
344 * s/aix4-2.h (LIB_STANDARD):
345 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
346 * Makefile.in (STARTFILES): Rename to START_FILES, define using
347 autoconf, not cpp.
348
d43c06d6
DN
3492010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
350
28823648
DN
351 Remove NEED_BSDTTY and NEED_UNISTD_H.
352 * s/hpux10-20.h (NEED_BSDTTY): Remove.
353 * s/aix4-2.h (NEED_UNISTD_H): Remove.
354 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
355 <sys/ptyio.h> and <unistd.h>.
356
aca00430
DN
357 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
358
d43c06d6
DN
359 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
360 * s/gnu.h (START_FILES): Remove empty definition.
361
3e56b11d
JD
3622010-05-06 Jan Djärv <jan.h.d@swipnet.se>
363
364 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
365
e3cf0cde
GM
3662010-05-06 Glenn Morris <rgm@gnu.org>
367
368 * Makefile.in (CPP, LN_S): Remove unused variables.
369
774b9a60
SM
3702010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
371
372 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
373
4ab92842
LM
3742010-05-05 Lawrence Mitchell <wence@gmx.li>
375
376 * m/sparc.h: Fix typo in earlier change.
377
178f2507
SM
3782010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
379
380 Misc tweaks.
381 * eval.c (Fdefvaralias): Remove unintended nested if.
382 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
383
80f00217 3842010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
385
386 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
387
ef03a4e6
DN
3882010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
389
58eb6cf0
DN
390 Remove BSD_PGRPS.
391 * s/bsd-common.h (BSD_PGRPS): Remove undef.
392 * s/gnu-linux.h (BSD_PGRPS): Remove.
393 * term.c (dissociate_if_controlling_tty):
394 * sysdep.c (narrow_foreground_group, widen_foreground_group)
395 (init_sys_modes, reset_sys_modes):
396 * emacs.c (main):
397 * callproc.c (Fcall_process, child_setup): Remove code depending
398 on BSD_PGRPS.
399
ef03a4e6
DN
400 Remove POSIX_SIGNALS.
401 * s/usg5-4.h (POSIX_SIGNALS):
402 * s/netbsd.h (POSIX_SIGNALS):
403 * s/msdos.h (POSIX_SIGNALS):
404 * s/ms-w32.h (POSIX_SIGNALS):
405 * s/hpux11.h (POSIX_SIGNALS):
406 * s/gnu.h (POSIX_SIGNALS):
407 * s/gnu-linux.h (POSIX_SIGNALS):
408 * s/freebsd.h (POSIX_SIGNALS):
409 * s/darwin.h (POSIX_SIGNALS):
410 * s/cygwin.h (POSIX_SIGNALS):
411 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
412 * s/unixware.h:
413 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
414 * process.c (create_process):
415 * syssignal.h:
416 * sysdep.c (wait_for_termination, init_signals):
417 * process.c (create_process):
418 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
419 remove all code that assumes the contrary.
420
49628785
GM
4212010-05-04 Glenn Morris <rgm@gnu.org>
422
27a2cdfc
GM
423 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
424 variable.
425 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
426 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
427 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
428 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
429 LD_SWITCH_SYSTEM_tmp.
430 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
431 New variables, set by configure.
432
eb21eab5
GM
433 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
434 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
435 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
436 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
437 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
438
49628785
GM
439 * s/aix4-2.h (C_SWITCH_SYSTEM):
440 * m/alpha.h (C_SWITCH_MACHINE):
441 Move to configure.in.
442 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
443 New variables, set by configure.
444 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
445 $c_switch_machine and $c_switch_system.
446
7dff330b
DN
4472010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
448
449 * s/hpux10-20.h (LIB_STANDARD): New definition.
450 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
451 on it, not used anymore.
452
53967e09
CY
4532010-05-03 Chong Yidong <cyd@stupidchicken.com>
454
455 * eval.c (internal_condition_case_n): Rename from
456 internal_condition_case_2.
457 (internal_condition_case_2): New function.
458
459 * xdisp.c (safe_call): Use internal_condition_case_n.
460
461 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
462 (internal_delete_file, Frename_file): Callers changed.
463
464 * buffer.c (Fkill_buffer):
465 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
466
467 * lisp.h: Update prototypes.
468
3dee6fdb
GM
4692010-05-03 Glenn Morris <rgm@gnu.org>
470
471 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
472 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
473 (LIBXT): Set with configure, not cpp.
474 (LIBX): Remove.
475 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
476
a101e0fb
DN
4772010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
478
479 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
480 The FreeBSD is not needed, the default works, Solaris version is
481 not needed, and the remaining case is not supported by configure.
482
f63d0028
JD
4832010-05-02 Jan Djärv <jan.h.d@swipnet.se>
484
485 * xsmfns.c (CHDIR_OPT): New define.
486 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
487 restarting emacs.
488
489 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
490 shut_down_emacs.
491
492 * emacs.c (USAGE1): Mention --chdir.
493 (main): Handle --chdir.
494 (standard_args): Add --chdir.
495 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
496 #5552).
497
e4814a9f
DN
4982010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
499
cd03c74a
DN
500 Remove LD_SWITCH_MACHINE.
501 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
502 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
503
c3a398a1
DN
504 Clean up IRIX code.
505 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
506 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
507
87e7285c
DN
508 Clean up AIX code.
509 * m/ibmrs6000.inp: Remove file, unused.
510 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
511 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
512 definition ...
513 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
514
80f00217
JB
515 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
516 unused.
e4814a9f 517
59ca28de
EZ
5182010-05-01 Eli Zaretskii <eliz@gnu.org>
519
197daef4
EZ
520 Emulate POSIX_SIGNALS on MS-Windows.
521
522 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
523 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
524
525 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
526 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
527 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
528
80f00217
JB
529 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
530 New stubs.
197daef4 531
af7c7572
EZ
532 Miscellaneous fixes of bidi display.
533
59ca28de
EZ
534 * xdisp.c (find_row_end): New function, refactored from display_line.
535 (display_line): Use it.
017ea819
EZ
536 (extend_face_to_end_of_line): In almost-filled rows, extend only
537 if the row is R2L and not continued.
166e930d 538 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 539 Preserve overlay and string info in row->end.
166e930d
EZ
540 (insert_left_trunc_glyphs): Support addition of left truncation
541 glyphs to R2L rows.
b47e0dcf 542 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
543 glyph between adjacent windows. Fix a crash when a display string
544 is continued to the next line. Don't return zero if cursor was
545 found by `cursor' property of a display string.
b47e0dcf
EZ
546 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
547 test for that explicitly.
59ca28de 548
7acac9f4
GM
5492010-05-01 Glenn Morris <rgm@gnu.org>
550
551 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
552 for clarity.
553 (OTHER_OBJ): Remove.
554 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
555 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
556
45841e65
KK
5572010-05-01 Karel Klíč <kklic@redhat.com>
558
559 * fileio.c (Ffile_selinux_context): Context functions may return null.
560
afc61943
DN
5612010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
562
80f00217 563 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 564
5a1bb006
GM
5652010-04-30 Glenn Morris <rgm@gnu.org>
566
567 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
568 (OTHER_OBJ): Define as a separate variable, for clarity.
569
210af043
J
5702010-04-30 Jan Djärv <jan.h.d@swipnet.se>
571
572 * xsettings.c: include limits.h and update file comment.
573
0a7df391
GM
5742010-04-30 Glenn Morris <rgm@gnu.org>
575
d5096f16
GM
576 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
577 Set with configure, not cpp.
578 (LIBW): Remove, replace with $TOOLKIT_LIBW.
579
7eb1ac33
GM
580 * Makefile.in (mallocobj): Remove.
581 (otherobj): Simplify using @OTHER_OBJ@.
582
517d086b
GM
583 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
584 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
585 Don't bother making nsgui.h dependency platform-specific.
586
0a7df391
GM
587 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
588
d6d23852
SM
5892010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
590
d2630aef
SM
591 * process.c (read_process_output, exec_sentinel): Don't burp if the
592 sentinel/filter kills the current buffer (bug#6060).
593
f9dddf52 594 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
595 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
596 Remove unused var `args'.
597 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
598 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
599 * doc.c (store_function_docstring): Use XSETCAR.
600
f1e3642a
GM
6012010-04-28 Glenn Morris <rgm@gnu.org>
602
faf535f8
GM
603 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
604 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
605
c40f9449
GM
606 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
607
658f86ca
GM
608 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
609 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
610
bc0b5f61
GM
611 * Makefile.in (FONT_OBJ): New, set by configure.
612 (FONT_DRIVERS): Use $FONT_OBJ.
613
294c50a0
GM
614 * Makefile.in (LIBXMU): Set with configure, not cpp.
615 * s/aix4-2.h (LIBXMU):
616 * s/hpux10-20.h (LIBXMU):
617 Remove definition, now set in configure.
618
e6ec4e99
GM
619 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
620
f1e3642a
GM
621 * m/amdx86-64.h [i386]: Move this test to configure.in.
622
c6ea2936
GM
6232010-04-27 Glenn Morris <rgm@gnu.org>
624
8fdac2c3
GM
625 * Makefile.in (LIBXTR6): Set with configure, not cpp.
626 * s/unixware.h (NEED_LIBW): Remove definition.
627
986fb647
GM
628 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
629 (TOOLKIT_LIBW): New, set by configure.
630 (@X_TOOLKIT_TYPE@): No longer define it.
631
c6ea2936
GM
632 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
633 (MOTIF_LIBW): Set with configure, not cpp.
634 * s/aix4-2.h (LIB_MOTIF):
635 * s/gnu-linux.h (LIB_MOTIF):
636 * s/unixware.h (LIB_MOTIF): Move to configure.in.
637
aaa36002
DN
6382010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
639
640 Reduce CPP usage.
641 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
642 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
643 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
644 definitions and undefs. Inline definitions in the only user.
645 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 646
b678dd8b
GM
6472010-04-27 Glenn Morris <rgm@gnu.org>
648
76cda504
GM
649 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
650 since the defaults (set by the system file) are fine in most cases.
651 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
652 * m/ibms390x.h (START_FILES, LIB_STANDARD):
653 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
654 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
655 Remove definitions, since they are set correctly in s/gnu-linux.h.
656 * s/freebsd.h (START_FILES, LIB_STANDARD):
657 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
658 * s/hpux10-20.h (START_FILES):
659 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
660 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
661
b678dd8b
GM
662 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
663 (MOTIF_LIBW): Use $LIBXP.
664 (otherobj): Use $WIDGET_OBJ.
665
9452ded1
DN
6662010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
667
7e10844c
DN
668 * Makefile.in (LIBS_MACHINE): Remove, unused.
669
9452ded1
DN
670 Use autoconf instead of cpp for LIB_MATH.
671 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
672 * s/cygwin.h (LIB_MATH): Likewise.
673 * Makefile.in (LIB_MATH): Do not define with cpp.
674 (LIBES): Use autoconf for LIB_MATH.
675
fcebfc6a
KH
6762010-04-26 Kenichi Handa <handa@m17n.org>
677
678 * composite.c (Ffind_composition_internal): Fix the return value
679 for an automatic composition.
680
39e2ad1b
DN
6812010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
682
683 Remove all NO_ARG_ARRAY uses.
684 * fns.c (concat2, concat3, nconc2):
685 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
686 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
687 * m/xtensa.h (NO_ARG_ARRAY):
688 * m/template.h (NO_ARG_ARRAY):
689 * m/sparc.h (NO_ARG_ARRAY):
690 * m/sh3.h (NO_ARG_ARRAY):
691 * m/mips.h (NO_ARG_ARRAY):
692 * m/macppc.h (NO_ARG_ARRAY):
693 * m/iris4d.h (NO_ARG_ARRAY):
694 * m/intel386.h (NO_ARG_ARRAY):
695 * m/ibms390x.h (NO_ARG_ARRAY):
696 * m/ibms390.h (NO_ARG_ARRAY):
697 * m/ibmrs6000.h (NO_ARG_ARRAY):
698 * m/ia64.h (NO_ARG_ARRAY):
699 * m/hp800.h (NO_ARG_ARRAY):
700 * m/arm.h (NO_ARG_ARRAY):
701 * m/amdx86-64.h (NO_ARG_ARRAY):
702 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
703
adf4f59c
EZ
7042010-04-25 Eli Zaretskii <eliz@gnu.org>
705
6bdf5d65
EZ
706 * xdisp.c (display_line): Don't assume 2nd call to
707 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
708 (iterate_out_of_display_property): New function, body from pop_it.
709 (pop_it): Use it.
adf4f59c 710
dfbbda83
GM
7112010-04-24 Glenn Morris <rgm@gnu.org>
712
713 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
714 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
715 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
716 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
717
2d4018aa
EZ
7182010-04-24 Eli Zaretskii <eliz@gnu.org>
719
a49884a6
EZ
720 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
721 use `get_next_display_element' and `set_iterator_to_next' to
722 advance to the next character, when looking for the character that
723 begins the next row.
724
76db6fcc 725 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
726 definition of "struct Lisp_Symbol".
727
70eab5c1
GM
7282010-04-24 Glenn Morris <rgm@gnu.org>
729
730 * Makefile.in (CRT_DIR): New variable, set by configure.
731 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
732 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
733
1ad4cc3d
DN
7342010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
735
e769f484
DN
736 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
737
4196ff33
DN
738 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
739
879b0ee4
DN
740 Remove redundant flags.
741 * s/freebsd.h (C_SWITCH_SYSTEM):
742 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
743 * s/netbsd.h (C_SWITCH_SYSTEM):
744 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
745 of these.
746
03cbbcb8
DN
747 Simplify m/intel386.h.
748 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
749 user: ecrt0.c.
750 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
751 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
752 the only user: s/unixware.h.
753 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
754 from m/intel386.h.
755 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
756 moved here from m/intel386.h.
757
1ad4cc3d
DN
758 * m/mips.h: Remove #if 0 code.
759
8785b888
EZ
7602010-04-23 Eli Zaretskii <eliz@gnu.org>
761
728588cc
EZ
762 Fix display of composed characters from L2R scripts in bidi buffers.
763 * xdisp.c (set_iterator_to_next, next_element_from_composition):
764 After advancing IT past the composition, resync the bidi iterator
765 with IT's position. (Bug#5977)
766
a63f80b4
DN
7672010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
768
769 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
770 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
771
ff5dec5c
SM
7722010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
773
774 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
775
8785b888
EZ
7762010-04-23 Eli Zaretskii <eliz@gnu.org>
777
58ccf243 778 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
779 * xdisp.c (pop_it): When the stack is popped after displaying
780 from a string, bidi-iterate to exit from the text portion covered
781 by the `display' property or overlay. (Bug#5988, bug#5920)
782
feeb1604
DN
7832010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
784
8e324eb6
DN
785 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
786 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
787
809fcaba
DN
788 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
789 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
790
ed710380
DN
791 Simplify STARTFILES definition.
792 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
793 relying on Makefile.in to define it.
794 * s/cygwin.h (START_FILES): Likewise.
795 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
796
feeb1604
DN
797 Clean up Solaris code.
798 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
799 (LIB_MOTIF): Remove, configure takes care of this.
800 (NOT_USING_MOTIF): Remove, unused.
801 * xrdb.c: Remove #if 0-ed #include.
802 (SYSV): Remove conditional for old SysV.
803 * sysdep.c (closedir): Remove conditional code for Solaris,
804 Solaris has closedir.
805
a0d0b563
JD
8062010-04-22 Jan Djärv <jan.h.d@swipnet.se>
807
808 * xsettings.c (read_and_apply_settings): Check if current_font is
809 NULL before strcmp (Bug#6001).
810
56bae7c7
DN
8112010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
812
813 Clean up HP-UX files.
814 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
815 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
816 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
817 * s/hpux10-20.h: ... to the only user, here.
818
372b7a95
EZ
8192010-04-21 Eli Zaretskii <eliz@gnu.org>
820
821 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
822 use buffer-local values of paragraph-start and paragraph-separate.
823 <paragraph_start_re, paragraph_separate_re>: Rename from
824 fallback_paragraph_start_re and fallback_paragraph_separate_re.
825 (Bug#5992)
826
f904c0f9
JD
8272010-04-21 Jan Djärv <jan.h.d@swipnet.se>
828
829 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
830 current_tool_bar_style are new.
831 (store_config_changed_event): Rename from store_font_changed_event.
832 (XSETTINGS_TOOL_BAR_STYLE): New define.
833 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
834 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
835 HAVE_XFT.
836 (something_changedCB): store_font_changed_event is now
837 store_config_changed_event
838 (parse_settings): Rename from parse_xft_settings. Read
839 non-xft xsettings outside #ifdef HAVE_XFT.
840 (read_settings): Renamed from read_xft_settings.
841 (apply_xft_settings): Take current settings as parameter. Do not
842 call read_(xft)_settings.
843 (read_and_apply_settings): New function.
844 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
845 read_and_apply_settings if there are settings to be read.
846 (init_xsettings): Renamed from init_xfd_settings.
847 Call read_and_apply_settings unconditionally.
848 (xsettings_initialize): Call init_xsettings.
849 (Ftool_bar_get_system_style): New function.
850 (syms_of_xsettings): Define Qmonospace_font_name and
851 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 852 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 853 dynamic-setting.
31a01b90 854 Move misplaced HAVE_GCONF
f904c0f9
JD
855
856 * xsettings.h (Ftool_bar_get_system_style): Declare.
857
858 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
859 Qtext, Qboth, Qboth_horiz are new.
860 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
861 Vtool_bar_style, tool_bar_max_label_size.
862
863 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
864
865 * keyboard.c: QClabel is new.
866 (parse_tool_bar_item): Take out QClabel from tool bar items.
867 Try to construct a label if ther is no QClabel.
868 (syms_of_keyboard): Intern :label as QClabel.
869
870 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
871 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
872 New.
873
874 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
875 dynamic-setting.el.
876
877 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
878 (xg_make_tool_item, xg_show_toolbar_item): New function.
879 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
880 Call xg_make_tool_item to make a tool bar item.
881 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
882
883 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
884 into account for toolbars.
885
c632dfda
JD
8862010-04-21 Jan Djärv <jan.h.d@swipnet.se>
887
888 * data.c (make_blv): Declarations before code (Bug#5993).
889
10efe302
GM
8902010-04-21 Glenn Morris <rgm@gnu.org>
891
892 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
893 Define using autoconf, not cpp.
894 (LIBXSM): New variable, set by autoconf.
895 (LIBXT): Use $LIBXSM.
896
4285ac5a
DN
8972010-04-21 Dan Nicolaescu <local_user@dannlt>
898
3ec759e7
DN
899 Remove NOMULTIPLEJOBS, unused.
900 * s/template.h (NOMULTIPLEJOBS):
901 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
902
4285ac5a
DN
903 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
904 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
905 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
906 detects -znocombreloc and passes it to the linker
907 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
908
2807228d
GM
9092010-04-21 Glenn Morris <rgm@gnu.org>
910
911 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
912
574c05e2
KK
9132010-04-21 Karel Klíč <kklic@redhat.com>
914
915 * Makefile.in (LIBSELINUX_LIBS): New.
916 (LIBES): Add $LIBSELINUX_LIBS.
917 * eval.c, lisp.h (call7): New function.
918 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
919 (Ffile_selinux_context, Fset_file_selinux_context):
920 New functions.
921 (Fcopy_file): New parameter preserve-selinux-context.
922 (Frename_file): Preserve selinux context when renaming by copy-file.
923
91eac4bb 9242010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 925 Eli Zaretskii <eliz@gnu.org>
91eac4bb 926
50426a04
JB
927 Don't depend on cm.c or termcap.c on Windows, use stubs.
928 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
929 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
930 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
931 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
932 (sys_tputs, sys_tgetstr): New stubs.
933 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
934 (tputs, tgetstr): New; define to sys_*.
91eac4bb 935
938efb77
JB
9362010-04-20 Juanma Barranquero <lekktu@gmail.com>
937
938 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
939
b4bf28b7
SM
9402010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
941
8b1e1112
SM
942 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
943 Just signal a warning rather than an error when inside a let.
944 (Fmake_variable_frame_local): Add the same test.
945
933ac235
SM
946 * font.c (syms_of_font): Make the style table vars read-only.
947
b4bf28b7
SM
948 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
949 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
950
951 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
952
93d68d0c
EZ
9532010-04-20 Eli Zaretskii <eliz@gnu.org>
954
955 Fix R2L paragraph display on TTY.
956
957 * xdisp.c (unproduce_glyphs): New function.
958 (display_line): Use it when produced glyphs are discarded from R2L
959 glyph rows.
960 (append_composite_glyph): In R2L rows, prepend the glyph rather
961 than appending it.
962
963 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
964 rather than append it. Set up the resolved_level and bidi_type
965 attributes of the appended glyph.
283ccc18
EZ
966 (produce_special_glyphs): Mirror the backslash continuation
967 character in R2L lines.
93d68d0c 968
283ccc18 969 Implement display of R2L paragraphs in GUI sessions.
26cdf528 970
283ccc18
EZ
971 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
972 append_stretch_glyph.
973 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
974 off-by-one error in computing x at end of text in the row.
975 (append_stretch_glyph): In reversed row, prepend the glyph rather
976 than append it. Set resolved_level and bidi_type of the glyph.
977 (extend_face_to_end_of_line): If the row is reversed, prepend a
978 stretch glyph whose width is such that the rightmost glyph will be
979 drawn at the right margin of the window. Fix off-by-one error on
980 TTY frames in testing whether a line needs face extension. Fix
981 face extension at ZV. If this is the last glyph row, use
982 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
983 region face.
984 (set_cursor_from_row, display_line): Use
26cdf528
EZ
985 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
986 row->continuation_lines_width.
283ccc18
EZ
987 (next_element_from_buffer): Don't call bidi_paragraph_init if we
988 are at ZV. Fixes a crash when reseated to ZV by
989 try_window_reusing_current_matrix.
45903529
EZ
990 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
991 which happens with R2L glyph rows. Fixes a crash when inserting a
992 character at end of an R2L line.
283ccc18
EZ
993 (set_cursor_from_row): Don't be fooled by truncated rows: don't
994 treat them as having zero-width characters. Improve comments.
995 Don't reverse pos_before and pos_after for reversed glyph rows.
996 Set cursor.x to negative value when the cursor might be on the
997 left fringe.
998 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
999 left fringe, not the right one.
f951a506
EZ
1000 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1001 (erase_phys_cursor): For reversed cursor_row, support cursor on
1002 the left fringe.
1003
283ccc18
EZ
1004 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1005 of continuation indicators on the fringes.
1006 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1007 left fringe.
1008
f951a506
EZ
1009 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1010 draw cursor on the left fringe.
1011
1012 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1013 cursor on the left fringe.
1014
f951a506
EZ
1015 * dispnew.c (update_text_area): Handle reversed desired rows when
1016 the cursor is on the left fringe.
1017 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1018 below, not by 0, for when the cursor is on the left fringe.
1019
3bb49aaf
JD
10202010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1021
1022 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1023 widget is a scrollbar.
1024
c0be27fd
KH
10252010-04-20 Kenichi Handa <handa@m17n.org>
1026
1027 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1028 only when the arg CHARSET_LIST is nil.
1029
ce5b453a
SM
10302010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1031
1032 Make variable forwarding explicit rather the using special values.
1033 Basically, this makes the structure of buffer-local values and object
1034 forwarding explicit in the type of Lisp_Symbols rather than use
1035 special Lisp_Objects for that. This tends to lead to slightly more
1036 verbose code, but is more C-like, simpler, and makes it easier to make
1037 sure we handled all cases, among other things by letting the compiler
1038 help us check it.
1039 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1040 Removing forwarding objects.
1041 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1042 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1043 explicit rather than hiding them inside Lisp_Object "values".
1044 (XFWDTYPE): New macro.
1045 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1046 (XBUFFER_LOCAL_VALUE): Remove.
1047 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1048 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1049 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1050 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1051 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1052 Remove the Lisp_Misc_* header.
1053 (struct Lisp_Buffer_Local_Value): Redefine.
1054 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1055 (struct Lisp_Misc_Any): Add filler to get the right size.
1056 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1057 Lisp_Intfwd.
1058 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1059 (DEFVAR_KBOARD): Allocate a forwarding object.
1060 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1061 (let_shadows_global_binding_p): New function.
1062 (union Lisp_Val_Fwd): New type.
1063 (make_blv): New function.
1064 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1065 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1066 (swap_in_symval_forwarding, find_symbol_value, Fset)
1067 (let_shadows_buffer_binding_p, set_internal, default_value)
1068 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1069 (Fkill_local_variable, Fmake_variable_frame_local)
1070 (Flocal_variable_p, Flocal_variable_if_set_p)
1071 (Fvariable_binding_locus):
1072 * xdisp.c (select_frame_for_redisplay):
1073 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1074 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1075 * frame.c (store_frame_param):
1076 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1077 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1078 value structure.
1079 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1080 (clone_per_buffer_values): Only adjust markers into the current buffer.
1081 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1082 (Fbuffer_local_value, set_buffer_internal_1)
1083 (swap_out_buffer_local_variables):
1084 Adapt to the new symbol value structure.
1085 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1086 (defvar_per_buffer): Take a new arg for the fwd object.
1087 (buffer_lisp_local_variables): Return a proper alist (different fix
1088 for bug#4138).
1089 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1090 (Fgarbage_collect): Don't handle buffer_defaults specially.
1091 (mark_object): Handle new symbol value structure rather than the old
1092 special Lisp_Misc_* objects.
1093 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1094 * term.c (set_tty_color_mode):
1095 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1096 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1097 a buffer_local_flags.
1098 * print.c (print_object): Get rid of impossible forwarding objects.
1099
fd3998ff
EZ
11002010-04-19 Eli Zaretskii <eliz@gnu.org>
1101
1102 * bidi.c (bidi_get_type, bidi_get_category)
1103 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1104 (bidi_type_of_next_char, bidi_level_of_next_char):
1105 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1106
e42cd1a7
JB
11072010-04-19 Juanma Barranquero <lekktu@gmail.com>
1108
1109 * dired.c (Ffile_attributes): Fix typo in docstring.
1110
6e104790 11112010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1112
1113 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1114 NSInteger (Bug#5811).
1115
6e104790 11162010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1117
1118 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1119 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1120
6e104790 11212010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1122
1123 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1124
6e104790
SM
11252010-04-19 Chong Yidong <cyd@stupidchicken.com>
1126
1127 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1128 terminal frames (Bug#5837).
1129
37dcfea0
EZ
11302010-04-19 Eli Zaretskii <eliz@gnu.org>
1131
d1da276f
EZ
1132 * .gdbinit (xsubchartable): New command.
1133
37dcfea0
EZ
11342010-04-19 Eli Zaretskii <eliz@gnu.org>
1135
1136 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1137 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1138 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1139 and
1140 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1141
e9515805
SM
11422010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1143
1144 * alloc.c (Fpurecopy): Hash-cons if requested.
1145 (syms_of_alloc): Update purify-flag docstring.
1146
22aa44a8
JD
11472010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1148
1149 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1150 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1151
ebb5722e
EZ
11522010-04-17 Eli Zaretskii <eliz@gnu.org>
1153
1154 Fix a crash when an NSM character is inserted at BEGV.
1155
1156 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1157 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1158 NEUTRAL_B or UNKNOWN_BT.
1159
0f4442ef
EZ
11602010-04-16 Eli Zaretskii <eliz@gnu.org>
1161
1162 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1163 other rows with cursor unless they are different from this row and
1164 this row is part of a continued line. (Bug#5943)
1165
7d4e45f8
DN
11662010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1167
1168 * s/freebsd.h: Restore osreldate.h include.
1169 Suggested by Naohiro Aota.
1170
5ba5ec85
J
11712010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1172
1173 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1174
20af301d
CY
11752010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1176
1177 * s/cygwin.h: Avoid linking against static libgcc.
1178
a4b000fb
JL
11792010-04-15 Juri Linkov <juri@jurta.org>
1180
1181 * window.c: Add Qscroll_command.
1182 Remove Vscroll_preserve_screen_position_commands.
1183 (window_scroll_pixel_based, window_scroll_line_based): Check the
1184 `scroll-command' property on the last command instead of searching
1185 the last command in Vscroll_preserve_screen_position_commands.
1186 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1187 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1188 (scroll-preserve-screen-position): Doc fix.
1189 (Vscroll_preserve_screen_position_commands): Remove variable.
1190
bc319ba4
DN
11912010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1192
6bb24457
DN
1193 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1194
19d4c244
DN
11952010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1196
1197 Reduce cpp use in Makefile.in.
1198 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1199 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1200 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1201 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1202 (CRT0_COMPILE): Remove, inline it in the only user.
1203
32129746
JL
12042010-04-14 Juri Linkov <juri@jurta.org>
1205
1206 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1207 `scroll-up-command' and `M-v' from `scroll-down' to
1208 `scroll-down-command'.
1209
9013a7f8
JL
12102010-04-14 Juri Linkov <juri@jurta.org>
1211
1212 * window.c (Vscroll_preserve_screen_position_commands): New variable
1213 with the default value as the list of Qscroll_down and Qscroll_up.
1214 (window_scroll_pixel_based, window_scroll_line_based): Search the
1215 last command in the list Vscroll_preserve_screen_position_commands
1216 instead of comparing with Qscroll_up and Qscroll_down.
1217
4bef8d26
JD
12182010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1219
92848133
JD
1220 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1221 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1222 does that.
1223
4bef8d26
JD
1224 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1225 to zero.
1226
58b963f7
SM
12272010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1228
84164a0d
SM
1229 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1230
2b0a91e7
SM
1231 Try to solve the problem of spurious EOF chars in long lines of text
1232 sent to interactive subprocesses.
1233 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1234 (system_process_attributes): Remove unused var `ttotal'.
1235 * process.c (send_process): Don't bother breaking long line with EOF
1236 chars when talking to ttys any more.
1237 (wait_reading_process_output): Output a warning when called in such
1238 a way that it could block without being interruptible.
1239
58b963f7
SM
1240 Try to detect file modification within the same second.
1241 * buffer.h (struct buffer): New field modtime_size.
1242 * buffer.c (reset_buffer): Initialize it.
1243 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1244 (Fverify_visited_file_modtime): Check it.
1245 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1246 (Fset_visited_file_modtime): Set (or clear) it.
1247
01f5787b
SM
12482010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1249
1250 * process.c (status_notify): Remove unused var `ro'.
1251
83725342
JD
12522010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1253
1254 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1255 more than one visual (Bug#5938).
1256
b9465836
DN
12572010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1258
50426a04
JB
1259 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1260 Undefine.
b9465836 1261
8d9c8ece
DN
12622010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1263
b1f52161
DN
1264 Remove C_SWITCH_SYSTEM_TEMACS.
1265 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1266 (malloc, realloc, free): Use emacs, not temacs for conditional
1267 definition.
1268
1269 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1270 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1271
8d9c8ece
DN
1272 Use autoconf, not cpp for some variables.
1273 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1274 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1275 (ALL_CFLAGS): Use them as make variables.
1276 (really-lwlib, really-oldXMenu): Do not pass them.
1277
1ecb2d3f
JD
12782010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1279
1280 * xmenu.c (apply_systemfont_to_dialog): New.
1281 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1282
3a4fa2f2
SM
12832010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1284
97e53006
SM
1285 * process.c (exec_sentinel): Preserve current-buffer.
1286
3a4fa2f2
SM
1287 * process.c (read_process_output): Move the save-current-buffer to
1288 apply to both the filter and the non-filter branches.
1289
88df7221
DN
12902010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1291
1292 * s/msdos.h (UNEXEC): New definition.
1293
5634ff85
YM
12942010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1295
6eff5c3d
YM
1296 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1297 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1298
1299 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1300 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1301 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1302 TRY_WINDOW_CHECK_MARGINS.
1303
1304 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1305 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1306 width only when it is for padding.
5634ff85 1307
b13aef54
J
13082010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1309
1310 * xfns.c (Fx_show_tip): Call try_window in a loop until
1311 fonts_changed_p is zero (Bug#2423).
1312
21d28484
EZ
13132010-04-08 Eli Zaretskii <eliz@gnu.org>
1314
1315 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1316 the end of TEXT_AREA. (Bug#5856)
1317
0269ef77
JD
13182010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1319
1320 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1321 HAVE_GCONF.
1322
5930fe97
EZ
13232010-04-08 Eli Zaretskii <eliz@gnu.org>
1324
1325 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1326 prev.orig_type, for resolving type of NSM. (Bug#5858)
1327
99852628
JD
13282010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1329
1330 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1331 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1332 in current_font.
1333 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1334 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1335 New functions.
1336 (syms_of_xsettings): Initialize current_font.
1337 defsubr Sfont_get_system_normal_font.
99852628
JD
1338
1339 * xsettings.h (Ffont_get_system_normal_font,
1340 xsettings_get_system_normal_font): Declare.
1341
1342 * xfns.c (extern xlwmenu_default_font): Remove.
1343 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1344 to xlwmenu.c.
1345
1346 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1347 menu items in UTF-8.
1348
1349 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1350 (apply_systemfont_to_menu): New function.
1351 (set_frame_menubar, create_and_show_popup_menu): Call
1352 apply_systemfont_to_menu.
1353
7fc874c4
J
13542010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1355
1356 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1357 FRAME_LINE_TO_PIXEL_Y.
1358
1359 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1360 pixelwidth/height.
1361
863bf481
DN
13622010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1363
5e5a3b92
DN
1364 Simplify code for HP machines.
1365 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1366 for GNU_LINUX, not needed.
1367 (UNEXEC, NEED_BSDTTY): Move definitions...
1368 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1369
863bf481
DN
1370 * m/iris4d.h (UNEXEC): Move definition ...
1371 * s/irix6-5.h (UNEXEC): ... here.
1372
3e6bec3b
JD
13732010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1374
1375 * xfns.c (set_machine_and_pid_properties): New function.
1376 (Fx_create_frame): Call set_machine_and_pid_properties.
1377
2912322b
SM
13782010-04-03 Eli Zaretskii <eliz@gnu.org>
1379
1502b819
EZ
1380 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1381 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1382 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1383
2912322b
SM
1384 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1385 in this function. (Bug#5703)
1386
13872010-04-03 Chong Yidong <cyd@stupidchicken.com>
1388
1389 * nsterm.h: Fix last change.
1390
c435b432
DN
13912010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1392
a568f507
DN
1393 * m/intel386.h (NO_REMAP): Move definition ...
1394 * s/msdos.h (NO_REMAP): ... here.
1395
4cd9f6c2
DN
1396 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1397
c435b432
DN
1398 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1399 used on those platforms.
1400
42a2c622
DN
14012010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1402
1403 Remove extern errno declarations.
1404 * xterm.c:
1405 * xrdb.c:
1406 * w32term.c:
1407 * unexec.c:
1408 * unexaix.c:
1409 * sysdep.c:
1410 * process.c:
1411 * lread.c:
1412 * keyboard.c:
1413 * floatfns.c:
1414 * filelock.c:
1415 * fileio.c:
1416 * emacs.c (main):
1417 * ecrt0.c:
1418 * dispnew.c:
1419 * callproc.c:
1420 * buffer.c: Remove errno extern declarations.
1421 * s/netbsd.h (NEED_ERRNO): Remove.
1422
8224f93d
DN
14232010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1424
1425 Remove all uses of LIBX11_SYSTEM.
1426 * Makefile.in (LIBX11_SYSTEM): Remove.
1427 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1428 instead.
1429
814062c7
EZ
14302010-04-01 Eli Zaretskii <eliz@gnu.org>
1431
ed68db4d
EZ
1432 Remove support for DJGPP v1.x (bug#5813).
1433
1434 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1435 * s/msdos.h:
1436 * unexec.c (make_hdr, copy_text_and_data):
1437 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1438 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1439 (IT_set_terminal_modes, __write, _rename, gethostname)
1440 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1441 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1442 the value of __DJGPP__.
ed68db4d
EZ
1443 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1444 compatibility code.
8224f93d
DN
1445 * lread.c:
1446 * gmalloc.c (memalign):
1447 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1448 * emacs.c (main):
1449 * dosfns.c (init_dosfns):
ed68db4d
EZ
1450 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1451
52f4d8d5
EZ
14522010-04-01 Eli Zaretskii <eliz@gnu.org>
1453
814062c7
EZ
1454 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1455 string with `cursor' property comes from an `after-string'
1456 overlay. (Bug#5816)
1457
0dc2e11d
GM
14582010-04-01 Glenn Morris <rgm@gnu.org>
1459
1460 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1461 Define as Makefile variables.
1462 (LIBX): Use above variables rather than directly using autoconf.
1463
1d29df59
DN
14642010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1465
1466 Clean up BSD_SYSTEM use.
1467 * xterm.c:
1468 * process.c:
1469 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1470 for including <sys/ioctl.h>.
1471 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1472 code is only used for MSDOS.
1473
1546c559
JL
14742010-03-31 Juri Linkov <juri@jurta.org>
1475
1476 * image.c: Add `Qextension_data'.
1477 (syms_of_image): Initialize and staticpro `Qextension_data'.
1478 (Fimage_metadata): Rename from `Fimage_extension_data'.
1479 (gif_load): Put GIF extension data to the property
1480 `Qextension_data'.
1481
b8a1d5a1
CY
14822010-04-05 Chong Yidong <cyd@stupidchicken.com>
1483
1484 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1485 terminal frames (Bug#5837).
1486
6521c534
CY
14872010-03-31 Chong Yidong <cyd@stupidchicken.com>
1488
1489 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1490 * nsterm.h: Fix prototype.
1491
52c30783
EZ
14922010-03-31 Eli Zaretskii <eliz@gnu.org>
1493
1494 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1495 trailing whitespace in right-to-left rows.
1496
855a0da7
SM
14972010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1498
1499 Get rid of the direct_output optimizations.
1500 * keyboard.c (nonundocount): Remove extern declaration.
1501 (command_loop_1): Remove brittle optimisation for cheap and
1502 common operations.
1503 * xdisp.c (redisplay_internal): Don't bother checking
1504 redisplay_performed_directly_p any more.
1505 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1506 any more.
1507 * dispnew.c (redisplay_performed_directly_p)
1508 (direct_output_for_insert, direct_output_forward_char):
1509 * dispextern.h (redisplay_performed_directly_p)
1510 (direct_output_for_insert, direct_output_forward_char): Remove.
1511 * cmds.c (nonundocount): Make it static.
1512
85738751 15132010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1514
1515 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1516
85738751 15172010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1518
1519 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1520 invisible (Bug#5766).
1521
85738751 15222010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1523
855a0da7
SM
1524 * xdisp.c (x_consider_frame_title, update_window_cursor):
1525 Remove HAVE_NS conditionals.
194d44e7 1526 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1527
1528 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1529 filename for the title.
1530 (ns_set_doc_edited): Do nothing if the selected window is a
1531 minibuffer window.
1532
1533 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1534 ns_set_doc_edited.
1535
1536 * nsterm.m: Remove unneeded prototype.
1537
85738751 15382010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1539
1540 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1541 in the DOC file. (Bug#5336)
1542
85738751 15432010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1544
1545 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1546
75d1428c
SM
15472010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1548
1549 * window.c (keys_of_window): Remove redundant/overridden bindings.
1550
82043cfb
EZ
15512010-03-30 Eli Zaretskii <eliz@gnu.org>
1552
1553 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1554 Restore original behavior when the iterator is not bidi_p.
1555
b5dd0ae7
DN
15562010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1557
1558 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1559
bd924a5d
EZ
15602010-03-30 Eli Zaretskii <eliz@gnu.org>
1561
1562 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1563 are outside the range of cached character positions.
1564
3580374b
JB
15652010-03-30 Juanma Barranquero <lekktu@gmail.com>
1566
1567 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1568
a7b02820
EZ
15692010-03-30 Eli Zaretskii <eliz@gnu.org>
1570
1571 Initial support for bidirectional editing.
1572
1573 * Makefile.in (obj): Include bidi.o.
1574 (bidi.o): New target.
1575
1576 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1577 ($(BLD)/bidi.$(O)): New target.
1578
1579 * bidi.c: New file.
1580
1581 * buffer.h (struct buffer): New members bidi_display_reordering
1582 and bidi_paragraph_direction.
1583
1584 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1585 and bidi_paragraph_direction.
1586 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1587 and bidi-paragraph-direction.
1588 (Fbuffer_swap_text): Swap the values of
1589 bidi_display_reordering and bidi_paragraph_direction.
1590
1591 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1592 (bidi_type_t, bidi_dir_t): New types.
1593 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1594 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1595 prev_stop, base_level_stop, and eol_pos.
1596 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1597 (IT_STACK_SIZE): Enlarge to 5.
1598 (struct glyph_row): New member reversed_p.
1599 <string_buffer_position>: Update prototype.
1600 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1601 glyph_row if bidi_it.paragraph_dir == R2L.
1602 (struct glyph): New members resolved_level and bidi_type.
1603
1604 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1605 processing or buffer's direction is right-to-left.
1606 (prepare_desired_row): Preserve the reversed_p flag.
1607 (row_equal_p): Compare the reversed_p attributes as well.
1608
1609 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1610 bidi_init_it and set it->paragraph_embedding from the current
1611 buffer's value of bidi_paragraph_direction.
1612 (reseat_1): Initialize bidi_it.first_elt.
1613 (set_iterator_to_next, next_element_from_buffer): Use the value of
1614 paragraph_embedding to determine the paragraph direction.
1615 (set_iterator_to_next): Under bidi reordering, call
1616 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1617 new_paragraph flag is set in the bidi iterator.
1618 (next_element_from_buffer): If bidi_it.first_elt is set,
1619 initialize paragraph direction and find the first character to
1620 display in the visual order. If reseated to a middle of a line,
1621 prime the bidi iterator starting at the line's beginning. Handle
1622 the situation where we overstepped stop_charpos due to
1623 non-linearity of the bidi iteration. Likewise for when we back up
1624 beyond the previous stop_charpos. When moving across stop_charpos,
1625 record it in prev_stop.
1626 (display_line): Set row->end and it->start for the next row to the
1627 next character in logical order. Always extend reversed_p rows to
1628 the end of line, even if they end at ZV. Copy the reversed_p flag
1629 to the next glyph row. Keep calling set_cursor_from_row for
1630 bidi-reordered rows even if we already have a possible candidate
1631 for cursor position. Set row_end after all the row's glyphs have
1632 been produced, by looping over the glyphs. Record the position
1633 after EOL in it->eol_pos, and use it to set end_pos of the last
1634 row produced for a continued line.
1635 <Qright_to_left, Qleft_to_right>: New variables.
1636 (syms_of_xdisp): Initialize and staticpro them.
1637 (string_buffer_position_lim): New function.
1638 (string_buffer_position): Most of code moved to
1639 string_buffer_position_lim. Last argument and return value are
1640 now EMACS_INT; all callers changed.
1641 (set_cursor_from_row): Rewritten to support bidirectional text and
1642 reversed glyph rows.
1643 (text_outside_line_unchanged_p, try_window_id): Disable
1644 optimizations if we are reordering bidirectional text and the
1645 paragraph direction can be affected by the change.
1646 (append_glyph, append_composite_glyph)
1647 (produce_image_glyph, append_stretch_glyph): Set the
1648 resolved_level and bidi_type members of each glyph.
1649 (append_glyph): If the glyph row is reversed, prepend the glyph
1650 rather than appending it.
1651 (handle_stop_backwards): New function.
1652 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1653 (reseat): call handle_stop_backwards to recompute prev_stop and
1654 base_level_stop for the new position.
1655 (handle_invisible_prop): Under bidi iteration, skip invisible text
1656 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1657 paragraph direction. Update IT->prev_stop after skipping
1658 invisible text.
1659 (move_it_in_display_line_to): New variables prev_method
1660 and prev_pos. Compare for strict equality in
1661 BUFFER_POS_REACHED_P.
1662 (try_cursor_movement): Examine all the candidate rows that occlude
1663 point, to return the best match. If rows are bidi-reordered
1664 and point moved backwards, back up to the row that is not a
1665 continuation line, and start looking for a suitable row from
1666 there.
1667
1668 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1669 rather than appending, if the glyph_row's reversed_p flag is set.
1670 Set the resolved_level and bidi_type members of each glyph.
1671
1672 * .gdbinit (pbiditype): New command.
1673 (pgx): Use it to display bidi level and type of the glyph.
1674 (pitx): Display some bidi information about the iterator.
1675 (prowlims, pmtxrows): New commands.
1676
32a8894e
DN
16772010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1678
1679 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1680 * s/usg5-4.h (LIBS_DEBUG):
1681 * s/irix6-5.h (C_DEBUG_SWITCH):
1682 * s/gnu-linux.h (LIBS_DEBUG):
1683 * s/darwin.h (LIBS_DEBUG):
1684 * s/bsd-common.h (LIBS_DEBUG):
1685 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1686 * m/iris4d.h (LIBS_DEBUG):
1687 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1688
1689 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1690 (LIBS_DEBUG): Remove definition.
1691
649dbf36
CY
16922010-03-27 Chong Yidong <cyd@stupidchicken.com>
1693
1694 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1695 Windows.
1696
cad4261f
YM
16972010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1698
1699 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1700 `connect' (Bug#5723).
1701
cd591dbc
HE
17022010-03-25 Helmut Eller <eller.helmut@gmail.com>
1703
1704 * process.c (Fmake_network_process): Call `select' for interrupted
1705 `connect' rather than creating new socket (Bug#5173).
1706
e867cb5d 17072010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1708
1709 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1710
1711 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1712
1713 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1714
e867cb5d 17152010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1716
1717 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1718 XLoadQueryFont.
1719
e867cb5d 17202010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1721
1722 * coding.c (decode_coding_ccl): Fix previous change for the
1723 multibyte case.
fb608df3
KH
1724 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1725 case that the output buffer is fullfilled.
1726 (encode_coding): Setup ccl program here.
fbdc1721 1727
e867cb5d 17282010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1729
1730 * editfns.c (Fformat): Account for string precision when computing
1731 field width (Bug#5710).
1732
5845f0ed
DN
17332010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1734
814fb708
DN
1735 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1736
5845f0ed
DN
1737 Simplify LIBS_MACHINE definitions.
1738 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1739 * m/iris4d.h (LIBS_MACHINE): Likewise.
1740 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1741 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1742 * s/netbsd.h: Remove commented out code.
5845f0ed 1743
b7064064
DN
17442010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1745
df7734b2
DN
1746 Remove dead code dealing with POSIX_SIGNALS.
1747 * atimer.c (set_alarm): Remove dead code, all USG systems define
1748 POSIX_SIGNALS.
1749 * data.c (arith_error): Likewise.
1750 * keyboard.c (input_available_signal, handle_user_signal)
1751 (interrupt_signal): Likewise.
1752 * process.c (sigchld_handler): Likewise.
1753 (create_process): Remove if 0 code. Remove HPUX conditional when
1754 !defined (POSIX_SIGNALS), it cannot be true.
1755 * syssignal.h: Remove USG5_4 and USG conditionals when
1756 !POSIX_SIGNALS, they cannot be true.
1757
b7064064
DN
1758 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1759 NO_SOCK_SIGIO, not used anymore.
1760
55da5ee3
DN
17612010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1762
0be96e3a
DN
1763 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1764 support vax on BSDs.
1765
55da5ee3
DN
1766 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1767 * s/aix4-2.h (ORDINARY_LINK): ... here.
1768
c0282183
AS
17692010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1770
82c3d67a
AS
1771 * Makefile.in (abs_builddir): Define.
1772 (bootstrap_exe): Use it.
1773 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1774
3613edce
SM
17752010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1776
1777 * Makefile.in (bootstrap_exe): Use an absolute name.
1778
7f110ddc
DN
17792010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1780
22e87574
DN
1781 Remove support for old GNU/Linux using libc version 5.
1782 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1783 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1784
05a670e6
DN
1785 Consolidate redundant definitions in s/bsd-common.h.
1786 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1787 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1788 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1789 doing it in all files that include this one.
1790 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1791 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1792 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1793 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1794 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1795 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1796 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1797 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1798 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1799
2968f561
DN
1800 Consolidate redundant definitions.
1801 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1802 it's undefined in all files that include this one.
1803 (POSIX_SIGNALS): Define here instead of doing it in all files that
1804 include this one.
1805 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1806 (POSIX_SIGNALS): Do not define.
1807 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1808 (POSIX_SIGNALS): Do not define.
1809 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1810 (POSIX_SIGNALS): Do not define.
1811
15d25dc0
DN
1812 Remove support for old UNIX System V systems.
1813 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1814 * s/usg-5-4-2.h: Remove.
1815
07e339e4
DN
1816 Remove support for Solaris on PPC and for old versions.
1817 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1818 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1819 that cancel each other.
1820 * s/sol2-3.h:
1821 * s/sol2-4.h:
1822 * s/sol2-5.h: Remove.
1823 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1824 (NO_REMAP): Remove, unused.
1825 (UNEXEC): Move definition ...
1826 * s/aix4-2.h (UNEXEC): ... here.
1827
7f110ddc
DN
1828 * s/openbsd.h: Remove support for non-ELF and for systems that do
1829 not support shared libraries.
1830 * s/netbsd.h:
1831 * s/freebsd.h: Likewise.
1832
605f35cd
DN
18332010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1834
1835 Remove non-working support for lynxos 3.0.
1836 * s/lynxos.h: Remove file.
1837
1838 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1839 COFF_BSD_SYMBOLS, nothing defines it anymore.
1840
aed71cf4
DN
18412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1842
1843 Remove obsolete uses of HAVE_SHM.
1844 * emacs.c (standard_args):
1845 (Fdump_emacs):
1846 (syms_of_emacs): Remove code depending on HAVE_SHM.
1847
1848 * alloc.c: Remove HAVE_SHM dependent definition.
1849
1850 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1851
aded53ff
GM
18522010-03-18 Glenn Morris <rgm@gnu.org>
1853
17284745
GM
1854 * emacs.c (USAGE4): Hard-code bug address.
1855 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1856 (bug_reporting_address): Remove.
1857 (main): Don't call bug_reporting_address.
1858
aded53ff
GM
1859 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1860 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1861
303500aa
CY
18622010-03-15 Chong Yidong <cyd@stupidchicken.com>
1863
1864 * xfns.c (Fx_create_frame):
1865 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1866 on left.
1867
cef3058f
CY
18682010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1869
1870 * editfns.c (Fformat): Account for string precision when computing
1871 field width (Bug#5710).
1872
a647d59d
CY
18732010-03-12 Chong Yidong <cyd@stupidchicken.com>
1874
4fa42018
CY
1875 * xfns.c (Fx_create_frame): Set default to Qright.
1876
a647d59d
CY
1877 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1878 all window systems.
1879
6da23aaa
EZ
18802010-03-12 Eli Zaretskii <eliz@gnu.org>
1881
a96f6398 1882 These changes remove termcap.c from the build on Posix platforms.
83d02def 1883 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1884 (MSDOS_OBJ): ...to here.
1885 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1886 now identical to when LIBS_TERMCAP is defined.
1887
1888 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1889
1890 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1891
a96f6398 1892 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1893
288f9fc0
CY
18942010-03-10 Chong Yidong <cyd@stupidchicken.com>
1895
1896 * Branch for 23.2.
1897
d48cd3f4
SM
18982010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1899
1900 Cleanup setup of gl_state in various parts of the code.
1901 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1902 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1903 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1904 (skip_chars):
1905 * regex.c (regex_compile): Use it.
1906 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1907 it's now set in regex_compile when/if we need it.
1908
618db430
SM
19092010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1910
c0335e02
SM
1911 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1912 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1913 (QUIT): Use it to consolidate code and remove redundancy.
1914 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1915
254c06a8
SM
1916 * regex.c (regex_compile): Setup gl_state as well.
1917
618db430
SM
1918 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1919 (in_classes): Use CONSP before XCAR/XCDR.
1920
233f0c9f
CY
19212010-03-03 Chong Yidong <cyd@stupidchicken.com>
1922
1923 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1924 definitions, so that keyboard macros are correctly handled
1925 (Bug#5481).
1926
75f80e63
EZ
19272010-03-02 Eli Zaretskii <eliz@gnu.org>
1928
1929 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1930 text that could be relocated inside the call to emacs_mule_char.
1931 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1932 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1933
dcfb9bc4
KH
19342010-03-02 Kenichi Handa <handa@m17n.org>
1935
fc9a17bc
KH
1936 * character.c (parse_str_as_multibyte): Fix handling of the
1937 multibyte form of raw-bytes.
1938 (str_as_multibyte): Likewise.
1939
dcfb9bc4
KH
1940 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1941 form of raw-bytes.
1942
412c01b6
CY
19432010-02-28 Chong Yidong <cyd@stupidchicken.com>
1944
1945 * charset.c (load_charset_map_from_file)
1946 (load_charset_map_from_vector): Zero out allocated
1947 charset_map_entries before using them.
1948
df7e1ea0
AS
19492010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1950
1951 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1952
fe69a722
CY
19532010-02-27 Chong Yidong <cyd@stupidchicken.com>
1954
4ed28cf4
CY
1955 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1956 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1957
7379cfce
KH
19582010-02-26 Kenichi Handa <handa@m17n.org>
1959
f88cc4d6
KH
1960 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1961
7379cfce
KH
1962 * xdisp.c (reseat_to_string): Fix previous change.
1963
cf2fdcfb
CY
19642010-02-26 David Reitter <david.reitter@gmail.com>
1965
1966 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1967 Lisp_Object (Bug#4736).
1968
cc6c7c75
KH
19692010-02-25 Kenichi Handa <handa@m17n.org>
1970
1971 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1972
32e737d7
JD
19732010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1974
1975 * xterm.c (XTflash): Move declarations before statements.
1976
1977 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1978 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1979 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1980 (xg_create_tool_bar): Remove unused variables.
1981 (x_wm_set_size_hint): Move declarations before statements.
1982 (xg_create_frame_widgets): Remove variable grav,
1983
676cae9f
CY
19842010-02-21 Chong Yidong <cyd@stupidchicken.com>
1985
1986 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1987
886cc2b8
SM
19882010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1989
1990 * term.c (fatal): Add a final \n if needed (bug#5596).
1991
ddb2d8e2
CY
19922010-02-18 Chong Yidong <cyd@stupidchicken.com>
1993
1994 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1995
2a4f8d3d
GM
19962010-02-18 Glenn Morris <rgm@gnu.org>
1997
1998 * callint.c (Finteractive): Doc fix.
1999
ebaf11b6
KH
20002010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2001
886cc2b8
SM
2002 * coding.c (record_conversion_result):
2003 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2004 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2005 memory allocation error.
2006
d0396581
KH
20072010-02-17 Kenichi Handa <handa@m17n.org>
2008
886cc2b8
SM
2009 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2010 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2011 (decode_coding): Setup ccl program here. Keep looping when the
2012 decoder stopped because the output buffer is
2013 fullfilled (bug#5534).
2014
2015 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2016
98599f74
JD
20172010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2018
471e4f04 2019 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2020 bug #5571.
886cc2b8 2021 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2022 overdrawn.
98599f74 2023
182659ae
JD
20242010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2025
2026 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2027 doing_interact here.
2028 (ice_connection_closed): New function.
2029 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2030 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2031 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2032 returns I/O error.
2033 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2034 bug #5512.
2035
9be32c4e 20362010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2037
2038 * nsfont.m (nsfont_open): The system's value for the font descent
2039 is negative, so round it down to avoid clipping.
2040
a2f3eb19
CY
20412010-02-06 Chong Yidong <cyd@stupidchicken.com>
2042
2043 * charset.c (load_charset_map_from_file)
2044 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2045 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2046
3088147c
CY
20472010-02-05 Chong Yidong <cyd@stupidchicken.com>
2048
2049 * charset.c (load_charset_map_from_file): Allocate large
2050 charset_map_entries structure on the heap rather than the stack.
2051 (Bug#5526).
2052
b57d9029
KH
20532010-01-31 Kenichi Handa <handa@m17n.org>
2054
2055 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2056 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2057
c67d885b
CY
20582010-01-31 Chong Yidong <cyd@stupidchicken.com>
2059
2060 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2061 <deactivated@gmail.com> (Bug#3605).
2062
8fab2362
CY
20632010-01-31 David De La Harpe Golden <david@harpegolden.net>
2064
2065 * fileio.c (Frename_file): Correctly rename symlinks to
2066 directories (Bug#5496).
2067
cb2a62f2
CY
20682010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2069
2070 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2071
944c7a26
AS
20722010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2073
2074 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2075
c024ac08
CY
20762010-01-29 Chong Yidong <cyd@stupidchicken.com>
2077
2078 * frame.c (DEFAULT_ROWS): Change default to 35.
2079
2080 * xfns.c (x_default_font_parameter): Change default XFT font to
2081 monospace-10 (Bug#3643).
2082
af93af83
EZ
20832010-01-29 Eli Zaretskii <eliz@gnu.org>
2084
2085 * w32inevt.c (key_event): Remove unnecessary comparison of
2086 event->uChar.AsciiChar with 128.
2087
ca0eb708
CY
20882010-01-28 Chong Yidong <cyd@stupidchicken.com>
2089
b242dbfc
CY
2090 * fileio.c (Frename_file): Fix last change (Bug#5487).
2091
ca0eb708
CY
2092 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2093
2094 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2095
45d45af5
JD
20962010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2097
2098 * xfns.c (Fx_create_frame): Remove window size matching code from
2099 2010-01-15.
2100 (x_get_current_desktop, x_get_desktop_workarea): Remove
2101
7e233730
JR
21022010-01-27 Jason Rumney <jasonr@gnu.org>
2103
2104 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2105 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2106
86e893e3
KH
21072010-01-27 Kenichi Handa <handa@m17n.org>
2108
2109 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2110 pattern string (Bug#4209).
86e893e3 2111
8719abec
CY
21122010-01-27 David De La Harpe Golden <david@harpegolden.net>
2113
2114 * fileio.c (Frename_file): Call copy-directory and
2115 delete-directory for directories, in order to handle cross-device
2116 renaming (Bug#3353).
2117
844794c8
JD
21182010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2119
aa3e13b5 2120 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2121 sizes 24 and 10. Bug #3643.
844794c8 2122
bd4b5750
SM
21232010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2124
8dc1adf6 2125 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2126 * keymap.c (shadow_lookup): Add `remap' arg.
2127 (describe_map, describe_vector): Update calls to shadow_lookup.
2128 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2129 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2130 perform remapping during shadow_lookup check of remapped_sequences.
2131
285d07e2
CY
21322010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2133
2134 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2135 png_check_sig, which has been removed in libpng 1.4.
2136
c6d09b8d
CY
21372010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2138
2139 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2140 lacks this header file).
2141
3d782998
YM
21422010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2143
2144 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2145 as in Emacs 22.
2146
2aff7c53
YM
21472010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2148
2149 * lisp.h (make_pure_string): String pointer arg now points to const.
2150
2151 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2152 args now point to const.
2153
74327f7a
EZ
21542010-01-22 Eli Zaretskii <eliz@gnu.org>
2155
2156 * lread.c (Fload): Don't treat files without .elc extension as
2157 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2158 them. (bug#5303)
2159
4d1e6632
KH
21602010-01-20 Kenichi Handa <handa@m17n.org>
2161
2162 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2163 treat the source as actual byte sequence.
2164
1fdede8f
AM
21652010-01-19 Alan Mackenzie <acm@muc.de>
2166
2167 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2168 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2169 `signal_after_change_p' to `coherent_change_p', and make the
2170 invocation of `modify_region' conditional on it.
2171
67477f30
JD
21722010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2173
2174 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2175 for debug purpose.
2176 (syms_of_xsettings): Declare xft-settings.
2177
244b023e
CY
21782010-01-18 Chong Yidong <cyd@stupidchicken.com>
2179
2180 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2181
617364fe
CY
21822010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2183
2184 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2185
4fe22cdf
CY
21862010-01-16 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * emacs.c (standard_args): Adjust arg priorities to reflect how
2189 they are processed in startup.el.
2190
e118d2be
AS
21912010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2192
2193 * Makefile.in (lisp, shortlisp): Update.
2194
523ae620
SM
21952010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2198 code, link the new kboard into all_kboard before running Lisp code,
2199 and protect the new terminal with GCPRO (Bug#5365).
2200 (x_term_init): Remove unused var `atom'.
2201 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2202
f0d13888
JD
22032010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2204
2205 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2206 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2207 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2208 this. Bug #3643.
f0d13888 2209
cc320f07
KH
22102010-01-15 Kenichi Handa <handa@m17n.org>
2211
2212 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2213
7ffdf101
CY
22142010-01-15 Chong Yidong <cyd@stupidchicken.com>
2215
2216 * nsterm.m (Qnone): Define.
2217
2218 * nsfns.m (Qnone): Move definition to nsterm.m.
2219
d12bd917
KH
22202010-01-14 Kenichi Handa <handa@m17n.org>
2221
2222 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2223 systems.
2224
d9a7c140
KH
22252010-01-14 Kenichi Handa <handa@m17n.org>
2226
2227 Make auto-composition work on all buffers even if they are
2228 fundamental mode.
2229
2230 * composite.c (Vauto_composition_mode): New variable.
2231 (composition_compute_stop_pos): Check Vauto_composition_mode
2232 instead of Vauto_composition_function.
2233 (composition_adjust_point, Ffind_composition_internal): Likewise.
2234 (syms_of_composite): Declare Lisp variable
2235 "auto-composition-mode" here.
2236
63286bb2
CY
22372010-01-13 Chong Yidong <cyd@stupidchicken.com>
2238
2239 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2240 during call to vendor-specific-keysyms (Bug#5365).
2241
c2623ee7
YM
22422010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2243
2244 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2245 Call SIGNAL_THREAD_CHECK (Bug#5333).
2246
2247 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2248 Call SIGNAL_THREAD_CHECK.
2249
0b5397c2
SM
22502010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2251
2252 Try to fix bug#5314. This is probably not the final word, tho.
2253 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2254 recent-auto-save-p as a side-effect.
2255 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2256 * buffer.c (Fkill_buffer, reset_buffer):
2257 * editfns.c (Fsubst_char_in_region):
2258 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2259 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2260
dc954cb2
KH
22612010-01-13 Kenichi Handa <handa@m17n.org>
2262
2263 Display buffer name, etc. in mode line by composing correctly.
2264
2265 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2266 STRING is not nil.
0b5397c2 2267 (display_mode_element): Adjust for the change of
dc954cb2
KH
2268 decode_mode_spec and display_line.
2269 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2270 (display_string): Handle the case that STRING is non-null and
2271 LISP_STRING is not nil.
2272
0b5397c2
SM
2273 * xterm.c (x_draw_composite_glyph_string_foreground):
2274 Pay attention to s->face->overstrike.
dc954cb2
KH
2275
2276 * composite.c (composition_reseat_it): Don't check PT if STRING is
2277 non nil.
2278
4a00eaca
YM
22792010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2280
2281 * keyboard.c (read_char): Don't apply previous change when current
2282 buffer is unchanged by command execution.
2283
60abb287
JD
22842010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2285
2286 * keyboard.c (read_char): Return after executing from special map.
2287
893db5bc
GM
22882010-01-12 Glenn Morris <rgm@gnu.org>
2289
2290 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2291 bug-gnu-emacs rather than emacs-pretest-bug.
2292
4d03ece0
CY
22932010-01-11 Chong Yidong <cyd@stupidchicken.com>
2294
2295 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2296 initializing the Lisp variables that depend on them.
2297
1df47e38
YM
22982010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2299
2300 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2301 Clear areas that will not be updated after change of menu bar lines.
2302 Clear the menu bar window's current matrix when the window gets empty.
2303
2f1c6384
CY
23042010-01-09 Chong Yidong <cyd@stupidchicken.com>
2305
e398c61c
CY
2306 * intervals.h, textprop.c (extend_property_ranges): Return value
2307 and args changed. Discard properties that begin at or after the
2308 new end (Bug#5306).
2309
2310 * editfns.c (Fformat): Caller changed.
2311
e5a29a10
CY
2312 * nsterm.m (ns_set_default_prefs): Delete function.
2313 (syms_of_nsterm): Initialize ns_command_modifier,
2314 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2315 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2316
2f1c6384
CY
2317 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2318 position (Bug#4040).
2319
d427a9fa
EZ
23202010-01-09 Eli Zaretskii <eliz@gnu.org>
2321
2322 * editfns.c (Ffloat_time): Doc fix.
2323
21b9df2f
JD
23242010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2325
2326 * xfns.c (Fx_create_frame): Don't create frame larger than display
2327 by default bug#3643.
2328
4b00d3b1
YM
23292010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2330
2331 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2332 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2333 windows above internal border.
2334
2335 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2336 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2337 windows above internal border.
2338
2339 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2340 tool bar windows specially.
2341
2342 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2343
2344 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2345 specially.
2346 (XTflash): Take account of menu bar height.
2347
2348 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2349 specially.
2350
5075d853
JD
23512010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2352
ac146f82 2353 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2354 also be true before we can return early (bug #5339).
2355
474217c8
CY
23562010-01-06 David Reitter <david.reitter@gmail.com>
2357
2358 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2359 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2360 (Bug#3233).
2361
c0e6d47d
JD
23622010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2363
d0cf45b7
JD
2364 * font.c (font_open_entity): Enable chache and call cached_font_ok
2365 for the driver if defined.
2366 (QCuser_spec): New symbol.
2367 (font_spec_from_name): Save name as user-spec.
2368 (font_load_for_lface): Keep user-spec instead of name.
2369 (font_open_by_name): Save name as user-spec.
2370 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2371 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2372
2373 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2374 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2375 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2376
2377 * font.h (struct font_driver): Add cached_font_ok.
2378
c0e6d47d
JD
2379 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2380
7c583cd8
JD
23812010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2382
2383 * xterm.c (x_new_font): Move code for setting rows/cols before
2384 resizing ...
ac146f82 2385 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2386
2387 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2388 (xg_frame_resized, xg_frame_set_char_size):
2389 Call xg_clear_under_internal_border.
7c583cd8 2390 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2391
03f77f0a
CY
23922010-01-05 Chong Yidong <cyd@stupidchicken.com>
2393
2394 * keyboard.c (read_key_sequence): Catch keyboard switch after
2395 making a new tty frame (Bug#5095).
2396
2a1ef5be
KH
23972010-01-05 Kenichi Handa <handa@m17n.org>
2398
2399 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2400
e3eb1dae
SM
24012010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2402
2403 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2404 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2405 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2406
777013f2
MA
24072010-01-03 Michael Albinus <michael.albinus@gmx.de>
2408
2409 * dbusbind.c (xd_add_watch): Improve debug message.
2410 (xd_remove_watch): Improve debug message. If DATA is the session
2411 bus, unset D-Bus session environment.
2412 (Fdbus_init_bus): Pass the bus as argument to
2413 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2414
8932b1c2
CY
24152010-01-01 Chong Yidong <cyd@stupidchicken.com>
2416
87231e2c
CY
2417 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2418
4801c5fa
CY
2419 * lread.c (syms_of_lread): Make it clearer that these are the
2420 names of loaded files (Bug#5068).
2421
8932b1c2
CY
2422 * eval.c (run_hook_with_args): Handle the case where the global
2423 value has the obsolete single-function form (Bug#5026).
2424
11e3c684
CY
24252009-12-27 Chong Yidong <cyd@stupidchicken.com>
2426
2427 * minibuf.c (Fall_completions): Minor optimization.
2428
5b28ce35
EZ
24292009-12-26 Eli Zaretskii <eliz@gnu.org>
2430
5ce6e4f4
JB
2431 * .gdbinit (pgx): Fix display of composite glyphs.
2432 Display cmp.from and cmp.to as well.
2433 (pitx): Fix last change.
5b28ce35 2434
bcffff46
KH
24352009-12-25 Kenichi Handa <handa@m17n.org>
2436
2437 * composite.h (composition_adjust_point): Update prototype.
2438
2439 * composite.c (composition_reseat_it): Don't make a composition
2440 spanning over point.
2441 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2442 composable characters.
2443 (composition_adjust_point): New arg NEW_PT. Callers changed.
2444
2445 * keyboard.c (command_loop_1): Force redisplay if the last point
2446 was within a composition.
2447 (adjust_point_for_property): Don't adjust point for automatic
2448 composition when called after buffer modification.
2449
3f670e9a
EZ
24502009-12-19 Eli Zaretskii <eliz@gnu.org>
2451
5ce6e4f4
JB
2452 * .gdbinit (pitx): Don't use enum names, use their values.
2453 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2454 (pgx): Don't use enum names, use their values.
2455 (pitmethod): New helper command.
2456 (pitx): Use it to display iteration method.
2457 (pgrowit): New command.
2458
ad903955
EZ
2459 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2460
3f670e9a
EZ
2461 Update dependencies in Makefile.in.
2462
2463 * Makefile.in (alloc.o): Depend on termhooks.h.
2464 (atimer.o): Depend on blockinput.h.
2465 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2466 and frame.h.
2467 (callint.o): Depend on systime.h, coding.h, and composite.h.
2468 (callproc.o): Depend on buffer.h.
2469 (casefiddle.o): Don't depend on charset.h.
2470 (casetab.o): Depend on character.h.
2471 (ccl.o): Depend on composite.h.
2472 (chartab.o): Depend on ccl.h.
2473 (cm.o): Depend on dispextern.h.
2474 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2475 (coding.o): Don't depend on $(INTERVALS_H).
2476 (composite.o): Don't depend on dispextern.h explicitly (it's in
2477 $(INTERVALS_H)). Depend on ccl.h.
2478 (data.o): Depend on systime.h, coding.h, composite.h,
2479 dispextern.h, font.h, and ccl.h.
2480 (dired.o): Depend on composite.h.
2481 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2482 composite.h (it's in $(INTERVALS_H)).
2483 (doc.o): Depend on systime.h, coding.h, and composite.h.
2484 (editfns.o): Don't depend explicitly on dispextern.h.
2485 (emacs.o): Depend on frame.h and coding.h.
2486 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2487 (fileio.o): Depend on frame.h and commands.h. Don't depend
2488 explicitly on dispextern.h.
2489 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2490 composite.h.
2491 (fns.o): Don't depend on termhooks.h.
2492 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2493 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2494 coding.h, $(INTERVALS_H), window.h, xterm.h.
2495 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2496 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2497 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2498 fontset.h, ccl.h, and ftfont.h.
2499 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2500 (gtkutil.o): Depend on dispextern.h and composite.h.
2501 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2502 termhooks.h, and ccl.h.
2503 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2504 (intervals.o): Depend on systime.h and coding.h.
2505 (keyboard.o): Depend on composite.h and coding.h.
2506 (keymap.o): Depend on coding.h and frame.h.
2507 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2508 (macros.o): Depend on systime.h, coding.h, and composite.h.
2509 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2510 and atimer.h.
2511 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2512 dispextern.h explicitly.
0b5397c2
SM
2513 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2514 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2515 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2516 (regex.o): Don't depend on charset.h.
2517 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2518 (search.o): Don't depend explicitly on composite.h.
2519 (sound.o): Depend on atimer.h and systime.h.
2520 (syntax.o): Don't depend explicitly on composite.h.
2521 (sysdep.o): Depend on coding.h and composite.h.
2522 (term.o): Depend on xterm.h and buffer.h.
2523 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2524 (textprop.o): Don't depend on dispextern.h explicitly.
2525 (undo.o): Depend on dispextern.h.
2526 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2527 dispextern.h and composite.h explicitly.
2528 (xdisp.o): Depend on ccl.h.
2529 (xfaces.o): Depend on coding.h and ccl.h.
2530 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2531 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2532 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2533 ftfont.h.
2534 (xgselect.o): New dependency.
2535 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2536 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2537 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2538 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2539 (xsmfns.o): Depend on frame.h and dispextern.h.
2540 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2541 sysselect.h.
2542
7a6f7fea
AS
25432009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2544
2545 * font.c (Fclear_font_cache): Pass correct cache argument to
2546 font_clear_cache.
2547
f4c21026
AS
25482009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2549
2550 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2551 twice.
2552
f7ab0997
CY
25532009-12-15 Chong Yidong <cyd@stupidchicken.com>
2554
2555 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2556 calling file-remote-p. Reported by Jim Meyering.
2557
fa8e045a
MA
25582009-12-15 Michael Albinus <michael.albinus@gmx.de>
2559
2560 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2561 avoid compiler warnings. (Bug #5217)
fa8e045a 2562
a63dba42
KH
25632009-12-14 Kenichi Handa <handa@m17n.org>
2564
2565 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2566 in 8-bit encoding.
2567
5ce6e4f4 25682009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2569
2570 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2571 tooltip windows.
2572
223e5fc6
JD
25732009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2574
36acb2a7
JD
2575 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2576 Xatom_net_window_type.
2577
2578 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2579 Xatom_net_window_type.
2580
b8f00677
JD
2581 * xterm.c (my_log_handler): New function.
2582 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2583 so we can filter out buggy messages. (Bug #5120).
b8f00677 2584
e5f0bc9a
JD
2585 * xterm.c (xg_scroll_callback): Parameter list changed,
2586 use parameter GtkScrollType to determine scroll/line/page.
2587 Only allow dragging if a button < 4 is grabbed (bug #5177).
2588 (xg_end_scroll_callback): New function.
2589 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2590 xg_create_scroll_bar.
2591
2592 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2593 (scroll_end_callback): Remove.
2594 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2595 button-release-event. Replace value-changed event with change-value,
2596 bug #5177,
2597 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2598 bug #5177.
2599
2600 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2601 (xg_create_scroll_bar): Add GCallback end_callback.
2602
223e5fc6
JD
2603 * xftfont.c (QClcdfilter): New variable.
2604 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2605 (syms_of_xftfont): Initialize QClcdfilter.
2606
3c055b77
JD
26072009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2608
2609 * xsettings.c (struct xsettings): Add member seen.
2610 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2611 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2612 (apply_xft_settings): Only update Xft settings with what member seen
2613 indicates as new.
2614
05fe33ff
EZ
26152009-12-12 Eli Zaretskii <eliz@gnu.org>
2616
2617 * dispextern.h (struct text_pos): Use EMACS_INT;
2618 (struct glyph): Use EMACS_INT for charpos.
2619 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2620 region_beg_charpos, region_end_charpos,
2621 redisplay_end_trigger_charpos, and also for
2622 iterator_stack_entry.end_charpos and
2623 iterator_stack_entry.stop_charpos.
2624
e8d7886a
JD
26252009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2626
5ce6e4f4 2627 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2628 (xg_create_scroll_bar): Call scroll_end_callback on button release
2629 event (bug #5177).
2630 (xg_event_is_for_scrollbar): != replaced with ==.
2631
d0db2ec8
KH
26322009-12-12 Kenichi Handa <handa@m17n.org>
2633
2634 * ftfont.c (struct ftfont_info): New member matrix.
2635 (ftfont_open): Setup xftfont_info->matrix.
2636 (MFLTFontFT): New member matrix.
2637 (FLOOR, CEIL, ROUND): New macros.
2638 (ftfont_get_metrics): Handle matrix transformation.
2639 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2640
2641 * xftfont.c (struct xftfont_info): New member matrix.
2642 (xftfont_open): Setup xftfont_info->matrix.
2643
26442009-12-10 Kenichi Handa <handa@m17n.org>
2645
2646 * xdisp.c (append_space_for_newline): Consider face-remapping.
2647
2cc7b62f
AS
26482009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2649
b87dd913
AS
2650 * xsettings.c: Include "keyboard.h".
2651
eba5eb94
AS
2652 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2653
2cc7b62f
AS
2654 Fix implicit function declarations.
2655 * cmds.c: Include "frame.h".
2656 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2657 * frame.h: Move declaration of delete_frame outside of
2658 HAVE_WINDOW_SYSTEM.
2659
a4ef73c8
CY
26602009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2661
2662 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2663
2664 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2665 GTK builds.
2666
944a300c
AS
26672009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2668
2669 * unexelf.c (unexec): Don't search for .data twice.
2670
022eef62
CY
26712009-12-05 Chong Yidong <cyd@stupidchicken.com>
2672
426ac949
CY
2673 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2674 if push failed.
2675 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2676 of push_display_prop (Bug#5000).
2677
022eef62
CY
2678 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2679 value of font_list_entities (Bug#5085).
2680
be95bee9
JB
26812009-12-04 Juanma Barranquero <lekktu@gmail.com>
2682
2683 Fix `string-to-number' to deal consistently with integers and floats.
2684 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2685 trailing characters, not just whitespace.
2686 (read1): Pass new arg 0 to keep old behavior.
2687 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2688 trailing chars, as it is already done for integers. Doc fixes.
2689 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2690
24c2d7ce
EZ
26912009-12-04 Eli Zaretskii <eliz@gnu.org>
2692
0b5397c2
SM
2693 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2694 Delete unused enumeration value.
24c2d7ce 2695
7e694795
EZ
26962009-12-03 Eli Zaretskii <eliz@gnu.org>
2697
2698 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2699
84b31826
SM
27002009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2701
2702 * process.c (Fmake_network_process): Fix up the tests for
2703 "connectionless socket", so they DTRT for seqpacket sockets as well.
2704
f00c449b
SM
27052009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2706
2707 * process.c (Qseqpacket): New symbol.
2708 (HAVE_SEQPACKET): New macro.
2709 (Fmake_network_process): Accept new :type `seqpacket'.
2710 (init_process): Add `seqpacket' feature when applicable.
2711 (syms_of_process): Initialize Qseqpacket.
2712
8096a0ff
YM
27132009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2714
2715 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2716 if entity is Qnil.
2717
3e0de07f
SM
27182009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2719
2720 * print.c (print_preprocess): Preprocess the key_and_value table of
2721 hashtables, even tho they're "hidden" (bug#5082).
2722
abeafb2a
JD
27232009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2724
2725 * frame.c (frame_make_pointer_invisible)
2726 (frame_make_pointer_visible): Declare f before statements.
2727
4bf47195
EZ
27282009-11-28 Eli Zaretskii <eliz@gnu.org>
2729
2730 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2731 omitted dependencies on lisp.h.
2732
c525b3f2
JD
27332009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2734
ece2d4ed
JD
2735 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2736 is NULL.
2737
2738 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2739
2740 * frame.c (frame_make_pointer_invisible)
3e0de07f 2741 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2742 frame.
2743
c525b3f2
JD
2744 * search.c (simple_search): Remove warning by making *p const.
2745
2f00e299
DN
27462009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2747
2748 * xdisp.c (power_letter): Remove duplicate const.
2749
084b049b
JD
27502009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2751
a1fadc6f
JD
2752 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2753
5ce6e4f4 2754 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2755 defaults (bug #5025).
2756
28259cac
SM
27572009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2758
2759 * insdel.c (adjust_markers_for_delete): Move it in the
2760 right direction! (bug#4803)
2761
e8e14166
YM
27622009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2763
2764 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2765
2766 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2767
86677b58
GM
27682009-11-24 Glenn Morris <rgm@gnu.org>
2769
2770 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2771
581e51e8
JD
27722009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2773
cfc86c7a
JD
2774 * Makefile.in: Must create deps for ecrt0.o in its rule.
2775
581e51e8
JD
2776 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2777 because that is what Gtk+ font dialog understands.
2778
2779 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2780 of Fcopy_sequence.
2781 (font_open_by_name): Put name given into QCname for font-object returned.
2782
2783 * frame.c (x_set_font): Save original font name as frame parameter
2784 font-parameter.
2785
2786 * xsettings.c (set_default_xft_settings): New function.
2787 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2788 is found.
2789
8b264ecb
AS
27902009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2791
2792 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2793 searching backwards through multibyte buffer.
2794
872870b2
JD
27952009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2796
2797 * xterm.c: #include xgselect.h.
2798 (x_initialize): Call xgselect_initialize.
2799
2800 * xsettings.c (something_changedCB): C++ comments => C comments.
2801 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2802 does that now.
2803
2804 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2805 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2806 (scroll_bar_button_cb): Remove.
5ce6e4f4 2807 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2808 event.
2809 (xg_create_scroll_bar): Don't bind button-press-event and
2810 button-release-event.
2811
2812 * process.c: Include xgselect.h if defined (USE_GTK) ||
2813 defined (HAVE_GCONF).
2814 (wait_reading_process_output): Call xg_select for the same condition.
2815
2816 * xgselect.c (xg_select): New function to better integrate with
2817 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2818
2819 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2820
2821 * Makefile.in (XOBJ): Add xgselect.o.
2822
62a6e103
AS
28232009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2824
0b5397c2
SM
2825 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2826 Remove ignored second argument. All callers changed.
62a6e103
AS
2827 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2828 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2829 * xdisp.c (string_char_and_length): Likewise.
2830
b0ca0f33
DN
28312009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2832
2833 * xterm.c (x_new_font):
2834 * print.c (print_object):
2835 * cmds.c (Fself_insert_command): Move declarations before statements.
2836
dd5a6279
CY
28372009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2838
2839 * s/cygwin.h: Remove unneeded linker flags.
2840
4a8e097d
JD
28412009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2842
0d1d0d26
JD
2843 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2844
2845 * xsettings.h: Declare xsettings_get_system_font.
2846
2847 * xsettings.c (xsettings_get_system_font): New function.
2848 (init_gconf): No use initiating gconf unless we have Xft also.
2849 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2850 HAVE_GCONF.
2851
4a8e097d
JD
2852 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2853 add a blank entry so it doesn't collapse into nothing.
2854
8ab1650e
SM
28552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2856
2857 * lread.c (Funintern): Comment out last change.
2858
82c602f0
RS
28592009-11-19 Richard Stallman <rms@gnu.org>
2860
2861 * lread.c (Funintern): Error if symbol is t or nil.
2862
87e32266
SM
28632009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2864
2865 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2866 representation of Lisp integers.
2867 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2868
1b9ac145
AS
28692009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2870
2871 * lisp.h: Remove declaration of Ffont_get_system_font.
2872 * xfns.c: Move include of "xsettings.h".
2873 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2874
dfb3c4c6
JD
28752009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2876
87e32266
SM
2877 * xsettings.c (something_changedCB, Ffont_get_system_font):
2878 Check use_system_font.
dfb3c4c6
JD
2879 (syms_of_xsettings): DEFVAR font-use-system-font.
2880
9370c1d8
AS
28812009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2882
25fe851a
AS
2883 * xfns.c (x_default_font_parameter): Remove dead assignment.
2884
9370c1d8
AS
2885 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2886
637fa988
JD
28872009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2888
87e32266 2889 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2890 not have FC_LCD_*. #define them if not there.
a6eb20d8 2891
87e32266 2892 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2893
637fa988
JD
2894 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2895
2896 * xterm.c (handle_one_xevent): Call xft_settings_event for
2897 ClientMessage, PropertyNotify and DestroyNotify.
2898 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2899 Call xsettings_initialize.
2900
2901 * xftfont.c (xftfont_fix_match): New function.
2902 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2903 Call xftfont_fix_match after XftFontMatch.
2904
2905 * xfont.c (xfont_driver): Initialize all members.
2906
87e32266
SM
2907 * xfns.c (x_default_font_parameter):
2908 Try font from Ffont_get_system_font.
637fa988
JD
2909 Do not get font from x_default_parameter if we got one from
2910 Ffont_get_system_font.
87e32266 2911 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2912
2913 * w32font.c (w32font_driver): Initialize all members.
2914
2915 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2916
2917 * lisp.h: Declare syms_of_xsettings.
2918
87e32266
SM
2919 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2920 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2921
2922 * ftfont.c (ftfont_filter_properties): New function.
2923
2924 * frame.c (x_set_font): Remove unused variable lval.
2925
87e32266 2926 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2927
2928 * font.c (font_put_extra): Don't return if val is nil, it means
2929 boolean option is off.
2930 (font_parse_fcname): Collect all extra properties in extra_props
2931 and call filter_properties for all drivers with extra_props and
2932 font as parameter.
87e32266
SM
2933 (font_open_entity): Do not use cache, it does not pick up new
2934 fontconfig settings like hinting.
637fa988
JD
2935 (font_load_for_lface): If spec had a name in it, store it in entity.
2936
2937 * emacs.c (main): Call syms_of_xsettings
2938
2939 * config.in: HAVE_GCONF is new.
2940
2941 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2942 xsettings.o is new.
2943
5a942932
KH
29442009-11-17 Kenichi Handa <handa@m17n.org>
2945
2946 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2947 back to the default font in case that no suitable font is found.
2948
b7c7a4d1
SM
29492009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2950
2951 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2952 Suggested by Chad Brown <yandros@mit.edu>.
2953 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2954
072f1e39
JD
29552009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2956
2957 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2958
5d1e70a2
AS
29592009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2960
87e32266 2961 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2962
a53cfbe5
JD
29632009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2964
473a99b7
JD
2965 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2966 has a parent.
2967
a53cfbe5 2968 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2969 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2970
2971 * config.in: Generated (AUTO_DEPEND).
2972
f04bb9b2
MA
29732009-11-13 Michael Albinus <michael.albinus@gmx.de>
2974
b7c7a4d1 2975 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2976 Vdbus_registered_functions_table, because it contains also
2977 properties. Fix docstring.
b7c7a4d1 2978 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2979
8f11f7ec
SM
29802009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2981
2982 * alloc.c (mark_object): Don't reprocess marked strings.
2983 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2984 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2985
8a605fe8
KH
29862009-11-13 Kenichi Handa <handa@m17n.org>
2987
8f11f7ec 2988 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2989 semantics of Vword_combining_categories.
2990 (Vword_combining_categories): Describe the slight change of the
2991 semantics.
2992
241c4680
EZ
29932009-11-13 Eli Zaretskii <eliz@gnu.org>
2994
2995 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2996
2997 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2998
5d58e44c
SM
29992009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3000
3001 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3002
5e13f9d3
JB
30032009-11-12 Juanma Barranquero <lekktu@gmail.com>
3004
3005 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3006
cf54c754
DR
30072009-11-11 David Reitter <david.reitter@gmail.com>
3008
3009 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3010 variables to fix 2009-11-09 change.
3011
a4ada374
DN
30122009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3013
91433552
DN
3014 * process.c (ifflag_def): Make flag_sym constant.
3015 (Fnetwork_interface_info): Use a constant pointer.
3016 (ifflag_table):
3017 * xfns.c (cursor_bits):
3018 * xdisp.c (power_letter):
3019 * termcap.c (speeds, esctab):
3020 * sysdep.c (baud_convert):
3021 * keyboard.c (lispy_accent_codes, modifier_names):
3022 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3023 (jpeg_format, tiff_format, gif_format, svg_format)
3024 (interlace_start, interlace_increment, gs_format):
3025 * gtkutil.c (separator_names):
3026 * fringe.c (swap_nibble):
3027 * fns.c (base64_value_to_char, base64_char_to_value):
3028 * fileio.c (make_temp_name_tbl):
3029 * coding.c (suffixes): Make constant.
3030
f4265f6c
DN
3031 * frame.c (make_initial_frame):
3032 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3033 build_string.
3034 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3035
04420943
DN
3036 * s/freebsd.h:
3037 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3038
0a5d24ae
DN
3039 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3040 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3041
a4ada374
DN
3042 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3043 * xterm.c (syms_of_xterm):
3044 * xfaces.c (syms_of_xfaces):
3045 * xdisp.c (syms_of_xdisp):
3046 * lread.c (syms_of_lread):
3047 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3048 build_string.
91433552 3049
a4ada374
DN
3050 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3051
af98fc7f
SM
30522009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3053
8ab1650e 3054 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3055
e90292a9
JD
30562009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3057
3058 * keyboard.h: Declare timer_check.
3059
3060 * keyboard.c (timer_check_2): New function that does what the old
3061 timer_check did.
3062 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3063 returned, i.e. don't return -1 with timers pending.
3064
3065 * process.c: Remove extern declaration of timer_check.
3066
3067 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3068 even if timer_check returned -1.
3069
af98fc7f
SM
3070 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3071 xg_dialog_data.
e90292a9
JD
3072 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3073 the event loop.
3074 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3075 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3076 Destroy the dialog after xg_dialog_run.
3077
045b83c0
SM
30782009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3079
3080 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3081
1fb99a3a
JD
30822009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3083
3084 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3085
04e452cb
JB
30862009-11-09 Juanma Barranquero <lekktu@gmail.com>
3087
3088 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3089
ef7417fd
SM
30902009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3091
3092 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3093 w32menu.c, and nsmenu.m.
3094 Simplify the obsolete case where position is nil.
3095 (cleanup_popup_menu): New function, moved from nsmenu.m.
3096 (struct skp): Remove slot `notreal'.
3097 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3098 adjust callers.
3099 (single_menu_item): Adjust call to parse_menu_item.
3100 (syms_of_menu): Defsubr x-popup-menu.
3101 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3102 (keymap_panes): Don't export any more.
3103 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3104 (xmenu_show): Declare.
3105 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3106 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3107 * keyboard.h (parse_menu_item): Update declaration.
3108 * xmenu.c (Fx_popup_menu): Remove.
3109 (syms_of_xmenu): Don't defsubr x-popup-menu.
3110 * w32menu.c (Fx_popup_menu): Remove.
3111 (syms_of_w32menu): Don't defsubr x-popup-menu.
3112 * nsmenu.m (cleanup_popup_menu): Remove.
3113 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3114 moved to menu.c's Fx_popup_menu.
3115 (Fx_popup_menu): Remove.
3116 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3117 menu_items (it's done in menu.c already).
3118
424d6179
SM
31192009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3120
3121 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3122 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3123
c0df13a6 31242009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3125
3126 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3127 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3128 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3129 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3130
2de9f71c
SM
31312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3132
3133 Let integers use up 2 tags to give them one extra bit and thus double
3134 their range.
3135 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3136 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3137 New macros.
3138 (enum Lisp_Type): Use them. Give explicit values.
3139 (Lisp_Type_Limit): Remove.
3140 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3141 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3142 Pay attention to USE_2_TAGS_FOR_INTS.
3143 (INTEGERP): Use LISP_INT_TAG_P.
3144 * fns.c (internal_equal): Simplify the default case.
3145 (sxhash): Use case_Lisp_Int.
3146 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3147 any more.
3148 (Ftype_of): Use case_Lisp_Int.
3149 (store_symval_forwarding): Take into account the fact that Ints can
3150 now have more than one tag.
3151 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3152 buffer_slot_type_mismatch):
3153 * xfaces.c (face_attr_equal_p):
3154 * print.c (print_object):
3155 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3156 Use case_Lisp_Int.
3157
323637a2
EZ
31582009-11-06 Eli Zaretskii <eliz@gnu.org>
3159
7ac65b38
EZ
3160 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3161
323637a2
EZ
3162 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3163 warning.
3164
e511451f
JD
31652009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3166
3167 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3168
3169 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3170
3171 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3172 ButtonPressRelease and MotionNotify (bug#4870).
3173
5e2327cf
DN
31742009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3175
5adc433e
DN
3176 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3177
d67b4f80
DN
3178 * xterm.c (syms_of_xterm):
3179 * xselect.c (syms_of_xselect):
3180 * xmenu.c (syms_of_xmenu):
3181 * xfns.c (syms_of_xfns):
3182 * xfaces.c (syms_of_xfaces):
3183 * xdisp.c (syms_of_xdisp):
3184 * window.c (syms_of_window):
3185 * w32fns.c (syms_of_w32fns):
3186 * undo.c (syms_of_undo):
3187 * textprop.c (syms_of_textprop):
3188 * terminal.c (syms_of_terminal):
3189 * syntax.c (syms_of_syntax):
3190 * sound.c (syms_of_sound):
3191 * search.c (syms_of_search):
3192 * print.c (syms_of_print):
3193 * minibuf.c (syms_of_minibuf):
3194 * macros.c (syms_of_macros):
3195 * keymap.c (syms_of_keymap, initial_define_key)
3196 (initial_define_lispy_key):
3197 * keyboard.c (syms_of_keyboard):
3198 * insdel.c (syms_of_insdel):
3199 * image.c (syms_of_image):
3200 * fringe.c (syms_of_fringe):
3201 * frame.c (syms_of_frame):
3202 * fontset.c (syms_of_fontset):
3203 * fns.c (syms_of_fns):
3204 * fns.c (syms_of_fns):
3205 * fileio.c (syms_of_fileio):
3206 * fileio.c (syms_of_fileio):
3207 * eval.c (syms_of_eval):
3208 * doc.c (syms_of_doc):
3209 * dispnew.c (syms_of_display):
3210 * dired.c (syms_of_dired):
3211 * dbusbind.c (syms_of_dbusbind):
3212 * data.c (syms_of_data):
3213 * composite.c (syms_of_composite):
3214 * coding.c (syms_of_coding):
3215 * cmds.c (syms_of_cmds):
3216 * charset.c (define_charset_internal, syms_of_character):
3217 * ccl.c (syms_of_ccl):
3218 * category.c (syms_of_category, init_category_once):
3219 * casetab.c (syms_of_casetab):
3220 * casefiddle.c (syms_of_casefiddle):
3221 * callint.c (syms_of_callint):
3222 * bytecode.c (syms_of_bytecode):
3223 * buffer.c (keys_of_buffer, syms_of_buffer):
3224 * alloc.c (syms_of_alloc):
3225 * process.c (syms_of_process, init_process):
3226 * lread.c (syms_of_lread, init_obarray):
3227 * font.c (build_style_table):
3228 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3229 intern_c_string, calls to make_pure_string with
3230 make_pure_c_string. Use pure_cons instead of Fcons.
3231
5e2327cf
DN
3232 * process.c (socket_options): Make it const.
3233 (set_socket_option, init_process): Use a const pointer.
3234
3235 * lread.c (intern_c_string): New function.
3236 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3237 (defvar_int): Uset it. Make the name const char*.
3238
3239 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3240 (defvar_int): Update prototypes.
3241 (DEFUN, EXFUN): Support for prototypes is now required.
3242 (intern_c_string): New prototype.
3243 (struct Lisp_Subr): Make symbol_name constant.
3244
3245 * font.c (struct table_entry): Remove unused member. Make NAMES
3246 constant.
3247 (weight_table, slant_table, width_table): Make constant.
3248
3249 * emacs.c (struct standard_args): Make name and longname constant.
3250
3251 * character.h (DEFSYM): Use intern_c_string.
3252
a56eaaef
DN
32532009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3254
3255 * alloc.c (make_pure_c_string): New function.
3256
3257 * eval.c (Fautoload): Purecopy all arguments.
3258
f6a07420
KH
32592009-11-05 Kenichi Handa <handa@m17n.org>
3260
3261 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3262 the buffer in case of replace.
3263
5d28d4b1
DN
32642009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3265
3266 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3267
b349d111
SM
32682009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3269
d528b1ce
SM
3270 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3271 when applicable (bug#4851).
3272
b349d111
SM
3273 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3274 (P_): Support for prototypes is now required.
3275
c38eb027
CY
32762009-10-31 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3279 (Bug#4827).
3280
0405f8d9
EZ
32812009-10-30 Eli Zaretskii <eliz@gnu.org>
3282
d528b1ce 3283 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3284
ca0a881a
DN
32852009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3286
3287 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3288
d528b1ce
SM
3289 * lread.c (Fload): Purecopy the file name when building
3290 Vpreloaded_file_list.
ca0a881a 3291
47e0e0e4
JR
32922009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3293
3294 * w32fns.c (syms_of_w32fns): Change default value of
3295 w32-scroll-lock-modifier to nil. (Bug#2827)
3296
057bce6f
JB
32972009-10-26 Juanma Barranquero <lekktu@gmail.com>
3298
782a943e 3299 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3300
242bc74c
AS
33012009-10-26 Andreas Schwab <schwab@redhat.com>
3302
3303 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3304
522d013a
JB
33052009-10-26 Juanma Barranquero <lekktu@gmail.com>
3306
3307 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3308 For delta < 0, skip check that only makes sense when the mini-window
3309 is going to be enlarged. (Bug#4534)
3310
18060980
CY
33112009-10-25 Chong Yidong <cyd@stupidchicken.com>
3312
3313 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3314 string in menu maps (Bug#4471).
3315
fec8f0fe
CY
33162009-10-24 Chong Yidong <cyd@stupidchicken.com>
3317
3318 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3319 FRAME_NS_VIEW on terminal frames (Bug#4765).
3320
10d66ec0
AS
33212009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3322
1cae01f7
AS
3323 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3324 DBUS_TYPE_UINTnn separately to get proper sign extension.
3325
58a12889
AS
3326 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3327 can properly handle unsigned types.
d528b1ce 3328 (make_uid, make_gid): Remove.
58a12889 3329
987c9327
AS
3330 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3331 types again.
3332
522d013a 3333 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3334 (system_process_attributes): Likewise.
3335
905a9ed3
DN
33362009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3337
3338 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3339
3340 * eval.c (Fautoload): Purecopy the filename. Simplify.
3341
3342 * category.c (Fdefine_category): Purecopy docstring.
3343
a599b3e8
AS
33442009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3345
7b792fc9
AS
3346 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3347
a599b3e8
AS
3348 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3349
b35ac83e
CY
33502009-10-23 Chong Yidong <cyd@stupidchicken.com>
3351
3352 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3353 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3354 (Bug#4775).
3355
e8903e00
SM
33562009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3357
3358 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3359 (init_fileio_once):
3360 * lisp.h (init_fileio_once): Remove.
3361 * emacs.c (main): Don't call init_fileio_once.
3362
8f43cbf3
DN
33632009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3364
3365 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3366
26898943
AS
33672009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3368
3369 * doprnt.c (doprnt): Fix overflow check.
3370
5c646d5a
JD
33712009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3372
3132a7ea
JD
3373 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3374
5c646d5a
JD
3375 * xterm.h (x_wait_for_event): Declare it.
3376
3377 * xterm.c (pending_event_wait): New variable.
3378 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3379 see pending_event_wait.eventtype.
3380 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3381 (x_new_font): Call change_frame_size with new rows/columns before we
3382 try to resize the frame.
5c646d5a 3383 (x_wait_for_event): New function.
d528b1ce
SM
3384 (x_set_window_size_1): Don't change gravity unless change_gravity
3385 is set.
5c646d5a
JD
3386 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3387 don't change frame size, instead wait for the ConfigureNotify.
3388 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3389 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3390 (x_initialize): Initialize pending_event_wait.
3391
3392 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3393 size.
3394
3395 * widget.c (EmacsFrameSetValues): Add comment.
3396 (EmacsFrameSetCharSize): Just call x_set_window_size.
3397
3398 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3399 x_wait_for_event.
d528b1ce 3400 (flush_and_sync): Remove again.
5c646d5a
JD
3401 (xg_get_font_name): Suggest monospace if no previous font is known.
3402
e9c1637d
SM
34032009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3404
3405 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3406 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3407
5a72cccb
YM
34082009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3409
3410 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3411 processing pending events when event is filtered for input method.
ab04798f 3412 (Bug#3681)
5a72cccb 3413
2629aa37
JB
34142009-10-20 Juanma Barranquero <lekktu@gmail.com>
3415
3416 * fns.c: Add #endif accidentally removed in previous change.
3417
c3417a74
DN
34182009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3419
3420 * fns.c: Remove code for unsupported system: MAC_OS.
3421 * image.c: Likewise. Include setjmp.h.
3422
9685cef2
JD
34232009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3424
3425 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3426 pixel -1 (bug #4742).
3427
d7306fe6
DN
34282009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3429
019d2c4c
DN
3430 * process.c (create_pty): Remove conditionals for no longer
3431 supported systems: UNIPLUS and RTU.
3432
ee6bacd4
DN
3433 * xterm.c:
3434 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3435
d7306fe6
DN
3436 * alloc.c: Do not define struct catchtag.
3437 * eval.c: Move struct catchtag definition ...
3438 * lisp.h: ... here.
3439
3440 * image.c: Move png.h #include earlier to avoid warnings.
3441
3442 * xterm.c:
3443 * xsmfns.c:
3444 * xselect.c:
3445 * xrdb.c:
3446 * xmenu.c:
3447 * xftfont.c:
3448 * xfont.c:
3449 * xfns.c:
3450 * xfaces.c:
3451 * xdisp.c:
3452 * window.c:
3453 * widget.c:
3454 * w32xfns.c:
3455 * w32uniscribe.c:
3456 * w32term.c:
3457 * w32select.c:
3458 * w32reg.c:
3459 * w32proc.c:
3460 * w32menu.c:
3461 * w32inevt.c:
3462 * w32heap.c:
3463 * w32font.c:
3464 * w32fns.c:
3465 * w32console.c:
3466 * w32.c:
3467 * w16select.c:
3468 * vm-limit.c:
3469 * unexsol.c:
3470 * unexec.c:
3471 * unexcw.c:
3472 * unexaix.c:
3473 * undo.c:
3474 * tparam.c:
3475 * textprop.c:
3476 * terminfo.c:
3477 * terminal.c:
3478 * termcap.c:
3479 * term.c:
3480 * syntax.c:
3481 * sound.c:
3482 * sheap.c:
3483 * search.c:
3484 * scroll.c:
3485 * region-cache.c:
3486 * regex.c:
3487 * ralloc.c:
3488 * process.c:
3489 * print.c:
b024548b
DN
3490 * nsterm.m:
3491 * nsselect.m:
3492 * nsmenu.m:
3493 * nsimage.m:
3494 * nsfont.m:
3495 * nsfns.m:
d7306fe6
DN
3496 * msdos.c:
3497 * minibuf.c:
3498 * menu.c:
3499 * marker.c:
3500 * macros.c:
3501 * keymap.c:
3502 * keyboard.c:
3503 * intervals.c:
3504 * insdel.c:
3505 * indent.c:
3506 * gtkutil.c:
3507 * ftxfont.c:
3508 * ftfont.c:
3509 * fringe.c:
3510 * frame.c:
3511 * fontset.c:
3512 * font.c:
3513 * fns.c:
3514 * floatfns.c:
3515 * filelock.c:
3516 * fileio.c:
3517 * emacs.c:
3518 * editfns.c:
3519 * dosfns.c:
3520 * doprnt.c:
3521 * doc.c:
3522 * dispnew.c:
3523 * dired.c:
3524 * dbusbind.c:
3525 * data.c:
3526 * composite.c:
3527 * coding.c:
3528 * cmds.c:
3529 * cm.c:
3530 * chartab.c:
3531 * charset.c:
3532 * character.c:
3533 * ccl.c:
3534 * category.c:
3535 * casetab.c:
3536 * casefiddle.c:
3537 * callproc.c:
3538 * callint.c:
3539 * bytecode.c:
3540 * buffer.c:
3541 * atimer.c: Include setjmp.h. (Bug#4643)
3542
fd5f21e6
SM
35432009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3544
4c0354d7
SM
3545 Remove leftover table unibyte_to_multibyte_table.
3546 * character.c (unibyte_to_multibyte_table): Remove.
3547 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3548 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3549 * character.h (UNIBYTE_TO_CHAR): New macro.
3550 (MAKE_CHAR_MULTIBYTE): Use it.
3551 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3552 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3553 (message_dolog, set_message_1):
3554 * search.c (Freplace_match):
3555 * editfns.c (Fcompare_buffer_substrings):
3556 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3557 (concat):
3558 * insdel.c (copy_text, count_size_as_multibyte):
3559 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3560 * term.c (produce_glyphs):
3561 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3562 * regex.c (RE_CHAR_TO_MULTIBYTE):
3563 * cmds.c (internal_self_insert):
3564 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3565
fd5f21e6
SM
3566 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3567
4418646e
DN
35682009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3569
3570 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3571
35f5c1d2
JB
35722009-10-16 Juanma Barranquero <lekktu@gmail.com>
3573
3574 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3575
a0cd8f6b
AR
35762009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3577
3578 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3579 still needed under Tiger.
3580
3581 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3582
3583 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3584 __Apple__.
3585
3586 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3587
01a8d3fa
KH
35882009-10-15 Kenichi Handa <handa@m17n.org>
3589
3590 * print.c (print_object): Escape a symbol like "2E10" too.
3591
bf6c75c9 35922009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3593
3594 Cleanups and changes for 64-bit compile under Snow Leopard.
3595 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3596
3597 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3598
c5959062 3599 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3600 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3601 cast argument.
3602 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3603 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3604
3605 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3606
3607 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3608 where appropriate.
3609
3610 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3611 where appropriate.
6e4780c5
JB
3612 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3613 Use stringWithUTF8String.
bf6c75c9
AR
3614 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3615
6e4780c5
JB
3616 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3617 Add formal protocol mention to inheritance.
bf6c75c9
AR
3618 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3619
6e4780c5
JB
3620 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3621 Fix printf format.
bf6c75c9
AR
3622 (ns_query_color): Use CGFloat where appropriate.
3623 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3624 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3625 argument.
3626
3d87f118
AR
3627 * config.in (NS_HAVE_NSINTEGER): Drop.
3628
a95c8102
AR
3629 * dbusbind.c (dbus-method-return-internal)
3630 (dbus-method-error-internal): Use long format in printf, and cast
3631 argument.
3632
3633 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3634 in printf, and cast argument.
3635
6873acca 3636 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3637 cast argument.
3638
9ec6f100
GM
36392009-10-11 Glenn Morris <rgm@gnu.org>
3640
3641 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3642
5be883cd
JD
36432009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3644
3645 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3646 menu bar with a small width so it doesn't enlarge the frame.
3647
d7a39b51
JB
36482009-10-08 Juanma Barranquero <lekktu@gmail.com>
3649
3650 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3651
0c2b6f8e
GM
36522009-10-06 Glenn Morris <rgm@gnu.org>
3653
3654 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3655 SOME_MACHINE_LISP (this enters indirectly via DOC).
3656
e02131a2
EZ
36572009-10-05 Eli Zaretskii <eliz@gnu.org>
3658
3659 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3660
b4744254
EZ
36612009-10-04 Eli Zaretskii <eliz@gnu.org>
3662
3663 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3664 Doc fix.
3665
dbf64827
JB
36662009-10-03 Martin Rudalics <rudalics@gmx.at>
3667
3668 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3669
e9a0aef8
MA
36702009-10-02 Michael Albinus <michael.albinus@gmx.de>
3671
d528b1ce 3672 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3673 used anymore outside fileio.c.
3674
3675 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3676
64eb2b56
JB
36772009-10-01 Juanma Barranquero <lekktu@gmail.com>
3678
3679 * lisp.h (Qdelete_directory_internal):
3680 Declare, instead of Qdelete_directory.
3681
3682 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3683
9d28c33e
SM
36842009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3685
3686 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3687
9d8f3bd9
MA
36882009-10-01 Michael Albinus <michael.albinus@gmx.de>
3689
9d28c33e 3690 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3691 Fdelete_directory. It is not a command anymore. It has no file
3692 name handler.
3693
9694740b
SM
36942009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3695
3696 * xdisp.c (get_next_display_element): Use an enum in last change.
3697
748e162f
KH
36982009-09-28 Kenichi Handa <handa@m17n.org>
3699
9694740b 3700 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3701 unibyte_display_via_language_environment in handling
3702 Vnobreak_char_display.
3703
17efd58d
AR
37042009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3705
3706 * nsterm.h (ns_app_name): New extern variable.
3707
3708 * nsterm.m (ns_app_name): New variable.
3709 (ns_term_init): Set and use it.
3710 (ns_term_shutdown): Use it.
3711
3712 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3713 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3714
3715 * nsfns.m (ns_set_name_iconic, ns_set_name)
3716 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3717 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3718
9694740b
SM
3719 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3720 Remove double-casting in client_data comparison.
31c2d412 3721
3208cb35
YM
37222009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3723
3724 * keyboard.c (make_lispy_event): Remember last wheel direction.
3725 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3726
b7d552d6
GM
37272009-09-26 Glenn Morris <rgm@gnu.org>
3728
3729 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3730 internal.elc. Add term/pc-win.elc.
3731 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3732 term/x-win.elc.
3733 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3734 term/w32-win.elc.
3735 (NS_SUPPORT): New.
3736 (lisp): Add NS_SUPPORT.
3737 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3738
4ff670a8
DR
37392009-09-25 David Reitter <david.reitter@gmail.com>
3740
3741 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3742 on Mac OS X 10.6+ (bug#4513).
3743
feabfb6c
JB
37442009-09-24 Juanma Barranquero <lekktu@gmail.com>
3745
3746 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3747 some parts of Emacs code (like font selection) don't grok them.
3748 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3749
de59072a
AS
37502009-09-24 Andreas Schwab <schwab@redhat.com>
3751
3752 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3753
a489517b
JB
37542009-09-24 Juanma Barranquero <lekktu@gmail.com>
3755
3756 * dired.c (Fdirectory_files): Fix typo in docstring.
3757
0592970c
AR
37582009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3759
3760 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3761 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3762 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3763 under GNUstep.
3764 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3765
3766 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3767 glyph advancement.
3768
48e8a88b
AR
37692009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3770
3771 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3772 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3773
3774 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3775 deleted (bug #4492).
3776
e14f0a78
AR
3777 * nsfont.m (Vns_reg_to_script): New lisp variable.
3778 (syms_of_nsfont): Declare it.
3779 (ns_registry_to_script): New function.
3780 (ns_get_req_script): Call it.
3781 (ns_findfonts): Don't give up on non-unicode registry.
3782
3783 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3784
5b650faa
SM
37852009-09-20 Tom Tromey <tromey@redhat.com>
3786
3787 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3788 batch mode (bug#4228).
3789
a489517b 37902009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3791
3792 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3793 carefully. (Bug #4339)
0bae4e09 3794
fcfe06f3
CY
37952009-09-18 Chong Yidong <cyd@stupidchicken.com>
3796
d798ba87 3797 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3798
31642728
AR
37992009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3800
3801 * emacs.c (inhibit_x_resources): Update doc string for NS.
3802 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3803 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3804
3805 * nsterm.h (ns_no_defaults): Remove.
3806
3807 * nsterm.m (ns_no_defaults): Remove.
3808 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3809 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3810 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3811 don't update the NSWindow itself.
3812 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3813 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3814
3815 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3816 ns_use_qd_smoothing.
3817
3818 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3819 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3820 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3821 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3822
8686ac71
JB
38232009-09-17 Juanma Barranquero <lekktu@gmail.com>
3824
3825 * emacs.c (inhibit_x_resources): New variable.
3826 (main) [HAVE_NS]: Don't process --quick command line option.
3827 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3828
3829 * lisp.h (inhibit_x_resources): Declare it extern.
3830
3831 * w32reg.c (x_get_string_resource):
3832 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3833
e227ba05
EZ
38342009-09-17 Eli Zaretskii <eliz@gnu.org>
3835
362654a6
JB
3836 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3837 Add lisp/term/internal.elc.
e227ba05 3838
742d40e8
SM
38392009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3842 (bug#4461).
3843
005bd5a2
DN
38442009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3845
3846 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3847
3848 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3849 (OBJECTS_MACHINE): Remove, unused.
3850
f9af9719
SM
38512009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3852
3853 * frame.c (x_get_resource_string): Remove unused.
3854
0307c7d2
JD
38552009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3856
3857 * xterm.c (x_new_font): Call change_frame_size before calling
3858 x_set_window_size, in case frame size won't change.
3859
3860 * frame.c (x_set_font): Remove dead code.
3861
428b13d6
SM
38622009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3863
3864 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3865
5766c380
SM
38662009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3867
3868 * lread.c (Fload): Don't output a message after loading an obsolete
3869 package any more (done in Lisp now).
3870
2fd0161b
CY
38712009-09-12 Chong Yidong <cyd@stupidchicken.com>
3872
3873 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3874
bc5e75b6
SM
38752009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3876
3877 * keymap.c (Fwhere_is_internal): Use nconc2.
3878
c31c985e
AM
38792009-09-11 Alan Mackenzie <acm@muc.de>
3880
3881 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3882 batch mode.
3883
78012bd2
AS
38842009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3885
3886 * xdisp.c (display_mode_element): Detect cycles.
3887
9d889332
SM
38882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3889
3890 * keymap.c (where_is_internal): Don't erroneously return nil right after
3891 filling the cache.
3892 (where_is_internal_1): Fix up typo.
3893
7ab5d780
GM
38942009-09-11 Glenn Morris <rgm@gnu.org>
3895
3896 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3897 share a common doc-string.
3898
5238a749
SM
38992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3900
66d77eda
SM
3901 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3902 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3903
5238a749
SM
3904 * keymap.c (QCadvertised_binding): New constant.
3905 (syms_of_keymap): Initialize it.
3906 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3907 if applicable.
3908
19f48442
SM
39092009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3910
50d4ba39
SM
3911 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3912 (parse_menu_item): Streamline since bindings are recomputed all the
3913 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3914 more and don't support lmenu's menu-alias any more either.
3915
a88a5372
SM
3916 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3917 (where_is_internal): Strip it down to only traverse the keymaps.
3918 Move the cache handling from Fwhere_is_internal to here.
3919 (Fwhere_is_internal): Move the handling of remapping and the choice of
3920 the best binding from where_is_internal to here.
3921 Unify the cached/noncached paths, so remapping is also handled
3922 correctly when the cache is used, and so the cache can be used to
3923 speed up remap-handling when applicable.
3924 Give preference to non-remapped bindings.
3925 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3926 non-remapped bindings.
3927 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3928 command remapping.
3929
19f48442
SM
3930 * xdisp.c (display_mode_element): Move list length limit from 50 to
3931 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3932
599498c3 39332009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3934
3935 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3936
f9b7b5ac
SM
39372009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3938
a53af587
JB
3939 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3940 (Bug#4334)
3941
f9b7b5ac
SM
3942 * keymap.c (where_is_internal): Filter out shadowed remappings.
3943 Assume that where_is_internal returns unshadowed bindings to simplify
3944 the code and get rid of the gotos. Use ASIZE.
3945
04f4b72d
JD
39462009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3947
4da146f2
JD
3948 * xterm.c (x_focus_changed): If we get a focusout and pointer
3949 is invisible, make it visible.
3950
04f4b72d
JD
3951 * xterm.h: Remove condition for declaration of
3952 x_*_window_to_frame.
3953
7cef7ce3
SM
39542009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3955
3956 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3957 initial terminal as well.
3958
a54fa5b7
JD
39592009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3960
3961 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3962 x_menubar_window_to_frame.
a54fa5b7 3963
50426a04 3964 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3965 (XTmouse_position): Do not return valid positions
3966 for clicks in the menubar and the toolbar for Gtk+.
3967
3968 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3969 if the widget for the event has the same top level as a frame,
3970 return the frame.
3971 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3972 internal windows, bug #4122.
3973 (x_non_menubar_window_to_frame): Remove.
3974
5a021dd0
GM
39752009-09-02 Glenn Morris <rgm@gnu.org>
3976
3977 * buffer.c (default-major-mode): Move most of the doc from here...
3978 (major-mode): ... to here.
3979
548fe2f3
NR
39802009-08-30 Nick Roberts <nickrob@snap.net.nz>
3981
3982 * process.c (wait_reading_process_output): Keep the descriptor
3983 when pty is used by a non-child process, e.g., in I/O buffer of
3984 GDB this allows inferior to be restarted.
3985
e0840eef
EZ
39862009-08-29 Eli Zaretskii <eliz@gnu.org>
3987
3988 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3989 both branches into one.
3990
82e98df4
SM
39912009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3992
3993 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3994 (main): Use enable-multibyte-characters rather than
3995 default-enable-multibyte-characters. Output a warning message when
3996 running a unibyte session.
3997
890617cb
YM
39982009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3999
4000 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4001 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4002 (copy_data_segment): Also copy __program_vars section.
4003 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4004 (dump_it) [LC_DYLD_INFO]: Use it.
4005
4006 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4007
e7adeadc
EZ
40082009-08-28 Eli Zaretskii <eliz@gnu.org>
4009
4010 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4011 $(SRC)/buildobj.h.
4012 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4013 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4014 $(SRC)/buildobj.h.
4015 (clean): Add buildobj.h.
4016
3ed8bbdc
TZ
40172009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4018
4019 * print.c (print_object): Set escapeflag to 1 when printing
4020 hashtable keys and values.
4021
155a6764
SM
40222009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4023
4024 * lread.c (read_integer): Use doubles (and potentially return a float
4025 number) as we do in string-to-number.
4026 (read1): Use strtol to read integers, signal errors on strtol's
4027 overflow and use floats if strtol's output is too large for
4028 Elisp integers.
4029
877610de
EZ
40302009-08-27 Eli Zaretskii <eliz@gnu.org>
4031
4032 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4033 (make-buildobj-SH): Fix last change.
4034 (SRC): Move to before where it's first used.
4035
ef73e7be
KH
40362009-08-27 Kenichi Handa <handa@m17n.org>
4037
550c8289
KH
4038 * process.c (send_process): Use encode_coding_object instead of
4039 encode_coding_string to perform eol-conversion even if the string
4040 is unibyte.
4041
60afa08d
KH
4042 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4043 character.
4044
ef73e7be 4045 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4046 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4047
7b3a82d7
DN
40482009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4049
5654bf63
DN
4050 * callproc.c (Fcall_process): Remove always true #if.
4051
7b3a82d7
DN
4052 * lisp.h: Replace #if 0 code for checking with text pointing to
4053 the --enable-checking configure flag.
4054
4055 * emacs.c (main): Mention the --enable-profiling configure flag
4056 instead of using CFLAGS.
4057
878bde49
KR
40582009-08-26 Ken Raeburn <raeburn@raeburn.org>
4059
4060 * Makefile.in (buildobj.h): New target.
4061 (doc.o): Depend on it.
4062 (temacs${EXEEXT}): Don't generate buildobj.lst.
4063 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4064 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4065 ($(BLD)/doc.$(O)): Depend on it.
4066 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4067 provided by Eli Zaretskii.)
4068 ($(TEMACS)): Don't generate buildobj.lst.
4069 * doc.c: Include buildobj.h.
4070 (buildobj): New static variable.
4071 (Fsnarf_documentation): Use it, instead of opening and reading
4072 buildobj.lst.
4073
1574224c
MA
40742009-08-25 Michael Albinus <michael.albinus@gmx.de>
4075
4076 * dbusbind.c (Fdbus_call_method)
4077 (Fdbus_call_method_asynchronously): Use English numeric format for
4078 timeout values in doc string.
4079
d9da2f45
KH
40802009-08-25 Kenichi Handa <handa@m17n.org>
4081
ef73e7be
KH
4082 * alloc.c (mark_char_table): New function.
4083 (mark_object): Use mark_char_table for a char-table.
4084
d9da2f45
KH
4085 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4086 (CHAR_TABLE_REF): Use it.
4087
c8edcc01
KR
40882009-08-23 Ken Raeburn <raeburn@raeburn.org>
4089
4090 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4091 before invoking the newly build emacs to check for load-path
4092 shadowing.
4093
7763401b
GM
40942009-08-22 Glenn Morris <rgm@gnu.org>
4095
4096 * Makefile.in (bootstrap_exe): New variable.
4097 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4098 Use ${bootstrap_exe}.
4099
729eadda
EZ
41002009-08-22 Eli Zaretskii <eliz@gnu.org>
4101
4102 * coding.h (encode_coding_string): Don't encode unibyte strings.
4103 (Bug#4047)
4104
eb4c6ace
MA
41052009-08-22 Michael Albinus <michael.albinus@gmx.de>
4106
4107 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4108
4109 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4110 intended as hotfix only.
4111 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4112
36e34d1b
AR
41132009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4114
4115 * nsterm.m (ns_get_color): Update documentation properly for last
4116 change, and clean up loose ends in the code left by it. Fix
4117 longstanding bug with 16-bit hex parsing, and add support for
4118 yet another X11 format (rgb:r/g/b) for compatibility.
4119 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4120 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4121
f983eb8a
SM
41222009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4123
4124 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4125
3f56d3c6
MA
41262009-08-20 Michael Albinus <michael.albinus@gmx.de>
4127
4128 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4129 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4130 (xd_initialize, xd_pending_messages): Check, whether
4131 $DBUS_SESSION_BUS_ADDRESS is set.
4132
fb641d68
YM
41332009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4134
4135 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4136
4137 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4138
cf59a374
GM
41392009-08-20 Glenn Morris <rgm@gnu.org>
4140
4141 * emacs.c (system-type): Doc fix.
4142
1373f3be
SM
41432009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4144
4145 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4146 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4147
058ed861
MA
41482009-08-18 Michael Albinus <michael.albinus@gmx.de>
4149
1373f3be
SM
4150 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4151 New functions.
058ed861
MA
4152 (xd_initialize): Revert change from 2009-08-16.
4153
563a866e 41542009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4155
4156 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4157 font-group vector, return nil.
5fc05db0 4158
e42bdf01
CY
41592009-08-17 Chong Yidong <cyd@stupidchicken.com>
4160
4161 * process.c (status_notify): Don't perform redisplay.
4162 (Fdelete_process, list_processes_1, process_send_signal):
4163 Expliticly perform redisplay.
4164 (wait_reading_process_output): Always check process status, but
4165 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4166
4230ab74
KR
41672009-08-17 Ken Raeburn <raeburn@raeburn.org>
4168
1373f3be 4169 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4170 (XFLOAT_INIT): New macro for storing a float value.
4171 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4172 * fns.c (sxhash): Copy out the value of a float in order to
4173 examine its bytes.
4174 * dbusbind.c (xd_append_arg): Likewise.
4175
4230ab74
KR
4176 * emacs.c (main): Don't call syms_of_data twice.
4177
a0645cdd
MA
41782009-08-16 Michael Albinus <michael.albinus@gmx.de>
4179
4180 * dbusbind.c (xd_initialize): Add connection file descriptor to
4181 input_wait_mask, in order to let select() detect, whether a new
4182 message has been arrived.
ca4f31ea 4183 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4184
485db0ba
MA
41852009-08-15 Michael Albinus <michael.albinus@gmx.de>
4186
1373f3be
SM
4187 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4188 New functions.
485db0ba
MA
4189
4190 * lisp.h (xd_pending_messages): Declare.
4191
4192 * keyboard.c (readable_events): Call xd_pending_messages.
4193
b5b98ff4
CY
41942009-08-15 Chong Yidong <cyd@stupidchicken.com>
4195
1373f3be 4196 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4197
f8354c6e
CY
4198 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4199
b5b98ff4
CY
4200 * buffer.c (set_buffer_internal_1)
4201 (swap_out_buffer_local_variables): Check for unbound local
4202 variables (Bug#4138).
4203
8b9fc636
EZ
42042009-08-14 Eli Zaretskii <eliz@gnu.org>
4205
4206 * process.c (create_pty): Fix last change.
4207
ce959360
CY
42082009-08-13 Chong Yidong <cyd@stupidchicken.com>
4209
4210 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4211 (xbm_load_image): Caller changed.
64b807c9 4212 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4213
c7baf7e9
NR
42142009-08-13 Nick Roberts <nickrob@snap.net.nz>
4215
4216 * process.c (create_pty): New function.
4217 (Fstart_process): Use it to allow Emacs to just associate a pty
4218 with the buffer. See associated change in gdb-mi.el.
4219 (list_processes_1): Deal with no program name.
4220 (start_process_unwind): Use pid == -2 to mean no process.
4221
1ac9108a
SM
42222009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4223
4224 * cmds.c (nonundocount): New global variable.
4225 (keys_of_cmds): Initialize it.
4226 (Fself_insert_command): Use it to combine upto 20 sequential chars
4227 into a single undo entry, just like the Qself_insert_command code in
4228 keyboard.c does.
4229 Call frame_make_pointer_invisible, also like the Qself_insert_command
4230 code in keyboard.c does.
4231 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4232 than its own local replacement for it.
4233
e267324c
KR
42342009-08-10 Ken Raeburn <raeburn@raeburn.org>
4235
1ac9108a 4236 * fns.c (concat): Don't re-set string length to its current value.
77437343 4237
1ac9108a
SM
4238 * coding.h (decode_coding_string, encode_coding_string):
4239 Use SBYTES macro.
f0bed503 4240
1ac9108a 4241 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4242 (doprnt): Merge with doprnt1, discarding lispstrings code.
4243 * lisp.h (doprnt_lisp): Don't declare.
4244
416e006d
JL
42452009-08-07 Juri Linkov <juri@jurta.org>
4246
4247 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4248
6f7d5780
DN
42492009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4250
4251 * print.c (syms_of_print): Undo previous change.
4252
f19a0f5b
TZ
42532009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4254
4255 * lread.c (read1, syms_of_lread): Read hashtables back from the
4256 readable format.
4257
4258 * print.c (print_preprocess, print_object): Print hashtables fully
4259 and readably.
4260 (syms_of_print): Provide 'hashtable-print-readable.
4261
b9173dc2
AR
42622009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4263
4264 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4265 no family set.
4266 (nsfont_open): Handle case when entity has no family.
4267
1586503c
AR
42682009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4269
4270 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4271 element, not a list, for match case.
4272
087048cd
KH
42732009-07-28 Kenichi Handa <handa@m17n.org>
4274
4275 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4276 rigidly.
4277
4278 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4279 font_parse_xlfd. Check font properties more rigidly.
4280
780c2506
DN
42812009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4282
31fd7c5c
JB
4283 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4284 bsd-common.h.
780c2506 4285
a8c0cc18
KH
42862009-07-27 Kenichi Handa <handa@m17n.org>
4287
4288 * xfaces.c (face_with_height): Call font_clear_prop.
4289
4fbe2306
CY
42902009-07-26 Chong Yidong <cyd@stupidchicken.com>
4291
111d9af3
CY
4292 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4293
4294 * xterm.c (x_term_init): Use Qx.
4295
4fbe2306
CY
4296 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4297
1ac9108a 4298 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4299 (ns_get_color): Revert 2009-07-16 change.
4300
beb0b7f9
EZ
43012009-07-25 Eli Zaretskii <eliz@gnu.org>
4302
4303 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4304 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4305
2baf5e76
KR
43062009-07-25 Ken Raeburn <raeburn@raeburn.org>
4307
1ac9108a
SM
4308 * coding.h (decode_coding_string, encode_coding_string):
4309 Use SCHARS macro.
8890e5f5 4310
2baf5e76 4311 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4312 (load_depth): Delete.
2baf5e76
KR
4313 (Qload_in_progress): New variable.
4314 (load_unwind): Don't reference load_depth or load_in_progress.
4315 (Fload): Likewise; specbind Qload_in_progress instead.
4316 (init_lread): Don't initialize load_depth.
4317 (syms_of_lread): Initialize and protect Qload_in_progress.
4318
1395c6f5
AR
43192009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4320
4321 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4322
4e2f36cf
AR
43232009-07-23 Yavor Doganov <yavor@gnu.org>
4324
4325 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4326
5dd9a6f7
AR
43272009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4328
4329 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4330 Bugs 3792, 3720, 2402.
4331 (ns_lookup_indexed_color): Check for bad index.
4332 (ns_index_color): Init unused slot to 0.
4333 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4334 Bug 3714, possibly 3082.
5dd9a6f7 4335
c902b920
JR
43362009-07-22 Jason Rumney <jasonr@gnu.org>
4337
1ac9108a
SM
4338 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4339 Position IME window at cursor (Bug#2570).
c902b920
JR
4340 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4341 (globals_of_w32fns): Dynamically load functions required above.
4342
4343 * w32term.c (w32_draw_window_cursor): Send message to reposition
4344 any IME window.
4345
090101cf
CY
43462009-07-21 Chong Yidong <cyd@stupidchicken.com>
4347
4348 * fileio.c: Revert 2009-07-16 changes.
4349 (Vauto_save_include_big_deletions): New variable.
4350 (Fdo_auto_save): Disable auto-save only if
4351 auto-save-include-big-deletions is nil.
4352
e6583e3d
CY
43532009-07-21 Chong Yidong <cyd@stupidchicken.com>
4354
4355 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4356 the overflowed pixels into account (Bug#3879).
4357
ece435a5
KR
43582009-07-21 Ken Raeburn <raeburn@raeburn.org>
4359
4360 * lread.c (load_depth): New variable.
4361 (Fload, load_unwind, init_lread): Set it to the load recursion
4362 depth; set load_in_progress as a simple boolean based on the
4363 current load_depth. (Bug#3892)
4364
40b2d973
AR
43652009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4366
4367 * nsfont.m (ns_has_attribute): Remove.
4368 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4369
10be7e0d
JL
43702009-07-18 Juri Linkov <juri@jurta.org>
4371
4372 * process.c (Fset_process_query_on_exit_flag): Mention killing
4373 a buffer in docstring.
4374
fa055055
KH
43752009-07-17 Kenichi Handa <handa@m17n.org>
4376
4377 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4378
042f7b69
YM
43792009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4380
4381 * nsfns.m (Fns_set_alpha): Remove function.
4382 (syms_of_nsfns): Don't defsubr it.
4383
4384 * nsterm.m (ns_get_color): Remove incompatible color formats.
4385 (ns_color_to_lisp): Generate #rrggbb color format string.
4386
4be941e3
RS
43872009-07-16 Richard Stallman <rms@gnu.org>
4388
4389 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4390 (Fset_buffer_auto_saved): Handle save_length = -2.
4391
4e6b227d
CY
43922009-07-16 Chong Yidong <cyd@stupidchicken.com>
4393
4394 * xterm.c (Qx_gtk_map_stock): New var.
4395
4396 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4397 of calling intern each time.
4398
a1856973
YM
43992009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4400
4401 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4402 does tiling.
4403
4404 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4405
497e54d8
KH
44062009-07-14 Kenichi Handa <handa@m17n.org>
4407
72d36834
KH
4408 * font.c (font_vconcat_entity_vectors): New function.
4409 (struct font_sort_data): New member font_driver_preference.
4410 (font_compare): Check font_driver_preference.
4411 (font_sort_entities): The format of the first argument changed.
4412 (font_delete_unmatched): Likewise.
4413 (font_list_entities): The return type changed.
4414 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4415 (font_find_for_lface): Adjuste for the above changes.
4416 Don't suppress the checking of C even if the repertory supports it.
4417 (Flist_fonts): Adjust for the above changes.
72d36834 4418
1ac9108a
SM
4419 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4420 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4421 Reject a font who has adstyle property that is different from a
4422 langname derived from registry property.
1ac9108a 4423 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4424
b6046155
EZ
44252009-07-13 Eli Zaretskii <eliz@gnu.org>
4426
4427 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4428 local copy of dirfilename.
4429
fb6b6049
KH
44302009-07-13 Kenichi Handa <handa@m17n.org>
4431
e2402a5e
KH
4432 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4433 against max_char.
4434
fb6b6049
KH
4435 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4436 calling XSYMBOL (sym).
4437
65156807
EZ
44382009-07-11 Eli Zaretskii <eliz@gnu.org>
4439
1ac9108a
SM
4440 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4441 New function.
4442 (directory_files_internal) [WINDOWSNT]:
4443 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4444 the filesystem of the directory is fast or slow.
4445
4446 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4447 file name.
4448 (is_slow_fs): New function.
4449 (stat): Use it to determine whether to issue more system calls to
4450 get accurate file attributes, when w32-get-true-file-attributes is
4451 `local'.
4452
e0ab5fcf
JD
44532009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4454
4455 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4456 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4457 parameter font-parameter as default to the font dialog.
4458
784ceded
KH
44592009-07-10 Kenichi Handa <handa@m17n.org>
4460
4461 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4462
fb8edc0b
EZ
44632009-07-09 Eli Zaretskii <eliz@gnu.org>
4464
1ac9108a 4465 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4466
fb8edc0b
EZ
4467 * w32.c (stat): Treat UNC file names as residing on remote
4468 drives. (Bug#3542)
4469
635c75b1
KH
44702009-07-09 Kenichi Handa <handa@m17n.org>
4471
4472 * fontset.c (fontset_find_font): Fix previous change.
4473
c1d5ce94
MA
44742009-07-08 Michael Albinus <michael.albinus@gmx.de>
4475
4476 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4477 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4478 error flag.
4479
edb61b39
KH
44802009-07-08 Kenichi Handa <handa@m17n.org>
4481
374bf7e4
KH
4482 * fontset.c (fontset_find_font): Fix the logic of handling
4483 charset_matched.
4484 (font_for_char): Delete unused var.
4485 (generate_ascii_font_name): Delete it.
4486
edb61b39
KH
4487 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4488
4489 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4490 (encode_coding_sjis): Fix the code range check.
4491
0f3f018c
CY
44922009-07-07 Chong Yidong <cyd@stupidchicken.com>
4493
4494 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4495 (Fexpand_file_name): Copy string data properly (Bug#3772).
4496
fcaf6f3a
JD
44972009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4498
4499 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4500 first MapNotify.
4501
6809ca75
KH
45022009-07-07 Kenichi Handa <handa@m17n.org>
4503
4504 * character.h (unibyte_has_multibyte_table): Delete extern.
4505 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4506
4507 * charset.c (Fset_charset_priority): Update charset_unibyte.
4508 (syms_of_charset): Initialize charset_unibyte.
4509
4510 * character.c (unibyte_has_multibyte_table): Delete it.
4511 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4512 charset_unibyte.
4513 (multibyte_char_to_unibyte_safe): Likewise.
4514 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4515
1ac9108a 4516 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4517 (x_produce_glyphs): Likewise.
4518
4519 * .gdbinit (xcharset): Fix the treating $arg0.
4520
ad9e2d54
EZ
45212009-07-04 Eli Zaretskii <eliz@gnu.org>
4522
4523 Emulation of `getloadavg' on MS-Windows.
50426a04 4524 * w32.c: Include float.h.
ad9e2d54
EZ
4525 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4526 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4527 (get_native_system_info, get_system_times): New functions.
4528 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4529 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4530 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4531 g_b_init_get_system_times, and num_of_processors.
4532
0a3472c7
JR
45332009-07-03 Jason Rumney <jasonr@gnu.org>
4534
4535 * w32term.c (w32_initialize): Use standard types.
4536
80904120
EZ
45372009-07-03 Eli Zaretskii <eliz@gnu.org>
4538
4539 * dired.c (Ffile_attributes): Decode user and group names by the
4540 locale's encoding. (Bug#3443)
4541
6978862d
DN
45422009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4543
f8d23104
DN
4544 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4545 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4546
4547 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4548
4549 * term.c (init_tty): Remove spurious #ifdef.
4550
6978862d
DN
4551 * m/mips.h: Mention this file is also used for netbsd.
4552 * m/pmax.h: Remove file.
4553
e044e4fc
JD
45542009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4555
4556 * xterm.h (struct x_display_info): Add invisible_cursor.
4557 (struct x_output): Add current_cursor.
4558
4559 * xterm.c (XTtoggle_invisible_pointer): New function.
4560 (x_define_frame_cursor): Don't define cursor if invisible or the
4561 same as before. Set current_cursor.
4562 (x_create_terminal): Set toggle_invisible_pointer_hook.
4563
4564 * xfns.c (make_invisible_cursor): New function.
4565 (x_set_mouse_color): Call make_invisible_cursor.
4566 Set current_cursor.
4567 (x_window): Set current_cursor.
4568
4569 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4570
4571 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4572 inserting a character.
4573 (read_avail_input): Call frame_make_pointer_visible.
4574
4575 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4576 (frame_make_pointer_invisible, frame_make_pointer_visible):
4577 New functions.
e044e4fc
JD
4578 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4579
4580 * frame.h: Declare frame_make_pointer_invisible and
4581 frame_make_pointer_visible.
4582 (struct frame): Add pointer_invisible.
4583
574c8efa
JD
45842009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4585
7b507248
JD
4586 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4587 frame isn't visible.
4588 (xg_frame_resized): If width/height is -1, get size of window
4589 from X server.
4590
4591 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4592 for MapNotify.
4593
835bdaa7 4594 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4595 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4596 (flush_and_sync): Reintroduce.
574c8efa 4597
3f1c6666 45982009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4599
31fd7c5c 4600 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4601
4602 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4603 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4604
4605 * frame.h: Declare Qsticky.
4606
cad9ef74
JD
4607 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4608
4609 * nsfns.m (ns_frame_parm_handlers): Ditto.
4610
4611 * frame.c: Declare Qsticky.
4612 (frame_parms): Add sticky.
4613
4614 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4615
4616 * xterm.h: Declare x_set_sticky.
4617
4618 * xterm.c (x_set_sticky): New function.
4619
69b16610
JD
4620 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4621 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4622 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4623
4624 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4625
4626 * frame.c: Qmaximized is new.
4627 (x_set_frame_parameters): Do not handle fullscreen specially.
4628 Only set width and height if explicitly set.
4629 (x_set_fullscreen): Handle Qmaximized.
4630 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4631 (syms_of_frame): Initialize Qmaximized.
4632
1ac9108a
SM
4633 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4634 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4635
4636 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4637 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4638 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4639 set gravity to NorthWestGravity when USE_GTK.
4640 (set_wm_state): New function.
31fd7c5c 4641 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4642 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4643 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4644 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4645 to x_real_positions and x_fullscreen_adjust.
4646
4647 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4648 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4649 flush_and_sync.
4650 (xg_height_changed): New function.
4651 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4652 and gtk_window_set_policy. Set frame gravity after parsing the
4653 geometry string.
3f1c6666
JD
4654 (xg_update_frame_menubar, free_frame_menubar)
4655 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4656 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4657 Remove calls to xg_frame_set_char_size.
4658
fd503d99
KH
46592009-07-01 Kenichi Handa <handa@m17n.org>
4660
4661 * keyboard.c (decode_keyboard_code): New function.
4662 (tty_read_avail_input): Decode the input bytes if necessary.
4663
1ac9108a
SM
4664 * coding.c (setup_coding_system):
4665 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4666 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4667 use Qno_conversion.
4668
24ed93fb
YM
46692009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4670
4671 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4672
99061dfc
CY
46732009-06-30 Chong Yidong <cyd@stupidchicken.com>
4674
1ac9108a 4675 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4676
ff90fbde
JR
46772009-06-30 Jason Rumney <jasonr@gnu.org>
4678
4679 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4680 is already loaded.
4681 Set user model ID if supported (bug#1849).
4682
5f445726
JM
46832009-06-29 Jim Meyering <meyering@redhat.com>
4684
4685 Remove useless if-before-xfree test.
4686 * nsfont.m (nsfont_close): Remove useless test.
4687 * term.c (delete_tty): Likewise.
4688 * w32.c (system_process_attributes): Likewise.
4689 * w32font.c (w32font_close): Likewise.
4690 * xfaces.c (x_free_gc): Likewise.
4691 * xselect.c (buffer): Likewise.
4692
b9607587
AS
46932009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4694
4695 * process.c (send_process): Keep decoded string in a local
4696 variable and protect it from GC. (Bug#3521)
4697
89ba96f4
EZ
46982009-06-28 Eli Zaretskii <eliz@gnu.org>
4699
4700 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4701 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4702
098a1589
CY
47032009-06-28 Chong Yidong <cyd@stupidchicken.com>
4704
485422be
CY
4705 * xdisp.c (start_display, handle_face_prop)
4706 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4707 (redisplay_window, try_window_id, produce_image_glyph):
4708 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4709
098a1589
CY
4710 * xterm.c (x_update_window_begin, x_new_focus_frame)
4711 (x_scroll_bar_handle_click, handle_one_xevent)
4712 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4713 (x_make_frame_visible, x_make_frame_invisible)
4714 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4715 code chunks that are now obsolete.
4716
78c38319
MA
47172009-06-28 Michael Albinus <michael.albinus@gmx.de>
4718
4719 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4720 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4721 for hours, when optimzation is enabled.
4722 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4723 (xd_read_message): Make them static.
4724
4189ed40
CY
47252009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4726
4727 * term.c (turn_on_face): Allow simultaneously bold and dim
4728 terminal faces (Bug#3530).
4729
cd9b5e16
CY
47302009-06-27 Chong Yidong <cyd@stupidchicken.com>
4731
4e23bedb
CY
4732 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4733
cd9b5e16
CY
4734 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4735 truncation glyphs (Bug#3686).
4736
07cc3c35
GM
47372009-06-27 Glenn Morris <rgm@gnu.org>
4738
4739 * m/pmax.h: Restore file, with only netbsd portions.
4740
31fd7c5c 47412009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4742
cd9b5e16 4743 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4744
42d4a64f
KH
47452009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4746
4747 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4748 the arg FORCE_SYMBOL.
4749
930fe55b 47502009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4751
4752 * fontset.c (fontset_find_font): When a usable rfont_def is found
4753 in a fallback font-group, make it the first element of the group.
4754
57ebc3fd
CY
47552009-06-24 Chong Yidong <cyd@stupidchicken.com>
4756
4757 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4758
f084f942
KH
47592009-06-24 Kenichi Handa <handa@m17n.org>
4760
4761 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4762 set for C.
4763 (fontset_font): Record the availability of a font for C both in
4764 the realized fontsets of the current one and the default one.
4765
2f686c87
DN
47662009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4767
4768 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4769 conditional, it is always defined on AIX.
4770
666e158e
MB
47712009-06-23 Miles Bader <miles@gnu.org>
4772
4773 * window.c (Vrecenter_redisplay): New variable.
4774 (syms_of_window): Initialize it.
4775 (Qtty): New extern declaration.
4776 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4777
c6da7cd2
JM
47782009-06-23 Jim Meyering <meyering@redhat.com>
4779
1ac9108a
SM
4780 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4781 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4782 pointer dereferences are guaranteed to be valid.
c6da7cd2 4783
678dca3d
KH
47842009-06-23 Kenichi Handa <handa@m17n.org>
4785
74d75424
KH
4786 * emacs.c (main): Call init_font ().
4787
4788 * font.h (Vfont_log): Extern it.
4789 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4790
4791 * font.c (font_sort_entities, font_list_entities)
4792 (font_matching_entity, font_open_entity)
4793 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4794 (Vfont_log): Delete static.
4795 (font_log_env_checked): Delete this variable.
4796 (font_add_log): Don't check font_log_env_checked.
4797 (font_deferred_log): Check Vfont_log.
4798 (init_font): New function.
4799
678dca3d
KH
4800 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4801
4802 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4803
4804 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4805
4806 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4807
4808 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4809 (face_for_char): Don't call font_deferred_log here.
4810 (font_for_char): Likewise.
4811
8a668709
CY
48122009-06-22 Chong Yidong <cyd@stupidchicken.com>
4813
9a01ee33
CY
4814 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4815 rather than its background_width for drawing the overline and
4816 underline (Bug#489).
4817
4818 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4819 rather than its background_width for drawing the overline and
4820 underline (Bug#489).
ec7c9926
CY
4821 (xg_default_icon_file): New variable.
4822 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4823 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4824
8a668709
CY
4825 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4826 (load_overlay_strings): Remove externs.
4827 (fast_find_position): Function deleted.
4828 (mouse_face_from_buffer_pos): New function, based on
4829 fast_find_position. Correctly handle before-strings,
4830 display-strings, and after-strings (Bug#1220).
4831 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4832
4d4c02d8
CY
48332009-06-21 Chong Yidong <cyd@stupidchicken.com>
4834
1ac9108a 4835 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4836 (move_it_in_display_line_to, move_it_in_display_line_to)
4837 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4838
70243478
CY
48392009-06-21 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * Branch for 23.1.
4842
13087e59
JR
48432009-06-21 Jason Rumney <jasonr@gnu.org>
4844
4845 * w32term.c (keyboard_codepage): New static variable.
4846 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4847 (w32_read_socket) [WM_CHAR]: Use it to decode character
4848 input (bug#3237).
4849 (w32_initialize): Initialize it.
4850 (codepage_for_locale): New function.
4851
4735b74e
KR
48522009-06-20 Ken Raeburn <raeburn@raeburn.org>
4853
4854 * process.c (status_message): Pass Faset index argument as a lisp
4855 object, so as to work with USE_LISP_UNION_TYPE.
4856
0e727afa
YM
48572009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4858
4859 * coding.c (Ffind_coding_systems_region_internal):
4860 Cache checked characters.
4861
cf299835
KH
48622009-06-18 Kenichi Handa <handa@m17n.org>
4863
1ac9108a 4864 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4865
90f20d94
AS
48662009-06-18 Andreas Schwab <aschwab@redhat.com>
4867
4868 * xdisp.c (redisplay_internal): Check that the frame is still
4869 live after redisplay of its windows.
4870 (redisplay_windows): Check that the window is still live.
4871
7f1faf1c
KH
48722009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4873
4874 * coding.c (detect_coding_utf_16): Fix previous change.
4875
cc13543e
KH
48762009-06-16 Kenichi Handa <handa@m17n.org>
4877
4878 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4879 UTF-16 by checking the dispersion of Eth and Oth bytes.
4880
977b85f4
AS
48812009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4882
4883 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4884
66bd43d1
KH
48852009-06-15 Kenichi Handa <handa@m17n.org>
4886
4887 * process.c (status_message): Fix previous change. Be sure to
4888 decode a localized string.
4889
cb5ca9c5
YM
48902009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4891
4892 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4893 add comment explaining why.
4894
ec7709ba 48952009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4896
ec7709ba 4897 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4898
4b7f335c
AR
48992009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4900
4901 * nsfont.m (ns_attribute_value): Remove.
4902 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4903 (ns_has_attribute): Shrink the normal range.
4904 (ns_findfonts): Don't worry about requested spec in determining
4905 need for synthItal.
e41820ee 4906 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4907
73b26103
SZ
49082009-06-14 Seiji Zenitani <zenitani@mac.com>
4909
4910 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4911
5753e4da
KH
49122009-06-11 Kenichi Handa <handa@m17n.org>
4913
4914 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4915 overhang for the static composition case.
4916
3561b671
KH
49172009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4918
5753e4da
KH
4919 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4920 overhang for the automatic composition case.
4921
3561b671
KH
4922 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4923 composition case.
4924
852bbd41
CY
49252009-06-10 Chong Yidong <cyd@stupidchicken.com>
4926
4927 * xdisp.c (get_next_display_element): When handling wrap-prefix
4928 and line-prefix, treat \n as a control character (bug#3502).
4929
9903d1e6
KH
49302009-06-10 Kenichi Handa <handa@m17n.org>
4931
4932 * font.c (font_parse_family_registry): Fix for one-char foundry.
4933 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4934
0bcbaaaa
CY
49352009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4936
4937 * process.c (status_message): Fix handling of multibyte signal
4938 string (Bug#3499).
4939
40aa3f13
JM
49402009-06-09 Jim Meyering <meyering@redhat.com>
4941
1f80c7e2
CY
4942 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4943 color name is missing.
40aa3f13 4944
72d51285
KH
49452009-06-09 Kenichi Handa <handa@m17n.org>
4946
4947 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4948 FROM-CODE and TO-CODE are codepoints of CHARSET.
4949
c1d04d84
AR
49502009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4951
4952 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4953
49542009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4955
4956 Changes to support :script/:lang/:otf in NS font driver.
4957 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4958 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4959 indicate not part of font driver interface, and change callers.
4960 (ns_get_family): Remove pointless null check.
4961 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4962 ns_spec_to_descriptor, ns_descriptor_to_entity.
4963 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4964 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4965 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4966 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4967 (ns_get_req_script, ns_accumulate_script_ranges)
4968 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4969 New functions.
4970 (nsfont_list, nsfont_match): Use ns_findfonts.
4971 (nsfont_open): Use font descriptor instead of traits.
4972 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4973 (dump_glyphstring): Rename to ns_dump_glyphstring.
4974
c7eb9816
AR
4975 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4976
c1d04d84
AR
4977 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4978
4979 * fontset.c (fontset_from_font): Remove NS-specific code.
4980
ec7709ba 49812009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4982
4983 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4984 nonactive windows.
4985
31fd7c5c 49862009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4987
1ac9108a 4988 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4989
68852c13 49902009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4991
4992 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4993
6756cd1d
CY
49942009-06-07 Chong Yidong <cyd@stupidchicken.com>
4995
4996 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4997 account for the overflowing of newlines into the last glyph on the
4998 display line (Bug#3482).
4999
28bf482a
DR
50002009-06-05 David Reitter <david.reitter@gmail.com>
5001
ec7709ba
JB
5002 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5003 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5004 Fns_selection_exists_p, Fns_selection_owner_p.
5005
fdb55376
JR
50062009-06-03 Jason Rumney <jasonr@gnu.org>
5007
5008 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5009 available. (Bug#3379)
5010
05129fbe
KH
50112009-05-29 Kenichi Handa <handa@m17n.org>
5012
1ac9108a
SM
5013 * coding.c (get_translation_table):
5014 Check Venable_character_translation.
05129fbe 5015
ec7709ba 50162009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5017
ec7709ba
JB
5018 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5019 (x_make_frame_visible): Move frame to front rather than calling
15891144 5020 ns_raise_frame().
ec7709ba 5021 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5022 isn't key window.
ec7709ba 5023 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5024 drawRect may be called by NSView even if the frame is hidden.
5025
ec7709ba
JB
5026 * nsfns.m (Fx_create_frame): Follow other ports in
5027 determining visibility; default to t. Ensure async_visible is set.
15891144 5028
21f73755
EZ
50292009-05-23 Eli Zaretskii <eliz@gnu.org>
5030
5031 * dired.c (Ffile_attributes): Doc fix.
5032
34001e41
CY
50332009-05-22 Chong Yidong <cyd@stupidchicken.com>
5034
5035 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5036
46306a17
SM
50372009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5038
5039 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5040 and xfont_scratch_props.
5041 (syms_of_xfont): Do it here instead.
5042 (xfont_find_ccl_program): Delete, unused.
5043 (xfont_open): Delete unused var `i'.
5044
ef6e0694
KH
50452009-05-21 Kenichi Handa <handa@m17n.org>
5046
5047 * fontset.c (Qlatin): Don't make it static.
5048
46306a17
SM
5049 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5050 New functions.
ef6e0694
KH
5051 (xfont_scripts_cache, xfont_scratch_props): New variables.
5052 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5053 (xfont_list_pattern): Argument changed. Callers changed.
5054 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5055 (xfont_list): Don't reject a font spec with :script property.
5056 (xfont_has_char): Fix setting of encoding.
5057 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5058 xfont_scratch_props.
5059
50602009-05-19 Kenichi Handa <handa@m17n.org>
5061
46306a17 5062 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5063 Callers changed.
5064
50652009-05-18 Kenichi Handa <handa@m17n.org>
5066
5067 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5068
ac71ced7
SM
50692009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5070
5071 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5072 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5073
1c6d1051
YM
50742009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5075
5076 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5077 (x_delete_terminal): Dissociate resource database from display and
5078 then call XrmDestroyDatabase before closing display.
5079
9b9b779c
AR
50802009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5081
5082 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5083 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5084 whether selected frame is viable before raising it (based on patch
5085 by David Reitter), and improve commentary.
5086 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5087
cccd42d5
KH
50882009-05-15 Kenichi Handa <handa@m17n.org>
5089
5090 * font.c (Ffont_spec): Check arguments.
5091
337fbd17
CY
50922009-05-14 Chong Yidong <cyd@stupidchicken.com>
5093
5094 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5095 weight when testing attributes (Bug#3282).
5096
47a6002f
JD
50972009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5098
5099 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5100 what we expect to get in the next ConfigureNotify event.
5101
9cb363db
YM
5102 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5103 before Xft one (Bug#1696).
5104
b9126609
CY
51052009-05-07 David Reitter <david.reitter@gmail.com>
5106
5107 * nsfns.m (Fx_display_planes): Compute bitplanes using
5108 NSBitsPerPixelFromDepth (Bug#3207).
5109
27a69fd9
CY
51102009-05-10 Chong Yidong <cyd@stupidchicken.com>
5111
5112 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5113
00f37552
TTN
51142009-05-10 Ulrich Mueller <ulm@gentoo.org>
5115
5116 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5117
2d82a920
DR
51182009-05-07 David Reitter <david.reitter@gmail.com>
5119
ec7709ba
JB
5120 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5121 Respect mouse face background.
2d82a920 5122
46b0d52d
DR
51232009-05-07 David Reitter <david.reitter@gmail.com>
5124
ec7709ba
JB
5125 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5126 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5127 in ns_update_begin and ns_update_end.
5128
ce1b23bb
SM
51292009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5130
5996e1b7
SM
5131 * nsfns.m (ns_get_screen): Rewrite.
5132 Don't presume selected-frame is of type `ns'.
5133
ba98e3a0
SM
5134 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5135 all drivers.
5136
ce1b23bb
SM
5137 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5138
bcda200f
YM
51392009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5140
5141 * keyboard.h (add_user_signal): Fix typo in extern.
5142
5143 * lisp.h (add_user_signal): Remove extern.
5144
5145 * unexelf.c (unexec): Consider a section to precede the .bss section
5146 if its addresses overlap that of .bss.
5147 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5148 instead of dumping process.
5149
864660a2
SM
51502009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5151
5152 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5153
50da4e56
SM
51542009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5155
5156 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5157
51520a1a
DN
51582009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5159
5160 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5161 any statements.
5162
409ea3a1
AS
51632009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5164
59c4c60f
AS
5165 * process.c (read_process_output): Make sure the current buffer is
5166 always restored.
5167
409ea3a1
AS
5168 * coding.c (record_conversion_result): Don't modify
5169 Vlast_code_conversion_error for successful result.
5170 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5171
56f00ed2
KH
51722009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5173
5174 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5175 (load_charset_map): Remove unnecessary code.
56f00ed2 5176
4491c9d2
DR
51772009-04-30 David Reitter <david.reitter@gmail.com>
5178
35f5b128 5179 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5180 through f24.
5181
6970f632
CY
51822009-04-30 Chong Yidong <cyd@stupidchicken.com>
5183
5184 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5185
5186 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5187 face_at_buffer_position.
5188 (face_before_or_after_it_pos, get_next_display_element)
5189 (note_mouse_highlight): Update face_at_buffer_position call.
5190
5191 * term.c (term_mouse_highlight):
5192 * msdos.c (IT_note_mouse_highlight):
5193 * fontset.c (Finternal_char_font):
35f5b128 5194 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5195
5196 * dispextern.h (face_at_buffer_position): Update prototype.
5197
0c616f63
KH
51982009-04-30 Kenichi Handa <handa@m17n.org>
5199
35f5b128 5200 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5201
ad3aaf33
AS
52022009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5203
5204 * callproc.c (Fcall_process): Fix GC protection. Make sure
5205 current buffer is always restored.
5206
c3c963a0
YM
52072009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5208
5209 * atimer.c (init_atimer): Also clear stopped_atimers.
5210
5211 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5212
7e3386cb
YM
5213 * process.c (create_process): Clean up merger residues of
5214 2008-07-17 change.
5215
91f68422
CY
52162009-04-29 Ulrich Mueller <ulm@gentoo.org>
5217
5218 * lread.c (Vread_circle): New variable.
5219 (read1): Disable recursive read if Vread_circle is nil.
5220
24b34550
KH
52212009-04-29 Kenichi Handa <handa@m17n.org>
5222
5223 * fontset.h (set_default_ascii_font): Delete extern.
5224
5225 * fontset.c (set_default_ascii_font): Delete this unused function.
5226
5227 * frame.c (x_set_font): When ARG is a font-object, check if the
5228 font-object matches with the ASCII font-spec of the frame's
9c358bda 5229 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5230
77bf07e1
AS
52312009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5232
5233 * fns.c (Flocale_info): Protect vector from GC during decoding.
5234
5235 * process.c (Fstart_process): Protect argv strings from GC during
5236 encoding.
5237
2c55aacf
AS
52382009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5239
5240 * sysdep.c: Include <ctype.h>.
5241
b892d3c9
DR
52422009-04-27 David Reitter <david.reitter@gmail.com>
5243
35f5b128 5244 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5245 Remove commented-out code.
5246
9d0644c4
JB
52472009-04-26 Johan Bockgård <bojohan@gnu.org>
5248
5249 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5250
b7053016
JR
52512009-04-25 Jason Rumney <jasonr@gnu.org>
5252
5253 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5254
4e8231f3
YM
52552009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5256
5257 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5258 Swap bytes in short integer if fringe bitmap width > 8.
5259
493dcf2c
KH
52602009-04-23 Kenichi Handa <handa@m17n.org>
5261
5262 * xfaces.c (Fx_list_fonts): If a font size is specified in
5263 PATTERN, set it in returned scalable fonts.
5264
401e9e57
CY
52652009-04-22 Chong Yidong <cyd@stupidchicken.com>
5266
708e05dc
CY
5267 * keyboard.c (Fset_input_meta_mode): Doc fix.
5268
5269 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5270
1ac9108a 5271 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5272
5273 * coding.c (Fterminal_coding_system): Doc fix.
5274
5275 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5276 (Fx_display_pixel_height, Fx_display_planes)
5277 (Fx_display_color_cells, Fx_server_max_request_size)
5278 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5279 (Fx_display_mm_height, Fx_display_mm_width)
5280 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5281 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5282 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5283 (check_x_display_info): Handle terminal objects instead of
5284 terminal ids.
5285
401e9e57
CY
5286 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5287 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5288 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5289 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5290
df80c7f0
KH
52912009-04-21 Kenichi Handa <handa@m17n.org>
5292
5a8f12af 5293 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5294 (font_score): Check AVGWIDTH too.
908567ef 5295
df80c7f0
KH
5296 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5297 worst case.
1ac9108a
SM
5298 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5299 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5300
705af33f
JR
53012009-04-19 Jason Rumney <jasonr@gnu.org>
5302
5303 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5304 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5305
5306 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5307 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5308 get_phys_cursor_geometry.
5309
b71ac3dd 5310 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5311 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5312 using get_phys_cursor_geometry.
5313
5314 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5315 correctly calculated.
5316
dc2933eb
JD
53172009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5318
1ac9108a
SM
5319 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5320 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5321 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5322 is deprecated.
5323
973e7849
AS
53242009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5325
5326 * font.c (font_put_frame_data): Use xfree instead of free.
5327
314d66f4
JB
53282009-04-17 Juanma Barranquero <lekktu@gmail.com>
5329
5330 * w32font.c (Qja, Qko): Remove declarations.
5331 (syms_of_w32font): Don't DEFSYM them.
5332
cf702558
CY
53332009-04-17 Chong Yidong <cyd@stupidchicken.com>
5334
5335 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5336
5337 * font.h (Qja, Qko): Extern them.
5338
5339 * ftfont.c (Qja, Qko): Remove declarations.
5340
5341 * xfont.c (Qja, Qko): Remove declarations.
5342
b50504f5
KH
53432009-04-17 Kenichi Handa <handa@m17n.org>
5344
bde25748
KH
5345 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5346 string from a vector to handle Latin-1 characters correctly.
5347
b50504f5
KH
5348 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5349 entity even if the cache hits.
5350
f4646fff
AS
53512009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5352
5353 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5354 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5355
e7deaab0
AS
5356 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5357 * lisp.h: Adjust prototypes.
5358
0a0e7d49
CY
53592009-04-16 Chong Yidong <cyd@stupidchicken.com>
5360
5361 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5362 change (Bug#3003).
5363
3c908a57
KH
53642009-04-16 Kenichi Handa <handa@m17n.org>
5365
1ac9108a 5366 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5367
5368 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5369 adstyle.
5370
5371 * ftfont.c (Qja, Qko): Don't make them static.
5372 (enum ftfont_cache_for): New enum.
5373 (fc_charset_table): Undo the previous change.
5374 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5375 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5376 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5377 non-scarable font, try to get AVERAGE_WIDTH.
5378 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5379 Change ft_face_cache from a list of a hash-table. Don't check
5380 `ja' and `ko' adstyle here.
5381 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5382 FTFONT_CACHE_FOR_CHARET.
5383 (ftfont_get_charset): Undo the previous change.
1ac9108a 5384 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5385 (ftfont_close): Likewise.
5386 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5387
5388 * font.c (font_sort_entites): Change the meaning of the arg
5389 BEST-ONLY. Don't optimize for VEC of lenght 1.
5390 (font_select_entity): Just return the value of font_sort_entites.
5391
5392 * xfaces.c (merge_face_vectors): Reflect font properties in
5393 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5394 font_clear_prop if a face attribute doesn't change.
5395
3c908a57
KH
5396 * charset.h (charset_ksc5601): Extern it.
5397
5398 * charset.c (charset_ksc5601): New variable.
5399 (Fdefine_charset_internal): Set charset_ksc5601.
5400 (init_charset_once): Initialize charset_ksc5601 to -1.
5401
d65859c3
DN
54022009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5403
5404 * fileio.c (history_delete_duplicates): Remove unused declaration.
5405
5406 * callint.c (history_delete_duplicates): New declaration.
5407 (Fcall_interactively): Remove command history duplicates when
5408 history_delete_duplicates is true.
5409
3ba010e5
EZ
54102009-04-14 Eli Zaretskii <eliz@gnu.org>
5411
5412 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5413
06f19b91
KH
54142009-04-14 Kenichi Handa <handa@m17n.org>
5415
5416 * font.c (Ffont_info): Fix docstring. Fix the second element of
5417 the returned value (bug#2949).
5418
2cce8bfc
CY
54192009-04-14 Chong Yidong <cyd@stupidchicken.com>
5420
5421 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5422
d156542d
KH
54232009-04-14 Kenichi Handa <handa@m17n.org>
5424
5425 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5426 encoding charset is ascii_compatible.
5427
5428 * charset.c (Fdefine_charset_internal): Make charset
5429 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5430 code_offset is 0, and covers all ASCII characters.
5431
86fa089e
SM
54322009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5433
5434 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5435 (ns_string_to_pasteboard_internal):
5436 * nsmenu.m (process_dialog):
5437 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5438 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5439 * lisp.h (Fx_load_color_file): Declare.
5440
a8a3728b
KH
54412009-04-13 Kenichi Handa <handa@m17n.org>
5442
1ac9108a 5443 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5444 (font_select_entity): Suppress the code to optimize for the same
5445 kind of fonts.
5446 (font_load_for_lface): Get a font that supports at least ASCII
5447 characters.
5448
5449 * ftfont.c (Qja, Qko): New variables.
5450 (fc_charset_table): Delete uniquifier data for iso8859-1.
5451 (ftfont_get_latin1_charset): New function.
5452 (get_adstyle_property): New function.
5453 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5454 bitmap fonts.
5455 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5456 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5457 `ko' or `ja'.
5458 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5459 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5460 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5461 property.
5462 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5463 (syms_of_ftfont): DEFSYM Qja and Qko.
5464
483670b5
KH
54652009-04-09 Kenichi Handa <handa@m17n.org>
5466
12b55765
KH
5467 * charset.c (map_charset_chars): For a charset of `superset'
5468 method, fix calculation of code range.
5469
483670b5
KH
5470 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5471 from the list of extra properties.
5472 (font_clear_prop): Be sure to delete `:name' font property.
5473
57d3b93b
KH
54742009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5475
b4b2c2ca
YM
5476 * dispnew.c (redraw_overlapping_rows): Fix detection of
5477 overlapping for topmost and bottommost rows.
5478
1ac9108a 5479 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5480
472c3609
JR
54812009-04-06 Jason Rumney <jasonr@gnu.org>
5482
5483 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5484
ab193662
KH
54852009-04-06 Kenichi Handa <handa@m17n.org>
5486
5487 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5488
5489 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5490
0c26f026
KH
54912009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5492
5493 * ftfont.c (ftfont_open): Fix checking of the return value of
5494 FT_Load_Char. Fix setting font->underline_thickness.
5495
e173bbce
CY
54962009-04-04 Chong Yidong <cyd@stupidchicken.com>
5497
5498 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5499 (Fterminal_parameters, Fterminal_parameter)
5500 (Fset_terminal_parameter): In doc string, refer to terminal
5501 objects rather than terminal ids.
5502
693a2698
EZ
55032009-04-04 Eli Zaretskii <eliz@gnu.org>
5504
5505 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5506 ret_lim_data. (Bug#2867)
5507
d5221487
CY
55082009-04-03 Chong Yidong <cyd@stupidchicken.com>
5509
5510 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5511 so they don't get wider than the window, matching 2006-01-23
5512 change to the partner function in xdisp.c (Bug#2800).
5513
223509a3
KH
55142009-04-03 Kenichi Handa <handa@m17n.org>
5515
5516 * print.c (print_object): Make each lowest sub_char_table start a
5517 new line (Bug#2866).
5518
74fcd0b1
KH
55192009-04-02 Kenichi Handa <handa@m17n.org>
5520
5521 * fontset.c (fontset_font): Record no-font when a fontset
5522 explicitly tells not to try another font-specs.
5523
c542407d
SM
55242009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5525
5526 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5527
e3869731
KH
55282009-03-30 Kenichi Handa <handa@m17n.org>
5529
d8d2f142
KH
5530 * fontset.c (fontset_from_font): Specify only registry in a
5531 font-spec for all characters supported by that registry.
5532
e3869731
KH
5533 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5534 even if HAVE_M17N_FLT is not defined.
5535
5da5f805
CY
55362009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5537
5538 * ftfont.c: Conditionalize prototyping and use of
5539 ftfont_variation_glyphs.
5540
ab226c50
SM
55412009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5542
9628fed7
SM
5543 * frame.c (delete_frame): Work around compiler bug.
5544
5545 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5546 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5547 Some more EMACS_INT.
5548 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5549
5550 * xdisp.c (dump_glyph): Fix typo.
5551
ae19ba7c
SM
5552 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5553 (adjust_markers_gap_motion, adjust_markers_for_delete)
5554 (adjust_markers_for_insert, adjust_point)
5555 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5556 (make_gap, copy_text, count_size_as_multibyte, insert)
5557 (insert_and_inherit, insert_before_markers)
5558 (insert_before_markers_and_inherit, insert_1)
5559 (count_combining_before, count_combining_after, insert_1_both)
5560 (insert_from_string, insert_from_string_before_markers)
5561 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5562 (insert_from_buffer_1, adjust_after_replace)
5563 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5564 (replace_range_2, del_range, del_range_1, del_range_byte)
5565 (del_range_both, del_range_2, modify_region)
5566 (prepare_to_modify_buffer, signal_before_change)
5567 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5568 for buffer positions and sizes.
5569 * lisp.h: Adjust prototypes accordingly.
5570
5571 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5572 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5573 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5574
ab226c50
SM
5575 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5576
46dfb8fb
JD
55772009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5578
5579 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5580 lines and columns so we keep the same pixel height and width.
5581
5582 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5583 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5584 (x_handle_net_wm_state): New function to update frame parameter
5585 fullscreen.
5586 (x_term_init): Initialize atoms for _NET_WM_STATE.
5587
5588 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5589
d347e494
SM
55902009-03-27 Kevin Ryde <user42@zip.com.au>
5591
5592 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5593 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5594 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5595 (Fgpm_mouse_stop): Pass that new parameter.
5596 * termhooks.h (close_gpm): Adjust prototype.
5597
84db11d6
SM
55982009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5599
c95a5008
SM
5600 * lisp.h (Fx_focus_frame): Declare.
5601
84db11d6
SM
5602 * callint.c (Fcall_interactively): For '^' just delegate the work to
5603 handle-shift-selection.
5604 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5605
0a1958d6
CY
56062009-03-24 Chong Yidong <cyd@stupidchicken.com>
5607
0bfdff23
CY
5608 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5609
0a1958d6
CY
5610 * data.c (Qinteractive_form): New variable.
5611 (Finteractive_form): Use it.
5612
5613 * eval.c (Fcommandp): Use Qinteractive_form.
5614
58aec0d6
JR
56152009-03-24 Jason Rumney <jasonr@gnu.org>
5616
5617 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5618 Calculate total size precisely. Decode environment variables
5619 before substituting. (Bug#38)
5620
553dd618
KH
56212009-03-24 Kenichi Handa <handa@m17n.org>
5622
5623 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5624 encoding (Bug#2722).
553dd618 5625
c39ea606
JD
56262009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5627
5628 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5629 that gdpy is set.
5630
bc9b2b5e
AM
56312009-03-22 Alan Mackenzie <acm@muc.de>
5632
5633 * callint.c (Finteractive): Clarify the doc string - even
5634 promptless elements need \n separators.
5635
9f995a76
JR
56362009-03-22 Jason Rumney <jasonr@gnu.org>
5637
5638 * w32term.c (syms_of_w32term): Doc fix for
5639 x-use-underline-position-properties.
5640
22749e9a
EZ
56412009-03-21 Eli Zaretskii <eliz@gnu.org>
5642
5643 * w32.c (getpwuid): Change argument type to unsigned.
5644 (struct w32_id): Change type of `rid' member to unsigned.
5645 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5646 argument ID to unsigned. All callers changed.
5647 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5648
e00553bf
EZ
56492009-03-20 Eli Zaretskii <eliz@gnu.org>
5650
5651 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5652 negative, produce a float value.
5653
5654 * dired.c (make_uid, make_gid): New functions.
5655 (Ffile_attributes): Use them to avoid negative UID and GID.
5656
f761d6b6
JB
56572009-03-20 Juanma Barranquero <lekktu@gmail.com>
5658
5659 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5660 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5661 Fix typos in docstrings.
5662
d507f8d7
KH
56632009-03-19 Kenichi Handa <handa@m17n.org>
5664
5665 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5666 changed, use font_load_for_lface to get a new font object.
5667 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5668
5669 * frame.c (x_set_font): Handle the case that ARG is a cons.
5670
c68845e0
GM
56712009-03-19 Glenn Morris <rgm@gnu.org>
5672
5673 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5674
bfa49dd1
CY
56752009-03-19 Chong Yidong <cyd@stupidchicken.com>
5676
5677 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5678
8458d4c1
KH
56792009-03-19 Kenichi Handa <handa@m17n.org>
5680
5681 * charset.c (load_charset_map_from_file): When a mapfile can't be
5682 loaded, signal an error.
5683
78e7d1fe
EZ
56842009-03-18 Eli Zaretskii <eliz@gnu.org>
5685
5686 * dired.c (Ffile_attributes): Make sure UID and GID are always
5687 positive, even if the value is too large for a positive EMACS_INT.
5688 Doc fix.
5689
5690 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5691
5da9fdfa
YM
56922009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5693
5694 * xmenu.c (xdialog_show): Move Fredisplay call ...
5695 (Fx_popup_dialog): ... here.
5696
7519c40d
SM
56972009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5698
5699 * dired.c (file_name_completion): Disable the first optimization just
5700 installed, since it is not implemented correctly.
5701
2cd298e2
SM
57022009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5703
5704 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5705 only if the entry can affect bestmatch.
2cd298e2
SM
5706 Stop the search early, as Ftry_completion already does.
5707
48d37adf
CY
57082009-03-17 Chong Yidong <cyd@stupidchicken.com>
5709
e10c9c93 5710 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5711
9286b16a
CY
57122009-03-15 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * keyboard.c (parse_menu_item): Don't display remappings as menu
5715 equivalent bindings (Bug#788).
5716
f7b146dc
JR
57172009-03-15 Jason Rumney <jasonr@gnu.org>
5718
5719 * w32term.h (WM_EMACS_PAINT): New message.
5720 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5721 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5722 before passing to lisp thread. (Bug#950)
5723
f761d6b6 57242009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5725
d93f9575
CY
5726 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5727 variable as it was never reset.
5728 (ns_term_init): Remove initialization of Lisp-settable defaults
5729 and ns_expand_space.
5730 (-setPanelFromDefaultValues): Remove ns_expand_space.
5731 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5732 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5733 i.e. no additional spacing, similar to Carbon port.
5734
d93f9575
CY
5735 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5736 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5737
305018ec
JD
57382009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5739
5740 * sound.c (alsa_configure): Remove call to deprecated
5741 snd_pcm_sw_params_set_xfer_align.
5742
f761d6b6 57432009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5744
5745 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5746 after clicking in a detached tool bar.
5747 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5748
46e722a9
SM
57492009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5750
348db3dd
SM
5751 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5752 int/Lisp_Object mixup).
46e722a9 5753
a3d16f39
KH
57542009-03-13 Kenichi Handa <handa@m17n.org>
5755
5756 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5757 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5758 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5759 (set_fontset_font): Change ARG to a vector. Handle range_list in
5760 ARG correctly.
5761 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5762 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5763 the above change.
5764 (fontset_from_font): Fix previous change.
fe24f56a 5765 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5766 entry. If FONTSET is the default fontset, don't set the extra
5767 slot of the returning char-table.
5768
b066e6b6
JB
57692009-03-12 Juanma Barranquero <lekktu@gmail.com>
5770
5771 * nsfns.m (Fx_close_connection): Doc fix.
5772 (Fns_do_applescript): Reflow docstring.
5773 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5774 (Fx_display_pixel_width, Fx_display_pixel_height)
5775 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5776 Fix typos in docstrings.
5777 (Fns_set_alpha): Fix typos in error messages.
5778
d472514e 57792009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5780
d472514e 5781 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5782 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5783 were used for such events.
5784
d472514e
JB
5785 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5786 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5787
d472514e 5788 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5789 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5790
fb930676
KH
57912009-03-11 Kenichi Handa <handa@m17n.org>
5792
ff85581a
KH
5793 * font.h (font_open_by_spec): Extern it.
5794
c50b7e98
KH
5795 * font.c (font_open_by_spec): New function.
5796 (font_open_by_name): Use font_open_by_spec.
5797
fb930676
KH
5798 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5799 fontset of the frame.
5800
5801 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5802 modify the default font of frames that use this fontset.
5803 (num_auto_fontsets): New variable.
5804 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5805 name. Be sure to set FONTSET_ASCII to the correct font name.
5806 (update_auto_fontset_alist): New function.
5807
df4e8455
JB
58082009-03-11 Juanma Barranquero <lekktu@gmail.com>
5809
5810 * makefile.w32-in: Update dependencies.
5811
0a375797
AR
58122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5813
5814 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5815
61313fa3
SM
58162009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5817
5818 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5819
b55103fb
CY
58202009-03-10 Chong Yidong <cyd@stupidchicken.com>
5821
5822 * lread.c (Feval_buffer): Doc fix.
5823
dde2559c
KH
58242009-03-09 Kenichi Handa <handa@m17n.org>
5825
5826 * charset.c (Qfile_name_handler_alist): Extern it.
5827 (load_charset_map_from_file): Temporarily bind
5828 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5829
df4e8455 58302009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5831
47f588bb
GM
5832 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5833 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5834
4ddf94bd
AR
58352009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5836
4c9bdfc2
AR
5837 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5838 (x_set_window_size): Change back to calculated method of setting
5839 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5840 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5841 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5842
fe41ae9e
AR
5843 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5844
4c9bdfc2
AR
5845 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5846 accelerator in parens under GNUstep.
5847
825d0875
KH
58482009-03-06 Kenichi Handa <handa@m17n.org>
5849
5850 These changes are to detect incorrect composition sequence without
f3b3be74 5851 looking ahead the source. (Bug#2370)
825d0875
KH
5852
5853 * coding.h: Include "composite.h".
5854 (enum compisition_state): New enum.
5855 (struct compisition_status): New struct.
5856 (struct iso_2022_spec): New member cmp_status.
5857 (struct emacs_mule_spec): New struct.
5858 (struct coding_system): New members ctext_extended_segment_len and
5859 embedded_utf_8. Change the union member
5860 spec.emacs_mule_full_support to spec.emacs_mule.
5861
5862 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5863 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5864 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5865 (ADD_COMPOSITION_DATA): New arg nbytes.
5866 (emacs_mule_char): New arg cmp_status.
5867 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5868 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5869 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5870 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5871 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5872 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5873 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5874 (EMACS_MULE_COMPOSITION_END): New macro.
5875 (emacs_mule_finish_composition): New function.
5876 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5877 (decode_coding_emacs_mule): Avoid long looking ahead while
5878 handling composition.
5879 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5880 (ENCODE_COMPOSITION_RULE): New macro.
5881 (finish_composition): New function.
5882 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5883 (DECODE_COMPOSITION_START): New implementation.
5884 (DECODE_COMPOSITION_END): Likewise.
5885 (STORE_COMPOSITION_RULE): New macro.
5886 (decode_coding_iso_2022): Avoid long looking ahead while handling
5887 composition, CTEXT extended segment, and embedded UTF-8.
5888 (setup_coding_system): For a coding of type iso-2022, reset
5889 CODING_ISO_EXTSEGMENT_LEN (coding) and
5890 CODING_ISO_EMBEDDED_UTF_8 (coding).
5891 (get_translation): Delete arguments last_block, from_nchars,
5892 to_nchars. Callers changed.
5893 (produce_chars): Don't modify charbuf. Adjusted for the change of
5894 get_translation.
98a326f7 5895 (produce_composition): Adjust for the new annotation sequence.
825d0875 5896 (handle_composition_annotation): Likewise.
98a326f7 5897 (consume_chars): Adjust for the change of get_translation.
825d0875 5898
ccbc4452
AR
58992009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5900
4ddf94bd 5901 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5902
988a7ddb
KH
59032009-03-05 Kenichi Handa <handa@m17n.org>
5904
5905 * font.c (font_select_entity): New function.
5906 (font_find_for_lface): Use font_select_entity to select a font.
5907
5908 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5909 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5910 font with C restriction.
5911
98a326f7 59122009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5913
be1bce46 5914 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5915
10ea2b82
JR
59162009-03-04 Jason Rumney <jasonr@gnu.org>
5917
2c93b248 5918 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5919 characters that have already been read. (Bug#2569)
2c93b248 5920
10ea2b82
JR
5921 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5922 Log an error message if check_image_size failed.
5923 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5924 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5925
71a0c011
EZ
59262009-03-02 Eli Zaretskii <eliz@gnu.org>
5927
5928 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5929 when decoding process output.
5930
2f63bba8
RS
59312009-03-01 Richard M Stallman <rms@gnu.org>
5932
5933 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5934
5935 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5936
0a9564cb
EZ
59372009-02-28 Eli Zaretskii <eliz@gnu.org>
5938
5939 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5940 (decode_coding_emacs_mule, decode_coding_iso_2022)
5941 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5942 (decode_coding_raw_text, decode_coding_charset)
5943 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5944 Honor inhibit-eol-conversion. (Bug #2186)
5945
449148b3
JR
59462009-02-28 Jason Rumney <jasonr@gnu.org>
5947
5948 * coding.c (detect_coding_charset): If not checking latin extra,
5949 fail on characters between 0x80 and 0xA0. (Bug#2354)
5950
a4aee864
EZ
59512009-02-28 Eli Zaretskii <eliz@gnu.org>
5952
5953 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5954 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5955
d88bee5a
GM
59562009-02-27 Glenn Morris <rgm@gnu.org>
5957
5958 * callint.c (Finteractive): Doc fix.
5959
a808f22d
KH
59602009-02-27 Kenichi Handa <handa@m17n.org>
5961
5962 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5963
caf8d60c
CY
59642009-02-27 Chong Yidong <cyd@stupidchicken.com>
5965
5966 * font.c (font_style_to_value): Set value for unknown symbols to
5967 100 instead of 255.
b61137ea
CY
5968 (weight_table, slant_table, width_table): Treat "unspecified" as
5969 the default value.
caf8d60c 5970
1a0de25c
JB
59712009-02-26 Juanma Barranquero <lekktu@gmail.com>
5972
5973 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5974
8fc45744
JB
59752009-02-25 Juanma Barranquero <lekktu@gmail.com>
5976
107bd7d1
JB
5977 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5978 error as soon as a recursive load is detected.
8fc45744 5979
f097e223
AR
59802009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5981
5982 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5983 before caching.
5984
8810a12f
KH
59852009-02-24 Kenichi Handa <handa@m17n.org>
5986
5987 * fontset.c (fontset_find_font): Fix the condition for checking
5988 unavailable font.
5989
2c7d1565
GM
59902009-02-24 Glenn Morris <rgm@gnu.org>
5991
5992 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5993 whitespace that confuses documentation.
5994
a20878b6
MB
59952009-02-23 Miles Bader <miles@gnu.org>
5996
5997 * process.c (Flist_system_processes, Fprocess_attributes)
5998 (syms_of_process): Rename `system-process-attributes' to
5999 `process-attributes'.
6000
b3b58c01
AS
60012009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6002
1b3b981b
AS
6003 * coding.h (struct coding_system): Make safe_charsets a pointer to
6004 unsigned char.
6005 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6006 being 255.
6007 (SAFE_CHARSET_P): Likewise.
6008 (setup_iso_safe_charsets): Properly setup safe_charsets.
6009 (Fdefine_coding_system_internal): Likewise.
6010 (setup_coding_system): Likewise. Remove unneeded casts.
6011 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6012 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6013 unneeded casts.
6014
b3b58c01
AS
6015 * insdel.c (del_range_2): Don't modify gap contents when called
6016 from decode_coding_object. (Bug#1809)
6017
0b6f228c
CY
60182009-02-21 Chong Yidong <cyd@stupidchicken.com>
6019
6020 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6021 Qfont_object.
6022 (Ftype_of): Recognize font objects.
6023
6024 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6025
6026 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6027 moved to data.c.
6028
52f8870b
AR
60292009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6030
6031 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6032 async_iconified. Based on a patch by Christian Lynbech
6033 <christian.lynbech@tieto.com>.
6034 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6035
7087d5e9
GM
60362009-02-20 Glenn Morris <rgm@gnu.org>
6037
6038 * syntax.c (Fskip_chars_forward): Fix doc typo.
6039
41d2ceef
CY
60402009-02-20 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6043
1a3b7ca6
CY
60442009-02-19 Chong Yidong <cyd@stupidchicken.com>
6045
6046 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6047
73cce38d
KH
60482009-02-19 Kenichi Handa <handa@m17n.org>
6049
6050 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6051 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6052
a51092ee
DN
60532009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6054
6055 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6056
c423ecca
KH
60572009-02-18 Kenichi Handa <handa@m17n.org>
6058
6059 * font.c (font_check_otf_features): Fix handling of `nil' element.
6060 (Ffont_spec): Describe :lang and :otf in the docstring.
6061
4c1958f4
AS
60622009-02-16 Andreas Schwab <schwab@suse.de>
6063
6064 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6065 string.
6066
5704f39a
KH
60672009-02-16 Kenichi Handa <handa@m17n.org>
6068
6069 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6070 (Bug#1723)
5704f39a 6071
8f0085aa
CY
60722009-02-14 Chong Yidong <cyd@stupidchicken.com>
6073
a057d86a 6074 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6075
6076 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6077 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6078
aff01dd9
EZ
60792009-02-14 Eli Zaretskii <eliz@gnu.org>
6080
6081 * msdos.c (MAX_SCREEN_BUF): New macro.
6082 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6083 Encode the entire run of glyphs sharing the same face, instead of
6084 doing that one glyph at a time (fixes a bug with displaying
6085 double-size characters).
6086
ba301db3
AR
60872009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6088
6089 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6090
6091 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6092 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6093 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6094
6095 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6096 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6097
51d861de
SM
60982009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6099
ac146f82 6100 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6101 invisible areas.
6102
7fed8996
JR
61032009-02-12 Jason Rumney <jasonr@gnu.org>
6104
631ea4fb
JR
6105 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6106 (add_font_entity_to_list): Call check_face_name even when family
6107 is unspecified.
6108
cb4a3e42
JR
6109 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6110 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6111 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6112
7fed8996 6113 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6114 raster fonts. (Bug#2219)
7fed8996 6115
895416e3
KH
61162009-02-12 Kenichi Handa <handa@m17n.org>
6117
6118 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6119 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6120 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6121 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6122 (find_automatic_composition): While looking forward and backward,
6123 check static composition. Fix where to stop looking forward.
6124 (composition_adjust_point): Fix checking of static composition.
6125 (Fcomposition_get_gstring): Pay attention to
1dacf998 6126 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6127
6128 * lisp.h (fast_looking_at): Extern it.
6129
6130 * search.c (fast_looking_at): New function.
6131
51d861de 6132 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6133 <struct glyph>.u.cmp.to.
6134 (append_composite_glyph): Likewise.
6135
51d861de 6136 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6137 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6138 composition.
51d861de 6139 (append_composite_glyph): Adjust for the change of
895416e3
KH
6140 <strcut glyph>.u.cmp.to.
6141
8510724d
JB
61422009-02-11 Juanma Barranquero <lekktu@gmail.com>
6143
6144 * casetab.c (init_casetab_once):
6145 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6146 * font.c (font_update_lface):
6147 * fontset.c (Fnew_fontset):
6148 * ftfont.c (ftfont_drive_otf):
6149 * xfont.c (xfont_open):
6150 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6151
294fa707
SM
61522009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6153
6154 * fileio.c (Fwrite_region): !NILP -> CONSP.
6155
b5bfebec
AS
61562009-02-10 Andreas Schwab <schwab@suse.de>
6157
6158 * process.c (send_process): Properly relocate pointer into data
adab88bd 6159 when using encoded data. (Bug#2272)
b5bfebec 6160
cb84a2be
KH
61612009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6162
6163 * coding.c (detect_coding_charset): Fix previous change.
6164
89e09428
JR
61652009-02-08 Jason Rumney <jasonr@gnu.org>
6166
6167 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6168 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6169
4470a277
AS
61702009-02-07 Andreas Schwab <schwab@suse.de>
6171
6172 * unexelf.c (unexec): Fix error message.
6173
3175b12a
AR
61742009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6175
6176 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6177 when modal window is active. (Bug #2152)
3175b12a
AR
6178 (applicationShouldTerminate:): Remove now-unneeded while loop
6179 around NSRunAlertPanel.
6180
6181 * nsmenu.m (popupSession): New file-global variable.
6182 (pop_down_menu): End the popupSession before closing dialog.
6183 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6184 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6185 don't query NSApp for events (just sleep instead).
6186
8434d0b8
EZ
61872009-02-07 Eli Zaretskii <eliz@gnu.org>
6188
51d861de
SM
6189 * coding.c (syms_of_coding) <translation-table-for-input>:
6190 Modify doc string to discourage use for character code unification.
8434d0b8 6191
aa82edfd
CY
61922009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6193
6194 * atimer.c (run_timers): Update pending_atimers.
6195
2d283c7c
CY
61962009-02-06 Chong Yidong <cyd@stupidchicken.com>
6197
eb306cab
CY
6198 * image.c (svg_load_image): Fix last change.
6199
2d283c7c
CY
6200 * xfns.c (Fx_create_frame): Signal an error if no font is
6201 found (Bug#2147).
6202
4d8e170e
JB
62032009-02-05 Juanma Barranquero <lekktu@gmail.com>
6204
6205 * character.c (syms_of_character) <script-representative-chars>:
6206 Fix typo in docstring.
6207
c96169a0
AR
62082009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6209
6210 * nsmenu.m (pop_down_menu): New function.
6211 (ns_popup_dialog): Call it on unwind.
6212 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6213 call timer_check() (Bug#2154).
6214 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6215 handling_signal is set.
6216 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6217
31fd7c5c 6218 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6219
6220 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6221
6222 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6223
51d861de
SM
6224 * keyboard.c (poll_for_input_1, handle_async_input):
6225 Set handling_signal under HAVE_NS.
c96169a0 6226
aacd8ba1
GM
62272009-02-04 Glenn Morris <rgm@gnu.org>
6228
6229 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6230
4cb75c4b
KH
62312009-02-04 Kenichi Handa <handa@m17n.org>
6232
6233 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6234
6235 * charset.c (Fchar_charset): New optional arg restriction.
6236
6237 * coding.h (coding_system_charset_list): Extern it.
6238
6239 * coding.c (coding_system_charset_list): New function.
6240
6241 * composite.c: Include coding.h and termhooks.h.
6242 (composition_gstring_p): Fix for the terminal case.
6243 (composition_gstring_width): Likewise.
6244 (fill_gstring_body): Likewise.
6245 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6246 the frame.
6247 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6248 is within a composition.
867d4bb3 6249 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6250
6251 * term.c (encode_terminal_code): Fix handling of composition.
6252 (produce_composite_glyph): For static composition, get pixel_width
6253 from struct composition.
6254
826ba17e
AS
62552009-02-02 Andreas Schwab <schwab@suse.de>
6256
6257 * unexelf.c (unexec): Handle unaligned bss offset.
6258
8ad093db
AR
62592009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6260
6261 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6262 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6263
8ad093db
AR
6264 * keyboard.c (handle_interrupt): Don't call
6265 quit_throw_to_read_char() under NS.
d0a76a6e 6266
8ad093db
AR
6267 * blockinput.h: Remove NS-specific code.
6268
4d18a7a2
DN
62692009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6270
db878925
DN
6271 * dispnew.c (window_change_signal): Don't try to get the size of a
6272 suspended tty frame.
6273 * term.c (Fresume_tty): Resize if the size has changed while the
6274 tty was suspended.
6275
4d18a7a2
DN
6276 * alloc.c (mark_stack): Properly conditionalize previous change.
6277
8984df7c
JB
62782009-01-30 Juanma Barranquero <lekktu@gmail.com>
6279
6280 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6281 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6282 Remove; this code is not used on Windows.
6283
75f4f1ac
EZ
62842009-01-30 Eli Zaretskii <eliz@gnu.org>
6285
6286 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6287 EOLs that also has stray ^M characters.
6288
07a1e794
JB
62892009-01-30 Juanma Barranquero <lekktu@gmail.com>
6290
6291 * atimer.c (run_timers, alarm_signal_handler):
6292 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6293 * w32inevt.c (w32_console_read_socket):
6294 * w32term.c (w32_read_socket):
6295 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6296
a8b11cc9
CY
62972009-01-30 Chong Yidong <cyd@stupidchicken.com>
6298
6299 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6300 Initialize it as a relative filename pattern.
6301 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6302 (Fcall_process_region): Simplify temp file creation using
6303 temporary-file-directory.
6304
c279587b
EZ
63052009-01-29 Eli Zaretskii <eliz@gnu.org>
6306
6307 * msdos.c: Rename pending_signals to msdos_pending_signals.
6308 (sig_suspender, sigprocmask): Adjust.
6309
a8fe3242
CY
63102009-01-29 Chong Yidong <cyd@stupidchicken.com>
6311
6312 * keyboard.c (pending_signals): New var.
6313 (poll_for_input, input_available_signal, init_keyboard): Set it.
6314 (process_pending_signals): New function.
6315
6316 * lisp.h (QUIT): Check pending_signals instead of
6317 interrupt_input_pending. Use process_pending_signals.
6318
51d861de 6319 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6320
51d861de 6321 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6322
6323 * sysdep.c (emacs_write): Use process_pending_signals.
6324
6325 * xterm.c (XTread_socket): Update pending_signals.
6326
6327 * w32term.c (w32_read_socket): Update pending_signals.
6328
6329 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6330
6570a1c4
KH
63312009-01-29 Kenichi Handa <handa@m17n.org>
6332
6333 * xftfont.c (xftfont_has_char): New function.
6334 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6335
d72a4afa
AR
63362009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6337
6338 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6339 under GNUstep.
6340 (ns_query_color): New declaration.
6341
6342 * nsterm.m (ns_confirm_quit): New variable.
6343 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6344 (EmacsApp-applicationShouldTerminate:): Use it.
6345 (EmacsPrefsController): Let user set it.
6346 (ns_query_color): New function.
6347 (ns_defined_color): Use it.
6348 (ns_initialize): Drop.
6349 (ns_term_init): Add two lines from ns_initialize(), and set
6350 input_interrupt_mode to nil.
6351
6352 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6353 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6354
9fe78804
KH
63552009-01-28 Kenichi Handa <handa@m17n.org>
6356
6357 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6358 (fontset_get_font_group): Remember that no font-group is specified
6359 for C.
9fe78804 6360
fa57de36
CY
63612009-01-27 Chong Yidong <cyd@stupidchicken.com>
6362
930600e9
CY
6363 * fns.c (concat): Check for string overflow (bug#1787).
6364
fa57de36
CY
6365 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6366 Quadruple undo limits (bug#1501).
6367
7179ce7b
KH
63682009-01-27 Kenichi Handa <handa@m17n.org>
6369
6370 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6371 directly use GT_Get_Char_index.
6372
6373 * xftfont.c (struct xftfont_info): New member `index'.
6374
6375 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6376 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6377
5be8fcc0
CY
63782009-01-26 Kenichi Handa <handa@m17n.org>
6379
6380 * fontset.c (fontset_find_font): Fix handling of non-cons return
6381 value of fontset_get_font_group.
6382 (fontset_font): Revert last change.
6383
19ae3e61
JR
63842009-01-26 Jason Rumney <jasonr@gnu.org>
6385
6386 * w32font.c (w32font_list_internal): Return quickly if registry is
6387 unknown. Simplify final return.
6388 (add_font_entity_to_list): Break complex logic down into more
6389 manageable chunks. Move unknown registry check to
6390 w32font_list_internal.
6391
8612b71a
AR
63922009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6393
6394 Changes to remove Feval calls from GUI under NS.
6395
d8038940
JB
6396 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6397 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6398 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6399
6400 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6401 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6402 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6403 instead of NON_ASCII_KEYSTROKE_EVENT.
6404 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6405 (EmacsApp-applicationShouldTerminate:): Query user.
6406 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6407 instead of Feval.
6408
6409 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6410
6411 * keyboard.c (kbd_buffer_get_event): Check for it.
6412 (keys_of_keyboard): Define lispy keys for
6413 ns-put/unput-working-text.
6414
6415 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6416 versions.
6417 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6418
6288ae55
CY
64192009-01-25 Chong Yidong <cyd@stupidchicken.com>
6420
6421 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6422 setting current_buffer directly. (Bug#2044)
6288ae55 6423
289e7f8f
CY
64242009-01-24 Chong Yidong <cyd@stupidchicken.com>
6425
5ce87308 6426 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6427 any work. (Bug#1952, bug#1990).
5ce87308 6428
64cc3cf6 6429 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6430
b3243e6f
AR
64312009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6432
6433 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6434 (ns_no_defaults): New declaration.
6435 (main): Use it.
e0d2e69a 6436
d900b2af 6437 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6438
d900b2af 6439 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6440
d900b2af
AR
6441 * nsterm.m (ns_no_defaults): New variable.
6442 (ns_initialize): Don't read defaults when ns_no_defaults.
6443 (EmacsView-readSelectionFromPasteboard:)
6444 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6445 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6446 (ns_dumpglyphs_stretch): New function.
6447 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6448 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6449
e0d2e69a
AR
6450 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6451
3ac71f5d
CY
64522009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6453
6454 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6455 call for Sparc64.
6456
3fe53a83
AR
64572009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6458
6459 * nsfns.m:
6460 * nsgui.h:
6461 * nsmenu.m:
6462 * nsselect.m:
6463 * nsterm.h:
6464 * nsterm.m: Remove '23' comments that indicated code added during
6465 update from emacs-20 -> emacs-23.
6466
10f87c6f 64672009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6468
6469 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6470 ns_alternate_modifier. (Bug#1217)
a3b53a85 6471
c7cef62d
AR
6472 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6473 Display all shortcuts, including those w/o super modifier.
6474
575fb8bd
AR
6475 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6476
918b848b
CY
64772009-01-22 Chong Yidong <cyd@stupidchicken.com>
6478
6479 * fileio.c (Vwrite_region_post_annotation_function)
6480 (Vwrite_region_annotation_buffers): New vars.
6481 (build_annotations_unwind): Just reset
6482 Vwrite_region_annotation_buffers.
6483 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6484 Call write-region-post-annotation-function.
6485 (build_annotations): Add to Vwrite_region_annotation_buffers if
6486 buffer changes.
6487
a39e2539
AR
64882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6489
6490 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6491 Tiger.
51d861de
SM
6492 * nsfns.m (ns_do_applescript):
6493 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6494
35ed44db
AR
64952009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6496
6497 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6498
cbe0b5bf
AR
64992009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6500
6501 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6502
6049d3a0
AR
6503 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6504
6505 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6506 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6507 handle Ctrl-tab. (Bug#1841)
6508 (ns_get_color): Use unsigned long long for scanned hex string value.
6509 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6510 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6511 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6512 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6513 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6514 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6515 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6516
d3810c21 6517 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6518 DPI. (Bug#1316)
d3810c21
AR
6519 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6520 values in onTiger section.
4c7077c3 6521
e301e634
CY
65222009-01-19 Chong Yidong <cyd@stupidchicken.com>
6523
7f82490b
CY
6524 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6525 Check return value of font_spec_from_name.
64cc3cf6 6526 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6527
6528 * font.c (font_spec_from_name): Return Qnil if font name could not
6529 be parsed.
6530 (font_parse_name): Treat a `?' character as part of an XLFD.
6531
e301e634
CY
6532 * fns.c (Fsubstring): Doc fix.
6533
1c0db158
KH
65342009-01-19 Kenichi Handa <handa@m17n.org>
6535
51d861de 6536 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6537 (ftfont_list): Likewise.
6538
acf20901
JB
65392009-01-18 Juanma Barranquero <lekktu@gmail.com>
6540
fff4e459
JB
6541 * dbusbind.c (Fdbus_register_signal):
6542 * process.c (conv_sockaddr_to_lisp):
6543 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6544
acf20901
JB
6545 * callproc.c (Fgetenv_internal): Doc fix.
6546
e7abcdfb
CY
65472009-01-16 Chong Yidong <cyd@stupidchicken.com>
6548
6549 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6550 it is not even used.
6551
b60861e6
GM
65522009-01-16 Glenn Morris <rgm@gnu.org>
6553
6554 * font.c (Ffont_variation_glyphs): Silence compiler.
6555
8db52afe
JB
65562009-01-15 Juanma Barranquero <lekktu@gmail.com>
6557
6558 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6559 Reported by David Robinow <drobinow@gmail.com>.
6560
4cddb209
KH
65612009-01-15 Kenichi Handa <handa@m17n.org>
6562
51d861de 6563 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6564
f247f67b
JR
65652009-01-14 Jason Rumney <jasonr@gnu.org>
6566
6567 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6568 never a fontset. (Bug#1562)
f247f67b 6569
f56a4450
KH
65702009-01-14 Kenichi Handa <handa@m17n.org>
6571
6572 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6573 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6574
4e99855e
CY
65752009-01-13 Chong Yidong <cyd@stupidchicken.com>
6576
6577 * font.c (font_clear_prop): If clearing the family, clear the font
6578 width index too.
6579
fff4e459 6580 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6581
24f01470
JB
65822009-01-12 Juanma Barranquero <lekktu@gmail.com>
6583
6584 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6585 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6586 functions, use sizeof.
6587
a41240a3
MR
65882009-01-12 Martin Rudalics <rudalics@gmx.at>
6589
6590 * keyboard.c (read_char): Fix case where last_nonmenu_event
6591 returned a bad value with submenus. (Bug#447)
6592
944636b8
CY
65932009-01-12 Chong Yidong <cyd@stupidchicken.com>
6594
6595 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6596 family, clear the font width index too.
6597
0dad7c6f
JR
65982009-01-11 Jason Rumney <jasonr@gnu.org>
6599
6600 * keyboard.c (cmd_error_internal): Exit when errors occur before
6601 frame creation and not in daemon mode. (Bug#1836)
6602
7c2363af
CY
66032009-01-10 Chong Yidong <cyd@stupidchicken.com>
6604
6605 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6606 of a display vector, backtrack.
6607 (try_window_reusing_current_matrix): Check glyph type before
6608 referencing charpos member.
6609
97b1b294
EZ
66102009-01-10 Eli Zaretskii <eliz@gnu.org>
6611
6612 Fix Bug #876:
6613
6614 * coding.c (inhibit_null_byte_detection): New variable.
6615 (detect_coding, detect_coding_system): Don't pay attention to null
6616 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6617 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6618 <inhibit-iso-escape-detection>: Doc fix.
6619
4624b6e3
JR
66202009-01-09 Jason Rumney <jasonr@gnu.org>
6621
6622 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6623 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6624 Only report Unicode Plane 2 fonts as unicode-sip.
6625
323b840c
CY
66262009-01-09 Chong Yidong <cyd@stupidchicken.com>
6627
51d861de
SM
6628 * xfaces.c (Fx_font_family_list): Delete function.
6629 Move compatibility version to faces.el.
323b840c 6630
51d861de 6631 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6632
eba7400d
MR
66332009-01-09 Martin Rudalics <rudalics@gmx.at>
6634
6635 * frame.c (x_set_frame_parameters): Remember requested value for
6636 fullscreen before it's reset by the parameter handler.
6637
4b09796d
GM
66382009-01-09 Glenn Morris <rgm@gnu.org>
6639
6640 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6641 (last_command_event): ... and update all users.
4b09796d
GM
6642 (last_input_char): For clarity, rename to...
6643 (last_input_event): ... and update all users.
6644 (last-command-char, last-input-char): Move to subr.el as aliases.
6645 * cmds.c, commands.h: Update for last_command_char rename.
6646
14ccea62
CY
66472009-01-08 Chong Yidong <cyd@stupidchicken.com>
6648
51d861de 6649 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6650
5f004711
JR
66512009-01-08 Jason Rumney <jasonr@gnu.org>
6652
6653 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6654 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6655 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6656 Don't declare.
fff4e459 6657 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6658 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6659
b71f6f73
KH
66602009-01-07 Kenichi Handa <handa@m17n.org>
6661
50b06221 6662 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6663 remember the coding system used for decoding in
50b06221
KH
6664 coding_system (Bug#1039).
6665
b71f6f73 6666 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6667 breaking the loop. (Bug#870)
b71f6f73
KH
6668 (decode_coding_utf_16, decode_coding_emacs_mule)
6669 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6670 (decode_coding_charset): Likewise.
6671
56f668f7
MR
66722009-01-05 Martin Rudalics <rudalics@gmx.at>
6673
6674 * frame.c (x_set_frame_parameters): Make sure height (width) get
6675 applied when fullwidth (fullheight) is set. (Bug#1522)
6676
5da9424d
JB
66772009-01-04 Juanma Barranquero <lekktu@gmail.com>
6678
6679 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6680 (utc_base): Declare as ULONGLONG, not long double.
6681 (convert_time_raw): Delete.
6682 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6683 (initialize_utc_base): New function.
6684 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6685 (convert_from_time_t): Use initialize_utc_base; compute result with
6686 64-bit arithmetic.
6687 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6688
c4605e09
EZ
66892009-01-03 Eli Zaretskii <eliz@gnu.org>
6690
9acef61c 6691 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6692 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6693 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6694 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6695 [!subprocesses]: Define.
6696 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6697 (Flist_system_processes, Fsystem_process_attributes)
6698 [!subprocesses]: Call list_system_processes and
6699 system_process_attributes instead of returning Qnil.
6700
9acef61c
JB
6701 * dosfns.c (system_process_attributes, list_system_processes):
6702 New functions.
c4605e09
EZ
6703
6704 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6705
6706 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6707 Don't use the default (no-op) implementation.
6708
8b7d0a16
JR
67092009-01-03 Jason Rumney <jasonr@gnu.org>
6710
a6d46bc1
JR
6711 * keyboard.c (parse_modifiers_uncached): Wheel events are
6712 clicks (bug#687).
6713
8b7d0a16
JR
6714 * w32term.c (x_query_colors, x_query_color): New functions.
6715
6716 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6717 (svg_load_image): Cast returned pointers from dynamically loaded
6718 functions. Eliminate W32 specific code.
6719
bfe11752
DN
67202009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6721
89e2438a
DN
6722 * nsfns.m (x_set_foreground_color, x_set_background_color)
6723 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6724 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6725 x_ prefix instead of ns_. Update references.
6726 (syms_of_nsfns): Add a FIXME comment.
6727
6728 * nsterm.m (x_set_cursor_type): New prototype.
6729 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6730
bfe11752
DN
6731 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6732 for Solaris instead of incorrectly providing Qutime and Qcutime.
6733
031da700
EZ
67342009-01-02 Eli Zaretskii <eliz@gnu.org>
6735
6736 * w32.c (process_times): Compute sum of utime and stime.
6737 (system_process_attributes): Add Qtime to the alist.
6738
6739 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6740 and add them to the alist.
6741
6742 * process.c (top level) <Qtime, Qctime>: New variables.
6743 (syms_of_process): staticpro them.
6744 (Fsystem_process_attributes): Add their documentation to the doc
6745 string.
6746
6747 * process.h: Declare Qtime and Qctime.
6748
df23bf08
JR
67492009-01-02 Jason Rumney <jasonr@gnu.org>
6750
9acef61c 6751 * image.c (Qgobject): New symbol.
df23bf08
JR
6752 (syms_of_image): Initialize it.
6753 (init_svg_functions): Load some functions from gobject library.
6754
5bbdf7aa
DN
67552009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6756
6757 * frame.c (make_terminal_frame): Remove redundant code and useless
6758 block.
6759
63136da6
AS
67602009-01-01 Andreas Schwab <schwab@suse.de>
6761
6762 * process.c (conv_sockaddr_to_lisp): Add workaround for
6763 getsockname bug on BSD.
6764
9ef69046
CY
67652009-01-01 Chong Yidong <cyd@stupidchicken.com>
6766
d6fafbe0
CY
6767 * xfns.c (x_create_tip_frame): Set border width of the X window.
6768
51d861de 6769 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6770
f9c34147
JR
67712009-01-01 Jason Rumney <jasonr@gnu.org>
6772
9acef61c 6773 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6774 Don't block input, as per earlier xterm.c changes.
6775
f5497e45
AR
67762008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6777
6778 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6779 (ns_appkit_version_int): New function.
6780 (x-server-version): Use ns_appkit_version_int and follow 21+
6781 convention of returning 3 integers.
6782
c19cab20
KH
67832008-12-30 Kenichi Handa <handa@m17n.org>
6784
6785 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6786 (CHAR_SURROGATE_PAIR_P): New macro.
6787
6788 * font.h (struct font_driver): New member get_variation_glyphs.
6789
9acef61c 6790 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6791 (Ffont_variation_glyphs): New function.
6792 (syms_of_font): Defsubr it.
6793
6794 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6795 ftfont_variation_glyphs.
6796 (setup_otf_gstring): New function.
6797 (ftfont_drive_otf): Use it.
6798 (ftfont_shape_by_flt): Handle variation selector.
6799 (ftfont_variation_glyphs): New function.
6800
28cd591f
MR
68012008-12-30 Martin Rudalics <rudalics@gmx.at>
6802
6803 * frame.c (Vemacs_iconified): Remove.
6804
7f714baf
JR
68052008-12-30 Jason Rumney <jasonr@gnu.org>
6806
6807 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6808 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6809
9d2d22ab
CY
68102008-12-30 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * indent.c (Fvertical_motion): Don't advance iterator if we have
6813 reseated to the desired position.
6814
6815 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6816 checking for pos match.
6817
545312c2
KH
68182008-12-30 Kenichi Handa <handa@m17n.org>
6819
1ede3eb6
KH
6820 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6821 just get the low 8-bit of the code.
6822
545312c2
KH
6823 * font.c (font_intern_prop): Validate str as multibyte.
6824
bd7bbf29
DN
68252008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6826
31e0750e
DN
6827 * dispextern.h (struct face): Move lface and hash from the middle
6828 of bitfields.
6829
bd7bbf29
DN
6830 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6831
b5672e7c
DN
68322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6833
6834 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6835 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6836 instead of intervals.h.
6837
d704470f
AS
68382008-12-26 Andreas Schwab <schwab@suse.de>
6839
6840 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6841 cons.
6842
54b33868
MR
68432008-12-26 Martin Rudalics <rudalics@gmx.at>
6844
6845 * textprop.c (Qminibuffer_prompt): New variable.
6846 (syms_of_textprop): Initialize it.
6847 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6848 in minibuffer-prompt face. (Bug#1662)
6849
40b615d6
JR
68502008-12-25 Jason Rumney <jasonr@gnu.org>
6851
6852 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6853
baae5c2d
JR
68542008-12-24 Jason Rumney <jasonr@gnu.org>
6855
6856 * ralloc.c (r_alloc_reset_variable): New function.
6857
6858 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6859 record of what points where. (Bug#716)
baae5c2d 6860
a9051c88
DN
68612008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6862
6863 * minibuf.c (read_minibuf): Follow the non-interactive case when
6864 running as a daemon, before detaching.
6865
8b146312
AS
68662008-12-22 Andreas Schwab <schwab@suse.de>
6867
6868 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6869 * gtkutil.c (free_widget_value): Use xfree instead of free.
6870
56f2de10
MR
68712008-12-22 Martin Rudalics <rudalics@gmx.at>
6872
6873 * frame.c (delete_frame): New function derived from
6874 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6875 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6876 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6877 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6878 * frame.h: Extern delete_frame.
6879 * window.c (window_loop):
6880 * terminal.c (delete_terminal):
6881 * xterm.c (x_connection_closed):
6882 * xfns.c (Fx_hide_tip):
9acef61c 6883 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6884
1fc200d6
JR
68852008-12-21 Jason Rumney <jasonr@gnu.org>
6886
6887 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6888 when character maps to .notdef character.
6889
5e252df2
SM
68902008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6891
6892 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6893
99b72cc4
JR
68942008-12-20 Jason Rumney <jasonr@gnu.org>
6895
6896 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6897 a graphical frame on Windows. (Bug#1325)
99b72cc4 6898
acc49a52
JD
68992008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6900
6901 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6902
6ea15123
CY
69032008-12-20 Chong Yidong <cyd@stupidchicken.com>
6904
6905 * minibuf.c (Fread_buffer): Doc fix.
6906
b2dab6c8
JR
69072008-12-20 Jason Rumney <jasonr@gnu.org>
6908
54ea0c87 6909 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6910 server name in UNC paths. (Bug#719)
54ea0c87 6911
b2dab6c8 6912 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6913 charbuf. (Bug#1035)
b2dab6c8 6914
6d1921be
DN
69152008-12-19 Daniel Engeler <engeler@gmail.com>
6916
6917 * sysdep.c (serial_configure): Fix typo.
6918
53934c98
DN
69192008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6920
6921 * sysdep.c: Include alloca.h.
f4f634e8
DN
6922 (system_process_attributes): Add implementation for Solaris.
6923
6924 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6925
06e111a6
DN
69262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6927
6928 Reorganize implementation of Flist_system_processes and
6929 Fsystem_process_attributes. No functional changes.
6930 * process.c: Don't #include pwd.h, grp.h and limits.h.
6931 (Flist_system_processes): Just call list_system_processes.
6932 (Fsystem_process_attributes): Just call system_process_attributes.
6933 (procfs_list_system_processes, time_from_jiffies)
6934 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6935 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6936
6937 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6938 (list_system_processes): Rename from
6939 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6940 Provide a do nothing implementation.
6941 (system_process_attributes): Rename from
6942 procfs_list_system_processes.
6943 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6944 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6945
6946 * w32.c (list_system_processes): Rename from
6947 w32_list_system_processes.
6948 (system_process_attributes): Rename from
6949 w32_system_process_attributes.
6950
6951 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6952
6953 * process.h (w32_list_system_processes)
6954 (w32_system_process_attributes): Remove.
362654a6
JB
6955 (list_system_processes, system_process_attributes):
6956 New prototypes.
06e111a6 6957
6a705b23
KH
69582008-12-19 Kenichi Handa <handa@m17n.org>
6959
6960 * xfont.c (xfont_decode_coding_xlfd): New function.
6961 (xfont_encode_coding_xlfd): New function.
6962 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6963 (xfont_list): Decode and encode XLFD by iso-8859-1.
6964 (xfont_match): Likewise.
6965 (xfont_list_family): Likewise.
6966 (xfont_open): Likewise.
6967
d66c0241 6968 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6969 names are utf-8.
6970
d66c0241 6971 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6972 names are utf-8.
6973
5a130941
JD
69742008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6975
6976 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6977 changed.
bfd20325
JD
6978 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6979 clicked on a detached tool bar button.
5a130941 6980
fd95644b
DN
69812008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6982
6983 * emacs.c (main): Print and error and exit when no data is read
6984 from the pipe.
6985
e6eee6ae
JR
69862008-12-17 Jason Rumney <jasonr@gnu.org>
6987
6988 * w32font.c (w32font_has_char): Always return -1.
6989
a35dd56b
KH
69902008-12-16 Kenichi Handa <handa@m17n.org>
6991
6992 * font.c (font_open_entity): Fix previous change.
6993
0e3635c2
DN
69942008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6995
6996 * process.c: Include <limits.h>.
6997
d4835507 69982008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6999
7000 * font.c (font_update_drivers): Fix mistake in reconstructing the
7001 driver list.
7002
70032008-12-16 Chong Yidong <cyd@stupidchicken.com>
7004
7005 * font.c (font_clear_cache): Fix format of font cache data.
7006
e2cbc401
CY
70072008-12-15 Chong Yidong <cyd@stupidchicken.com>
7008
7009 * xftfont.c (xftfont_open): Free Xft font pattern if
7010 XftFontOpenPattern fails.
7011
7012 * xterm.c (x_free_frame_resources): Remove extraneous call to
7013 free_frame_faces.
7014
b131d535
CY
70152008-12-13 Chong Yidong <cyd@stupidchicken.com>
7016
7017 * xterm.c (x_delete_display): Move xim_close_dpy call to
7018 x_delete_terminal.
7019 (x_delete_terminal): Call xim_close_dpy.
7020
e6df5336
JR
70212008-12-13 Jason Rumney <jasonr@gnu.org>
7022
7023 * w32font.c (intern_font_name): New function.
7024 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7025 (w32font_open_internal, Fx_select_font): Decode font name.
7026 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7027
7028 * w32font.h (intern_font_name): Declare new function.
7029
7030 * w32uniscribe.c (add_opentype_font_name_to_list):
7031 Use intern_font_name.
7032
20d68145
CY
70332008-12-13 Chong Yidong <cyd@stupidchicken.com>
7034
9f2554de
CY
7035 * frame.c (Fdelete_frame): Call free_font_driver_list.
7036
3d9bec9a
CY
7037 * font.c (free_font_driver_list): Implement missing function.
7038
20d68145
CY
7039 * w32term.c (w32_term_init): Don't initialize the image cache
7040 here; it will be done in init_frame_faces.
7041
7042 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7043 (struct x_display_info): Remove unused member null_pixel. New
7044 member xim_callback_data.
7045
7046 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7047 (xim_initialize): Save pointer to callback function data.
7048 (xim_close_dpy): Free callback function data. Call XCloseIM,
7049 reverting 2008-11-04 change by David Smith.
7050 (x_term_init): Don't initialize the image cache here; it will be
7051 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7052 (x_delete_display): Free x_dnd_atoms member.
7053
96f9306b
KH
70542008-12-13 Kenichi Handa <handa@m17n.org>
7055
6dec9044
JB
7056 * font.c (font_rescale_ratio): Moved from xfaces.c.
7057 Argument type changed. Handle a font-spec too.
96f9306b 7058 (font_score): Check Vface_font_rescale_alist.
6dec9044 7059 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7060
7061 * xfaces.c (font_rescale_ratio): Moved to font.c.
7062
8d5b4964
CY
70632008-12-13 Chong Yidong <cyd@stupidchicken.com>
7064
7065 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7066
e6df5336
JR
70672008-12-12 Jason Rumney <jasonr@gnu.org>
7068
7069 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7070 Vwindow_system_version to the real w32 major version.
7071
97c6058a
DN
70722008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7073
7074 * term.c (init_tty): Move setting the terminal name before the
7075 potential user: maybe_fatal.
7076
ec4e88d7
CY
70772008-12-11 Chong Yidong <cyd@stupidchicken.com>
7078
d4835507
JB
7079 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7080 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7081
b4233ec9
JR
70822008-12-11 Jason Rumney <jasonr@gnu.org>
7083
8ec71e23 7084 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7085 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7086
b4233ec9 7087 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7088 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7089
011a0143
JB
70902008-12-11 Juanma Barranquero <lekktu@gmail.com>
7091
7092 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7093
3c309f34
JB
70942008-12-11 Juanma Barranquero <lekktu@gmail.com>
7095
7096 * process.c (Fsystem_process_attributes, syms_of_process):
7097 Fix typo in name of Ssystem_process_attributes.
7098 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7099
fedc6ab5
JB
71002008-12-11 Juanma Barranquero <lekktu@gmail.com>
7101
7102 * syntax.c (Fmodify_syntax_entry): Doc fix.
7103
ba3de0e8
JB
71042008-12-10 Juanma Barranquero <lekktu@gmail.com>
7105
7106 * font.c (Ffont_spec): Move usage to end of docstring.
7107
174f1c74
JR
71082008-12-10 Jason Rumney <jasonr@gnu.org>
7109
7110 * w32font.c (Qcham): New symbol.
7111 (font_supported_scripts): Add cham, and comments for other new
7112 scripts in bitfield from OpenType spec.
9d32f818
JR
7113 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7114 contain characters beyond the bmp.
174f1c74 7115
7b649478
KH
71162008-12-10 Kenichi Handa <handa@m17n.org>
7117
7118 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7119 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7120 Qunicode_sip.
7121
2133e2d1
JB
71222008-12-10 Juanma Barranquero <lekktu@gmail.com>
7123
7124 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7125 (Fcoding_system_put): Use QCdefault_char.
7126 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7127
9af886ee
CY
71282008-12-09 Chong Yidong <cyd@stupidchicken.com>
7129
74d819eb
CY
7130 * xftfont.c (syms_of_xftfont): Fix typo.
7131
4ccfa1c0 7132 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7133
7c19d3ae
DN
71342008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7135
7136 * emacs.c (main): Close daemon_pipe on exec.
7137
567826bb
CY
71382008-12-08 Chong Yidong <cyd@stupidchicken.com>
7139
7140 * termchar.h (struct tty): New members termcap_term_buffer and
7141 termcap_strings_buffer.
7142
7143 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7144 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7145 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7146 All callers changed.
7147 (init_tty): Store termcap data and string buffers in new struct
7148 tty members termcap_term_buffer and termcap_strings_buffer.
7149 (delete_tty): Free them.
4ccfa1c0 7150 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7151
aa96c42b
SZ
71522008-12-07 Seiji Zenitani <zenitani@mac.com>
7153
7154 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7155 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7156
b7e1d896
CY
71572008-12-06 Chong Yidong <cyd@stupidchicken.com>
7158
7159 * coding.c (make_conversion_work_buffer): Disable buffer
7160 modification hooks in the work buffer.
7161
b5ec91a5
EZ
71622008-12-05 Eli Zaretskii <eliz@gnu.org>
7163
7164 * process.c (procfs_system_process_attributes): If `nread' has a
7165 negative value, assign zero to it.
7166
a5d2a52b
CY
71672008-12-05 Chong Yidong <cyd@stupidchicken.com>
7168
68c5540b 7169 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7170
7bf1bb21
KH
71712008-12-05 Kenichi Handa <handa@m17n.org>
7172
7173 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7174 second character is a combining character.
7175
2fdc7d00
EZ
71762008-12-05 Eli Zaretskii <eliz@gnu.org>
7177
7178 * process.c (procfs_system_process_attributes): Don't use cmd,
7179 cmdsize, and q without initializing them first.
7180
bf6bfba8
JR
71812008-12-04 Jason Rumney <jasonr@gnu.org>
7182
7183 * w32font.c (w32font_draw): Initialize orig_clip before getting
7184 it, and delete it when finished.
7185
a3b1a468
DN
71862008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7187
7188 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7189 case when running as a daemon before detaching.
7190
8b8be8eb
JB
71912008-12-03 Juanma Barranquero <lekktu@gmail.com>
7192
805f2638 7193 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7194
b1bde622
KH
71952008-12-03 Kenichi Handa <handa@m17n.org>
7196
e500c47d
KH
7197 * font.c (font_at): Set `multibyte' at first.
7198
ca516334
KH
7199 * coding.c (decode_coding_charset): Check type of an element of
7200 vector VALIDS.
7bf1bb21 7201 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7202
4ccfa1c0 7203 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7204 (font_for_char): Likewise.
7205
1e5ecd37
CY
72062008-12-03 Chong Yidong <cyd@stupidchicken.com>
7207
d5b01609 7208 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7209 (font_update_lface): Handle fonts with corrupted size specs,
7210 i.e. non-int and non-float.
d5b01609 7211
11e3a6e4 7212 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7213 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7214 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7215
ab06788b
CY
7216 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7217
1e5ecd37 7218 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7219 underline_minimum_offset for underline position.
1e5ecd37 7220
63c125ab
DN
72212008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7222
7223 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7224
7225 * character.c (c_string_width): Specify the type for LEN.
7226
3a8406e1
KH
72272008-12-03 Kenichi Handa <handa@m17n.org>
7228
4ccfa1c0 7229 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7230 (decode_coding_utf_8): Likewise.
4ccfa1c0 7231 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7232 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7233
651df7d9
CY
72342008-12-02 Chong Yidong <cyd@stupidchicken.com>
7235
7236 * keyboard.c (make_lispy_position): Only use PT if the selected
7237 window is current.
7238
1f625c6c
AS
72392008-12-02 Andreas Schwab <schwab@suse.de>
7240
f7741ce9
AS
7241 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7242
1f625c6c
AS
7243 * doprnt.c (doprnt1): Fix size of charbuf.
7244
92bc2678
CY
72452008-12-02 Chong Yidong <cyd@stupidchicken.com>
7246
7247 * keyboard.c (timer_check): Revert last change.
7248
93b9e8cc
JB
72492008-12-02 Juanma Barranquero <lekktu@gmail.com>
7250
7251 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7252
fd7a37d5
JB
72532008-12-01 Juanma Barranquero <lekktu@gmail.com>
7254
7255 * makefile.w32-in: Update dependencies.
7256 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7257
c115043b
AS
72582008-12-01 Andreas Schwab <schwab@suse.de>
7259
7260 * font.c (register_font_driver): Use xmalloc.
7261 (font_put_frame_data): Likewise.
7262
f5668d2a
CY
72632008-12-01 Chong Yidong <cyd@stupidchicken.com>
7264
860d96be
CY
7265 * xfaces.c (realize_x_face): Make abort condition clearer.
7266
f5668d2a
CY
7267 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7268
379c17e7
CY
72692008-11-30 Chong Yidong <cyd@stupidchicken.com>
7270
7271 * keyboard.c (timer_check): After a timer runs, ensure that the
7272 selected window's buffer is current.
7273
35f36d65
JB
72742008-11-30 Juanma Barranquero <lekktu@gmail.com>
7275
f952c61c
JB
7276 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7277 It was accidentally restored by the Unicode merge.
7278
35f36d65
JB
7279 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7280
b23077df
JB
72812008-11-29 Juanma Barranquero <lekktu@gmail.com>
7282
7283 * w32proc.c: Include "coding.h".
7284 (Fw32_short_file_name): Encode filename passed to Windows API.
7285 (Fw32_long_file_name): Encode filename passed to Windows API and
7286 decode back the result. (Bug#1433)
7287
b8ebe9dd
KH
72882008-11-29 Kenichi Handa <handa@m17n.org>
7289
8cc53f96
KH
7290 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7291 not before accessing it.
7292
b8ebe9dd
KH
7293 * charset.c (Fdefine_charset_internal): After calculating
7294 min_char, max_char, and fastmap, copy the charset structure again.
7295 (encode_char): Fix the previous change.
7296
59bc82c0
SZ
72972008-11-28 Seiji Zenitani <zenitani@mac.com>
7298
7299 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7300
7301 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7302
7303 * nsterm.m (x_set_frame_alpha): New function.
7304
32247e3d
EZ
73052008-11-27 Eli Zaretskii <eliz@gnu.org>
7306
7307 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7308
b003e5ff
JB
73092008-11-27 Juanma Barranquero <lekktu@gmail.com>
7310
7311 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7312 pointer to check_face_name.
7313
708550f5
KH
73142008-11-27 Kenichi Handa <handa@m17n.org>
7315
7316 * category.h (SET_CATEGORY_SET): Call set_category_set.
7317 (set_category_set): Extern it.
7318
7319 * category.c (hash_get_category_set): New function.
7320 (Fmodify_category_entry): Adjusted for the change of
7321 char_table_ref_and_range. Call hash_get_category_set to get a
7322 category set to store in the table.
7323
7324 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7325 Funify_charset.
7326
2ae37cf0 7327 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7328 (DECODE_CHAR): Check if the decoder vector is ready.
7329 (ENCODE_CHAR): Check if the encoder char-table is ready.
7330 (maybe_unify_char): Extern it.
7331
7332 * charset.c (Vchar_unified_charset_table): Delete it.
7333 (inhibit_load_charset_map): New variable.
7334 (temp_charset_work): New variable.
7335 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7336 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7337 New macros.
7338 (load_charset_map): Meaning of control_flag changed. If
7339 inhibit_load_charset_map is nonzero, setup a table in
7340 temp_charset_work.
7341 (load_charset): New argument control_flag.
7342 (map_charset_for_dump): New function.
7343 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7344 map_charset_for_dump.
7345 (Fdefine_charset_internal): If the charset method is MAP, load
7346 mapping tables by calling load_charset.
7347 (Funify_charset): Don't load a mapping table but directly set
7348 Vchar_unify_table.
7349 (maybe_unify_char): New function.
7350 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7351 Handle the case of inhibit_load_charset_map being nonzero.
7352 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7353 Handle the case of inhibit_load_charset_map being nonzero.
7354 (Fclear_charset_maps): Just free temp_charset_work.
7355 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7356 variable.
7357
7358 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7359 change of char_table_ref_and_range.
7360 (char_table_ref_and_range): Change the meaning of argument FROM
7361 and TO. Now the caller must provide initial values for *FROM
7362 and *TO.
7363
7364 * fontset.c (fontset_add): Adjusted for the change of
7365 char_table_ref_and_range.
7366 (fontset_get_font_group): Likewise.
7367 (Ffontset_info): Likewise.
7368
7369 * keymap.c (describe_vector): Adjusted for the change of
7370 char_table_ref_and_range. For char-table, put boundary between
7371 non-ASCII and 8-bit characters.
7372
7373 * print.c (print_object): For bool-vector, delete unnecessary
7374 check of ASCII_BYTE_P.
7375
9196133b
JR
73762008-11-26 Jason Rumney <jasonr@gnu.org>
7377
7378 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7379 leading in font height. (Bug#879)
9196133b 7380
9f688acf
GM
73812008-11-26 Glenn Morris <rgm@gnu.org>
7382
7383 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7384 redefinition with ifdef. (Bug#1383)
7385
90d19aff
AR
73862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7387
7388 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7389
4ccfa1c0 73902008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7391
7392 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7393 New EmacsView methods.
7394 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7395 Fixes bug #1048,1357,1414.
7396
73972008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7398
7399 Fix bug #1362.
7400 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7401 is not an indexed color.
7402 * nsterm.m (free_indexed_color): Add argument checking.
7403 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7404
e7d5ecb3
CY
74052008-11-24 Chong Yidong <cyd@stupidchicken.com>
7406
7407 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7408 Document confirm-after-completion value for
7409 minibuffer-completion-confirm.
7410
c285743c
JR
74112008-11-24 Jason Rumney <jasonr@gnu.org>
7412
7413 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7414 warning.
7415
b0857706
JR
74162008-11-23 Jason Rumney <jasonr@gnu.org>
7417
7418 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7419 restored before returning.
7420
7421 * w32font.c (check_face_name): New function.
7422 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7423 fonts. (Bug#642)
b0857706 7424
ee50ff07
MR
74252008-11-22 Martin Rudalics <rudalics@gmx.at>
7426
7427 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7428 confirm-nonexistent-file-or-buffer in doc-string.
7429
b8ff72fa
SM
74302008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7431
7432 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7433 Fix copy/paste typo. Add checks.
7434
cee53ed4
KH
74352008-11-21 Kenichi Handa <handa@m17n.org>
7436
7437 * coding.c (detect_coding_iso_2022): Reject invalid composition
7438 sequence.
7439 (DECODE_COMPOSITION_START): If the current source is the last
7440 block, and the current composition doesn't end, regard this
7441 sequence as invalid.
7442 (decode_coding_iso_2022): Handle invalid composition sequence.
7443
f6ef1e65
MR
74442008-11-20 Martin Rudalics <rudalics@gmx.at>
7445
7446 * window.c (coordinates_in_window): Don't return
7447 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7448 line when the window is not the rightmost one. (Bug#1372)
7449
e08b1705
MR
74502008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7451
7452 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7453
ad98e89f
EZ
74542008-11-15 Eli Zaretskii <eliz@gnu.org>
7455
7456 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7457 and bright_bg if noninteractive is non-zero.
7458
fb098a4b
CY
74592008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7460
7461 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7462 x_draw_glyph_string_background.
7463
7464 * w32term.c (x_draw_glyph_string): Likewise.
7465
ce952b6e
CY
74662008-11-15 Chong Yidong <cyd@stupidchicken.com>
7467
7468 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7469 the next glyph string once past the overhang width.
7470
7471 * nsterm.m (ns_draw_glyph_string): Likewise.
7472
7473 * w32term.c (x_draw_glyph_string): Likewise.
7474
26ea7079
CY
74752008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7476
7477 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7478 double file close.
7479
1c33c906
MR
74802008-11-14 Martin Rudalics <rudalics@gmx.at>
7481
7482 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7483 dedicated status of window before attempting to display another
7484 buffer in it.
7485
8fc29035
JB
74862008-11-14 Juanma Barranquero <lekktu@gmail.com>
7487
7488 * msdos.c (Fmsdos_long_file_names):
7489 (syms_of_msdos) <dos-unsupported-char-glyph>:
7490 * dosfns.c (Fint86): Fix typos in docstrings.
7491
55fb4286
EZ
74922008-11-14 Eli Zaretskii <eliz@gnu.org>
7493
7494 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7495
3fda0315
KY
74962008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7497
7498 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7499
7e849c17
CY
75002008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7501
7502 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7503
7504 * frame.h: Negative alpha means "don't touch".
7505
7506 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7507
7508 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7509
b9fd67bd
DN
75102008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7511
7512 * hftctl.c:
7513 * chpdef.h:
7514 * acldef.h: Remove files used only for systems no longer supported.
7515
7516 * Makefile.in: Fix .o alphabetical ordering.
7517 (hftctl.o): Remove dependency, file removed.
7518 (keymap.o, print.o): Depend on charset.h.
7519
d5998e03
KH
75202008-11-10 Kenichi Handa <handa@m17n.org>
7521
2ae37cf0 7522 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7523
be70e183
CY
75242008-11-08 Chong Yidong <cyd@stupidchicken.com>
7525
7526 * dired.c (file_name_completion): If completion_ignore_case is
7527 enabled, ignore case when checking completion-regexp-list.
7528
7cf94eac
EZ
75292008-11-08 Eli Zaretskii <eliz@gnu.org>
7530
7531 * vm-limit.c (get_lim_data): Fix last change.
7532
ee107a89
KH
75332008-11-08 Kenichi Handa <handa@m17n.org>
7534
7535 * character.c (Fget_byte): New function.
7536 (syms_of_character): Defsubr Fget_byte.
7537
5fd15622
CY
75382008-11-07 Chong Yidong <cyd@stupidchicken.com>
7539
7540 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7541 cursor position is valid after scrolling.
7542
13d62fad
JB
75432008-11-06 Juanma Barranquero <lekktu@gmail.com>
7544
7545 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7546
a1dd2936
GM
75472008-11-06 Glenn Morris <rgm@gnu.org>
7548
7549 * xterm.c (handle_one_xevent): Don't let popup menus cause
7550 mouse-autoselect-window related window switching. (Bug#1261)
7551
860cd236
CY
75522008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7553
7554 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7555
653a3150
AS
75562008-11-04 Andreas Schwab <schwab@suse.de>
7557
7558 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7559
870f5cac
CY
75602008-11-03 Chong Yidong <cyd@stupidchicken.com>
7561
7562 * xfns.c (Fx_wm_set_size_hint): New function.
7563
1e02f3cb
MR
75642008-11-03 Martin Rudalics <rudalics@gmx.at>
7565
7566 * textprop.c (Fprevious_single_char_property_change): Return 0
7567 when there's no change in a string. (Bug#1301)
7568
e630dfc6
MR
75692008-11-02 Martin Rudalics <rudalics@gmx.at>
7570
7571 * frame.c (do_switch_frame): New argument NORECORD passed to
7572 Fselect_window.
7573 (Fselect_frame): New argument NORECORD passed to
7574 do_switch_frame.
7575 (Fset_frame_selected_window): New argument NORECORD passed to
7576 Fselect_frame.
7577 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7578 in call of do_switch_frame.
7579 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7580 Handle NORECORD argument in call of Fselect_frame.
7581 * lisp.h (do_switch_frame, Fselect_frame)
7582 (Fset_frame_selected_window): Adjust declarations.
7583 * window.c (select_frame_norecord): New function.
7584 (run_window_configuration_change_hook): Use it and call
7585 Fselect_frame with NORECORD set.
7586 (Fselect_window): Pass NORECORD to Fselect_frame.
7587 (Fset_window_configuration): Handle NORECORD argument in call of
7588 do_switch_frame.
7589 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7590 Fset_frame_selected_window.
7591 * keyboard.c (command_loop_1): Handle NORECORD in call of
7592 Fselect_frame (currently ifdefd).
7593
9020b223
GM
75942008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7595
7596 * emacs.c (USAGE2): Untabify.
7597
793ffee8
SM
75982008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7599
7600 * composite.c (fill_gstring_header): Fix copy/paste typo.
7601
ab6d1131
MR
76022008-10-31 Martin Rudalics <rudalics@gmx.at>
7603
7604 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7605 (Fother_window): Rename argument and rewrite doc-string.
7606 (select_window_norecord): Fix return value. (Bug#1276)
7607
601a9cf1
JB
76082008-10-30 Juanma Barranquero <lekktu@gmail.com>
7609
7610 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7611 new frames overriding foreground for tooltips. Based on similar patch
7612 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7613
813b0652
CY
76142008-10-29 Chong Yidong <cyd@stupidchicken.com>
7615
7616 * emacs.c (Fdaemon_initialized): Initialize nfd.
7617
4414f58f
MR
76182008-10-29 Martin Rudalics <rudalics@gmx.at>
7619
7620 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7621 (Fwindow_text_height): Clarify doc-strings.
7622 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7623 doc-string of window-scroll-functions.
7624
ecdcaa09
RS
76252008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7626
7627 * category.c (syms_of_category): Fix typo in docstring.
7628
23fe745a
JB
76292008-10-28 Juanma Barranquero <lekktu@gmail.com>
7630
7631 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7632 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7633 Fix typos in docstrings.
7634
ff808935
DN
76352008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7636
7637 * emacs.c (daemon_pipe): Make non-static.
7638 (IS_DAEMON): Move definition ...
7639 * lisp.h (IS_DAEMON): ... here.
7640 (daemon_pipe): Declare.
7641 (is_daemon): Remove.
7642 * dispnew.c (init_display): Use IS_DAEMON.
7643
fc012771
SM
76442008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7645
7646 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7647 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7648
7649 * emacs.c (is_daemon): Remove.
7650 (main): Don't set is_daemon.
7651 (IS_DAEMON): New macro.
7652 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7653 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7654 parent exits.
7655 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7656
d8bdbe6f
CY
76572008-10-27 Chong Yidong <cyd@stupidchicken.com>
7658
d1a072bf
CY
7659 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7660 over-sized glyph, draw it with the default glyph width.
7661
e2e325aa
CY
7662 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7663 glyph, draw it with the default glyph width.
7664
7665 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7666 glyph, draw it with the default glyph width.
7667
d8bdbe6f
CY
7668 * xdisp.c (try_scrolling): When computing the distance from the
7669 scroll margin to PT, try moving some distance past the window
7670 bottom before giving up.
7671
7bfac547
MR
76722008-10-27 Martin Rudalics <rudalics@gmx.at>
7673
7674 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7675 (Fset_window_buffer): Explain in doc-string that a window can be
7676 "strongly" dedicated to its buffer.
7677
4ff029f6
DN
76782008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7679
7680 * emacs.c (daemon_name): New variable.
7681 (main): Deal with --daemon=SERVER_NAME.
7682 (Fdaemonp): Return a name if one was passed to --daemon.
7683
5790ef40
DN
76842008-10-26 Romain Francoise <romain@orebokech.com>
7685
f9bd0df9 7686 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7687 (main): Create a pipe before forking, make the parent exit only after
7688 the child has closed its end of the pipe. Move closing the
7689 descriptors ...
7690 (Fdaemon_initialized): ... here. New function.
7691
f5385255
SM
76922008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7693
4d632321
SM
7694 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7695 the previous unoptimized table.
7696
f5385255
SM
7697 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7698 the distinction between non-nil and non-t value of `dedicated'.
7699
6c56a0f3
CY
77002008-10-25 Chong Yidong <cyd@stupidchicken.com>
7701
7702 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7703 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7704
fec89261
MR
77052008-10-25 Martin Rudalics <rudalics@gmx.at>
7706
7707 * window.c (Fget_buffer_window, Fdelete_windows_on)
7708 (Freplace_buffer_in_windows): Make buffer argument optional and
7709 rename to buffer_or_name.
7710
34fcddd0
CY
77112008-10-24 Chong Yidong <cyd@stupidchicken.com>
7712
f5385255
SM
7713 * xdisp.c (handle_single_display_spec, handle_display_prop):
7714 Undo 2005-05-16 change.
34fcddd0
CY
7715 (handle_stop): Pop iterator if it's loaded with an empty string.
7716 (get_overlay_strings_1): Don't save iterator if it's loaded with
7717 an empty string (bug#1201).
7718
064766f2
KH
77192008-10-24 Kenichi Handa <handa@m17n.org>
7720
7721 * ftfont.c (ftfont_otf_features): Fix previous change.
7722 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7723 calling ftfont_otf_features.
7724
f9bd0df9 77252008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7726
7727 * font.c (font_match_p): Fix for the case that a vector of
7728 characters is in script-representative-chars.
7729
1dae9197
MA
77302008-10-24 Michael Albinus <michael.albinus@gmx.de>
7731
7732 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7733 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7734 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7735 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7736 macro. (Bug#1186)
1dae9197 7737
f9bd0df9 77382008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7739
7740 * s/sol2-10.h: New file.
7741
878a4584
JB
77422008-10-23 Juanma Barranquero <lekktu@gmail.com>
7743
7744 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7745 poor beast has survived 9+ years and the jump from xterm.c!).
7746
cd265ca6
MR
77472008-10-23 Martin Rudalics <rudalics@gmx.at>
7748
7749 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7750 Reword doc-string.
f5385255 7751 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7752
472a4dc9
JB
77532008-10-23 Juanma Barranquero <lekktu@gmail.com>
7754
7755 * character.c (syms_of_character) <script-representative-chars>:
7756 <unicode-category-table>: Doc fixes.
7757
159bd5a2
NF
77582008-10-23 Noah Friedman <friedman@splode.com>
7759
7760 * coding.c (make_conversion_work_buffer): Check that
7761 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7762 Fget_buffer_create.
7763
49f9c344
KH
77642008-10-23 Kenichi Handa <handa@m17n.org>
7765
7766 * font.c (font_add_log): Check the values of extra properties.
7767
12bb3111
MR
77682008-10-22 Martin Rudalics <rudalics@gmx.at>
7769
7770 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7771 Reword doc-string.
7772 (Fset_window_parameter): Use NILP.
7773 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7774 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7775
bbeb4e99
JB
77762008-10-22 Juanma Barranquero <lekktu@gmail.com>
7777
7778 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7779
77802008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7781
7782 * nsfns.m (ns_appkit_version): New function.
7783 (x-server-version): Use it.
7784 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7785 (x-server-vendor): Don't check_ns().
7786
7787 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7788
a9b555d3
JB
77892008-10-22 Juanma Barranquero <lekktu@gmail.com>
7790
7791 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7792 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7793
4626499f
KH
77942008-10-22 Kenichi Handa <handa@m17n.org>
7795
e3681952
KH
7796 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7797 scripts.
7798
4626499f
KH
7799 * category.c (word_boundary_p): Check scripts instead of charset.
7800 Handle nil value in word-separating-categories and
7801 word-combining-categories.
7802 (syms_of_category): Fix docstrings of word-separating-categories
7803 and word-combining-categories.
7804
1560f91a
EZ
78052008-10-21 Eli Zaretskii <eliz@gnu.org>
7806
7807 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7808 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7809
f4668441
MR
78102008-10-21 Martin Rudalics <rudalics@gmx.at>
7811
7812 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7813 Rename arg "buffer" to "buffer_or_name".
7814 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7815 it optional.
7816 (no_switch_window): Remove since the return value is not used.
a9b555d3 7817 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7818 Consider window as dedicated when Fwindow_dedicated_p returns a
7819 non-nil value.
7820 * lisp.h: Remove prototype for no_switch_window.
7821
fd75ddb2
JD
78222008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7823
7824 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7825 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7826
07295713
KH
78272008-10-21 Kenichi Handa <handa@m17n.org>
7828
7829 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7830 check Vlatin_extra_code_table.
7831
712adc82
EZ
78322008-10-20 Eli Zaretskii <eliz@gnu.org>
7833
7834 * fileio.c (Fset_file_modes): Doc fix.
7835
f549eb0b
MA
78362008-10-19 Michael Albinus <michael.albinus@gmx.de>
7837
7838 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7839 in arrays.
7840
aac0c6e3
MR
78412008-10-19 Martin Rudalics <rudalics@gmx.at>
7842
7843 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7844 Mention kill-buffer in doc-string.
7845 (Fset_window_buffer): Reinsert tem check removed in last commit.
7846 (Fenlarge_window, Fshrink_window): Have argument names and
7847 doc-string follow Elisp manual more closely.
7848
78492008-10-18 Eli Zaretskii <eliz@gnu.org>
7850
7851 * fileio.c (Fset_file_modes): Doc fix.
7852
78532008-10-18 Martin Rudalics <rudalics@gmx.at>
7854
7855 * window.c (Fwindow_width, Fset_window_start)
7856 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7857 (Fdelete_windows_on, Freplace_buffer_in_windows):
7858 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7859 (Fwindow_dedicated_p): Make window argument optional.
7860 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7861 (Fset_window_buffer): Respect any non-nil dedicated value for
7862 window. Rename "buffer" argument to "buffer_or_name".
7863
78642008-10-18 Ulrich Mueller <ulm@gentoo.org>
7865
7866 * m/sh3.h: New file, machine description for SuperH.
7867
78682008-10-17 Martin Rudalics <rudalics@gmx.at>
7869
7870 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7871
78722008-10-17 Kenichi Handa <handa@m17n.org>
7873
7874 * ftfont.c (ftfont_otf_features): Fix indexing
7875 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7876
78772008-10-16 Magnus Henoch <mange@freemail.hu>
7878
7879 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7880 (Fdbus_call_method_asynchronously): Ditto.
7881 This change makes C-h f display the argument list.
7882
78832008-10-16 Chong Yidong <cyd@stupidchicken.com>
7884
7885 * fileio.c (Fexpand_file_name): Doc fix.
7886
7887 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7888 of :foreground and :background equivalent to unspecified (20.x
7889 compatibility).
7890
78912008-10-15 Eli Zaretskii <eliz@gnu.org>
7892
7893 * buffer.c (syms_of_buffer): Doc fix.
7894
78952008-10-14 Kenichi Handa <handa@m17n.org>
7896
7897 * font.c (font_clear_prop): When clearing font width, clear the
7898 average width field too.
7899
79002008-10-12 Andreas Schwab <schwab@suse.de>
7901
7902 * ftfont.c (ftfont_shape_by_flt): Make static.
7903 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7904
7905 * font.c: Don't include <m17n-flt.h>.
7906
79072008-10-10 Eli Zaretskii <eliz@gnu.org>
7908
7909 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7910
79112008-10-09 Eli Zaretskii <eliz@gnu.org>
7912
7913 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7914 away code.
7915
79162008-10-09 Chong Yidong <cyd@stupidchicken.com>
7917
7918 * dispnew.c (update_text_area): Avoid looping due to large glyph
7919 overhangs (bug#1070).
7920
79212008-10-09 Kenichi Handa <handa@m17n.org>
7922
7923 * fontset.c (face_for_char): If face->fontset is negative, just
7924 return ascii_face.
7925
f5385255
SM
7926 * font.c (font_delete_unmatched): Fix previous change.
7927 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7928
79292008-10-09 Martin Rudalics <rudalics@gmx.at>
7930
7931 * frame.c (Fraise_frame): On text-only terminals select frame in
7932 order to make it visible. (Bug#1061)
7933
79342008-10-08 Chong Yidong <cyd@stupidchicken.com>
7935
7936 * fontset.c (fontset_find_font): Check frame validity.
7937
79382008-10-07 Chong Yidong <cyd@stupidchicken.com>
7939
a9b555d3 7940 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7941 (xg_display_close): Allow Emacs to close all displays (bug#985).
7942
79432008-10-06 Andreas Schwab <schwab@suse.de>
7944
f5385255 7945 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7946
79472008-10-06 Chong Yidong <cyd@stupidchicken.com>
7948
f5385255 7949 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7950
a9b555d3 7951 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7952
7953 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7954 during initialization.
7955
79562008-10-04 Eli Zaretskii <eliz@gnu.org>
7957
7958 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7959 whole thing on MSDOS frames as well as on a TTY.
7960
7961 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7962 well as for TTY.
7963 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7964 well as on a TTY.
7965
7966 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7967 as well as for TTY.
7968
7969 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7970
7971 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7972 MSDOS frames as well.
7973
79742008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7975
7976 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7977 correct arguments.
b71ac3dd 7978 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7979
79802008-10-03 Glenn Morris <rgm@gnu.org>
7981
7982 * emacs.c (USAGE1): Add --daemon.
7983
79842008-10-02 Eli Zaretskii <eliz@gnu.org>
7985
7986 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7987 100, so it's in percents as advertised.
7988
79892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7990
7991 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7992 (ns_output.current_cursor, ns_output.desired_cursor)
7993 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7994 (FRAME_NEW_CURSOR_COLOR): Remove.
7995
7996 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7997 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7998 enumeration (HOLLOW_BOX_CURSOR, etc.).
7999
8000 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8001 (draw_window_cursor): Simplify code.
f5385255
SM
8002 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8003 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8004 updates manually.
a9b555d3
JB
8005 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8006 Use core Emacs cursor types.
aac0c6e3 8007
b8ff72fa 8008 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8009
80102008-10-02 Martin Rudalics <rudalics@gmx.at>
8011
8012 * process.c (Faccept_process_output): Fix doc-string.
8013
80142008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8015
8016 * gmalloc.c (__sbrk): Also define for uClibc.
8017
8018 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8019 for uClibc.
8020
80212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8022
8023 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8024 styles.
8025 (nsfont_open): Reenable the cache.
8026
80272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8028
8029 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8030 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8031
80322008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8033
8034 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8035 a suspended terminal.
8036
80372008-09-30 Michael Albinus <michael.albinus@gmx.de>
8038
8039 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8040
80412008-09-30 Eli Zaretskii <eliz@gnu.org>
8042
8043 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8044
80452008-09-30 Chong Yidong <cyd@stupidchicken.com>
8046
8047 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8048 in a continued line coincides with a line beginning.
8049
80502008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8051
8052 * nsfont.m (nsfont_trait_distance): Fix bug.
8053 (nsfont_list): Return a list rather than a vector (syncs with Handa
8054 changes of 2008-05-14).
8055 (nsfont_open): Improve logging.
8056
80572008-09-29 Andreas Schwab <schwab@suse.de>
8058
8059 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8060
80612008-09-28 Martin Rudalics <rudalics@gmx.at>
8062
8063 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8064 name as char-resolve-modifiers.
8065 Reported by: Markus Triska <markus.triska@gmx.at>
8066
80672008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8068
8069 * dispnew.c (init_display): Return earlier when running as a daemon.
8070
80712008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8072
8073 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8074
80752008-09-27 Eli Zaretskii <eliz@gnu.org>
8076
8077 * composite.c (Fcomposition_get_gstring)
8078 (Fcompose_region_internal, Fcompose_string_internal)
8079 (Ffind_composition_internal): Doc fix.
8080 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8081 (syms_of_composite) <auto-composition-function>: Doc fix.
8082 (syms_of_composite) <composition-function-table>: Doc fix.
8083
80842008-09-25 Chong Yidong <cyd@stupidchicken.com>
8085
8086 * search.c (wordify): New argument for lax word-ends.
8087 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8088
80892008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8090
8091 * lisp.h (is_daemon): Declare.
8092 * dispnew.c (init_display): Do not try to initialize the terminal
8093 when running as a daemon.
8094
80952008-09-22 Chong Yidong <cyd@stupidchicken.com>
8096
8097 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8098 x_display_pixel_height.
8099
81002008-09-22 Martin Rudalics <rudalics@gmx.at>
8101
8102 * undo.c (record_point): Don't call Fundo_boundary for first
8103 change. (Bug#731)
8104
81052008-09-22 Juanma Barranquero <lekktu@gmail.com>
8106
8107 * emacs.c (Fdaemonp): Doc fix.
8108
81092008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8110
8111 * emacs.c (main): Place #ifdef in the proper place.
8112
81132008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8114
8115 * emacs.c (standard_args): Add --daemon.
8116 (main): Disconnect from the terminal when --daemon is passed.
8117 (is_daemon): New variable.
8118 (Fdaemonp): New function.
8119 (syms_of_emacs): Defsubr it.
8120
81212008-09-20 Chong Yidong <cyd@stupidchicken.com>
8122
8123 * xdisp.c (get_next_display_element): Handle string display
8124 correctly when checking for the end of a box run.
8125
81262008-09-20 Glenn Morris <rgm@gnu.org>
8127
8128 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8129 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8130 (Frename_file): Avoid copying to trash if a rename involves
8131 a delete. (Bug#964).
8132
81332008-09-20 Eli Zaretskii <eliz@gnu.org>
8134
8135 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8136 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8137 frames as well as termcap frames.
8138 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8139 get_named_tty.
8140
81412008-09-19 Eli Zaretskii <eliz@gnu.org>
8142
8143 * process.c (procfs_system_process_attributes): Fix cmdline in
8144 case /proc/PID/cmdline is empty.
8145
8146 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8147 x_display_pixel_height.
8148
81492008-09-19 Juanma Barranquero <lekktu@gmail.com>
8150
8151 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8152
8153 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8154 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8155
81562008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8157
8158 * dispextern.h (struct it): Move line_wrap away from the middle of
8159 bitfields. Move voffset in struct iterator_stack_entry after the
8160 bitfields. Move tab_width near after another short.
8161
81622008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8163
8164 * frame.h (struct frame): Move alpha from the middle of bitfields.
8165
8166 * window.h (struct window): Move frozen_window_start_p after the
8167 rest of the bitfields to reduce padding.
8168
81692008-09-18 Chong Yidong <cyd@stupidchicken.com>
8170
8171 * xterm.h (x_display_info): Remove `height' and `width' members.
8172
8173 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8174
8175 * w32term.h (w32_display_info): Remove `height', `width',
8176 `height_in', and `width_in' members.
8177
b8ff72fa
SM
8178 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8179 New functions.
aac0c6e3
MR
8180 (x_calc_absolute_position): Use them.
8181 (x_term_init): Omit removed `height' and `width' members.
8182
b8ff72fa
SM
8183 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8184 New functions.
aac0c6e3
MR
8185 (w32_read_socket, x_calc_absolute_position): Use them.
8186 (w32_initialize_display_info, w32_term_init): Omit removed members
8187 of w32_display_info.
8188
b8ff72fa
SM
8189 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8190 New functions.
8191 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8192
b8ff72fa
SM
8193 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8194 New functions.
aac0c6e3
MR
8195 (x_calc_absolute_position): Use them.
8196 (x_term_init): Omit removed `height' and `width' members.
8197
8198 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8199 (compute_tip_xy):
8200 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8201 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8202 x_display_pixel_width.
8203
82042008-09-18 Kenichi Handa <handa@m17n.org>
8205
8206 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8207 (composition_compute_stop_pos): Fix handling of static composition.
8208 (Fcomposition_get_gstring): Check FROM and TO at first.
8209
82102008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8211
46e722a9 8212 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8213 mixup (YAILOM).
8214
82152008-09-17 Chong Yidong <cyd@stupidchicken.com>
8216
8217 * indent.c (Fvertical_motion): Use position reported by iterator
8218 instead of PT for determining screen motion (bug#943).
8219
82202008-09-17 Romain Francoise <romain@orebokech.com>
8221
8222 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8223
82242008-09-17 Kenichi Handa <handa@m17n.org>
8225
8226 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8227
8228 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8229 if necessary.
8230
82312008-09-16 Kenichi Handa <handa@m17n.org>
8232
8233 * coding.c (make_conversion_work_buffer): Avoid calling
8234 Fget_buffer_create if it is not necessary.
8235
82362008-09-15 Martin Rudalics <rudalics@gmx.at>
8237
8238 * window.c (Fselect_window): Don't update window_select_count and
8239 use_time when norecord is not nil.
8240
82412008-09-14 Kenichi Handa <handa@m17n.org>
8242
8243 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8244 specpdl_ptr.
8245
82462008-09-12 Kenichi Handa <handa@m17n.org>
8247
8248 * indent.c (scan_for_column): Don't handle automatic composition
8249 if the current buffer is not associated with a window.
8250
8251 * composite.c (composition_reseat_it): If the current buffer is
8252 not associated with a window, ignore the automatic composition.
8253 (find_automatic_composition): Likewise.
8254
82552008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8256
8257 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8258 (Fgpm_mouse_stop): Use it.
8259 * termhooks.h (close_gpm): Declare.
8260 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8261 connection if Gpm_GetEvent fails.
8262
8263 * window.c (set_window_buffer): Always preserve current-buffer.
8264
82652008-09-12 Glenn Morris <rgm@gnu.org>
8266
8267 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8268
82692008-09-11 Glenn Morris <rgm@gnu.org>
8270
8271 * charset.c (charset-map-path): Doc fix.
8272
82732008-09-10 Kenichi Handa <handa@m17n.org>
8274
8275 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8276
8277 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8278 compose a grapheme cluster with the preceding base glyph.
8279
8280 * composite.c (composition_compute_stop_pos): Fix previous change.
8281 Reset cmp_it->id to -1 at first.
8282
82832008-09-10 Glenn Morris <rgm@gnu.org>
8284
8285 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8286
82872008-09-09 Chong Yidong <cyd@stupidchicken.com>
8288
8289 * keyboard.c (read_key_sequence): Reapply translation maps when
8290 switching keyboards.
8291
82922008-09-09 Kenichi Handa <handa@m17n.org>
8293
8294 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8295 characters.
8296
8297 * composite.c (FORWARD_CHAR): Fix calculation
8298 of (POSITION).pos_byte.
8299 (composition_compute_stop_pos): Limit the search of composition to
8300 at most 500 characters ahead. If we reach the limit or find a
8301 newline, set cmp_it->ch to -2 and return 0.
8302 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8303
83042008-09-08 Kenichi Handa <handa@m17n.org>
8305
8306 * indent.c (Fvertical_motion): Be sure to set
8307 it_overshoot_expected if it.cmp_it.id is non-negative.
8308
83092008-09-07 Andreas Schwab <schwab@suse.de>
8310
8311 * callproc.c (Fcall_process): Don't hold references to string data
8312 across garbage collection. Move initialisation of new_argv down
8313 to avoid compiler bug.
8314
83152008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8316
8317 * process.c (Fsystem_process_attributes): Doc fix.
8318
83192008-09-07 Chong Yidong <cyd@stupidchicken.com>
8320
8321 * callproc.c (Fcall_process): Canonicalize current directory name.
8322
8323 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8324 iterator advances to the next line if the current line ends in a
8325 continued tab.
8326
83272008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8328
8329 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8330 member to point to cmp_from.
8331
8332 * xdisp.c: Doc fix for references to gidx data member.
8333
83342008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8335
8336 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8337
83382008-09-07 Kenichi Handa <handa@m17n.org>
8339
8340 * composite.c (FORWARD_CHAR): Check STOP after
8341 incrementing (POSITION).pos.
8342
83432008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8344
8345 * process.c (Fsystem_process_attributes): Doc fix.
8346
83472008-09-06 Chong Yidong <cyd@stupidchicken.com>
8348
8349 * keyboard.c (Ftop_level): Doc fix.
8350
83512008-09-06 Eli Zaretskii <eliz@gnu.org>
8352
8353 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8354 minibuffer, don't let lower part of menu invade the echo area.
8355
8356 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8357 "char *q" to access menu text and advance through it. Revert the
8358 change that displayed ">" instead of ASCII character 0x10.
8359
83602008-09-05 Eli Zaretskii <eliz@gnu.org>
8361
8362 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8363 toggle boxes and radio buttons on MS-DOS as well.
8364
83652008-09-05 Kenichi Handa <handa@m17n.org>
8366
8367 * composite.c (autocmp_chars): Check lookback count.
8368 (composition_compute_stop_pos): Set cmp_it->lookback.
8369 (composition_reseat_it): Check lookback count.
8370 (struct position_record): New struct.
8371 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8372 (find_automatic_composition): New function.
8373 (composition_adjust_point): Use find_automatic_composition.
8374
8375 * dispextern.h (struct composition_it): New member lookback.
8376
83772008-09-02 Chong Yidong <cyd@stupidchicken.com>
8378
8379 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8380 if moving by a single line.
8381
83822008-09-02 Andreas Schwab <schwab@suse.de>
8383
8384 * xterm.c (x_delete_display): Fix merge error.
8385
8386 * fileio.c (Fexpand_file_name): Remove unused variables.
8387
83882008-09-02 Eli Zaretskii <eliz@gnu.org>
8389
8390 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8391 storage on all platforms, not just on DOS_NT.
8392
83932008-09-02 Jason Rumney <jasonr@gnu.org>
8394
b8ff72fa
SM
8395 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8396 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8397
83982008-09-01 Chong Yidong <cyd@stupidchicken.com>
8399
8400 * xfaces.c (Finternal_set_alternative_font_family_alist)
8401 (Finternal_set_alternative_font_registry_alist): Properly copy
8402 entire alist structure.
8403
84042008-09-01 Kenichi Handa <handa@m17n.org>
8405
d66c0241 8406 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8407 representative chars of the script is a vector.
d66c0241
JB
8408 (ftfont_list): Handle the case where the representative chars of
8409 the script is a vector.
aac0c6e3
MR
8410
8411 * character.c (syms_of_character): Docstring of
8412 script-representative-chars fixed.
8413
84142008-08-31 Eli Zaretskii <eliz@gnu.org>
8415
8416 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8417 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8418 the menu. Allocate larger buffer for `text', to account for
8419 possible ^C characters.
8420
84212008-08-31 Martin Rudalics <rudalics@gmx.at>
8422
8423 * xdisp.c (prepare_menu_bars): Don't call
8424 Vwindow_size_change_functions with arg Qt.
8425
84262008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8427
8428 * font.h (font_range):
8429 * fileio.c (report_file_error):
46e722a9
SM
8430 * composite.c (composition_update_it): Yet another int/Lisp_Object
8431 mixup (YAILOM).
aac0c6e3
MR
8432
84332008-08-30 Glenn Morris <rgm@gnu.org>
8434
8435 * data.c (Fmake_variable_frame_local): Doc fix.
8436
8437 * frame.c (Fmodify_frame_parameters): Doc fix.
8438
84392008-08-30 Eli Zaretskii <eliz@gnu.org>
8440
8441 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8442 needed by GetTokenInformation.
8443 (w32_system_process_attributes): Check return values of all system
8444 APIs.
8445
8446 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8447 only when the state changes.
8448 (IT_update_begin, IT_update_end): Add termscript trace.
8449
8450 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8451 clipboard is unavailable. Set dst to NULL if it doesn't point to
8452 malloc'ed data.
8453 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8454 passing random values to xfree.
8455
8456 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8457 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8458
84592008-08-29 Jason Rumney <jasonr@gnu.org>
8460
8461 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8462
84632008-08-29 Eli Zaretskii <eliz@gnu.org>
8464
8465 * composite.c (fill_gstring_body): Avoid compiler warnings.
8466
8467 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8468 LGLYPH_SET_CODE to avoid compiler warnings.
8469
2ae37cf0 8470 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8471
8472 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8473
8474 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8475 LGLYPH_SET_CODE.
8476
84772008-08-29 Kenichi Handa <handa@m17n.org>
8478
8479 * fileio.c (report_file_error): Don't downcase the first character
8480 of errstring if it is still unibyte.
8481
84822008-08-29 Kenichi Handa <handa@m17n.org>
8483
8484 These changes are to re-implement the automatic composition so
8485 that it doesn't use text properties.
8486
8487 * Makefile.in (ftfont.o): Depend on composite.h.
8488 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8489
8490 * character.h (Vunicode_category_table): Extern it.
8491
8492 * character.c (Vunicode_category_table): New variable.
8493 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8494
8495 * chartab.c (optimize_sub_char_table): Perform more greedy
8496 optimization.
8497
b8ff72fa
SM
8498 * composite.h (enum composition_method):
8499 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8500 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8501 (Vcomposition_function_table): Extern it.
8502 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8503 (composition_gstring_put_cache, composition_gstring_from_id)
8504 (composition_gstring_p, composition_gstring_width)
8505 (composition_compute_stop_pos, composition_reseat_it)
8506 (composition_update_it, composition_adjust_point): Extern them.
8507 (Fcomposition_get_gstring): EXFUN it.
8508
d66c0241 8509 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8510 (Vcomposition_function_table)
8511 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8512 (gstring_hash_table, gstring_work, gstring_work_headers):
8513 New variables.
aac0c6e3
MR
8514 (gstring_lookup_cache, composition_gstring_put_cache)
8515 (composition_gstring_from_id, composition_gstring_p)
8516 (composition_gstring_width, fill_gstring_header)
8517 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8518 (composition_reseat_it, composition_update_it)
b8ff72fa 8519 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8520 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8521 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8522 Defsubr compostion_get_gstring.
8523
8524 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8525 cmp_id.
8526 (struct glyph_string): Delete the member gidx. New members
8527 cmp_id, cmp_from, and cmp_to.
8528 (enum it_method): Delete GET_FROM_COMPOSITION.
8529 (struct composition_it): New struct.
8530 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8531 Delete c, len, cmp_id, cmp_len in u.comp.
8532
8533 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8534 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8535 (enum lglyph_indices): Likewise.
b8ff72fa 8536 (font_range): Adjust extern.
aac0c6e3
MR
8537 (font_fill_lglyph_metrics): Extern it.
8538
8539 * font.c (QCf): New variable.
8540 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8541 (font_prepare_composition): Delete this function.
8542 (font_range): Type and arguments changed.
8543 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8544 (font_fill_lglyph_metrics): New function.
b8ff72fa 8545 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8546 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8547 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8548 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8549
8550 * fontset.h (font_for_char): Extern it.
8551
8552 * fontset.c (font_for_char): New function.
8553
8554 * ftfont.c: Include composite.h.
8555 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8556 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8557
8558 * indent.c: Include composite.h and dispextern.h.
8559 (check_composition): Delete this function.
8560 (scan_for_column): Handle composition by
8561 composition_compute_stop_pos, composition_reseat_it, and
8562 composition_update_it.
8563 (compute_motion): Likewise.
8564 (Fvertical_motion): Fix checking of composition.
8565
8566 * keyboard.c (adjust_point_for_property): Check composition by
8567 composition_adjust_point.
8568
b8ff72fa 8569 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8570 struct glyph_string.
8571
b8ff72fa
SM
8572 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8573 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8574 struct glyph.
8575 (produce_composite_glyph): Likewise.
8576
b8ff72fa
SM
8577 * w32term.c (x_draw_composite_glyph_string_foreground):
8578 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8579 (x_draw_glyph_string): Likewise.
8580
8581 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8582 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8583
8584 * xdisp.c: Include font.h.
8585 (it_props): Delete the entry for Qauto_composed.
8586 (init_iterator): Initialize it->cmp_it.id to -1.
8587 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8588 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8589 (handle_auto_composed_prop): Delete it.
8590 (handle_composition_prop): Handle only static composition.
8591 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8592 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8593 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8594 (pop_it): Likewise.
8595 (get_next_element): Delete next_element_from_composition.
8596 (CHAR_COMPOSED_P): New macro.
8597 (get_next_display_element): For automatic composition, get a face
8598 from the font in the glyph-string.
8599 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8600 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8601 (next_element_from_string): Check if the character at the current
8602 position is composed by CHAR_COMPOSED_P.
8603 (next_element_from_buffer): Likewise.
d66c0241
JB
8604 (next_element_from_composition): Adjust for the change of struct it.
8605 Update it->cmp_it.
b8ff72fa
SM
8606 (dump_glyph): Adjust for the change of struct glyph.
8607 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8608 it and struct glyph. Don't handle automatic composition here.
8609 (fill_gstring_glyph_string): New function.
8610 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8611 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8612 (BUILD_GSTRING_GLYPH_STRING): New macro.
8613 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8614 automatic composition.
b8ff72fa 8615 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8616 struct glyph.
b8ff72fa 8617 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8618
b8ff72fa 8619 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8620 the change of struct glyph_string.
8621 (x_draw_glyph_string): Likewise.
8622
86232008-08-29 Glenn Morris <rgm@gnu.org>
8624
8625 * buffer.c (word-wrap): Doc fix.
8626 * xdisp.c (truncate-partial-width-windows): Doc fix.
8627 Increase default to 50.
8628
86292008-08-29 Chong Yidong <cyd@stupidchicken.com>
8630
8631 * xdisp.c (update_tool_bar_unwind): New function.
8632 (update_tool_bar): Temporarily set selected frame before building
8633 tool-bar items.
8634
86352008-08-28 Michael Albinus <michael.albinus@gmx.de>
8636
8637 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8638 snprintf, respectively.
8639 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8640
86412008-08-28 Chong Yidong <cyd@stupidchicken.com>
8642
8643 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8644 LDFLAGS to GNUstep CC invocation.
8645
86462008-08-27 Chong Yidong <cyd@stupidchicken.com>
8647
8648 * indent.c (Fvertical_motion): Revert last change. Handle the
8649 general case where we are moving forward, and PT spans multiple
8650 screen lines.
8651
8652 * eval.c (find_handler_clause): Temporarily increase
8653 max-lisp-eval-depth while printing the backtrace buffer, to
8654 guarantee that help-mode code can run.
8655
86562008-08-27 Eli Zaretskii <eliz@gnu.org>
8657
8658 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8659 colors under -rv.
8660 (IT_set_frame_parameters): Don't swap foreground and background
8661 colors if `(reverse . t)' is present in the frame properties.
8662 (internal_terminal_init): Call init_frame_faces only for the
8663 initial frame.
8664
86652008-08-27 Andreas Schwab <schwab@suse.de>
8666
8667 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8668
86692008-08-27 Andreas Schwab <schwab@suse.de>
8670
8671 * search.c (search_buffer): Set char_base to zero only at the end.
8672
86732008-08-27 Kenichi Handa <handa@m17n.org>
8674
b8ff72fa 8675 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8676
86772008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8678
8679 * xterm.c (x_term_init): Temporarily hide the partially
8680 initialized terminal while calling vendor-specific-keysyms.
8681
86822008-08-26 Eli Zaretskii <eliz@gnu.org>
8683
8684 * msdos.c (internal_terminal_init): Most initializations done only
8685 once, especially initial_screen_colors[] and termscript open.
8686
86872008-08-26 Chong Yidong <cyd@stupidchicken.com>
8688
8689 * eval.c (Fcondition_case): Doc fix.
8690
8691 * widgetprv.h (EmacsFramePart): Change font member to the new font
8692 struct.
8693
8694 * widget.c: Include character.h and font.h for XSETFONT.
8695 (setup_frame_gcs): Compute X font id from font struct, just once.
8696
86972008-08-26 Eli Zaretskii <eliz@gnu.org>
8698
8699 * term.c (get_named_tty): Fix last change.
8700
87012008-08-26 Chong Yidong <cyd@stupidchicken.com>
8702
8703 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8704 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8705
87062008-08-25 Eli Zaretskii <eliz@gnu.org>
8707
8708 * frame.c (do_switch_frame): Mark previously displayed frame as
8709 obscured for FRAME_MSDOS_P frames as well.
8710
87112008-08-24 Eli Zaretskii <eliz@gnu.org>
8712
8713 * frame.c (make_terminal_frame): Initialize f->terminal,
8714 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8715 Set the top frame to newly created frame.
8716 (Fmake_terminal_frame): Reuse the_only_display_info.
8717
8718 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8719 estimating available memory.
8720
b97439ce 87212008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8722
8723 * nsterm.m (ns_draw_window_cursor): Don't call
8724 NSDisableScreenUpdates and NSEnableScreenUpdates on
8725 non-NS_IMPL_COCOA systems.
8726
87272008-08-23 Andreas Schwab <schwab@suse.de>
8728
8729 * process.c (procfs_system_process_attributes): Fix use of
8730 uninitialized variables.
8731
87322008-08-23 Eli Zaretskii <eliz@gnu.org>
8733
8734 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8735
8736 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8737 calling tty-set-up-initial-frame-faces.
8738
b8ff72fa
SM
8739 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8740 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8741
8742 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8743 addition to output_termcap.
8744
8745 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8746
8747 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8748 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8749 highlight.
8750
8751 * process.c [!subprocesses]: Define QCname.
8752 (syms_of_process): Intern and staticpro it.
8753
8754 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8755 Adjust for changes in encoding/decoding routines.
8756 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8757 encode_coding and decode_coding.
8758
b8ff72fa 8759 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8760
8761 * dosfns.c: Include frame.h before termhooks.h.
8762 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8763 variable termscript.
8764
8765 * s/msdos.h (USER_FULL_NAME): Define.
8766 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8767
8768 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8769 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8770 pw->pw_gecos.
8771
8772 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8773 SELECTED_FRAME as additional (1st) argument.
8774 (tty_read_avail_input): Handle output_msdos_raw in
8775 addition to output_termcap.
8776
8777 * msdos.c: Include frame.h before termhooks.h.
8778 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8779 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8780 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8781 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8782 (IT_set_terminal_modes, IT_reset_terminal_modes)
8783 (IT_set_frame_parameters): Use tty->termscript instead of a global
8784 variable termscript.
8785 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8786 global variable terminal_coding. Don't refer to
8787 Vnonascii_translation_table.
8788 (internal_terminal_init): Set Vwindow_system in current_kboard.
8789 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8790 Announce date and time of session start, if termscript is open.
8791 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8792 term.c:init_tty). Open termscript only of not already open.
8793 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8794 here instead of dos_ttraw. Don't initialize display if this is an
8795 initial tty. Don't set FRAME_FONT.
8796 (Vwindow_system_version): Bump to 23.
8797 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8798 is available, set up mouse_position_hook.
8799 (dos_ttraw, IT_set_terminal_modes): If called with initial
8800 terminal, do nothing.
8801 (IT_set_frame_parameters): Handle the Qtty_type frame
8802 parameter by calling internal_terminal_init.
8803 (dos_set_window_size, show_mouse_face)
8804 (clear_mouse_face, IT_note_mode_line_highlight)
8805 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8806 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8807 (initialize_msdos_display): New function.
8808 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8809 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8810 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8811 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8812 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8813 (request_sigio, unrequest_sigio): Don't define, now defined on
8814 sysdep.c.
8815 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8816
8817 * term.c [MSDOS]: Include msdos.h.
8818 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8819 conditional to DOS_NT. Allow only one call to this function in a
8820 session. Don't allocate a new struct tty_display_info; instead,
8821 reuse the_only_display_info. Call get_tty_size to get screen
8822 dimensions. Call init_baud_rate to set bad_rate.
8823 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8824 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8825 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8826 (get_tty_terminal, get_named_tty, Ftty_type)
8827 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8828 output_termcap.
b8ff72fa
SM
8829 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8830 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8831 only when subprocesses are supported.
aac0c6e3
MR
8832
8833 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8834 f->output_data.x.
8835 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8836 terminal devices.
8837
5582fbc7 8838 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8839 x_output.
8840 (FRAME_FONT): Use output_data.tty.
8841 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8842 (struct x_display_info): Rename from display_info. Update all users in
8843 msdos.c.
aac0c6e3 8844 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8845 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8846 (dos_ttraw): Update prototype.
8847
8848 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8849 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8850
88512008-08-23 Jason Rumney <jasonr@gnu.org>
8852
8853 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8854 (fn_TIFFSetDirectory): New library function used.
8855 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8856 (tiff_load): Use :index to select among multiple images. Set count
8857 property when multiple images exist.
8858 (gif_format): Use :index, not :image.
8859
88602008-08-23 Chong Yidong <cyd@stupidchicken.com>
8861
8862 * xdisp.c (try_scrolling): Check INT_MAX instead of
8863 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8864 to obtain INT_MAX.
8865
88662008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8867
8868 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8869
88702008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8871
8872 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8873 GNUstep library location.
8874
88752008-08-21 Chong Yidong <cyd@stupidchicken.com>
8876
8877 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8878 before using it.
8879
8880 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8881
88822008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8883
8884 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8885 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8886 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8887 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8888 (EmacsApp-cursor_blink_handler): Remove declaration.
8889 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8890 match 01 Feb 2008 changes in xterm.c.
8891 (ns_read_socket): Add cast to avoid warning.
8892 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8893 GNUstep.
8894
88952008-08-20 Chong Yidong <cyd@stupidchicken.com>
8896
8897 * xselect.c (x_get_foreign_selection): Return nil if desired
8898 selection could not be obtained, instead of signalling an error.
8899
89002008-08-20 David Reitter <david.reitter@gmail.com>
8901
8902 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8903 * nsterm.m: Remove ns-specific code for cursor blinking.
8904 (ns_draw_window_cursor): Clear cursor properly rather than
8905 redrawing the area. Respect width of bar cursors.
8906 These changes enable the use of generic blink-cursor-mode and
8907 generic cursor types in NS and support smooth cursor movements (do
8908 not blink off after command).
8909 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8910 Nextstep, too.
8911
89122008-08-19 Kenichi Handa <handa@m17n.org>
8913
8914 * font.c (Vfont_log_deferred): New variable.
8915 (font_add_log): Check Vfont_log_deferred.
8916 (font_deferred_log): New function.
8917
8918 * font.h (font_deferred_log): Extern it.
8919
8920 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8921 for sorting.
8922 (face_for_char): Use deferred log.
8923
89242008-08-18 Kenichi Handa <handa@m17n.org>
8925
8926 * fontset.c (face_for_char): Add font log.
8927
8928 * font.c (font_add_log): Add the font properties :script, :lang,
8929 and :otf in the log.
8930
89312008-08-17 Chong Yidong <cyd@stupidchicken.com>
8932
8933 * xdisp.c: Remove dead code.
8934 (handle_invisible_prop, next_overlay_string): Defer call to
8935 setup_for_ellipsis.
8936 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8937
89382008-08-15 Chong Yidong <cyd@stupidchicken.com>
8939
8940 * xfaces.c (lookup_derived_face): Properly handle possible zero
8941 return value of get_lface_attributes.
8942 (merge_faces): Don't tell lookup_derived_face to signal an error
8943 if face is not found.
8944
8945 * dired.c (Fdirectory_files): Doc fix.
8946
8947 * process.c (make_process): Initialize kill_without_query struct
8948 member.
8949
89502008-08-15 Eli Zaretskii <eliz@gnu.org>
8951
8952 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8953 Alternative calculation of totphys for Visual Studio 6.
8954
8955 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8956
8957 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8958 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8959 All users changed.
8960 (stat): Only root directory passed to GetDriveType. Allow RAM
8961 disk as well as local fixed disk when w32-get-true-file-attributes
8962 is set to `local'.
8963 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8964 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8965 (w32_cached_id, w32_add_to_cache): New functions.
8966 (get_name_and_id): Look account names in the cache before calling
8967 lookup_account_sid.
8968 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8969 New initialization flags.
8970 (globals_of_w32): Initialize them to zero.
8971 (w32_system_process_attributes): Use w32_cached_id and
8972 w32_add_to_cache.
8973
89742008-08-14 Lawrence Mitchell <wence@gmx.li>
8975
8976 * lread.c (Fread_char, Fread_char_exclusive): If no character
8977 event is read before timeout is reached, return nil, rather than
8978 converting to a number.
8979
89802008-08-14 Chong Yidong <cyd@stupidchicken.com>
8981
8982 * fns.c (use_dialog_box): Doc fix.
8983
8984 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8985 on OS X.
8986
89872008-08-13 Chong Yidong <cyd@stupidchicken.com>
8988
8989 * frame.c (Qns_parse_geometry): New var.
8990 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8991
89922008-08-11 Chong Yidong <cyd@stupidchicken.com>
8993
8994 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8995 space character in calculating tabs.
8996
89972008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8998
8999 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9000
90012008-08-10 Glenn Morris <rgm@gnu.org>
9002
9003 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9004 silence gcc "limited range of data type" warnings in some
9005 make_fixnum_or_float calls.
9006
90072008-08-09 Eli Zaretskii <eliz@gnu.org>
9008
9009 * w32.c (w32_system_process_attributes): If the process does not
9010 exist, return nil.
9011
9012 * w32.c: Include thelp32.h, psapi.h and coding.h.
9013 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9014 declarations.
9015 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9016 (Process32Next_Proc): New typedefs.
9017 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9018 (g_b_init_process32_next, g_b_init_open_thread_token)
9019 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9020 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9021 (g_b_init_get_process_working_set_size)
9022 (g_b_init_global_memory_status_ex): New static variables.
9023 (globals_of_w32): Initialize them.
9024 (create_toolhelp32_snapshot, process32_first, process32_next)
9025 (open_thread_token, impersonate_self, revert_to_self)
9026 (get_process_memory_info, get_process_working_set_size)
9027 (global_memory_status, global_memory_status_ex): New wrapper
9028 functions.
9029 (w32_list_system_processes, w32_system_process_attributes)
9030 (enable_privilege, restore_privilege, ltime, process_times):
9031 New functions.
9032 (convert_time_raw): New function.
9033 (convert_time): Remove conversion of FILETIME into time in 100
9034 nsec units, call convert_time_raw instead.
9035
9036 * process.h (w32_list_system_processes, w32_system_process_attributes):
9037 Add prototypes.
9038 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9039 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9040 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9041 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9042
9043 * process.c (Fsystem_process_attributes): Doc fix.
9044
90452008-08-08 Chong Yidong <cyd@stupidchicken.com>
9046
9047 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9048 a continued multi-char glyph; if so, advance to the actual glyph.
9049
90502008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9051
9052 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9053
9054 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9055 (.m.o): Use it.
9056 * config.in: Regenerate.
9057
90582008-08-07 Chong Yidong <cyd@stupidchicken.com>
9059
9060 * xdisp.c (redisplay_window): Revert last change.
9061 (try_window): Check bottom scroll margin too.
9062
90632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9064
9065 * config.in: Regenerate.
9066
9067 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9068 -list-load-path-shadows'.
9069 (nsgui.h): Reduce number of things depending on it.
9070
90712008-08-06 Chong Yidong <cyd@stupidchicken.com>
9072
9073 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9074 instead of window-end which does the wrong thing at eob.
9075 (try_cursor_movement): Minor optimization.
9076 (redisplay_window): If scroll margin is defined, don't assume
9077 window doesn't need scrolling.
9078
90792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9080
9081 * config.in: Regenerate.
9082
9083 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9084 (mostlyclean): Don't delete *.d under NS.
9085
9086 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9087
90882008-08-06 Kenichi Handa <handa@m17n.org>
9089
9090 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9091
90922008-08-06 Andreas Schwab <schwab@suse.de>
9093
9094 * config.in: Regenerate.
9095
90962008-08-05 Chong Yidong <cyd@stupidchicken.com>
9097
9098 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9099 forcing a window start.
9100
9101 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9102 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9103
91042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9105
9106 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9107 argument.
9108
91092008-08-05 Juanma Barranquero <lekktu@gmail.com>
9110
9111 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9112 <scroll-down-aggressively, before-change-functions>:
9113 <after-change-functions>: Reflow docstrings.
9114
91152008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9116 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9117
9118 Dock menu customization, based on a patch by Ken Raeburn, plus some
9119 other fixes.
9120 * nsmenu.m (dockMenu): New variable.
9121 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9122
9123 * nsterm.h (dockMenu): Declare.
9124
9125 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9126 (ns_term_init): Initialize dockMenu.
9127 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9128 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9129 left.
9130
9131 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9132
91332008-08-04 Chong Yidong <cyd@stupidchicken.com>
9134
9135 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9136
9137 * config.in: Regenerate.
9138
91392008-08-04 Seiji Zenitani <zenitani@mac.com>
9140
9141 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9142
91432008-08-04 Chong Yidong <cyd@stupidchicken.com>
9144
9145 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9146
91472008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9148
9149 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9150
9151 * keyboard.h: Comment an #endif.
9152
9153 * lisp.h (have_menus_p): Adjust comment.
9154
9155 * menu.c (find_and_return_menu_selection): Fix comparison with
9156 client_data.
9157
9158 * nsmenu.m (popup_activated_flag): New variable.
9159 (popup_activated): New function.
9160 (menu-or-popup-active-p): New exported lisp definition.
9161 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9162 when popup done.
9163 (ns_popup_dialog): Set popup_activated_flag.
9164
9165 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9166 version for GNUstep (handled by conditional typedef in nsterm.m).
9167 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9168 in rgb.txt).
9169
9170 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9171
9172 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9173
9174 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9175
9176 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9177 shortcircuit if popup_activated like GTK and X toolkit.
9178
9179 * m/inter386.h: Change DARWIN to DARWIN_OS.
9180
9181 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9182 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9183 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9184 comment on NO_SOCK_SIGIO.
9185
91862008-08-03 Chong Yidong <cyd@stupidchicken.com>
9187
9188 * nsterm.m (windowDidResize): Remove stopModal call.
9189
91902008-08-03 Andreas Schwab <schwab@suse.de>
9191
9192 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9193 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9194
91952008-08-02 Chong Yidong <cyd@stupidchicken.com>
9196
9197 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9198 Don't use uninitialized pointer variable when using getrlimit.
9199
92002008-08-02 Jason Rumney <jasonr@gnu.org>
9201
9202 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9203
92042008-08-02 Eli Zaretskii <eliz@gnu.org>
9205
9206 * alloc.c (NSTATICS): Bump to 0x640.
9207
9208 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9209
9210 * lisp.h: Add prototype for directory_files_internal.
9211
9212 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9213 New functions.
9214 (syms_of_process): Defsubr them. Add initializations for various
9215 Q* symbols used in procfs_system_process_attributes.
9216 (procfs_list_system_processes, procfs_system_process_attributes)
9217 [HAVE_PROCFS]: New functions.
9218 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9219 (procfs_get_total_memory): New functions.
9220
92212008-08-01 Juanma Barranquero <lekktu@gmail.com>
9222
9223 * xfaces.c (Fx_load_color_file): Fix previous change;
9224 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9225
92262008-08-01 Michael Albinus <michael.albinus@gmx.de>
9227
9228 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9229
92302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9231
9232 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9233
92342008-08-01 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9237
9238 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9239 define NSApplicationDelegateReplySuccess.
9240 (EmacsView -converstationIdentifier): Use long instead of
9241 NSInteger for GNUstep, since it doesn't have NSInteger.
9242
9243 * xmenu.c: Revert last change.
9244
9245 * keyboard.h: Fix last change.
9246
92472008-08-01 Juanma Barranquero <lekktu@gmail.com>
9248
9249 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9250 on Windows.
9251
92522008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9253
9254 Warning clearing and clean-up in NS port.
9255 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9256 Add prototypes.
9257 * nsgui.h (FACE_DEFAULT): Remove, unused.
9258 (XGCValues): Change colors to unsigned long.
9259 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9260 nsterm.m.
9261 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9262 (ns_list_fonts): Remove, unused.
9263 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9264 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9265 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9266 (nsfont_draw): Compare face colors to 0, not nil.
9267 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9268 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9269 (-addSubmenuWithTitle:): Use NSMenuItem class.
9270 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9271 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9272 (ns_clip_to_row): Make gc arg a BOOL.
9273 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9274 ns_clip_to_row() call.
9275 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9276 used). Cast FRAME_FONT assignments.
9277 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9278 (ns_string_to_lispmod): Change arg to const char.
9279 (ns_term_init): Use NSMenuItem class.
9280 (EmacsApp -openFile:): Move to different section of file.
9281 (EmacsApp -application:openFiles:): Don't return a value, call
9282 -replyToOpenOrPrint:.
9283 (EmacsView -keyDown:): Fix up cast.
9284 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9285 (EmacsView -menuDown:): Cast tag in call to
9286 find_and_call_menu_selection().
9287 (ns_list_fonts): Remove, unused.
9288 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9289 (ns_fontname_to_xlfd): Make static.
9290 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9291 Remove prototypes (now in keyboard.h).
9292 (next_menubar_widget_id): Remove, unused.
9293 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9294 Remove prototypes (now in keyboard.h).
9295 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9296
92972008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9298
9299 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9300 (floatfns.o): Depend on syssignal.h.
9301 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9302
9303 * systty.h: Fix previous change that removed BSD_TERMIOS.
9304 Add comments to #ifdefs.
9305
93062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9307
9308 * w32fns.c (w32-load-color-file): Remove.
9309 (x-open-connection): Use renamed Fx_load_color_file.
9310 * xfaces.c (x-load-color-file): Add.
9311 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9312 Emacs.clr.
9313 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9314
93152008-07-31 Michael Albinus <michael.albinus@gmx.de>
9316
9317 * dbusbind.c (Fdbus_call_method_asynchronously)
9318 (Fdbus_method_error_internal): New defuns.
9319 (xd_read_message): Handle also reply messages.
9320 (Vdbus_registered_functions_table): Extend docstring.
9321
93222008-07-31 Juanma Barranquero <lekktu@gmail.com>
9323
9324 * keyboard.c (gobble_input): Fix previous change.
9325
93262008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9327
9328 * bitmaps/README:
9329 * xfns.c:
9330 * termcap.c:
9331 * term.c:
9332 * syswait.h:
9333 * systty.h:
9334 * systime.h:
9335 * syssignal.h:
9336 * sysdep.c:
9337 * process.h:
9338 * process.c:
9339 * print.c:
9340 * ndir.h:
9341 * lread.c:
9342 * keyboard.c:
9343 * getpagesize.h:
9344 * floatfns.c:
9345 * fileio.c:
9346 * emacs.c:
9347 * doc.c:
9348 * dispnew.c:
9349 * dired.c:
9350 * data.c:
9351 * callproc.c:
9352 * buffer.c:
9353 * README:
9354 * Makefile.in:
9355 * s/template.h:
9356 * s/msdos.h:
9357 * m/vax.h: Remove VMS support.
9358 * s/vms.h:
9359 * vlimit.h:
9360 * uaf.h:
9361 * temacs.opt:
9362 * param.h:
9363 * ioctl.h: Remove file.
9364
93652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9366
9367 * s/ms-w32.h (MULTI_KBOARD): Remove.
9368 * xterm.c:
9369 * xselect.c:
9370 * xfns.c:
9371 * window.c:
9372 * w32term.c:
9373 * w32fns.c:
9374 * terminal.c:
9375 * termhooks.h:
9376 * term.c:
9377 * sysdep.c:
9378 * keyboard.h:
9379 * keyboard.c:
9380 * frame.h:
9381 * frame.c:
9382 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9383 * config.in: Regenerate.
9384
93852008-07-30 Jason Rumney <jasonr@gnu.org>
9386
9387 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9388
9389 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9390 (w32font_open_internal): Get unicode version of textmetrics.
9391 Don't enable or disable glyph indices here.
9392 (w32font_open): Disable use of glyph indices.
9393
9394 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9395
93962008-07-30 Chong Yidong <cyd@stupidchicken.com>
9397
9398 * minibuf.c (Vread_buffer_function): Doc fix.
9399
94002008-07-30 John Paul Wallington <jpw@pobox.com>
9401
9402 * minibuf.c (read_buffer_completion_ignore_case): New var.
9403 (Fread_buffer): Use it.
9404
94052008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9406
9407 * systty.h (sensemode): Remove empty #if. Remove reference to
9408 BSD_TERMIOS, unused.
9409
9410 * sysdep.c: Remove reference to DGUX.
9411 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9412
9413 * config.in: Regenerate.
9414
94152008-07-30 Jason Rumney <jasonr@gnu.org>
9416
9417 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9418
94192008-07-29 Jason Rumney <jasonr@gnu.org>
9420
9421 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9422 is populated.
9423 (uniscribe_encode_char): Always use uniscribe.
9424 Avoid using context if cache is populated.
9425
94262008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9427
9428 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9429 open menu.
9430
9431 * gtkutil.c (menu_nav_ended): Remove.
9432 (create_menus): Remove signal connect for menu_nav_ended.
9433
94342008-07-28 Chong Yidong <cyd@stupidchicken.com>
9435
9436 * xdisp.c (redisplay_window): Check return value of
9437 compute_window_start_on_continuation_line before forcing a window
9438 start.
9439
94402008-07-28 Jason Rumney <jasonr@gnu.org>
9441
9442 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9443
9444 * w32term.c (w32_enable_unicode_output, cleartype_active):
9445 Remove obsolete display options.
9446 (x_draw_glyph_string_background): Don't use old cleartype_active
9447 workaround.
9448 (w32_initialize): Remove cleartype_active initialization.
9449 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9450
94512008-07-28 Andreas Schwab <schwab@suse.de>
9452
9453 * lisp.h (init_weak_hash_tables, syms_of_font)
9454 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9455 (remove_hash_entry): Don't declare.
9456 * eval.c (maybe_call_debugger): Make static and move before use.
9457 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9458 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9459 * xterm.h (x_set_frame_alpha): Declare.
9460
94612008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9462
9463 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9464 (create_menus): Connect selection-done to menu_nav_ended.
9465
94662008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9467
9468 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9469 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9470 parameter with read of 'alpha' one.
9471 (Qns_frame_parameter): Remove.
5582fbc7 9472 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9473 (next-selection-coding-system, Vselection_coding_system)
9474 (Vnext_selection_coding_system): Drop.
9475
94762008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9477
9478 * nsfns.m (do-applescript, do_applescript): Rename to
9479 ns-do-applescript, ns_do_applescript, and move within file.
9480
94812008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9482
9483 Remove support for Mac Carbon.
9484 * mactoolbox.c:
9485 * macterm.h:
9486 * macterm.c:
9487 * macselect.c:
9488 * macmenu.c:
9489 * macgui.h:
9490 * macfns.c:
9491 * mac.c: Remove file.
9492 * s/darwin.h:
9493 * m/intel386.h:
9494 * xfaces.c:
9495 * xdisp.c:
9496 * window.c:
9497 * tparam.c:
9498 * termhooks.h:
9499 * termcap.c:
9500 * term.c:
9501 * syssignal.h:
9502 * sysselect.h:
9503 * sysdep.c:
9504 * process.c:
9505 * lread.c:
9506 * lisp.h:
9507 * keyboard.c:
9508 * image.c:
9509 * fringe.c:
9510 * frame.h:
9511 * frame.c:
9512 * fontset.c:
9513 * font.h:
9514 * font.c:
9515 * fns.c:
9516 * fileio.c:
9517 * emacs.c:
9518 * dispnew.c:
9519 * dispextern.h:
9520 * config.in:
9521 * atimer.c:
2ae37cf0 9522 * Makefile.in: Remove code for Carbon.
aac0c6e3 9523
f0131492 95242008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9525
9526 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9527
95282008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9529
9530 * macterm.h (kCGBitmapByteOrder32Host): New define for
9531 non-universal SDKs.
9532
9533 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9534 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9535
9536 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9537 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9538
95392008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9540
9541 * w32inevt.c: Include dispextern.h.
9542
95432008-07-26 Andreas Schwab <schwab@suse.de>
9544
9545 * print.c (print_object): Fix off-by-one in last change.
9546
95472008-07-25 Juanma Barranquero <lekktu@gmail.com>
9548
9549 * term.c (syms_of_term): Don't initialize default_orig_pair,
9550 default_set_foreground and default_set_background on Windows.
9551
95522008-07-25 Jason Rumney <jasonr@gnu.org>
9553
9554 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9555 ScriptItemize. Clean up return value checking. Remove unused
9556 variables.
9557 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9558 shaping engine.
9559
9560 * w32font.c (w32font_has_char): Handle the case where we can't
9561 determine the script for a character.
9562
95632008-07-25 Chong Yidong <cyd@stupidchicken.com>
9564
9565 * term.c (syms_of_term): Initialize default_orig_pair,
9566 default_set_foreground, and default_set_background.
9567
9568 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9569 clash (bug#86).
9570 (getloadavg): Callers changed.
9571
9572 * image.c (svg_load_image): Fix last change.
9573 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9574 image size is valid. Use g_object_unref instead of deprecated
9575 rsvg_handle_free to free rsvg handle.
9576 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9577
95782008-07-25 Jason Rumney <jasonr@gnu.org>
9579
9580 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9581 surrogates before looking up glyph index.
9582 (w32font_text_extents): Encode as surrogates if falling back to
9583 functions that need UTF-16 wide chars.
9584
9585 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9586 BMP as surrogates before looking up glyph index.
9587
95882008-07-25 Chong Yidong <cyd@stupidchicken.com>
9589
9590 * image.c (svg_load_image): Check for failure in return value of
9591 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9592
95932008-07-25 Jason Rumney <jasonr@gnu.org>
9594
9595 * w32font.c (Fx_select_font): Reverse sense of second arg.
9596
95972008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9598
9599 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9600 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9601
9602 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9603 (PURESIZE): Use it.
9604
96052008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9606
9607 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9608 * m/alpha.h (TEXT_END):
9609 * m/ibmrs6000.h (TEXT_END):
9610 * m/macppc.h (TEXT_END):
9611 * s/darwin.h (TEXT_END):
9612 * s/msdos.h (TEXT_END): Remove, unused.
9613 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9614 * s/cygwin.h: Remove comment.
9615
9616 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9617 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9618 * m/intel386.h (DOT_GLOBAL_START):
9619 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9620 (USG): Remove, file not used on USG platforms.
9621
9622 * Makefile.in (HAVE_X11): Remove empty #else.
9623
96242008-07-24 Andreas Schwab <schwab@suse.de>
9625
9626 * fileio.c (Finsert_file_contents): Properly adjust undo list
9627 after format conversion.
9628
96292008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9630
9631 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9632 (menu_nav_ended): Remove.
9633 (create_menus): Remove signal connect for menu_nav_ended.
9634 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9635 create_menus.
9636 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9637
96382008-07-23 Jason Rumney <jasonr@gnu.org>
9639
9640 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9641 with opened font.
9642 (w32font_open): Set font type to gdi.
9643
9644 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9645
96462008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9647
9648 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9649 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9650 defines it.
9651 * unexec.c (ADDR_CORRECT): Define unconditionally.
9652
9653 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9654
9655 * unexec.c: Remove code depending on !COFF and USG, the file is
9656 not used for such systems.
9657
9658 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9659 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9660 (LD_SWITCH_SYSTEM_1): Remove, update users.
9661
9662 * s/darwin.h (DATA_END):
9663 * m/intel386.h (DATA_END):
9664 * m/ibmrs6000.h (DATA_END):
9665 * m/alpha.h (DATA_END): Remove, unused.
9666
9667 * config.in: Regenerate.
9668 * s/ms-w32.h (subprocesses): Define unconditionally.
9669 * s/template.h (subprocesses): Update comment.
9670 * s/vms.h (subprocesses):
9671 * s/usg5-4.h (subprocesses):
9672 * s/hpux10-20.h (subprocesses):
9673 * s/gnu-linux.h (subprocesses):
9674 * s/cygwin.h (subprocesses):
9675 * s/bsd-common.h (subprocesses):
9676 * s/aix4-2.h (subprocesses):
9677 * s/darwin.h (subprocesses): Do not define, defined by default now.
9678
9679 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9680 Remove all references.
9681 (temacs): Add GNUstep specific ld flags.
9682
9683 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9684 similarly to what X does.
9685
96862008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9687
9688 * nsfns.m (x-list-fonts): Remove.
9689 (syms_of_nsfns): Drop the x-list-fonts declaration.
9690 * nsterm.m: Get rid of remaining "//" comments.
9691
96922008-07-22 Chong Yidong <cyd@stupidchicken.com>
9693
9694 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9695
9696 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9697 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9698 (Fns_own_selection_internal, Fx_disown_selection_internal)
9699 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9700
9701 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9702 ... */' style of docstrings. Doc fixes.
9703
97042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9705
9706 * terminfo.c (UP, BC, PC): Undo previous change.
9707
9708 * nsfns.m: Rename ns prefixed functions/variables to the
9709 corresponding x versions. Update references.
9710
97112008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9712
9713 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9714
97152008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9716
9717 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9718 Remove forwarding functions.
9719 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9720 non-static.
9721 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9722 non-static.
9723 (ns_frame_parm_handlers): Use the new names.
9724 (syms_of_nsfns): Move to the end of file.
9725
9726 * nsterm.m (syms_of_nsterm): Move to the end of file.
9727
9728 * dispnew.c (init_display): Remove code for X10.
9729
97302008-07-22 Jason Rumney <jasonr@gnu.org>
9731
9732 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9733 bare drive.
9734
97352008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9736
9737 * nsterm.m (syms_of_nsterm): Remove debugging println.
9738
97392008-07-22 David Reitter <david.reitter@gmail.com>
9740
9741 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9742 Carbon implementation of the same functionality: execute arbitrary
9743 AppleScript code.
9744
97452008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9746
9747 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9748 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9749 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9750 (Fx_display_mm_height, Fx_display_mm_width)
9751 (Fx_display_backing_store, Fx_display_visual_class)
9752 (Fx_display_save_under, Fx_open_connection)
9753 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9754 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9755 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9756 (Fx_display_pixel_width, Fx_display_pixel_height)
9757 (Fx_display_usable_bounds, Fx_display_planes)
9758 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9759 ... */' style of docstrings.
9760
97612008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9762
9763 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9764 on this platform.
9765 (mips):
9766 * m/iris4d.h (mips): Do not define.
9767 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9768
9769 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9770
9771 * image.c:
9772 * nsfns.m:
9773 * nsselect.m:
9774 * nsterm.h:
9775 * nsterm.m: Rename ns prefixed functions/variables to the
9776 corresponding x versions. Update references.
9777
9778 * m/ibms390x.h (NO_REMAP): Do not undefine.
9779
9780 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9781
97822008-07-21 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9785 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9786 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9787 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9788 (Fns_display_mm_height, Fns_display_mm_width)
9789 (Fns_display_backing_store, Fns_display_visual_class)
9790 (Fns_display_save_under, Fns_open_connection)
9791 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9792 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9793 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9794 (Fns_display_pixel_width, Fns_display_pixel_height)
9795 (Fns_display_usable_bounds, Fx_display_planes)
9796 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9797
97982008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9799
9800 * print.c (print_object): Check print_depth before searching for
9801 circularities.
9802
98032008-07-21 Michael Albinus <michael.albinus@gmx.de>
9804
9805 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9806 only sprintf.
9807
98082008-07-21 Kenichi Handa <handa@m17n.org>
9809
9810 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9811
98122008-07-20 Andreas Schwab <schwab@suse.de>
9813
9814 * syntax.c (find_start_pos, find_start_value)
9815 (find_start_value_byte, find_start_begv, find_defun_start)
9816 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9817
98182008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9819
9820 * s/sol2-3.h: Insert contents of s/sol2.h.
9821 (LD_SWITCH_SYSTEM): Remove redundant definition.
9822 * s/sol2.h: Remove, unused.
9823
98242008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9825
9826 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9827
98282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9829
9830 * Makefile.in (ns_appdir): Fix typo in find command.
9831
98322008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9833
9834 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9835
9836 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9837 added not supported anymore.
9838
9839 * s/usg5-4-2.h (LIBS_SYSTEM):
9840 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9841
9842 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9843 * s/lynxos.h (GETPGRP_NO_ARG):
9844 * s/hpux10-20.h (NO_SIOCTL_H):
9845 * s/gnu.h (GETPGRP_NO_ARG):
9846 * s/gnu-linux.h (NO_SIOCTL_H):
9847 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9848 * s/cygwin.h (GETPGRP_NO_ARG):
9849 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9850 (C_DEBUG_SWITCH): Remove duplicate definition.
9851
9852 * m/ibms390.h: Remove boilerplate comments.
9853
9854 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9855
9856 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9857 (wait_reading_process_output): Remove code for SunOS, platform not
9858 supported anymore. Use SOLARIS2 instead of sun.
9859
98602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9861
9862 * font.c (font_open_by_name): Under NS, default lface height to zero.
9863 (font_open_for_lface): Under NS, set size based on frame fontsize.
9864 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9865 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9866
98672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9868
9869 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9870 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9871 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9872 YES/NO.
9873 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9874 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9875 * Makefile.in (clean): Clear out build destination dir.
9876
98772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9878
9879 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9880 xterm, xselect.
9881 * lisp.h: Remove declaration of hash_remove.
9882 * nsgui.h: Remove redefinitions of hash_remove.
9883 * fns.c (hash_remove): Rename to hash_remove_from_table.
9884
98852008-07-19 Seiji Zenitani <zenitani@mac.com>
9886
9887 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9888 strdup() the family UTF8String before modifying it.
9889
98902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9891
9892 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9893 NS_FACE_BACKGROUND with 0 instead of nil.
9894 * nsfont.m (nsfont_draw): Same.
9895
98962008-07-19 Chong Yidong <cyd@stupidchicken.com>
9897
9898 * nsfns.m (ns_set_background_color): Fix crash.
9899
99002008-07-18 Chong Yidong <cyd@stupidchicken.com>
9901
9902 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9903
99042008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9905
9906 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9907
99082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9909
9910 * gtkutil.c: Include <config.h> instead of "config.h".
9911
9912 * lisp.h (Foverlay_buffer): Add EXFUN.
9913
9914 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9915 child process to complete child_setup. Undo 2005-09-21 change.
9916
9917 * s/darwin.h: Mention setsid after vfork.
9918
99192008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9920
9921 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9922 Depend on macgui.h.
9923
9924 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9925 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9926
9927 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9928 and f19.
9929 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9930
9931 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9932 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9933 Remove enumerators.
9934
9935 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9936 Check if FACE_FROM_ID returns NULL.
9937
99382008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9939
9940 * w32inevt.c (change_frame_size): Remove extern declaration.
9941 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9942 change_frame_size.
9943
99442008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9945
9946 * getloadavg.c: Revert last change (2008-07-15).
9947
99482008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9949
9950 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9951 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9952 from configure.
9953
99542008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9955
9956 * s/sol2.h:
9957 * s/sol2-4.h: Reorganize conditionals.
9958
9959 * ecrt0.c: Remove code depending on m68000, not used anymore.
9960
9961 * fns.c (hash_remove): Make static.
9962 * lisp.h (hash_remove): Don't prototype.
9963
9964 * m/ibmrs6000.h:
9965 * m/ibms390x.h:
9966 * m/macppc.h: Remove boilerplate comments.
9967
9968 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9969 Solaris, which does not need them.
9970
9971 * m/vax.h: Remove comments about unsupported systems.
9972
9973 * s/darwin.h: Reorganize ifdefs.
9974
99752008-07-17 Andreas Schwab <schwab@suse.de>
9976
9977 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9978
99792008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9980
9981 Use SDATA. Follow coding convention of placing operators at
9982 beginning of next line rather than end of previous line, and placing
9983 spaces around infix operators.
9984
9985 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9986 in case it was defined already.
9987 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9988 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9989 ns_default.
9990 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9991 Lisp_Objects.
9992 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9993 (ns_defined_color, ns_color_to_lisp): Declare.
9994 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9995 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9996 it's accepted even with USE_LISP_UNION_TYPE.
9997 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9998 (update_frame_tool_bar): Remove apparently obsolete tests for
9999 non-integerness of f->tool_bar_lines.
10000 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10001 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10002 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10003 (nsfont_open): Don't confuse NULL for Qnil.
10004 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10005 * menu.h (find_and_call_menu_selection):
10006 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10007 (find_and_return_menu_selection): Always return something.
10008 * frame.h: Include dispextern.h for Display_Info.
10009 (display_x_get_resource): Declare.
10010
100112008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10012
10013 * syntax.c: Remove stdio.h include accidentally introduced in
10014 Emacs.app commit.
10015 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10016 NS_IMPL_COCOA.
10017 * keyboard.c (handle_async_input, input_available_signal): Remove
10018 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10019
100202008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10021
10022 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10023 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10024 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10025 Use SDATA.
10026
10027 * keymap.c: Remove all NS-specific code.
10028 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10029 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10030 where_is_preferred_modifier, return a different value depending on how
10031 preferred is the binding.
10032 (where_is_internal): Adjust accordingly.
10033 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10034 Adjust to new preferred_sequence_p.
10035 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10036 * keyboard.c (parse_solitary_modifier): Not static any more.
10037 * keyboard.h (parse_solitary_modifier): Declare.
10038
100392008-07-16 Andreas Schwab <schwab@suse.de>
10040
10041 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10042 of easymenu.
10043
100442008-07-16 Chong Yidong <cyd@stupidchicken.com>
10045
10046 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10047 that we don't move off the line.
10048
100492008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10050
10051 * keyboard.c (Qsuper): Remove.
10052 (parse_menu_item): Don't call where_is_internal specially for NS.
10053
100542008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10055
10056 * s/gnu-linux.h: Remove boilerplate comments.
10057
10058 * m/alpha.h (__ELF__): Consolidate conditions.
10059
10060 * m/m68k.h (linux): Use GNU_LINUX instead.
10061 Remove boilerplate comments.
10062
10063 * m/intel386.h: Undo refactoring from previous change.
10064 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10065 too, remove dead code.
10066 (linux): Use GNU_LINUX instead.
10067
100682008-07-16 Jason Rumney <jasonr@gnu.org>
10069
10070 * w32gui.h: Repeat 26 June changes lost by last change.
10071
100722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10073
10074 * systty.h: Remove code for Aix on 386, unsupported platform.
10075
10076 * s/ms-w32.h: Remove boilerplate comments.
10077 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10078
10079 * s/gnu-linux.h (TERM): Remove support.
10080 (HAVE_SYSVIPC): Remove, unused.
10081 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10082 for this system.
10083
10084 * process.c: Remove support for IRIS, unused.
10085 Remove support for TERM, not relevant anymore.
10086
10087 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10088 used with the definition.
10089
10090 * s/aix4-2.h (static): Do not undef.
10091
10092 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10093 only used on Aix.
10094 (HAVE_SYSVIPC): Remove, unused.
10095
10096 * m/hp800.h (CANNOT_DUMP): Do not undef.
10097
10098 * m/alpha.h: Fix comment.
10099
10100 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10101 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10102 used by this configuration.
10103 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10104 * unexec.c: Remove code depending on HPUX and
10105 USG_SHARED_LIBRARIES, not used with this file. Remove code
10106 depending on IRIS, unused. Remove if 0-ed code.
10107
10108 * s/template.h: Remove comments about static.
10109
10110 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10111 Remove if 0-ed code.
10112 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10113 were the same as the default.
10114 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10115 Remove boilerplate comments.
10116 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10117 (HAVE_SYSVIPC): Remove, unused.
10118 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10119
10120 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10121 Remove boilerplate comments.
10122 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10123 Remove boilerplate comments.
10124 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10125 Remove boilerplate comments.
10126 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10127
10128 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10129 USG systems which do not use DATA_SEG_BITS.
10130 Refactor code. Remove boilerplate comments.
10131
10132 * m/ibms390.h:
10133 * m/m68k.h:
10134 * s/bsd-common.h:
10135 * s/cygwin.h:
10136 * s/darwin.h:
10137 * s/freebsd.h:
10138 * s/gnu.h:
10139 * s/msdos.h: Remove boilerplate comments.
10140
10141 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10142 do not use this file.
aac0c6e3
MR
10143 (IRIS_4D): Remove, unused.
10144
10145 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10146 do not use this file.
aac0c6e3
MR
10147 (SIGN_EXTEND_CHAR):
10148 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10149 * unexmips.c: Remove file, unused.
10150
10151 * editfns.c (Fuser_full_name): Replace the only use of
10152 USER_FULL_NAME with its value.
10153 * config.in: Regenerate.
10154
101552008-07-16 David Reitter <david.reitter@gmail.com>
10156
10157 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10158 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10159
101602008-07-16 Glenn Morris <rgm@gnu.org>
10161
10162 * emacs.c (system-type): Doc fix.
10163
101642008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10165
10166 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10167 If the cache doesn't work, let's fix it, rather than work around it.
10168
101692008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10170
10171 * Makefile.in: Correct additions for nsfont.o in last commit.
10172 * nsfont.m: New file (forgot last commit).
10173
101742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10175
10176 * callproc.c (set_initial_environment): Initialize
10177 Vprocess_environment under CANNOT_DUMP (fixes crash when
10178 batch-compiling for bootstrap).
10179
101802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10181 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10182
10183 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10184 fix crash due to different init order.
10185
101862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10187
10188 Changes and additions for NeXTstep windowing system (Cocoa and
10189 GNUstep) support.
10190
10191 * Makefile.in:
10192 * config.in: Support defines and build commands for NS port.
10193 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10194 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10195 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10196 windowing.
10197 (struct face): Add synth_ital field.
10198 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10199 (init_display): Initialize Vinitial_window_system to "ns" when so
10200 compiled.
10201 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10202 (display_arg): Use under NS.
10203 (main): Under NS, allocate autorelease pool and handle command line
10204 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10205 (standard_args): Add NS-specific args.
10206 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10207 * font.c (DEFAULT_ENCODING): New variable.
10208 (font_find_for_lface): Use it.
10209 (syms_of_font): Load syms_of_nsfont under NS.
10210 * font.h: Declare nsfont_driver when compiled under NS.
10211 * fontset.c: When compiling under NS, include nsterm.h.
10212 (fontset_from_font): Autoconstruct fontset under NS.
10213 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10214 symbol, document and use it.
10215 (do_switch_frame): When for_deletion under Cocoa, add
10216 Fraise_frame(Qnil).
10217 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10218 (x_get_arg): Allow "yes" and "no" as boolean values.
10219 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10220 Qright under Cocoa.
10221 (focus-follows-mouse): Default to 0 under NS.
10222 * frame.h (enum output_method): Add output_ns.
10223 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10224 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10225 (FRAME_WINDOW_P): NS-specific definition.
10226 * fringe.c (max_used_fringe_bitmap): Make public.
10227 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10228 (getloadavg): Use NeXT code under descendant OS's.
10229 * image.c (includes and header section, x_create_bitmap_from_data)
10230 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10231 (image_background_transparent, x_clear_image_1)
10232 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10233 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10234 (x_to_xcolors, x_from_xcolors, x_disable_image)
10235 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10236 other GUIs, including XPM support using code originally written for
10237 Carbon GUI.
10238 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10239 using NS API.
10240 (image_ascent): Use font metrics macros instead of direct struct field
10241 access.
10242 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10243 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10244 Also, handle NS as GTK for menu bar purposes.
10245 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10246 toolkit where they differ.
10247 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10248 use cachelist, still needed under NS.
10249 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10250 (struct widget_value): Define it here for menu.c.
10251 * keymap.c (includes): Include modifier internals.
10252 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10253 NS.
10254 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10255 support for preferring sequences using certain modifiers, specified by
10256 the FIRSTONLY argument.
10257 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10258 under NS GNUstep implementation.
10259 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10260 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10261 * menu.c: Include nsterm.h under NS.
10262 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10263 (free_menubar_widget_tree_value, update_submenu_strings)
10264 (find_and_call_menu_selection): Treat NS as X and NT.
10265 (find_and_return_menu_selection): New function, used for popup menus.
10266 * nsgui.h:
10267 * nsterm.h:
10268 * nsfns.m:
10269 * nsimage.m:
10270 * nsmenu.m:
10271 * nsselect.m:
10272 * nsterm.m: New files.
10273 * process.c (wait_reading_process_output): Under NS, call ns_select()
10274 instead of plain select().
10275 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10276 beginning of buffer.
10277 * sysselect.h (init_process): Rename when compiling under Cocoa to
10278 avoid name conflict.
10279 * termhooks.h (display_info): Add ns_display_info to union.
10280 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10281 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10282 COCOA environment.
10283 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10284 unexec() signature. (Note, this will dump, but the resulting file
10285 crashes; unexosx is used instead; keeping around for reference and
10286 possible aid in getting dump working under GNUstep.)
10287 * w32gui.h (button_type, widget_value): Remove definitions (now in
10288 keyboard.h).
10289 * window.c: Include nsterm.h when compiling under NS.
10290 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10291 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10292 other GUI windowing systems.
10293 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10294 GTK.
10295 (x_consider_frame_title): Under NS, set icon type and frame
10296 modified-state indicator; use ns_set_name_as_filename() when using
10297 formatted title.
10298 (update_window_cursor): Make public when compiling under NS.
10299 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10300 (hourglass_atimer, Vhourglass_delay
10301 * xfaces.c (header section, init_frame_faces, clear_font_table)
10302 (defined_color, unload_color, x_face_list_fonts)
10303 (prepare_face_for_display): Add NS support parallel to other GUIs.
10304 Emulate GCs like other non-X GUIs.
10305 (split_font_name): Don't lowercase font name under NS.
10306 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10307 under NS.
10308 * s/darwin.h: Add support for compilation under NS.
10309
103102008-07-15 Jason Rumney <jasonr@gnu.org>
10311
10312 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10313 (w32_show_hourglass): Rename from show_hourglass.
10314 (w32_hide_hourglass): Rename from hide_hourglass.
10315 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10316 (Vhourglass_delay): Declare extern.
10317 (hourglass_started): Remove.
10318
10319 * xdisp.c (Vhourglass_delay): Remove static.
10320 (hourglass_started, start_hourglass, cancel_hourglass):
10321 Don't include these versions on WINDOWSNT.
10322
103232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10324
10325 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10326 variables (formerly in xfns.c).
10327 (show_hourglass, hide_hourglass): New prototypes (same).
10328 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10329 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10330 in xfns.c).
10331 (syms_of_xdisp): Declare/initialize display-hourglass,
10332 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10333 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10334 formerly in xfns.c.
10335 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10336 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10337 (start_hourglass, cancel_hourglass): Remove.
10338 (show_hourglass, hide_hourglass): Remove prototypes and static
10339 modifiers.
10340 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10341 hourglass_atimer, hourglass_shown_p declaration/initialization.
10342 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10343 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10344 (start_hourglass, cancel_hourglass): Remove.
10345 (show_hourglass, hide_hourglass): Remove prototypes and static
10346 modifiers.
10347 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10348 hourglass_atimer, hourglass_shown_p declaration/initialization.
10349 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10350 (DEFAULT_HOURGLASS_DELAY): Remove.
10351 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10352 hourglass_shown_p declaration/initialization.
10353
103542008-07-14 Jason Rumney <jasonr@gnu.org>
10355
10356 * w32fns.c (w32_get_arg): Remove wrapper function.
10357 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10358 directly.
10359 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10360
103612008-07-14 Kenichi Handa <handa@m17n.org>
10362
10363 * xfont.c (xfont_open): Add workaround for X's bug.
10364
103652008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10366
10367 * fontset.c: Include <stdio.h> unconditionally.
10368
103692008-07-13 Michael Albinus <michael.albinus@gmx.de>
10370
10371 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10372 for filtering.
10373
103742008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10375
10376 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10377
10378 * m/macppc.h:
10379 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10380
10381 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10382 (SPECIAL_EMACS_INT):
10383 * m/ia64.h (SPECIAL_EMACS_INT):
10384 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10385 * s/gnu.h (NLIST_STRUCT):
10386 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10387 * s/gnu-linux.h (LINUX):
10388 * s/msdos.h (HAVE_FACES):
10389 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10390
10391 * systty.h:
10392 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10393 anymore.
10394
103952008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10396
10397 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10398 always defined as int.
10399
10400 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10401 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10402 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10403 * s/freebsd.h (HAVE_WAIT_HEADER):
10404 * s/bsd-common.h (HAVE_UNION_WAIT):
10405 * s/aix4-2.h (HAVE_WAIT_HEADER):
10406 * m/mips.h (HAVE_UNION_WAIT):
10407 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10408 (COFF, static): Do not define, they are undefined later in the file.
10409
10410 * process.c (update_status): Don't use a union.
10411 (status_convert):
10412 (sigchld_handler): Use int instead of WAITTYPE.
10413
104142008-07-12 Chong Yidong <cyd@stupidchicken.com>
10415
10416 * indent.c (Fvertical_motion): Restore hscroll before moving to
10417 goal column.
10418
104192008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10420
10421 * lisp.h: Remove left over code.
10422
104232008-07-11 Andreas Schwab <schwab@suse.de>
10424
10425 * lisp.h: Fix logic in last change.
10426
10427 * menu.h: New file.
10428 * menu.c: Include it.
10429 * xmenu.c: Likewise.
10430 * Makefile.in: Update dependencies.
10431
104322008-07-11 Kenichi Handa <handa@m17n.org>
10433
10434 * fontset.c (fontset_from_font): Cancel the previous change.
10435
104362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10437
10438 * lisp.h:
10439 * w32heap.c:
10440 * emacs.c:
10441 * alloc.c: Replace all references of NO_UNION_TYPE with
10442 USE_LISP_UNION_TYPE.
10443
10444 * m/xtensa.h (NO_UNION_TYPE):
10445 * m/vax.h (NO_UNION_TYPE):
10446 * m/template.h (NO_UNION_TYPE):
10447 * m/sparc.h (NO_UNION_TYPE):
10448 * m/mips.h (NO_UNION_TYPE):
10449 * m/macppc.h (NO_UNION_TYPE):
10450 * m/m68k.h (NO_UNION_TYPE):
10451 * m/iris4d.h (NO_UNION_TYPE):
10452 * m/intel386.h (NO_UNION_TYPE):
10453 * m/ibms390x.h (NO_UNION_TYPE):
10454 * m/ibms390.h (NO_UNION_TYPE):
10455 * m/ibmrs6000.h (NO_UNION_TYPE):
10456 * m/ia64.h (NO_UNION_TYPE):
10457 * m/hp800.h (NO_UNION_TYPE):
10458 * m/arm.h (NO_UNION_TYPE):
10459 * m/amdx86-64.h (NO_UNION_TYPE):
10460 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10461 defining it the same.
10462
104632008-07-10 Chong Yidong <cyd@stupidchicken.com>
10464
10465 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10466
104672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10468
10469 * fileio.c:
50426a04 10470 * sysdep.c:
aac0c6e3
MR
10471 * systty.h:
10472 * m/ibmrs6000.h:
10473 * m/iris4d.h:
10474 * s/aix4-2.h:
10475 * s/freebsd.h:
10476 * s/gnu-linux.h:
10477 * s/hpux10-20.h:
10478 * s/hpux11.h:
10479 * s/netbsd.h:
10480 * s/sol2-3.h:
10481 * s/sol2-4.h:
10482 * s/sol2.h:
10483 * s/usg5-4.h:
10484 * s/vms.h: Remove references to unused variables.
10485
104862008-07-10 Andreas Schwab <schwab@suse.de>
10487
10488 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10489 pattern before matching the generic family.
10490
104912008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10492
10493 * unexec.c:
10494 * s/vms.h:
10495 * s/usg5-4-2.h:
10496 * s/sol2-5.h:
10497 * s/freebsd.h:
10498 * s/darwin.h: Remove dead code.
10499
10500 * m/template.h:
10501 * m/sparc.h:
10502 * m/mips.h:
10503 * m/m68k.h:
10504 * m/iris4d.h:
10505 * m/intel386.h:
10506 * m/ibms390x.h:
10507 * m/ibms390.h:
10508 * m/ia64.h:
10509 * m/hp800.h:
10510 * m/arm.h:
10511 * m/amdx86-64.h: Remove dead code and references to unused
10512 and compiler defined symbols.
10513
10514 * unexmips.c:
10515 * unexelf.c: Remove references to desupported systems.
10516
10517 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10518
10519 * m/powermac.h: Remove boilerplate comments.
10520 (NO_REMAP): Remove unused definition.
10521
10522 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10523 define them.
10524
105252008-07-10 Kenichi Handa <handa@m17n.org>
10526
10527 * xfont.c (xfont_open): Log the reason of failure.
10528
105292008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10530
10531 * fontset.c (fontset_get_font_group):
10532 * font.c (font_check_otf): Specify argument types.
10533
105342008-07-09 Kenichi Handa <handa@m17n.org>
10535
10536 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10537 non-ASCII char is found.
10538
10539 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10540 (reorder_font_vector): Change the arg preferred_family to font.
10541 Prefer the spec matching with font.
10542 (fontset_get_font_group): New function.
10543 (fontset_find_font): Change the format of an element of a realized
10544 fontset. Use fontset_get_font_group.
10545 (fontset_font): Try the current fontset, the default fontset, the
10546 fallbacks of the current fontset, and the fallbacks of the default
10547 fontset in this order.
10548 (face_for_char): Delete the shortcut to use the current font.
10549 (fontset_from_font): Don't set fonts for Latin in the fontset.
10550
10551 * font.h (font_make_object, font_match_p): Adjust prototypes.
10552
10553 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10554
10555 * font.c (font_make_object): New arg entity and pixelsize.
10556 (font_check_otf_features, font_check_otf): New functions.
10557 (font_match_p): Check :lang, :script, and :otf properties.
10558
10559 * xfont.c (xfont_open): Adjust it for the change of
10560 font_make_object.
10561 (xfont_text_extents): Fix initial setting of metrics.
10562
10563 * ftfont.c (struct ftfont_info): New member index, delete member
10564 fc_charset_idx. Make the member order compatible with struct
10565 xftfont_info.
10566 (fc_charset_table): Change charset names to registry names.
10567 (ftfont_pattern_entity): Delete the args registry and
10568 fc_charset_idx. Change the value of :font-entity property
10569 to (FONTNAME . INDEX). Always set :registry property to
10570 `iso10646-1'.
10571 (struct ftfont_cache_data): New struct.
10572 (ftfont_lookup_cache): New arg for_face.
10573 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10574 (ftfont_driver): Set the member otf_capability.
10575 (ftfont_get_charset): Adjust it for the change of
10576 fc_charset_table.
10577 (OTF_TAG_SYM): New macro.
10578 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10579 for the change of fc_charset_table.
10580 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10581 ftfont_pattern_entity. Add FC_INDEX to objset.
10582 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10583 and ftfont_pattern_entity.
10584 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10585 font_make_object, struct ftfont_info.
10586 (ftfont_has_char): Use ftfont_get_fc_charset.
10587 (ftfont_otf_features, ftfont_otf_capability): New functions.
10588 (ftfont_shape): Use ftfont_get_otf.
10589 (ftfont_text_extents): Fix initial setting of metrics.
10590
10591 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10592 member order compatible with struct ftfont_info.
10593 (xftfont_open): Add FC_CHARSET to the pattern. Set
10594 xftfont_info->ft_size. Don't unlock the face. Check BDF
10595 properties if appropriate.
10596 (xftfont_close): Unlock the face.
10597 (xftfont_anchor_point, xftfont_shape): Deleted.
10598 (syms_of_xftfont): Don't set members anchor_point and shape of
10599 xftfont_driver.
10600
10601 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10602 font_make_object.
10603
10604 * w32font.c (w32font_open): Adjust it for the change of
10605 font_make_object.
10606 (w32font_open_internal): Don't set properties of font_object here.
10607
106082008-07-08 Chong Yidong <cyd@stupidchicken.com>
10609
10610 * macfns.c (x_create_tip_frame):
10611 * w32fns.c (x_create_tip_frame):
10612 * xfns.c (x_create_tip_frame): Pass parameter argument to
10613 face-set-after-frame-default.
10614
10615 * xfaces.c (Finternal_merge_in_global_face): Save merged
10616 attributes for the default face back into the face vector.
10617
106182008-07-08 Andreas Schwab <schwab@suse.de>
10619
10620 * fontset.h: Declare fontset_from_font. Don't declare
10621 new_fontset_from_font and fontset_from_font_name.
10622 * xterm.c: Include "fontset.h".
10623 * Makefile.in (xterm.o): Update dependencies.
10624
106252008-07-08 Glenn Morris <rgm@gnu.org>
10626
10627 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10628 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10629
106302008-07-07 Chong Yidong <cyd@stupidchicken.com>
10631
10632 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10633 (x_set_frame_parameters): Don't bind it.
10634
106352008-07-07 Juanma Barranquero <lekktu@gmail.com>
10636
10637 * w32fns.c (map_w32_filename): Declare extern.
10638
106392008-07-07 Jason Rumney <jasonr@gnu.org>
10640
10641 * w32term.c (WS_EX_LAYERED): Define if not already.
10642
106432008-07-06 Chong Yidong <cyd@stupidchicken.com>
10644
10645 * xfaces.c (set_font_frame_param): Don't try to set the font
10646 parameter if it is still unspecified in the lface.
10647
106482008-07-05 Chong Yidong <cyd@stupidchicken.com>
10649
10650 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10651 face if it didn't already exist.
10652
10653 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10654
106552008-07-05 Andreas Schwab <schwab@suse.de>
10656
10657 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10658
106592008-07-05 Chong Yidong <cyd@stupidchicken.com>
10660
10661 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10662 word-wrapping.
10663 (IT_DISPLAYING_WHITESPACE): New macro.
10664 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10665 when word-wrapping. Simplify word-wrapping logic. Use correct
10666 pixel positions when saving copies of the iterator.
10667 (display_line): Use proper wrap point if the last character on a
10668 line was preceded by whitespace.
10669
106702008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10671
10672 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10673
106742008-07-04 Kenichi Handa <handa@m17n.org>
10675
10676 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10677
10678 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10679
106802008-07-02 Jason Rumney <jasonr@gnu.org>
10681
10682 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10683 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10684
10685 * xdisp.c (next_element_from_display_vector): Move assignment out
10686 of if statement.
10687
106882008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10689
10690 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10691
10692 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10693 (syms_of_fileio): Initialize and export them.
10694 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10695
10696 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10697 (Fsystem_move_file_to_trash): New function.
10698 (syms_of_w32fns): Export it to lisp.
10699
107002008-07-01 Jason Rumney <jasonr@gnu.org>
10701
10702 * w32font.c (w32font_text_extents): Don't count overhang as part
10703 of width.
10704
107052008-06-30 Miles Bader <miles@gnu.org>
10706
10707 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10708 Add `avoid_cursor_p' field.
10709
10710 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10711 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10712 (append_glyph, append_composite_glyph, produce_image_glyph)
10713 (append_stretch_glyph): Initialize avoid_cursor_p.
10714 (get_it_property): Rename from `get_line_height_property'.
10715 (x_produce_glyphs): Use get_it_property.
10716 (handle_line_prefix, push_display_prop): New functions.
10717 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10718 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10719 New variables.
10720 (syms_of_xdisp): Initialize them.
10721
107222008-06-30 Kenichi Handa <handa@m17n.org>
10723
10724 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10725 XftDefaultSubstitute (they are called in XftFontMatch).
10726 (xftfont_open): Fix args to ftfont_font_format.
10727
10728 * ftfont.c (fc_charset_table): New member lang.
10729 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10730 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10731 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10732 (ftfont_open): Fix args to ftfont_font_format.
10733 (ftfont_font_format): New arg filename.
10734
107352008-06-30 Chong Yidong <cyd@stupidchicken.com>
10736
10737 * xfaces.c (Finternal_merge_in_global_face): If default face was
10738 modified, realize it again. Update the font face attribute.
10739
107402008-06-29 Jason Rumney <jasonr@gnu.org>
10741
10742 * w32term.c (x_set_frame_alpha): Fix logic.
10743
107442008-06-29 Kenichi Handa <handa@m17n.org>
10745
10746 * fontset.c (Finternal_char_font): Return font-object instead of
10747 font-name.
10748
10749 * composite.c (get_composition_id): Fix the width calculation for TAB.
10750
107512008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10752
10753 * indent.c (Fvertical_motion): Properly handle float column arg.
10754
107552008-06-28 Jason Rumney <jasonr@gnu.org>
10756
10757 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10758 (pfnSetLayeredWindowAttributes): New function pointer.
10759 (w32_initialize): Initialize it when supported.
10760 (x_set_frame_alpha): New function.
10761
10762 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10763 (w32_frame_parm_handlers): Set alpha handler.
10764
10765 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10766
107672008-06-27 Jason Rumney <jasonr@gnu.org>
10768
10769 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10770 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10771 (w32_to_x_charset, x_to_w32_charset)
10772 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10773 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10774 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10775 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10776 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10777 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10778 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10779 (Qw32_charset_unicode): Remove.
10780 (syms_of_w32fns): Update for above changes.
10781
10782 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10783 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10784 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10785 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10786 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10787 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10788 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10789 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10790 (syms_of_w32font): Update for above changes.
10791
107922008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10793
10794 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10795 removed #if.
10796 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10797
107982008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 10799 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
10800
10801 * makefile.w32-in (LOCAL_FLAGS):
10802 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10803
10804 * sysdep.c (_spawnlp, _getpid):
10805 Declare with explicit _cdecl instead of _CRTAPI1.
10806
10807 * editfns.c (Fget_internal_run_time):
10808 Check for WINDOWSNT with #ifdef, not #if.
10809
108102008-06-26 Jason Rumney <jasonr@gnu.org>
10811
10812 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10813
10814 * w32term.c (x_draw_glyph_string_foreground)
10815 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10816 Use FONT_HANDLE macro.
10817 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10818
10819 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10820 (uniscribe_encode_char): Use FONT_HANDLE macro.
10821
10822 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10823 (w32font_text_extents): Use precast w32_font.
10824 (w32font_close): Free cached metrics.
10825 (w32font_open_internal): Allocate space for name on stack.
10826
108272008-06-26 Chong Yidong <cyd@stupidchicken.com>
10828
10829 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10830
108312008-06-26 Jason Rumney <jasonr@gnu.org>
10832
10833 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10834 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10835
108362008-06-26 Juanma Barranquero <lekktu@gmail.com>
10837
10838 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10839
108402008-06-26 Jason Rumney <jasonr@gnu.org>
10841
10842 * w32bdf.c, w32bdf.h: Remove obsolete files.
10843
10844 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10845
10846 * w32gui.h: Don't include w32bdf.h.
10847 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10848 Remove obsolete font support.
10849
10850 * w32font.h (struct w32font_info): Remove compat_w32_font.
10851 Add hfont member.
10852 (FONT_COMPAT): Remove obsolete macro.
10853
10854 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10855 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10856 (w32font_open_internal): Remove compat code. Set new hfont member.
10857 (Fx_select_font): Use new hfont member.
10858
10859 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10860 (uniscribe_encode_char): Use new hfont member.
10861
10862 * w32term.c (x_draw_glyph_string_foreground)
10863 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10864 (x_draw_glyph_string): Use metrics in w32font_info.
10865
108662008-06-26 Kenichi Handa <handa@m17n.org>
10867
10868 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10869
108702008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10871
10872 * unexnext.c:
10873 * m/ews4800.h:
10874 * m/hp9000s300.h:
10875 * m/ibm370aix.h:
10876 * m/mips-siemens.h:
10877 * m/ncr386.h:
10878 * m/next.h:
10879 * m/pmax.h:
10880 * m/powerpcle.h:
10881 * m/tandem-s2.h:
10882 * s/386bsd.h:
10883 * s/bsd386.h:
10884 * s/bsd4-1.h:
10885 * s/bsd4-2.h:
10886 * s/bsdos2-1.h:
10887 * s/bsdos2.h:
10888 * s/bsdos3.h:
10889 * s/bsdos4.h:
10890 * s/nextstep.h:
10891 * s/ultrix4-3.h:
10892 * s/usg5-0.h:
10893 * s/usg5-2-2.h:
10894 * s/usg5-2.h:
10895 * s/usg5-4-3.h:
10896 * s/ux4800.h:
10897 * s/uxpds.h:
10898 * s/uxpv.h: Remove support for obsolete systems.
10899 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10900 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10901 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10902 Remove, insert contents in s/aix4-2.h.
10903 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10904 * s/bsd4-3.h: Rename to ...
10905 * s/bsd-common.h: ... this.
10906 * data.c:
10907 * doc.c:
10908 * ecrt0.c:
10909 * emacs.c:
10910 * fileio.c:
10911 * floatfns.c:
10912 * keyboard.c:
10913 * mem-limits.h:
10914 * print.c:
10915 * process.c:
10916 * sysdep.c:
10917 * syssignal.h:
10918 * systty.h:
10919 * syswait.h:
10920 * term.c:
10921 * unexec.c:
10922 * unexelf.c:
10923 * unexhp9k800.c:
10924 * m/hp800.h:
10925 * m/ibmrs6000.h:
10926 * m/mips.h:
10927 * m/vax.h:
10928 * s/darwin.h:
10929 * s/freebsd.h:
10930 * s/gnu.h:
10931 * s/ms-w32.h:
10932 * s/msdos.h:
10933 * s/netbsd.h:
10934 * s/template.h: Remove references to obsolete variables.
10935
10936 * Makefile.in: Add dependencies for all unexec files.
10937 (admindir): Remove unused variable.
10938 (UNEXEC_SRC): Remove references.
10939
109402008-06-25 Chong Yidong <cyd@stupidchicken.com>
10941
10942 * xfns.c (x_default_font_parameter): If Xft is available, first
10943 try Monospace-12 for the default font.
10944
109452008-06-25 Jason Rumney <jasonr@gnu.org>
10946
10947 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10948
109492008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10950
10951 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10952
10953 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10954
109552008-06-25 Juanma Barranquero <lekktu@gmail.com>
10956
10957 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10958 <scroll-conservatively>: Fix typo in docstring.
10959
10960 * xselect.c (Fx_send_client_event): Doc fix.
10961
109622008-06-25 Kenichi Handa <handa@m17n.org>
10963
10964 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10965
10966 * font.c (font_parse_fcname): Remove unused variables.
10967 (font_sort_entites): Delete the arg SPEC. Caller changed.
10968 Fix for the case of ! best_only.
10969 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10970
10971 * lisp.h (Fstring_to_unibyte): EXFUN it.
10972
10973 * character.h (str_to_unibyte): Extern it.
10974
10975 * character.c (str_to_unibyte): New function.
10976
10977 * fns.c (Fstring_to_unibyte): New function.
10978 (syms_of_fns): Defsubr it.
10979
109802008-06-24 Kenichi Handa <handa@m17n.org>
10981
10982 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10983 DPI too.
10984 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10985
109862008-06-24 Andreas Schwab <schwab@suse.de>
10987
10988 * Makefile.in (${lispsource}loaddefs.el): Rename from
10989 ../lisp/loaddefs.el.
10990 (bootstrap-clean): Do what distclean does but don't remove
10991 Makefile.
10992 (distclean): Depend on bootstrap-clean and remove Makefile.
10993
109942008-06-24 Chong Yidong <cyd@stupidchicken.com>
10995
10996 * buffer.h (struct buffer): New member word_wrap.
10997
10998 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10999 word-wrap.
11000 (init_buffer_once): Initialize them.
11001
11002 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11003 line_wrap enum possessing three possible values.
11004
11005 * termopts.h: Replace truncate_partial_width_windows with
11006 Vtruncate_partial_width_windows.
11007
11008 * dispnew.c (direct_output_for_insert): Avoid direct output when
11009 inserting a space with word wrap on.
11010
11011 * indent.c (compute_motion): Obey integer values of
11012 truncate-partial-width-windows.
11013
11014 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11015 replacing truncate_partial_width_windows.
11016 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11017 truncate only if the window width is below that integer.
11018 (start_display, resize_mini_window, produce_stretch_glyph)
11019 (display_string, move_it_in_display_line_to): Use line_wrap.
11020 (back_to_previous_visible_line_start, reseat_1): Reset
11021 string_from_display_prop_p.
11022 (display_line): Extend default face to end of line when wrapping.
11023
110242008-06-24 Kim F. Storm <storm@cua.dk>
11025
11026 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11027 to wrap continued lines at word boundaries.
11028
110292008-06-24 Jason Rumney <jasonr@gnu.org>
11030
11031 * font.c (Ffont_face_attributes): Multiply pixel size before point
11032 conversion to avoid multiplying rounding error.
11033
110342008-06-23 Jason Rumney <jasonr@gnu.org>
11035
11036 * w32term.c (x_draw_glyph_string_background)
11037 (x_draw_glyph_string): Remove old bdf font code.
11038
11039 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11040
110412008-06-22 Kenichi Handa <handa@m17n.org>
11042
11043 * font.c (font_find_for_lface): Try the adstyle specified in
11044 the property of LFACE_FONT of LFACE (if any).
11045
110462008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11047 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11048
11049 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11050
110512008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11052
11053 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11054 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11055 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11056 (witness-emacs): Remove.
11057 (lisp, shortlisp): Move loaddefs.el earlier.
11058 (mostlyclean): Forget about witness-emacs.
11059
110602008-06-22 Glenn Morris <rgm@gnu.org>
11061
11062 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11063 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11064
110652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11066
11067 * Makefile.in (PRECOMP): Remove.
11068 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11069 (witness-emacs): Run `compile-first'.
11070 (.el.elc): Use the new compile-onefile target.
11071
110722008-06-21 Kenichi Handa <handa@m17n.org>
11073
11074 * xftfont.c (xftfont_open): Handle QCembolden only when
11075 FC_EMBOLDEN is defined.
11076
110772008-06-21 Andreas Schwab <schwab@suse.de>
11078
11079 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11080 (.el.elc): Likewise.
11081
110822008-06-21 Miles Bader <miles@gnu.org>
11083
11084 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11085 build dir, not the lisp source dir.
11086
110872008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11088
11089 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11090 (bootstrapclean): Remove.
11091 (.el.elc): New rule.
11092 (PRECOMP): New var.
11093 (../lisp/subdirs.el): Remove.
11094 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11095 (witness-emacs): New target.
11096 (mostlyclean): Remove witness-emacs as well.
11097 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11098 Add witness-emacs dependency.
11099
111002008-06-20 Chong Yidong <cyd@stupidchicken.com>
11101
11102 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11103 defined by the font.
11104
111052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11106
11107 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11108 (bootstrap-clean): New target that keeps TAGS around.
11109 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11110 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11111
111122008-06-20 Jason Rumney <jasonr@gnu.org>
11113
11114 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11115 Remove obsolete font code.
11116
11117 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11118 to determine language support.
11119
111202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11121
11122 * sysdep.c (cfsetspeed): New fun extracted from the code.
11123 (cfmakeraw): Move before first use.
11124
111252008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11126
11127 * sysdep.c (cfmakeraw): Provide fallback implementation.
11128 (serial_configure): Provide fallback implementation of cfsetspeed.
11129
111302008-06-20 Kenichi Handa <handa@m17n.org>
11131
11132 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11133 the pattern.
11134
11135 * fontset.c (fontset_from_font): Copy font_spec before changing
11136 the elements.
11137
11138 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11139
111402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11141
11142 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11143 for explicit `font' parameters.
11144
11145 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11146
111472008-06-19 Kenichi Handa <handa@m17n.org>
11148
11149 * frame.c: Include <ctype.h>.
11150 (x_set_font_backend): Allow spacing characters in the X resource
11151 for FontBackend.
11152
111532008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11154
11155 * w32fns.c, xfns.c (Qfont_param): New var.
11156 (syms_of_w32fns): Initialize it.
11157 (x_default_font_parameter): Record explicit `font' into
11158 `font-parameter'.
11159
111602008-06-18 Kenichi Handa <handa@m17n.org>
11161
11162 * font.c (font_parse_xlfd): Fix previous change.
11163 (font_parse_fcname): Don't use :fc-unknown-spec.
11164 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11165 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11166 (font_add_log): Prepend the driver name to the resulting fonts.
11167
11168 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11169 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11170 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11171
11172 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11173 (QCembolden): New variables.
11174 (syms_of_xftfont): DEFSYM them.
11175 (xftfont_open): Call XftFontMatch. Don't trust the result of
11176 XftTextExtents8 if the pixel_size is less than 5.
11177
111782008-06-18 Andreas Schwab <schwab@suse.de>
11179
11180 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11181 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11182
111832008-06-18 Jason Rumney <jasonr@gnu.org>
11184
11185 * w32font.c (w32font_list, w32font_match): Add logging.
11186
11187 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11188
111892008-06-17 Chong Yidong <cyd@stupidchicken.com>
11190
11191 * font.c (font_parse_fcname): Store divider characters for
11192 unknown-spec list. For known key symbols, intern using correct
11193 symbol name.
11194
111952008-06-17 Kenichi Handa <handa@m17n.org>
11196
11197 * xfaces.c (realize_default_face): If the frame is not on window
11198 system, set the fontset of face to nil.
11199
112002008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11201
11202 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11203
112042008-06-16 Juanma Barranquero <lekktu@gmail.com>
11205
11206 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11207 (build_font_name_from_vector): Delete externs.
11208
11209 * xfaces.c (struct font_name): Don't declare.
11210
112112008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11212
11213 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11214
112152008-06-16 Chong Yidong <cyd@stupidchicken.com>
11216
11217 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11218
112192008-06-16 Juanma Barranquero <lekktu@gmail.com>
11220
11221 * font.c (Ffont_spec): Fix usage in docstring.
11222 (Ffont_face_attributes): Doc fix.
11223
112242008-06-16 Andreas Schwab <schwab@suse.de>
11225
11226 * font.c (Ffont_face_attributes): Fix definition.
11227
112282008-06-16 Jason Rumney <jasonr@gnu.org>
11229
11230 * font.h (font_style_symbolic_from_value): Remove.
11231
11232 * font.c (font_style_symbolic_from_value): Remove.
11233 (font_style_symbolic): Revert to pre 2008-06-13 version.
11234
11235 * w32font.c (w32_to_fc_weight): New function.
11236 (w32font_full_name, logfont_to_fcname): Use it.
11237
112382008-06-16 Kenichi Handa <handa@m17n.org>
11239
11240 * font.c (font_check_object): Delete it.
11241 (font_clear_cache): Check if a font-object is alive.
11242 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11243 font-object to nil.
11244 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11245 (font_at): Don't call font_check_object.
11246 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11247
112482008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11249
11250 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11251
112522008-06-16 Chong Yidong <cyd@stupidchicken.com>
11253
11254 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11255
112562008-06-15 Chong Yidong <cyd@stupidchicken.com>
11257
11258 * font.c (font_parse_fcname): Only one decimal point.
11259 (font_unparse_fcname): Handle data in family and foundry indices
11260 as symbols, not strings.
11261 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11262
11263 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11264
11265 * font.h (font_unparse_gtkname): Add prototype.
11266
112672008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11268
11269 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11270
112712008-06-15 Andreas Schwab <schwab@suse.de>
11272
11273 * font.c (font_update_drivers): Fix crash when no drivers match.
11274
112752008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11276
11277 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11278 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11279
112802008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11281
11282 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11283
112842008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11285
11286 * process.c (Fserial_process_configure, Fprocess_send_eof):
11287 Use EQ to compare Lisp_Objects.
11288
112892008-06-13 Jason Rumney <jasonr@gnu.org>
11290
11291 * w32fns.c (Fw32_select_font): Remove old font API function.
11292
11293 * w32font.c (logfont_to_fcname): New function.
11294 (Fx_select_font): New font dialog function compatible with
11295 GTK/fontconfig version.
11296
11297 * font.c (font_style_symbolic_from_value): New function.
11298 (font_style_symbolic): Use it.
11299
11300 * font.h (font_style_symbolic_from_value): Declare new function.
11301
113022008-06-13 Juanma Barranquero <lekktu@gmail.com>
11303
11304 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11305 <font-width-table>: Fix typos in docstrings.
11306
113072008-06-13 Daniel Engeler <engeler@gmail.com>
11308
11309 These changes add serial port access.
11310 * process.c: Add HAVE_SERIAL.
11311 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11312 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11313 (list_processes_1, select_wrapper, Fstop_process)
11314 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11315 (status_notify): Modify to handle serial processes.
11316 [HAVE_SERIAL] (Fserial_process_configure)
11317 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11318 New functions.
11319 * process.h (struct Lisp_Process): Add `type'.
11320 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11321 New functions.
11322 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11323 serial ports.
b71ac3dd 11324 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11325 * w32.h: Add FILE_SERIAL.
11326 (struct _child_process): Add ovl_read, ovl_write.
11327
113282008-06-13 Kenichi Handa <handa@m17n.org>
11329
11330 * dispextern.h (enum lface_attribute_index): New member
11331 LFACE_FOUNDRY_INDEX.
11332
11333 * font.c (font_score): Delete arg alternate_families. Check only
11334 weight, slant, width, and size. Ignore the difference of alias
11335 style symbols.
11336 (font_sort_entites): Adjust for the above change. Reflect the
11337 order of font-driver to scores.
11338 (font_list_entities): Don't check alternate_familes here.
11339 (font_clear_prop): Handle foundry.
11340 (font_update_lface): Don't parse "foundry-family" form here.
11341 Handle FONT_FOUNDRY_INDEX.
11342 (font_find_for_lface): Likewise. Handle alternate families here.
11343 If registry is nil, try iso8859-1 and ascii-0.
11344 (font_open_for_lface): Pay attention to size in ENTITY.
11345 (font_open_by_name): Simplify by calling font_load_for_lface.
11346 (free_font_driver_list): Delete it.
11347 (font_update_drivers): Preserve the order of backends.
11348 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11349 of font_score and font_sort_entites.
11350 (font_update_sort_order): Likewise.
11351
11352 * xfaces.c (LFACE_FOUNDRY): New macro.
11353 (check_lface_attrs): Check foundry.
11354 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11355 (merge_face_vectors): Check foundry.
11356 (merge_face_ref): Likewise.
11357 (Finternal_set_lisp_face_attribute): Likewise.
11358 (x_update_menu_appearance): Likewise.
11359 (Finternal_get_lisp_face_attribute): Likewise.
11360 (lface_hash): Likewise.
11361 (lface_same_font_attributes_p): Likewise.
11362 (x_supports_face_attributes_p): Likewise.
11363 (tty_supports_face_attributes_p): Likewise.
11364 (Finternal_set_alternative_font_family_alist): Intern strings.
11365 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11366 (realize_default_face): Set LFACE_FOUNDRY (lface).
11367
11368 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11369 font-driver at first.
11370
11371 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11372
113732008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11374
11375 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11376
113772008-06-12 Jim Meyering <meyering@redhat.com>
11378
11379 Make unexec_free handle NULL the same way free does.
11380 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11381
113822008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11383
11384 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11385 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11386 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11387 (WEAK_ALIAS): Simplify.
11388 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11389 when searching a unibyte buffer.
11390
113912008-06-12 Chong Yidong <cyd@stupidchicken.com>
11392
11393 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11394
113952008-06-12 Juanma Barranquero <lekktu@gmail.com>
11396
11397 * w32font.c: Include ctype.h.
11398
113992008-06-11 Jason Rumney <jasonr@gnu.org>
11400
11401 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11402 misreported as space.
11403 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11404 as aliases for registry iso10646-1.
11405
114062008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11407
11408 * buffer.c (clone_per_buffer_values): Skip `name'.
11409
114102008-06-11 Chong Yidong <cyd@stupidchicken.com>
11411
11412 * font.c (font_parse_fcname): Fix last change; accept decimal
11413 points in font size.
11414
114152008-06-10 Jason Rumney <jasonr@gnu.org>
11416
11417 * w32uniscribe.c (add_opentype_font_name_to_list):
11418 Skip non unicode fonts.
11419
114202008-06-10 Chong Yidong <cyd@stupidchicken.com>
11421
11422 * xfns.c (Fx_font_dialog): New function.
11423
11424 * gtkutil.c (xg_dialog_response_cb): Rename from
11425 xg_file_response_callback.
11426 (pop_down_dialog): Rename from pop_down_file_dialog.
11427 (xg_get_file_name): Callers changed.
11428 (xg_get_font_name): New function.
11429
11430 * gtkutil.h (xg_get_font_name): Insert prototype.
11431
114322008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11433
11434 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11435 x_underline_minimum_display_offset.
11436 (syms_of_xdisp): Declare it here rather than in xterm.c.
11437 * dispextern.h (underline_minimum_offset): Declare it.
11438 * w32term.c (x_draw_glyph_string): Use it.
11439 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11440 (syms_of_xterm): Don't declare it any more.
11441 (x_draw_glyph_string): Adjust to the new name.
11442
8719abec 114432008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11444
11445 * xterm.c (x_underline_minimum_display_offset): New var.
11446 (x_draw_glyph_string): Use it.
11447 (syms_of_xterm): Declare it.
11448
114492008-06-10 Chong Yidong <cyd@stupidchicken.com>
11450
11451 * font.c (font_parse_fcname): Accept GTK-style font names too.
11452
114532008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11454
11455 * dired.c (file_name_completion): Don't return t if the match is exact
11456 but with different capitalization.
11457 * minibuf.c (Ftry_completion): Simplify.
11458
11459 * window.c (Vwindow_point_insertion_type): New var.
11460 (set_window_buffer): Use it.
11461 (syms_of_window): Init and export it to Lisp.
11462
114632008-06-10 Kenichi Handa <handa@m17n.org>
11464
11465 * font.h (font_intern_prop): Prototype adjusted.
11466
11467 * font.c (font_intern_prop): New arg force_symbol.
11468 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11469 Adjust for the change of font_intern_prop.
11470
11471 * ftfont.c (ftfont_pattern_entity):
11472 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11473 (w32_registry):
11474 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11475 the change of font_intern_prop.
11476
114772008-06-09 Juanma Barranquero <lekktu@gmail.com>
11478
11479 * w32menu.c (digest_single_submenu): Declare extern.
11480
114812008-06-09 Jason Rumney <jasonr@gnu.org>
11482
11483 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11484
11485 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11486 (parse_single_submenu): Remove.
11487 (digest_single_submenu): Remove.
11488 (syms_of_w32menu): Don't initialise variables that have moved
11489 to menu.c.
11490 (set_frame_menubar): Sync with version in xmenu.c.
11491 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11492
11493 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11494 Make static again.
11495
114962008-06-09 Jason Rumney <jasonr@gnu.org>
11497
11498 Changes to w32 files related to the move of common menu code
11499 to menu.c on 2008-06-08 by Chong Yidong.
11500
11501 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11502 defs to w32gui.h.
11503 (single_keymap_panes, push_menu_item, push_menu_pane):
11504 Make globally visible.
11505
11506 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11507 (local_free, malloc_widget_value, free_widget_value)
11508 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11509 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11510 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11511 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11512 (menu_items, menu_items_allocated, menu_items_used)
11513 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11514 (init_menu_items, finish_menu_items, discard_menu_items)
11515 (grow_menu_items, push_submenu_start, push_submenu_end)
11516 (push_left_right_boundary, push_menu_pane, push_menu_item)
11517 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11518 (free_menubar_widget_tree_value, parse_single_submenu)
11519 (update_submenu_strings): Remove functions.
11520 (xmalloc_widget_value): Remove and declare extern.
11521
11522 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11523 (OBJ1): Build it.
11524
11525 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11526 (local_heap, local_alloc, local_free, malloc_widget_value)
11527 (free_widget_value): Define here.
11528
115292008-06-09 Kenichi Handa <handa@m17n.org>
11530
11531 * font.h (Qascii_0): Extern it.
11532
11533 * font.c (Qascii_0): New variable.
11534 (syms_of_font): DEFSYM it.
11535 (font_open_by_name): If the registry "iso8859-1" fails, try also
11536 "ascii-0".
11537
11538 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11539
115402008-06-08 Kenichi Handa <handa@m17n.org>
11541
11542 * .gdbinit (xfont): New command.
11543
115442008-06-08 Andreas Schwab <schwab@suse.de>
11545
11546 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11547 * Makefile.in (menu.o): Update dependencies.
11548
11549 * Makefile.in (obj): Always add menu.o.
11550 * emacs.c (main): Always call syms_of_menu.
11551 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11552
115532008-06-08 Chong Yidong <cyd@stupidchicken.com>
11554
11555 * Makefile.in: Compile menu.c.
11556
11557 * lisp.h: Declare syms_of_menu.
11558
11559 * emacs.c (main): Call syms_of_menu.
11560
11561 * keyboard.h: Relocate platform-independent menu definitions from
11562 xmenu.c.
11563
11564 * menu.c: New file. Relocate platform-independent menu
11565 definitions from xmenu.c. Suggested by Adrian Robert.
11566
11567 * xmenu.c: Remove platform-independent menu definitions.
11568 (menu_items menu_items_inuse, menu_items_allocated)
11569 (menu_items_used, menu_items_n_panes)
11570 (menu_items_submenu_depth): Move to keyboard.h.
11571 (init_menu_items, finish_menu_items, unuse_menu_items)
11572 (discard_menu_items, restore_menu_items, save_menu_items)
11573 (grow_menu_items, push_submenu_start, push_submenu_end)
11574 (push_left_right_boundary, push_menu_pane, push_menu_item)
11575 (keymap_panes, single_keymap_panes, single_menu_item)
11576 (list_of_panes, list_of_items, find_and_call_menu_selection)
11577 (xmalloc_widget_value, free_menubar_widget_value_tree)
11578 (parse_single_submenu, digest_single_submenu)
11579 (update_submenu_strings): Move to menu.c.
11580
115812008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11582
11583 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11584
115852008-06-06 Miles Bader <miles@gnu.org>
11586
11587 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11588 face, not frame default.
11589
115902008-06-05 Martin Rudalics <rudalics@gmx.at>
11591
11592 * window.c (pop_up_windows, pop_up_frames)
11593 (display_buffer_reuse_frames, Vpop_up_frame_function)
11594 (Vdisplay_buffer_function, Veven_window_heights)
11595 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11596 (Vspecial_display_function, Vsame_window_buffer_names)
11597 (Vsame_window_regexps, split_height_threshold)
11598 (Vsplit_window_preferred_function): Move those vars to window.el.
11599 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11600 (Fdisplay_buffer): Move those functions to window.el.
11601 (syms_of_window): Remove corresponding declarations.
11602 (display_buffer): New function.
11603 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11604 * dispnew.c (Flast_nonminibuf_frame): New function.
11605 * buffer.c (Fpop_to_buffer): Move to window.el.
11606
116072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11608
11609 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11610
116112008-06-05 Kenichi Handa <handa@m17n.org>
11612
11613 * coding.c (detect_coding): Fix previous change.
11614 (detect_coding_system): Likewise.
11615
116162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11617
11618 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11619
11620 * keymap.c (Vminibuffer_local_filename_must_match_map):
11621 Rename from Vminibuffer_local_must_match_filename_map.
11622 (syms_of_keymap):
11623 * minibuf.c (Fcompleting_read): Adjust accordingly.
11624 * commands.h: Rename declaration as well.
11625
116262008-06-05 Kenichi Handa <handa@m17n.org>
11627
11628 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11629 family name.
11630 (Ffont_put): Likewise.
11631
11632 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11633 current font-spec.
11634
11635 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11636 is unspecified.
11637
11638 * xfaces.c (realize_x_face): If the font-related face attributes
11639 are the same as those of default face, realize a new fontset from
11640 default->fontset.
11641 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11642
116432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11644
11645 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11646 (move_it_in_display_line): New wrapper.
11647
11648 * window.c (window_scroll_pixel_based_preserve_x)
11649 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11650 (window_scroll_pixel_based, window_scroll_line_based):
11651 Use them to preserve column positions.
11652 (syms_of_window): Initialize them.
11653
11654 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11655 (HPOS . VPOS) pair.
11656
11657 * dispextern.h (move_it_in_display_line): Declare.
11658
116592008-06-05 Juanma Barranquero <lekktu@gmail.com>
11660
11661 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11662 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11663 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11664
116652008-06-04 Juanma Barranquero <lekktu@gmail.com>
11666
11667 * window.c (Fset_window_parameter): Doc fix.
11668 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11669
116702008-06-04 Joakim Verona <joakim@verona.se>
11671
11672 * window.h (struct window): Add new member window_parameters.
11673
11674 * window.c (Fwindow_parameters, Fwindow_parameter)
11675 (Fset_window_parameter): New defuns.
11676 (syms_of_window): Defsubr the new defuns.
11677 (make_window): Initialize window_parameters to nil.
11678
116792008-06-04 John Paul Wallington <jpw@pobox.com>
11680
11681 * eval.c (Fdefmacro): Doc fix.
11682
116832008-06-04 Kenichi Handa <handa@m17n.org>
11684
11685 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11686 Be sure to call setup_coding_system when we find a proper coding system.
11687 (detect_coding_system): Fix handling of coding->head_ascii.
11688
116892008-06-03 Andreas Schwab <schwab@suse.de>
11690
11691 * font.c (font_prop_validate_spacing): Fix last change.
11692
116932008-06-03 Kenichi Handa <handa@m17n.org>
11694
11695 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11696 (font_parse_fcname): Fix handling of unknown key.
11697
11698 * xfont.c (xfont_list): Try an alias.
11699
11700 * charset.c (char_charset): Return NULL if the arg charset_list is
11701 specified and C doesn't belong to any of them.
11702
117032008-06-02 Chip Coldwell <coldwell@redhat.com>
11704
11705 * font.c (font_pixel_size): Don't take cdr of an integer.
11706
117072008-06-02 Jim Meyering <meyering@redhat.com>
11708
11709 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11710 * alloc.c (xfree): Return right away for a NULL arg.
11711 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11712 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11713 * mac.c (create_apple_event_from_event_ref): Likewise.
11714 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11715 Likewise.
11716 * doprnt.c (doprnt1): Likewise.
11717 * frame.c (frame): Likewise.
11718 * keyboard.c (wipe_kboard): Likewise.
11719 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11720 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11721 * term.c (tty_default_color_capabilities, maybe_fatal)
11722 (delete_tty): Likewise.
11723 * w16select.c (string): Likewise.
11724 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11725 * w32bdf.c (w32_free_bdf_font): Likewise.
11726 * w32fns.c (w32_unload_font): Likewise.
11727 * w32font.c (w32font_close): Likewise.
11728 * window.c (size_window): Likewise.
11729 * xselect.c (receive_incremental_selection): Likewise.
11730 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11731 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11732 * w32.c (stat): Likewise.
11733
11734 Remove useless if-before-free tests.
11735 * editfns.c (Fset_time_zone_rule): Likewise.
11736 * lread.c (nosuffix): Likewise.
11737 * ralloc.c (get_bloc): Likewise.
11738 * regex.c (reg_free): Likewise.
11739 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11740 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11741 * xsmfns.c (smc_save_yourself_CB): Likewise.
11742
117432008-06-02 Kenichi Handa <handa@m17n.org>
11744
11745 * font.c (font_find_for_lface): Handle float font size.
11746 (font_open_for_lface): Likewise.
11747
11748 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11749 comparing the properties.
11750
117512008-06-01 Jason Rumney <jasonr@gnu.org>
11752
11753 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11754 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11755 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11756 Don't add empty script list.
11757 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11758
117592008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11760
11761 * Makefile.in (dot, dotdot): Remove, update users.
11762 ".." has been used elsewhere in the file for a long time.
11763 (LIBXT_STATIC): Remove conditional based on unused variable.
11764
117652008-06-01 Miles Bader <miles@gnu.org>
11766
11767 * xfaces.c (Vface_remapping_alist): New variable.
11768 (syms_of_xfaces): Initialize it.
11769 (enum named_merge_point_kind): New type.
11770 (struct named_merge_point): Add `named_merge_point_kind' field.
11771 (push_named_merge_point): Make cycle detection respect different
11772 named-merge-point kinds.
11773 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11774 Remove face-name alias resolution.
11775 (lface_from_face_name): New definition using
11776 `lface_from_face_name_no_resolve'.
11777 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11778 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11779 (get_lface_attributes): New definition that layers face-remapping on
11780 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11781 (lookup_basic_face): New function.
11782 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11783 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11784 `get_lface_attributes'.
11785 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11786 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11787 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11788
11789 * xdisp.c (init_iterator): Pass base_face_id through
11790 `lookup_basic_face' when we actually use it as a face-id.
11791 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11792 DEFAULT_FACE_ID.
11793
11794 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11795 lookup the initial face-id.
11796
11797 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11798
117992008-06-01 Juanma Barranquero <lekktu@gmail.com>
11800
11801 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11802 (Fremove_text_properties): Fix typos in docstrings.
11803
118042008-05-31 Kenichi Handa <handa@m17n.org>
11805
11806 * font.c (font_list_entities): Fix the car part of data to be
11807 stored in the cache.
11808
11809 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11810
118112008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11812
11813 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11814 Add a `test' argument so another predicate than `equal' can be used.
11815 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11816 (map_char_table): Remove unused vars `c' and `i'.
11817 * lisp.h (Foptimize_char_table): Adjust declaration.
11818 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11819
118202008-05-30 Kenichi Handa <handa@m17n.org>
11821
11822 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11823 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11824 defined.
11825
118262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11827
11828 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11829 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11830 frame-local settings for the same variable.
11831
118322008-05-30 Kenichi Handa <handa@m17n.org>
11833
11834 * fontset.c (Ffont_info): Move to font.c.
11835 (syms_of_fontset): Delete defsubr of Sfont_info.
11836
11837 * font.c (font_style_to_value, font_score): Delete casting of the
11838 args to xstcasecmp.
11839 (register_font_driver): Increment num_font_drivers only when
11840 registering the driver globally.
11841 (Ffont_info): Move from fontset.c. Handle a font object too.
11842 (syms_of_font): Defsubr Sfont_info.
11843
118442008-05-29 Kenichi Handa <handa@m17n.org>
11845
11846 * coding.h (enum define_coding_utf8_arg_index): New enum.
11847 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11848 coding_attr_utf_bom.
11849 (enum utf_bom_type): Rename from utf_16_bom_type.
11850 (struct utf_16_spec): Adjust for the above change.
11851 (struct coding_system): Add utf_8_bom in `spec' union.
11852
11853 * coding.c (CODING_UTF_8_BOM): New macro.
11854 (enum coding_category): Delete coding_category_utf_8, add
11855 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11856 coding_category_utf_8_sig.
11857 (CATEGORY_MASK_UTF_8): Delete it.
11858 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11859 (CATEGORY_MASK_UTF_8_SIG): New macros.
11860 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11861 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11862 CATEGORY_MASK_UTF_8_SIG.
11863 (CATEGORY_MASK_UTF_8): New macro.
11864 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11865 (detect_coding_utf_8): Check BOM.
11866 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11867 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11868 (encode_coding_utf_16): Likewise.
11869 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11870 (detect_coding, detect_coding_system): Handle utf-8-auto.
11871 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11872 (syms_of_coding): Fix setting up of Vcoding_category_table.
11873
118742008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11875
11876 * process.c (Faccept_process_output): If `millisec' is non-nil,
11877 `seconds' default to 0.
11878 (wait_reading_process_output): Also return non-nil if we read output
11879 from a non-running process.
11880
118812008-05-29 Jason Rumney <jasonr@gnu.org>
11882
11883 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11884 `raster' specified.
11885 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11886 in the uniscribe backend, but disallow any font that has no
11887 unicode subrange support.
11888
118892008-05-29 Juanma Barranquero <lekktu@gmail.com>
11890
11891 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11892 Fix typos in docstrings.
11893
118942008-05-29 Kenichi Handa <handa@m17n.org>
11895
11896 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11897 (Fx_family_fonts): Set frame correctly.
11898
118992008-05-28 Jason Rumney <jasonr@gnu.org>
11900
11901 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11902
119032008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11904
11905 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11906 calling build_annotations.
11907
119082008-05-28 Juanma Barranquero <lekktu@gmail.com>
11909
11910 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11911 (Fencode_coding_string):
11912 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11913 <latin-extra-code-table>: Fix typos in docstrings.
11914 (syms_of_coding) <coding-system-alist>: Doc fix.
11915 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11916
119172008-05-28 Kenichi Handa <handa@m17n.org>
11918
11919 * fontset.c (Ffont_info): Don't call font_close_object.
11920
11921 * font.c (font_parse_family_registry): Use Ffont_put to validate
11922 foundry and family.
11923 (font_delete_unmatched): Don't check spacing.
11924 (font_list_entities): Add spacing to the spec to list fonts.
11925
11926 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11927 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11928
11929 * coding.c (encode_coding_raw_text): Fix previous change.
11930 (encode_coding_object): When the dst_object is a buffer and is
11931 different from src_object, move gap to PT.
11932
119332008-05-27 Chong Yidong <cyd@stupidchicken.com>
11934
11935 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11936
119372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11938
11939 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11940 all branches. Compute it differently.
11941
11942 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11943
119442008-05-27 Juanma Barranquero <lekktu@gmail.com>
11945
11946 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11947 into "else if () ... else ...".
11948
119492008-05-27 Jason Rumney <jasonr@gnu.org>
11950
11951 * w32font.c (w32font_open_internal): Determine if glyph indices
11952 are likely to work here.
11953
119542008-05-27 Chong Yidong <cyd@stupidchicken.com>
11955
11956 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11957 draw overlap glyphs with appropriate highlighting.
11958
119592008-05-27 Kenichi Handa <handa@m17n.org>
11960
11961 * xfont.c (xfont_open): Fix calculation of font->average_width.
11962
119632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11964
11965 * casefiddle.c (casify_object): Try to guess better whether the
11966 argument is a byte or a char.
11967
119682008-05-26 Andreas Schwab <schwab@suse.de>
11969
11970 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11971 Always send multiples of format size.
11972
11973 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11974
119752008-05-26 Jason Rumney <jasonr@gnu.org>
11976
11977 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11978 (compute_metrics): Don't set failure if we just cleared the cache.
11979 (w32_weight_table): Remove unused variable.
11980 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11981 backwards compatibility.
11982
119832008-05-25 Kenichi Handa <handa@m17n.org>
11984
11985 * w32term.c (x_draw_glyph_string):
11986 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11987
11988 * xfaces.c: Delete unused function prototypes.
11989 (xstrlwr, font_frame): Delete them.
11990 (clear_face_cache): Delete unused variable.
11991
11992 * xftfont.c (xftfont_open): Delete unused variable.
11993 If underline_thickness is not 1, adjust underline_position.
11994
11995 * ftxfont.c (ftxfont_open): Delete unused variable.
11996
11997 * fontset.c (face_for_char): Optimize for the case of no charset
11998 property.
11999
12000 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12001 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12002 (otf_open, font_otf_capability, generate_otf_features)
12003 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12004 Comment out by surrounding "#if 0" and "#endif" for the moment.
12005 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12006 (syms_of_font): Codes for accessing above commented out.
12007
120082008-05-24 Eli Zaretskii <eliz@gnu.org>
12009
12010 * w32proc.c: Include dispextern.h.
12011
12012 * w32.c: Include dispextern.h.
12013
120142008-05-23 Juanma Barranquero <lekktu@gmail.com>
12015
12016 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12017 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12018 Fix typos in docstrings.
12019
120202008-05-23 Jason Rumney <jasonr@gnu.org>
12021
12022 * xsmfns.c: Remove includes that are already included by config.h.
12023
120242008-05-23 Kenichi Handa <handa@m17n.org>
12025
12026 * charset.c (Qemacs, charset_emacs): New variables.
12027 (char_charset): Fix for non-Unicode characters.
12028 (syms_of_charset): Define charset_emacs.
12029
12030 * w32term.c (x_draw_glyph_string): Be sure to update
12031 s->underline_thickness and s->underline_position. Be sure to draw
12032 underline within the current line area.
12033
12034 * xterm.c (x_draw_glyph_string): Be sure to update
12035 s->underline_thickness and s->underline_position. Be sure to draw
12036 underline within the current line area.
12037
12038 * fontset.c: Delete unused variables and add casting for char *
12039 throughout the file.
12040 (fontset_font): Try the fallback fonts of the current fontset
12041 before consulting the default fontset.
12042
12043 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12044
12045 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12046
120472008-05-22 Jason Rumney <jasonr@gnu.org>
12048
12049 * font.c: Don't include strings.h.
12050
12051 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12052
12053 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12054 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12055 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12056 to call xstrcasecmp.
12057
12058 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12059
12060 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12061
12062 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12063
12064 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12065
120662008-05-22 Kenichi Handa <handa@m17n.org>
12067
12068 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12069
12070 * font.c (font_prop_validate_style): Adjust for the format
12071 change of font_style_table.
12072
12073 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12074 two args.
12075
12076 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12077 two args.
12078
120792008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12080
12081 * minibuf.c (keys_of_minibuf): Delete.
12082 * lisp.h (keys_of_minibuf): Delete.
12083 * emacs.c (main): Don't call keys_of_minibuf.
12084
120852008-05-22 Kenichi Handa <handa@m17n.org>
12086
12087 * ftfont.c (ftfont_resolve_generic_family): Rename from
12088 ftfont_list_generic_family. Return a single family for each
12089 generic family.
12090 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12091 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12092 Call font_add_log.
12093 (ftfont_match): Call font_add_log.
12094
12095 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12096 (FONT_DEBUG): Define it.
12097 (font_add_log): Extern it.
12098 (font_assert): Rename from xassert.
12099
12100 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12101 (xfont_list_family): Call font_add_log.
12102 (xfont_match): Likewise.
12103 (memq_no_quit): Delete.
12104
12105 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12106 call of Ffont_xlfd_name.
12107
12108 * xfaces.c (struct table_entry, slant_table, weight_table)
12109 (swidth_table): Move to font.c.
12110
12111 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12112 xassert are changed to font_assert. Delete many unused variables.
12113 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12114 New variables.
12115 (struct table_entry): Move from xfaces.c and modified.
12116 (weight_table, slant_table, width_table): Move from xfaces.c and
12117 contents adjusted for the change of struct table_entry.
12118 (font_style_to_value, font_style_symbolic): Adjust for the
12119 format change of font_style_table.
12120 (font_parse_family_registry): Don't overwrite existing foundry and
12121 family of font_spec.
12122 (font_score): Fix calculation of diff for sizes.
12123 (font_sort_entites): Call font_add_log.
12124 (font_delete_unmatched): Return a newly created list.
12125 (font_list_entities): Fix previous change. Call font_add_log.
12126 (font_matching_entity, font_open_entity, font_close_entity):
12127 Call font_add_log.
12128 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12129 (Finternal_set_font_style_table): Delete.
12130 (BUILD_STYLE_TABLE): New macro.
12131 (build_style_table): New function.
12132 (Vfont_log, font_log_env_checked): New variables.
12133 (font_add_log): New function.
12134 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12135 Declare Lisp variables "font-weight-table", "font-slant-table",
12136 "font-width-table", and "font-log". Initialize font_style_table.
12137
121382008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12139
12140 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12141
121422008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12143 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12144
12145 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12146 (Vframe_alpha_lower_limit): New variable.
12147 (x_set_alpha): New function.
12148
12149 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12150
12151 * xfns.c (x-create-frame, Qalpha):
12152 Initialize the frame parameter `alpha'.
12153 * xterm.c (OPAQUE, OPACITY): New.
12154 (x_set_frame_alpha): New function.
12155 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12156
12157 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12158 * w32fns.c (w32_frame_parm_handlers): Likewise.
12159
121602008-05-20 Jason Rumney <jasonr@gnu.org>
12161
12162 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12163 truetype fonts to opentype list.
12164
121652008-05-20 Juanma Barranquero <lekktu@gmail.com>
12166
12167 * fontset.c (Ffontset_info): Doc fix.
12168 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12169 <ignore-relative-composition>: Fix typos in docstrings.
12170
12171 * font.c (syms-of-font) <font-encoding-alist>:
12172 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12173 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12174 (Ffont_otf_alternates): Doc fixes.
12175
121762008-05-20 Kenichi Handa <handa@m17n.org>
12177
12178 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12179 font.h through out the file.
12180 (FONT_DRIVERS): Rename from FONTOBJ.
12181 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12182 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12183
12184 * emacs.c (main): Call syms_of_font unconditionally.
12185
12186 * font.h (find_font_encoding): Extern it.
12187
12188 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12189 fontset.c.
194d44e7 12190 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12191 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12192 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12193 only when HAVE_WINDOW_SYSTEM is defined.
12194 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12195 when HAVE_WINDOW_SYSTEM is defined.
12196
12197 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12198 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12199
12200 * xfaces.c: Include font.h unconditionally.
12201 (merge_face_ref, merge_face_vectors)
12202 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12203
122042008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12205
12206 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12207 indirect_variable.
12208 * eval.c (lisp_indirect_variable): New fun.
12209 (Fuser_variable_p): Use it.
12210
122112008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12212
12213 * lisp.h (indirect_variable):
12214 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12215 Use Lisp_Symbol pointers rather than Lisp_Object.
12216 Adjust callers.
12217 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12218 To this end, change calling-convention.
12219
12220 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12221 if some non-hidden buffers are selected by string&pred.
12222
122232008-05-19 Chong Yidong <cyd@stupidchicken.com>
12224
12225 * process.c (wait_reading_process_output): Always check status
12226 when in batch mode.
12227
122282008-05-19 Kenichi Handa <handa@m17n.org>
12229
12230 * font.c (font_list_entities): Fix handling of cache.
12231 (font_matching_entity): Likewise.
12232
12233 * ftfont.c (cs_iso8859_1): Delete.
12234 (ft_face_cache): New variable.
12235 (struct ftfont_info): New member fc_charset_idx.
12236 (ftfont_build_basic_charsets): Delete.
12237 (fc_charset_table): New variable.
12238 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12239 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12240 Callers changed.
12241 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12242 (ftfont_spec_pattern): New argument fc_charset_idx.
12243 Check registry more rigidly. Change callers.
12244 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12245 change of :font-entity property of the font.
12246
12247 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12248 property of the font.
12249
122502008-05-18 Juanma Barranquero <lekktu@gmail.com>
12251
12252 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12253 (Funencodable_char_position, Fcheck_coding_systems_region)
12254 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12255 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12256 (Ffind_operation_coding_system, Fset_coding_system_priority)
12257 (Fcoding_system_eol_type): Doc fixes.
12258
122592008-05-17 Glenn Morris <rgm@gnu.org>
12260
12261 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12262
122632008-05-16 Eli Zaretskii <eliz@gnu.org>
12264
12265 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12266 and st_gid.
12267
12268 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12269 HAVE_WINDOW_SYSTEM is not defined.
12270
12271 * xfaces.c (merge_face_ref, merge_face_vectors)
12272 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12273 HAVE_WINDOW_SYSTEM is defined.
12274 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12275
122762008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12277
12278 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12279
122802008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12281
12282 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12283
122842008-05-15 Kenichi Handa <handa@m17n.org>
12285
12286 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12287 preference.
12288
122892008-05-15 Glenn Morris <rgm@gnu.org>
12290
12291 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12292
122932008-05-15 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12296 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12297
12298 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12299
123002008-05-15 Kenichi Handa <handa@m17n.org>
12301
12302 * ftfont.c (ftfont_list): Downcase family name to check generic
12303 families.
12304
12305 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12306 font-spec for QCfont value.
12307
12308 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12309 buffer. Check the return value of it.
12310
123112008-05-14 Jason Rumney <jasonr@gnu.org>
12312
12313 * w32term.c (w32_get_glyph_overhangs): Remove.
12314 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12315
123162008-05-14 Kenichi Handa <handa@m17n.org>
12317
12318 * font.c (font_prop_validate): Make nil a valid value.
12319 (font_clear_cache): Check if the cached vector of entities is nil
12320 or not.
12321
123222008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12323
12324 * emacs.c (main_thread): Conditionalize on
12325 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12326 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12327
12328 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12329 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12330 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12331
123322008-05-14 Kenichi Handa <handa@m17n.org>
12333
12334 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12335 has no corresponding coding system.
12336
123372008-05-14 Jason Rumney <jasonr@gnu.org>
12338
12339 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12340
12341 * w32font.h (w32font_open_internal): Update declaration.
12342
12343 * w32font.c (w32font_open_internal): Change last argument from
12344 w32font_info struct to font object. Fill in font object from
12345 font_entity. Get Outline metrics if possible. Use them to
12346 calculate underline position and thickness. Use xlfd name as name
12347 property. Don't set codepage.
12348 (w32font_open): Pass font_object to w32font_open_internal. Don't
12349 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12350 (w32font_draw): Use s->font.
12351 (clear_cached_metrics): Don't clear non-existent blocks.
12352
12353 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12354 font was not found.
12355 (x_draw_glyph_string): Use underline position and thickness from font.
12356
12357 * w32uniscribe.c (uniscribe_open): Pass font_object to
12358 w32font_open_internal.
12359
123602008-05-14 Kenichi Handa <handa@m17n.org>
12361
12362 These changes are to delete all legacy font-handling codes, and
12363 make Emacs use only font-backends.
12364
12365 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12366 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12367
12368 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12369
12370 * charset.h (Vcharset_non_preferred_head)
12371 (Vcurrent_iso639_language): Extern them.
12372
12373 * charset.c (Vcharset_non_preferred_head): New variable.
12374 (Vcurrent_iso639_language): New variable.
12375 (syms_of_charset): Declare it as a Lisp variable.
12376 (char_charset): Don't check non preferred charsets. As a last
12377 resort, return charset_unicode.
12378 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12379
12380 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12381 conditionals. Don't check enable_font_backend. Delete all codes
12382 used only when USE_FONT_BACKEND is not defined.
12383
12384 * dispextern.h (struct glyph_string): Change type of `font' to
12385 `struct font *'.
12386 (struct glyph_string): New member underline_position and
12387 underline_thickness.
12388 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12389 (struct face): Change type of `font' to `struct font *'. Remove
12390 members `font_name', `font_info_id'.
12391 (per_char_metric, encode_char): Delete externs.
12392 (calc_pixel_width_or_height): Adjust the prototype.
12393
12394 * emacs.c (enable_font_backend): Delete extern.
12395 (main): Don't set enable_font_backend. Don't check the command
12396 line argument "-disable-font-backend".
12397
12398 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12399 (enum font_property_index): New members FONT_DPI_INDEX,
12400 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12401 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12402 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12403 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12404 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12405 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12406 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12407 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12408 (struct font_spec, struct font_entity): New structs.
12409 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12410 (struct font): Many members from old "struct font_info" moved to
12411 here. Members font and entity deleted.
12412 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12413 the new font-related objects.
12414 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12415 (CHECK_FONT_GET_OBJECT): Likewise.
12416 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12417 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12418 (struct font_driver): New members case_sensitive anc check. Type
12419 of the member list and open changed.
12420 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12421 (font_symbolic_width, font_find_object, font_get_spec)
12422 (font_set_lface_from_name): Delete extern.
12423 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12424
12425 * font.c: Include <strings.h>.
12426 (enable_font_backend): Delete it.
12427 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12428 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12429 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12430 (null_string): Delete it.
12431 (null_vector): Make it static.
12432 (font_family_alist): Delete it.
12433 (Qnormal): Extern it.
12434 (QCextra, QClanguage): Delete it.
12435 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12436 (font_make_spec, font_make_entity, font_make_object)
12437 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12438 the string. Callers changed.
12439 (font_pixel_size): Adjusted for the format change of font-related
12440 objects.
12441 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12442 (font_style_to_value, font_style_symbolic): New function.
12443 (build_font_family_alist): Delete it.
12444 (font_registry_charsets): Use Fassoc_string instead of
12445 assq_no_quit.
12446 (font_prop_validate_symbol): Don't return null_string.
12447 (font_prop_validate_style): Adjusted for the change of
12448 style-related values in a font vector.
12449 (font_property_table): Delete entries for QClanguage and
12450 QCantialias, add entries for QCavgwidth.
12451 (get_font_prop_index): Delete the 2nd argument FROM.
12452 (font_prop_validate): Arguments changed.
12453 (font_put_extra): Adjusted for the change of font-related objects.
12454 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12455 (font_parse_fcname, font_unparse_fcname)
12456 (font_prepare_composition): Likewise.
12457 (font_parse_family_registry): Renamed from font_merge_old_spec.
12458 (otf_open): Delete the 1st arg entity.
12459 (font_otf_capability): Adjusted for the above change.
12460 (font_score): New arg alternate_families. Adjusted for the change
12461 of font-related objects.
12462 (font_sort_entites): New arg best_only.
12463 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12464 Delete them.
12465 (font_match_p): Check alternate families.
12466 (font_find_object): Delete it.
12467 (font_check_object): New function.
12468 (font_clear_cache): Adjusted for the change of font-related objects.
12469 (font_delete_unmatched): New arg.
12470 (font_list_entities): Call font_driver->list with a spec that
12471 doesn't specify style-related properties.
12472 (font_matching_entity): Arguments changed. Caller changed.
12473 (font_open_entity): Adjusted for the change of font-related objects.
12474 (font_close_object, font_has_char, font_encode_char)
12475 (font_get_name, font_get_spec): Likewise.
12476 (font_spec_from_name, font_clear_prop, font_update_lface):
12477 New functions.
12478 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12479 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12480 (font_at): Adjusted for the change of font-related objects.
12481 (font_range): New function.
12482 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12483 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12484 (Fcopy_font_spec, Fmerge_font_spec): New function.
12485 (Ffont_family_list): Renamed from list-families.
12486 (Finternal_set_font_style_table): Arguments changed.
12487 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12488 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12489 change of font-related objects.
12490 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12491
12492 * fontset.h (struct font_info): Delete it. Most members go to
12493 struct font.
12494 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12495 (enum FONT_SPEC_INDEX): Delete it.
12496 (font_info, list_fonts_func, load_font_func, query_font_func)
12497 (set_frame_fontset_func, find_ccl_program_func)
12498 (get_font_repertory_func, new_fontset_from_font_name): Delete
12499 externs.
12500 (fontset_from_font_name): Extern it.
12501 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12502 (FONT_INFO_FROM_FACE): Deleted.
12503 (face_for_font): Adjust prototype.
12504
12505 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12506 conditionals. Don't check enable_font_backend. Delete all codes
12507 used only when USE_FONT_BACKEND is not defined.
12508 (get_font_info_func, list_font_func, load_font_func)
12509 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12510 (get_font_repertory_func): Delete them.
12511 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12512 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12513 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12514 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12515 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12516 (fontset_compare_rfontdef): New function.
12517 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12518 rfont-defs by qsort. Adjusted for the change of font-group vector.
12519 (load_font_get_repertory): Deleted.
12520 (fontset_find_font): Use new macros to ref/set elements of
12521 font-def and rfont-def.
12522 (fontset_font): Fix the timing of remembering that no font for C.
12523 (free_face_fontset): Do nothing if the face has no fontset.
12524 (face_suitable_for_char_p): Use new macros to ref/set elements of
12525 rfont-def.
12526 (face_for_char): Likewise. Call face_for_char with font_object.
12527 (fs_load_font): Delete. Delete #pragma surrounding it.
12528 (fs_query_fontset): Use strcasecmp instead of strcmp.
12529 (generate_ascii_font_name): Adjusted for the format change of
12530 font-spec.
12531 (Fset_fontset_font): Likewise. Use new macros to set elements of
12532 font-def.
12533 (Fnew_fontset): Use font_unparse_xlfd to generate
12534 FONTSET_ASCII (fontset).
12535 (new_fontset_from_font_name): Deleted.
12536 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12537 a fontset is already created for the font. FIx updating of
12538 Vfontset_alias_alist.
12539 (fontset_ascii_font): Deleted.
12540 (Ffont_info): Adjusted for the format change of font-spec.
12541 (Finternal_char_font): Likewise.
12542 (Ffontset_info): Likewise.
12543 (syms_of_fontset): Don't check load_font_func.
12544
12545 * fns.c (internal_equal): Handle PREV_FONT.
12546
12547 * frame.h: Delete USE_FONT_BACKEND conditional.
12548
12549 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12550 conditionals. Don't check enable_font_backend. Delete all codes
12551 used only when USE_FONT_BACKEND is not defined.
12552 (x_set_font): Call x_new_font, not x_new_fontset2.
12553 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12554 already set for the frame.
12555
12556 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12557 a font-entity by font_make_entity. Use font_intern_prop instead
12558 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12559 font property. If a font is scalable, set avgwidth property to 0.
12560 Set font-entity property by font_put_extra.
12561 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12562 (ffont_driver): Adjusted for the change of struct font_driver.
12563 (ftfont_spec_pattern): New function.
12564 (ftfont_list): Return a list, not vector.
12565 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12566 (ftfont_list_family): Don't downcase names.
12567 (ftfont_free_entity): Deleted.
12568 (ftfont_open): Return a font-object. Adjusted for the change of
12569 struct font. Get underline_thickness and underline_position from
12570 font property. Don't update dpyinfo->smallest_font_height and
12571 dpyinfo->smallest_char_width.
12572 (ftfont_close): Don't free `struct font'.
12573 (ftfont_has_char): Adjusted for the format change of font-entity.
12574 (ftfont_encode_char, ftfont_text_extents): Likewise.
12575
12576 * ftxfont.c (ftxfont_list): Return a list, not vector.
12577 (ftxfont_open): Return a font-object. Adjusted for the change of
12578 struct font. Get underline_thickness and underline_position from
12579 font property. Don't update dpyinfo->smallest_font_height and
12580 dpyinfo->smallest_char_width.
12581 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12582 (ftxfont_draw): Adjusted for the change of struct font.
12583
12584 * image.c (image_ascent): Don't include "charset.h". Include
12585 "character.h" and "font.h".
12586
12587 * lisp.h (enum pvec_type): New member PREV_FONT.
12588 (Fassoc_string): EXFUN it.
12589
12590 * print.c: Include font.h.
12591 (print_object): Handle font-related objects.
12592
12593 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12594 conditionals. Don't check enable_font_backend. Delete all codes
12595 used only when USE_FONT_BACKEND is not defined.
12596 (handle_auto_composed_prop): Do nothing if it->f is not on a
12597 window system. Check how many following characters can be
12598 displayed by the same font.
12599 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12600 'struct font *'.
12601 (get_char_face_and_encoding): Assign the whole encoding task to
12602 the `encode-char' method of a font driver.
12603 (fill_composite_glyph_string): Adjusted for the change of `struct
12604 face' and `struct glyph_string'.
12605 (fill_glyph_string): Likewise.
12606 (get_per_char_metric): Arguments changed.
12607 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12608 and `struct glyph_string'.
12609 (produce_stretch_glyph, calc_line_height_property)
12610 (x_produce_glyphs): Likewise.
12611
12612 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12613 conditionals. Don't check enable_font_backend. Delete all codes
12614 used only when USE_FONT_BACKEND is not defined. Use
12615 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12616 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12617 (Qp): Extern them.
12618 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12619 Deleted.
12620 (struct font_name): Deleted.
12621 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12622 (compare_fonts_by_sort_order): New function.
12623 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12624 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12625 Deleted.
12626 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12627 compare_fonts_by_sort_order.
12628 (Fx_font_family_list): Call Ffont_family_list.
12629 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12630 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12631 (face_symbolic_slant, face_symbolic_swidth)
12632 (split_font_name_into_vector, build_font_name_from_vector)
12633 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12634 (font_rescale_ratio, split_font_name, build_font_name)
12635 (free_font_names, sort_fonts, x_face_list_fonts)
12636 (face_font_available_p, sorted_font_list, cmp_font_names)
12637 (font_list_1, concat_font_list, font_list, remove_duplicates):
12638 Deleted.
12639 (Fx_list_fonts): Use Ffont_list.
12640 (LFACE_AVGWIDTH): Deleted.
12641 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12642 by FONTP.
12643 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12644 (set_lface_from_font_name): Delete it.
12645 (set_lface_from_font): Renamed from
12646 set_lface_from_font_and_fontset. Caller changed. Don't set
12647 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12648 for face.
12649 (merge_face_vectors): Copy font-spec if necessary.
12650 Clear properties of the font-spec if necessary.
12651 (merge_face_ref): Clear properties of the font-spec if necessary.
12652 (Finternal_set_lisp_face_attribute): Likewise.
12653 (set_font_frame_param): Use font_load_for_lface to load a
12654 font-object, and call Fmodify_frame_parameters with it.
12655 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12656 font name by Ffont_xlfd_name.
12657 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12658 QCslant, and QCwidth.
12659 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12660 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12661 Compare fonts by EQ.
12662 (lookup_non_ascii_face): Deleted.
12663 (face_for_font): The 2nd argument changed.
12664 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12665 Check atomic font properties by case insensitive.
12666 (realize_non_ascii_face): Set face->overstrike correctly.
12667 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12668 (dump_realized_face): Get font name from
12669 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12670
12671 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12672 conditionals. Don't check enable_font_backend. Delete all codes
12673 used only when USE_FONT_BACKEND is not defined.
12674 (xic_create_xfontset): Original code deleted and renamed from
12675 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12676 (x_make_gc): Don't set GCFont in GCs.
12677 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12678 opened by "fixed".
12679 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12680 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12681 get_font_repertory_func.
12682
12683 * xfont.c: Include <stdlib.h> and "ccl.h".
12684 (struct xfont_info): New structure.
12685 (xfont_query_font): Deleted.
12686 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12687 moved from xterm.c.
12688 (xfont_driver): Adjusted for the change of struct font_driver.
12689 (compare_font_names): New function.
12690 (xfont_list_pattern): Sort font names case insensitively. Make
12691 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12692 (xfont_list): Return a list, not vector.
12693 (xfont_match): If the font doesn't have QCname property, generate
12694 a name from the other font properties.
12695 (xfont_open): Return a font-object. Adjusted for the change of
12696 struct font. Get underline_thickness and underline_position from
12697 font property. Don't update dpyinfo->smallest_font_height and
12698 dpyinfo->smallest_char_width.
12699 (xfont_close): Don't free struct font.
12700 (xfont_prepare_face): Adjusted for the change of struct font.
12701 (xfont_done_face): Deleted.
12702 (xfont_has_char): Adjusted for the change of struct font.
12703 (xfont_encode_char, xfont_draw): Likewise.
12704 (xfont_check): New function.
12705
12706 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12707 callback function.
12708 (xftfont_match): Adjusted for the format change of font-entity.
12709 (xftfont_open): Adjusted for the format change of font-entity and
12710 font-object. Adjusted for the change of struct font. Return a
12711 font-object. Don't update dpyinfo->smallest_font_height and
12712 dpyinfo->smallest_char_width.
12713 (xftfont_close): Block input while calling XftFontClose.
12714 (xftfont_prepare_face): Don't block input while calling
12715 xftfont_get_colors. Adjusted for the change of struct font.
12716 (xftfont_shape): Return value of error case fixed.
12717
12718 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12719
12720 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12721 conditionals.
12722 (FONT_WIDTH): Return (f)->max_width.
12723 (struct x_display_info): Delete member `font'.
12724 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12725 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12726 (struct x_output): Change type of `font' to `struct font *'.
12727
12728 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12729 conditionals. Don't check enable_font_backend. Delete all codes
12730 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12731 (x_per_char_metric, x_encode_char): Deleted.
12732 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12733 (x_compute_glyph_string_overhangs): Adjusted for the change of
12734 `struct face'.
12735 (x_draw_glyph_string_foreground)
12736 (x_draw_composite_glyph_string_foreground): Likewise.
12737 (x_draw_glyph_string): Likewise. Use font->underline_position and
12738 font->underline_thickness.
12739 (x_new_font): Renamed from x_new_fontset2.
12740 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12741 (x_check_font): Call `check' method of a font driver.
12742 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12743 (x_query_font, x_get_font_repertory): Deleted.
12744 (x_find_ccl_program): Renamed and moved to xfont.c.
12745 (x_redisplay_interface): Adjusted for the change of `struct
12746 redisplay_interface'.
12747
12748 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12749 conditionals. Don't check enable_font_backend. Delete all codes
12750 used only when USE_FONT_BACKEND is not defined. Surround non-used
12751 code by "#ifdef OLD_FONT" and "endif".
12752 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12753
12754 * w32font.h (struct w32font_info): New member.
12755 (FONT_COMPAT): New macro.
12756 (w32font_open_internal): Prototype adjusted.
12757
12758 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12759 OLD_FONT" and "endif".
12760
12761 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12762 conditionals. Don't check enable_font_backend. Delete all codes
12763 used only when USE_FONT_BACKEND is not defined.
12764 (w32font_open): Return a font-object. Make a font-object by
12765 font_make_object. Adjusted for the change of struct w32font_info.
12766 (w32font_close): Don't free struct font. Adjusted for the change
12767 of struct w32font_info.
12768 (w32font_encode_char, w32font_text_extents, w32font_draw):
12769 Adjusted for the change of struct w32font_info.
12770 (w32font_draw): Likewise.
12771 (w32font_list_internal): Return a list, not vector.
12772 (w32font_open_internal): Change the 4th arg to font-object.
12773 Adjusted for the change of struct w32font_info and font-object format.
12774 (add_font_name_to_list): Don't downcase names.
12775 (w32_enumfont_pattern_entity): Make a font-entity by
12776 font_make_entity. Adjusted for the format change of font-entity.
12777 Use FONT_SET_STYLE to set a style-related font property. If a
12778 font is scalable, set avgwidth property to 0. Set font-entity
12779 property by font_put_extra.
12780 (font_matches_spec): Adjusted for the format change of font-entity.
12781 (w32_weight_table, w32_decode_weight): New variables.
12782 (w32_encode_weight): New function.
12783 (fill_in_logfont): Adjusted for the format change of font-spec.
12784 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12785 weight value.
12786 (w32font_driver): Adjusted for the change of struct font_driver.
12787
12788 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12789 conditionals. Don't check enable_font_backend. Surround non-used
12790 code by "#ifdef OLD_FONT" and "endif".
12791 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12792 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12793
12794 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12795 conditionals. Don't check enable_font_backend. Delete all codes
12796 used only when USE_FONT_BACKEND is not defined. Surround non-used
12797 code by "#ifdef OLD_FONT" and "endif".
12798
12799 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12800 (uniscribe_open): Return value changed to font-object.
12801 Adjusted for the format change of font-object.
12802 (uniscribe_otf_capability): Adjusted for the change of struct font.
12803 (add_opentype_font_name_to_list): Don't downcase names.
12804 (uniscribe_font_driver): Adjusted for the change of struct
12805 font_driver.
12806
128072008-05-13 Chong Yidong <cyd@stupidchicken.com>
12808
12809 * dispnew.c (update_frame_1): Check if tty output is still valid
12810 before flushing it.
12811
128122008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12813
12814 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12815 to Gtk+ menus.
12816
128172008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12818
12819 * dired.c (file_name_completion): Tweak the code so as to always do it
12820 in a single pass. Tighten the scope of some variables.
12821
12822 * dired.c (Qdefault_directory): New var.
12823 (file_name_completion): Use it instead of Fexpand_file_name.
12824 (syms_of_dired): Initialize it.
12825
128262008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12827
12828 * fileio.c (double_dollars): Remove dead code.
12829
128302008-05-10 Eli Zaretskii <eliz@gnu.org>
12831
12832 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12833 Mention w32-get-true-file-attributes in doc string.
12834
12835 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12836
128372008-05-09 Glenn Morris <rgm@gnu.org>
12838
12839 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12840 2008-04-23.
12841
128422008-05-09 Eli Zaretskii <eliz@gnu.org>
12843
12844 Support for reporting owner and group of each file on MS-Windows:
12845 * dired.c (stat_uname, stat_gname): New functions, with special
12846 implementation for w32.
12847 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12848
12849 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12850 (dflt_group_name): New static variable.
12851 (dflt_group): Rename from the_group.
12852 (init_user_info): Init dflt_group fields. Get user's group name
12853 from LookupAccountSid.
12854 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12855 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12856 New initialization states.
12857 (globals_of_w32): Initialize them to zero. Initialize the default
12858 group name to "None".
12859 (GetFileSecurity_Name): New global var, the name of the function
12860 to call for GetFileSecurity.
12861 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12862 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12863 (get_file_security, get_security_descriptor_owner)
12864 (get_security_descriptor_group, is_valid_sid)
12865 (get_file_security_desc, get_rid, get_name_and_id)
12866 (get_file_owner_and_group): New functions.
12867 (stat): Use get_file_security_desc and get_file_owner_and_group to
12868 report the owner and primary group of each file. Don't ignore the
12869 high 32 bits of file's size, now that st_size is 64-bit wide.
12870 Fix test when to get true file attributes.
12871 (init_user_info): Use get_rid instead of equivalent inline code.
12872 (fstat): Don't ignore the high 32 bits of file's size.
12873
128742008-05-09 Chong Yidong <cyd@stupidchicken.com>
12875
12876 * image.c (png_load): Use correct bit-depth for setting background
12877 color.
12878
128792008-05-08 Eli Zaretskii <eliz@gnu.org>
12880
12881 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12882 epa-hook.elc.
12883
128842008-05-08 Juanma Barranquero <lekktu@gmail.com>
12885
12886 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12887
128882008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12889
12890 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12891 because the original parameters are in pure storage now.
12892 (mac_window): Remove unused params. Update callers.
12893
128942008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12895
12896 * lread.c (substitute_object_recurse): Use lower-level primitives.
12897 Don't signal errors when traversing sub-char-tables.
12898 Don't loop over all the possible characters when traversing char-tables.
12899
12900 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12901 just like we do in print.c.
12902
129032008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12904
12905 * minibuf.c (Ftry_completion): Remove code left over from when we used
12906 scmp instead of Fcompare_strings.
12907
129082008-05-04 Juanma Barranquero <lekktu@gmail.com>
12909
12910 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12911
129122008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12913
12914 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12915 Create bitmap context in native byte order.
12916
12917 * macterm.c (XDrawLine)
12918 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12919 context in native byte order.
12920
129212008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12922
12923 * config.in: Regenerate.
12924
12925 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12926 New definitions for Image I/O support.
12927 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12928 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12929 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12930 (mac_data_provider_release_data, image_load_image_io)
12931 [USE_MAC_IMAGE_IO]: New functions.
12932 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12933 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12934 (init_image_func_pointer) [MAC_OSX]: Remove function.
12935 (image_load_quartz2d) [MAC_OSX]: Check availability of
12936 CGImageCreateWithPNGDataProvider at compile time.
12937 Use lowercase `false' for boolean constant.
12938 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12939 Use image_load_image_io.
12940 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12941 Don't check MyCGImageCreateWithPNGDataProvider.
12942 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12943 Don't call init_image_func_pointer.
12944
12945 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12946
12947 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12948 Make variable non-static.
12949 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12950 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12951
12952 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12953 (RED_FROM_ULONG): Mask off higher bits.
12954 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12955
12956 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12957 Include AvailabilityMacros.h.
12958 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12959 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12960
129612008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12962
12963 * chartab.c (Fset_char_table_range): If range is t, really set all
12964 chars to that value.
12965
129662008-05-03 Eli Zaretskii <eliz@gnu.org>
12967
12968 * dired.c (Ffile_attributes): Don't allow the device number become
12969 negative.
12970
129712008-05-02 Daiki Ueno <ueno@unixuser.org>
12972
12973 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12974
129752008-05-02 Juri Linkov <juri@jurta.org>
12976
12977 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12978 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12979 DEFAULT argument as a list of default values in docstrings.
12980
129812008-05-01 Chong Yidong <cyd@stupidchicken.com>
12982
12983 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12984
129852008-05-01 Martin Rudalics <rudalics@gmx.at>
12986
12987 * dispnew.c (change_frame_size_1): Preserve small windows when
12988 shrinking frames by calling set_window_height|width with third
12989 arg 2.
12990
12991 * window.h (struct window): Replace field too_small_ok by field
12992 resize_proportionally.
12993
12994 * window.c (make_window): Initialize resize_proportionally.
12995 (enlarge_window): Temporarily set resize_proportionally to make
12996 sure that shrink_windows does scale the window proportionally.
12997 (shrink_windows): When window has resize_proportionally set try
12998 to shrink it proportionally by stealing from other windows.
12999 (struct saved_window, Fset_window_configuration)
13000 (compare_window_configurations): Handle resize_proportionally.
13001 (WINDOW_TOTAL_SIZE): New macro.
13002 (window_min_size, shrink_windows, size_window): Use it.
13003 (check_min_window_sizes): Remove. Invalid values of
13004 window-min-height|width are handled by window_min_size_2 now.
13005 (size_window, Fsplit_window, enlarge_window)
13006 (adjust_window_trailing_edge, grow_mini_window): Don't call
13007 check_min_window_sizes.
13008 (window_min_size_2, window_min_size_1, window_min_size):
13009 New argument safe_p for retrieving "safe" minimum sizes.
13010 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13011 (adjust_window_trailing_edge, grow_mini_window):
13012 Adjust arguments of window_min_size... functions.
13013 (shrink_windows): Argument min_size removed. New argument
13014 safe_p allows shrinking windows to their safe minimum sizes.
13015 Calculate minimum size and decide whether a window shall be
13016 deleted for each window individually.
13017 (size_window): When nodelete_p equals 2, tell shrink_windows to
13018 delete windows only if their new minimum size is no more safe.
13019 (shrink_window_lowest_first): Call window_min_size_1 to make
13020 sure to preserve modeline of bottom-most window when resizing
13021 the minibuffer.
13022 (Fset_window_configuration, Fcurrent_window_configuration)
13023 (compare_window_configurations): Do not handle
13024 window-min-height|width any more.
13025 (syms_of_window): Clarify window-min-height|width doc-strings.
13026
130272008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13028
13029 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13030 some more. Copy some of the code from Ftry_completions.
13031 Remove special case code that dates back to initial revision when the
13032 slash was only added when necessary and that can't trigger nowadays.
13033
130342008-04-27 Kenichi Handa <handa@m17n.org>
13035
13036 * font.c (font_prop_validate): Signal `error' instead of `font'.
13037
130382008-04-29 Jason Rumney <jasonr@gnu.org>
13039
13040 * w32fns.c (Fw32_battery_status): New defun.
13041 (syms_of_w32fns): Defsubr it.
13042
130432008-04-28 Andreas Schwab <schwab@suse.de>
13044
13045 * dired.c (file_name_completion): Fix another mixing of encoded
13046 and decoded names.
13047
130482008-04-28 Juanma Barranquero <lekktu@gmail.com>
13049
13050 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13051
130522008-04-27 Juanma Barranquero <lekktu@gmail.com>
13053
13054 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13055
130562008-04-27 Andreas Schwab <schwab@suse.de>
13057
13058 * dired.c (file_name_completion): Fix inappropriate mixing of
13059 encoded and decoded names.
13060
13061 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13062
13063 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13064
130652008-04-26 Eli Zaretskii <eliz@gnu.org>
13066
13067 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13068 2008-03-31, it's not needed anymore with `struct stat' definition
13069 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13070 for the same reasons.
13071
130722008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13073
13074 * m/sparc.h: Additional redefinitions for GNU/Linux.
13075
130762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13077
13078 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13079 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13080 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13081 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13082 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13083 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13084 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13085 Likewise.
13086
13087 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13088 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13089 (mac_ax_number_of_characters): Add externs.
13090 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13091 [USE_MAC_TSM]: Likewise.
13092 (mac_handle_text_input_event) [MAC_OSX]:
13093 Handle kEventTextInputOffsetToPos for no active input area case.
13094 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13095 (mac_handle_document_access_event)
13096 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13097 (install_application_handler) [MAC_OSX]: Register handlers for
13098 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13099 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13100 Register mac_handle_document_access_event.
13101
13102 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13103 Make functions non-static.
13104
131052008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13106
13107 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13108 (read_file_name_completion_ignore_case, insert_default_directory)
13109 (Qdefault_directory): Move to minibuffer.el.
13110 (Fread_file_name): Call the new `read-file-name' instead.
13111
131122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13113
13114 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13115 Make function non-static.
13116 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13117 Remove function.
13118 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13119 Move to mactoolbox.c.
13120 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13121
13122 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13123 (mac_rect_make): New macro.
13124
13125 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13126 instead of float.
13127 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13128 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13129 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13130 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13131 CGRectMake.
13132 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13133 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13134 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13135 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13136 instead of WindowRef in argument type.
13137 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13138 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13139 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13140 instead of DISPLAY. All uses changed.
13141 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13142 (x_calc_absolute_position): Simplify so as not to use
13143 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13144
13145 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13146 instead of WindowRef in argument type.
13147 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13148 [TARGET_API_MAC_CARBON]: Remove externs.
13149 (create_apple_event, mac_event_parameters_to_lisp)
13150 [TARGET_API_MAC_CARBON]: Add externs.
13151
13152 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13153 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13154 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13155 is clicked.
13156 (x_activate_menubar): Remove extern for saved_menu_event_location.
13157 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13158 Move from mac.c.
13159
131602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13161
13162 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13163 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13164
131652008-04-23 Jason Rumney <jasonr@gnu.org>
13166
13167 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13168 attributes only for local files.
13169
13170 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13171 default to Qlocal.
13172
131732008-04-22 Juri Linkov <juri@jurta.org>
13174
13175 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13176 read-buffer-to-switch instead of using the letter "B".
13177
131782008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13179
13180 * fileio.c (Qdefault_directory): New variable.
13181 (Fread_file_name): Use it to pass `dir' to the completion functions.
13182
131832008-04-20 Chong Yidong <cyd@stupidchicken.com>
13184
13185 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13186
131872008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13188
13189 * keyboard.c (Vpre_help_message): Remove.
13190 (show_help_echo): Remove default C code.
13191
13192 * dired.c (directory_files_internal, file_name_completion):
13193 Only call ENCODE_FILE if the string is indeed decoded.
13194
131952008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13196
13197 * Makefile.in (TOOLKIT_DEFINES): Remove.
13198 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13199
132002008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13201
13202 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13203 (mactoolbox.o): New target.
13204
13205 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13206 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13207
13208 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13209 Use mac_set_frame_window_background instead of XSetWindowBackground.
13210 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13211 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13212 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13213 instead of SetWindowTitleWithCFString.
13214 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13215 Move function to mactoolbox.c.
13216 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13217 Use mac_set_window_modified instead of SetWindowModified.
13218 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13219 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13220 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13221 FrontNonFloatingWindow. Use mac_activate_window instead of
13222 ActivateWindow. Use mac_active_non_floating_window instead of
13223 ActiveNonFloatingWindow.
13224 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13225 Use mac_show_hourglass and mac_hide_hourglass.
13226 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13227 instead of GetGlobalMouse.
13228 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13229 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13230 Use mac_bring_window_to_front instead of BringToFront.
13231 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13232 mactoolbox.c.
13233 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13234 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13235 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13236 mactoolbox.c.
13237
13238 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13239 (XtPointer): Move typedef from macmenu.c.
13240 (enum button_type): Move enum from macmenu.c.
13241 (widget_value): Move typedef from macmenu.c.
13242 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13243 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13244 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13245 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13246 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13247 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13248 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13249 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13250 (Selection): Move typedef from macselect.c.
13251 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13252 macterm.c.
13253 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13254 (mac_is_window_collapsed, mac_bring_window_to_front)
13255 (mac_send_window_behind, mac_hide_window, mac_show_window)
13256 (mac_collapse_window, mac_front_non_floating_window)
13257 (mac_active_non_floating_window, mac_activate_window)
13258 (mac_move_window_structure, mac_move_window, mac_size_window)
13259 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13260
13261 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13262 (enum mac_menu_kind): Move enum to mactoolbox.c.
13263 (min_menu_id): Move variable to mactoolbox.c.
13264 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13265 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13266 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13267 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13268 [TARGET_API_MAC_CARBON]: Likewise.
13269 (XtPointer): Move typedef to macgui.h.
13270 (enum button_type): Move enum to macgui.h.
13271 (widget_value): Move typedef to macgui.h.
13272 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13273 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13274 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13275 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13276 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13277 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13278 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13279 (popup_activated_flag): Make variable non-static.
13280 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13281 (add_menu_item, fill_menu, dispose_menus):
13282 Move functions to mactoolbox.c.
13283 (restore_show_help_function, menu_target_item_handler)
13284 (install_menu_target_item_handler, mac_handle_dialog_event)
13285 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13286 [TARGET_API_MAC_CARBON]: Likewise.
13287 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13288 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13289 (find_and_call_menu_selection, name_is_separator): Make function
13290 non-static.
13291 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13292 to mactoolbox.c.
13293 (set_frame_menubar): Don't call install_menu_quit_handler.
13294 (menu_item_selection): New variable.
13295 (mac_menu_show): Use create_and_show_popup_menu.
13296 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13297 selection but set variable menu_item_selection. All uses changed.
13298 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13299 Call install_menu_quit_handler. Move to mactoolbox.c.
13300
13301 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13302 (Selection): Move typedef to macgui.h.
13303 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13304 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13305 Make variables non-static.
13306 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13307 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13308 Make functions non-static.
13309 (Vmac_service_selection) [MAC_OSX]: Likewise.
13310 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13311 (mac_valid_selection_target_p, mac_clear_selection)
13312 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13313 (mac_put_selection_value, mac_selection_has_target_p)
13314 (mac_get_selection_value, mac_get_selection_target_list)
13315 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13316 Move functions to mactoolbox.c.
13317 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13318 Likewise.
13319 (copy_scrap_flavor_data, mac_handle_service_event)
13320 (install_service_handler) [MAC_OSX]: Likewise.
13321 (syms_of_macselect) <Vmac_dnd_known_types>:
13322 Use mac_dnd_default_known_types.
13323
13324 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13325 Move to mactoolbox.c.
13326 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13327 (Fx_selection_owner_p): Add EXFUN.
13328 (install_window_handler, remove_window_handler, XSetWindowBackground):
13329 Remove externs.
13330 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13331 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13332 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13333 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13334 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13335 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13336 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13337 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13338 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13339 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13340 (mac_valid_selection_target_p, mac_clear_selection)
13341 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13342 (mac_put_selection_value, mac_selection_has_target_p)
13343 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13344 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13345 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13346 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13347 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13348 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13349 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13350 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13351 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13352
13353 * mactoolbox.c: New file.
13354
133552008-04-18 Jason Rumney <jasonr@gnu.org>
13356
13357 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13358
133592008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13360
13361 * character.c (Fmultibyte_char_to_unibyte):
13362 Return latin1 chars unchanged.
13363
13364 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13365 relocated if it points to `name'.
13366
133672008-04-17 Kenichi Handa <handa@m17n.org>
13368
13369 * data.c (Faset): Allow setting a multibyte character in an
13370 ASCII-only unibyte string.
13371
13372 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13373
133742008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13375
13376 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13377 done in config.h.
13378
133792008-04-16 Juanma Barranquero <lekktu@gmail.com>
13380
13381 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13382 (Fchar_direction): Add usage in the docstring.
13383
133842008-04-15 Chong Yidong <cyd@stupidchicken.com>
13385
13386 * keyboard.c (read_key_sequence): Remove always-true checks.
13387
133882008-04-14 Jason Rumney <jasonr@gnu.org>
13389
13390 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13391 compatibility struct, for better underline positioning.
13392
133932008-04-13 David Hansen <david.hansen@gmx.net>
13394
13395 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13396 string.
13397
133982008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13399
13400 * m/hp800.h (XUINT, XSET): Remove.
13401
134022008-04-12 Juanma Barranquero <lekktu@gmail.com>
13403
13404 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13405 previous change.
13406
134072008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13408
13409 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13410 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13411
134122008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13413
13414 * keymap.h (map_keymap_canonical): Declare.
13415 * xmenu.c (single_keymap_panes): Use it.
13416
134172008-04-11 Glenn Morris <rgm@gnu.org>
13418
13419 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13420 set the target's value to that of the alias.
13421
134222008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13423
13424 * term.c (set_tty_color_mode): Left over typo.
13425
134262008-04-10 Michael Albinus <michael.albinus@gmx.de>
13427
13428 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13429 only after check for file name handler functions. Signal, when
13430 native functionality is not supported.
13431 (syms_of_fileio): Declare it unconditionally.
13432
134332008-04-10 Jason Rumney <jasonr@gnu.org>
13434
13435 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13436 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13437
13438 * w32.c (logon_network_drive): Also logon to remote drives that
13439 are mapped to drive letters.
13440
134412008-04-10 Glenn Morris <rgm@gnu.org>
13442
13443 * xdisp.c (truncate-partial-width-windows): Doc fix.
13444
134452008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13446
13447 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13448 Move functions to minibuffer.el.
13449 (syms_of_fileio): Don't declare them.
13450
134512008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13452
13453 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13454 (syms_of_minibuf): Remove its initialization.
13455
13456 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13457
134582008-04-09 Juanma Barranquero <lekktu@gmail.com>
13459
13460 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13461
134622008-04-09 Jason Rumney <jasonr@gnu.org>
13463
13464 * makefile.w32-in (distclean): Delete makefile too.
13465 (maintainer-clean): New target.
13466
13467 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13468
13469 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13470 for new font backend and composite cases.
13471
134722008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13473
13474 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13475 Most of the code moved to run_timers.
13476 (do_pending_atimers): Call run_timers.
13477 (run_timers): New function.
13478
13479 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13480 run atimers.
13481
13482 * process.c (wait_reading_process_output): The same as above.
13483
134842008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13485
13486 * minibuf.c (last_exact_completion): Remove variable.
13487 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13488 (complete_and_exit_1, complete_and_exit_2)
13489 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13490 (Fdisplay_completion_list, display_completion_list_1)
13491 (Fminibuffer_completion_help, Fself_insert_and_exit)
13492 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13493 minibuffer.el.
13494 (syms_of_minibuf): Remove corresponding initializations.
13495
13496 * keyboard.c (Qdeactivate_mark): New var.
13497 (command_loop_1): Use it to call `deactivate-mark'.
13498 (syms_of_keyboard): Initialize it.
13499
13500 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13501 to another frame.
13502 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13503 Don't call set_tty_color_mode.
13504 (store_frame_param): Reset previous_frame rather than call
13505 set_tty_color_mode.
13506 * term.c (set_tty_color_mode): Rewrite.
13507 * dispextern.h (set_tty_color_mode): New type.
13508 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13509
135102008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13511
13512 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13513 for generic chars, which do not exist any more in emacs-unicode.
13514
135152008-04-08 Michael Albinus <michael.albinus@gmx.de>
13516
13517 * coding.c (detect_coding_emacs_mule)
13518 (Ffind_operation_coding_system): Fix typo.
13519
135202008-04-08 Jason Rumney <jasonr@gnu.org>
13521
13522 * w32uniscribe.c (SNAME): Extract only symbol name.
13523
13524 * w32font.h (struct w32_metric_cache): New struct.
13525 (w32font_info): Use it.
13526 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13527 (CACHE_BLOCKSIZE): New constants.
13528
13529 * w32font.c (Qja, Qko, Qzh): New symbols.
13530 (syms_of_w32font): Initialise them.
13531 (font_matches_spec): Use them to filter by language.
13532 (recompute_cached_metrics): Remove function.
13533 (compute_metrics, clear_cached_metrics): New functions.
13534 (w32font_encode_char): Use them to manage metric cache.
13535 (w32font_text_extents): Cache metrics for all glyphs on demand.
13536 Delay converting glyph indices to WORD until needed.
13537 (w32font_open_internal): Initialize metric cache to empty.
13538 (registry_to_w32_charset): Charset should always be a symbol.
13539 (fill_in_logfont, list_all_matching_fonts): Family should
13540 always be a symbol.
13541
135422008-04-06 Jason Rumney <jasonr@gnu.org>
13543
13544 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13545 Give up if glyph indices not supported. Use uniscribe obtained
13546 ABC widths for individual metrics. Map glyph clusters back to
13547 characters using fClusterStart flag. Return number of glyphs
13548 produced, not chars processed.
13549 (uniscribe_shape): Map char at FROM to current glyph.
13550
135512008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13552
13553 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13554 Use SetMenuItemHierarchicalMenu.
13555
135562008-04-05 Jason Rumney <jasonr@gnu.org>
13557
13558 * image.c (pbm_load): Allow color values up to 65535.
13559 Throw an error if max_color_idx is outside the supported range.
13560 Report an error when image size is invalid.
13561 Read two bytes at a time when raw images have max_color_idx above 255.
13562
135632008-04-05 Eli Zaretskii <eliz@gnu.org>
13564
13565 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13566 cFileName a file name that includes `?' characters, use the 8+3
13567 alias in cAlternateFileName instead.
13568
135692008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13570
13571 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13572 append "CCL: Quitted" when the CCL program is quitted.
13573 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13574
13575 * ccl.h (struct ccl_program): New member quit_silently.
13576
135772008-04-05 Chong Yidong <cyd@stupidchicken.com>
13578
13579 * search.c (compile_pattern_1): Treat non-nil and non-string of
13580 search-spaces-regexp as nil.
13581
13582 * minibuf.c (Fassoc_string): Tweak docstring.
13583
135842008-04-05 Eli Zaretskii <eliz@gnu.org>
13585
13586 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13587 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13588 2008-03-14 to force inode be positive.
13589
13590 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13591 _S_* ones, since we now use our own sys/stat.h.
13592 (stat, fstat): Don't mangle the inode number.
13593 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13594
135952008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13596
13597 * frame.h (struct frame): Give one more bit to `visible' since we use
13598 values larger than 1 to indicate obscured frames on ttys.
13599
13600 * keymap.c (Qkeymap_canonicalize): New var.
13601 (Fmap_keymap_internal): New fun.
13602 (describe_map): Use keymap-canonicalize.
13603
13604 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13605 (Fundo_boundary): Set them.
13606 (syms_of_undo): Initialize them.
13607 (record_point): Use them instead of last_point_position*.
13608 (last_undo_buffer): Change type.
13609
136102008-04-04 Jason Rumney <jasonr@gnu.org>
13611
13612 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13613 (recompute_cached_metrics): Don't set ascent and descent per char.
13614
13615 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13616 (uniscribe_check_otf): Add GC protection before consing.
13617 Rearrange loop for counting features.
13618
136192008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13620
13621 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13622 buffer with byte-size of source buffer.
13623
136242008-04-03 Chong Yidong <cyd@stupidchicken.com>
13625
13626 * callint.c (Fcall_interactively): Handle temporary region even
13627 when shift-select-mode is off.
13628
136292008-04-03 Jason Rumney <jasonr@gnu.org>
13630
13631 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13632
136332008-04-03 Kenichi Handa <handa@m17n.org>
13634
13635 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13636 (CATEGORY_MASK_UTF_16): Likewise.
13637 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13638 binary file.
13639 (detect_coding): Add null-byte detection for a binary file.
13640 (detect_coding_system): Likewise.
13641
136422008-04-03 Jason Rumney <jasonr@gnu.org>
13643
13644 * w32uniscribe.c: New file.
13645
13646 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13647
13648 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13649
13650 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13651 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13652 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13653 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13654 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13655 (Qphonetic): New symbols.
13656 (syms_of_w32font): Initialize them.
13657 (font_supported_scripts): Use them.
13658 (w32font_list_family): List all charsets.
13659 (w32font_text_extents, recompute_cached_metrics): Fix metric
13660 calculations.
13661 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13662 Give opentype fonts their own format.
13663 (font_matches_spec): New arguments backend and logfont.
13664 Handle :otf spec for uniscribe backend.
13665 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13666 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13667
13668 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13669 font backend.
13670 (globals_of_w32fns): Initialize uniscribe font backend.
13671
13672 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13673 dependencies.
13674 (w32uniscribe.$(O)): New file to build.
13675 (FONT_OBJ): Include w32uniscribe.$(O).
13676 (LIBS): Add uniscribe libraries.
13677
13678 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13679
136802008-04-02 Chong Yidong <cyd@stupidchicken.com>
13681
13682 * callint.c (Vshift_select_mode): New var.
13683 (Finteractive): Document new ^ spec.
13684 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13685 is present.
13686
13687 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13688 (command_loop_1): Avoid running the direct display versions of
13689 forward-char and backward-char if shift-selection may occur.
13690 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13691 shift-translation takes place.
13692
13693 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13694 avoid clobbering by define-minor-mode.
13695
13696 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13697 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13698
13699 * syntax.c (Fforward_word): Add ^ interactive spec.
13700
13701 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13702 (Fscroll_right): Add ^ interactive spec.
13703
137042008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13705
13706 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13707
13708 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13709
13710 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13711
137122008-03-31 Juri Linkov <juri@jurta.org>
13713
13714 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13715
137162008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13717
13718 * gtkutil.c (xg_set_geometry): Fix indentation.
13719 (xg_resize_outer_widget): Remove.
13720 (x_wm_size_hint_off): Fix indentation.
13721 (xg_frame_set_char_size): Call flush_and_sync after
13722 gtk_window_resize.
13723 (x_wm_set_size_hint): Pass NULL as geometry window to
13724 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13725 Add menu bar and tool bar height to base height.
13726 (xg_update_frame_menubar, free_frame_menubar)
13727 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13728 (update_frame_tool_bar, free_frame_tool_bar):
13729 Change xg_resize_outer_widget to xg_frame_set_char_size.
13730
137312008-03-30 Michael Albinus <michael.albinus@gmx.de>
13732
13733 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13734 (Fdbus_call_method): New parameter TIMEOUT.
13735 (dbus-send-signal): Optimize UNGCPRO call.
13736
137372008-03-29 Juri Linkov <juri@jurta.org>
13738
13739 * window.c (Fdisplay_buffer): Move call to
13740 Vsplit_window_preferred_function out of conditions that check
13741 if window is eligible for vertical splitting.
13742 When Vsplit_window_preferred_function is non-nil, call it and use
13743 its non-nil return value as window. Otherwise, continue doing
13744 vertical splitting using Fsplit_window with arg horflag=nil.
13745 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13746 default value from `split-window' to nil.
13747
137482008-03-29 Juri Linkov <juri@jurta.org>
13749
13750 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13751 for interactive code letters 'b' and 'B'.
13752
137532008-03-29 Eli Zaretskii <eliz@gnu.org>
13754
13755 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13756 multibyte string.
13757
137582008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13759
13760 * keyboard.c (pending_funcalls): New var.
13761 (timer_check): Run it.
13762 (syms_of_keyboard): Initialize it.
13763 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13764 (Vdelete_terminal_functions): New vars.
13765 (syms_of_terminal): Initialize them.
13766 (Fdelete_terminal): Run delete-terminal-functions.
13767 * xdisp.c (safe_eval): Rewrite.
13768 (safe_call2): New fun.
13769 * frame.c (Qdelete_frame_functions): New var.
13770 (syms_of_frame): Initialize it.
13771 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13772 * lisp.h (safe_call2, pending_funcalls): Declare.
13773
137742008-03-28 Andreas Schwab <schwab@suse.de>
13775
13776 * indent.c (Fmove_to_column): Move declaration before statements.
13777
137782008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13779
13780 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13781 (struct frame): Use bit fields for boolean vars.
13782
13783 * process.c (server_accept_connection): Simplify naming.
13784 (emacs_get_tty_pgrp): Use SDATA.
13785
13786 * coding.c (decode_coding_object): Fix last change.
13787
137882008-03-27 Jason Rumney <jasonr@gnu.org>
13789
13790 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13791
137922008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13793
13794 * charset.c (Fdefine_charset_internal): Change the way of
13795 registering charsets in Vcharset_order_list.
13796 (syms_of_charset): Make the charset `eight-bit' supplementary.
13797
137982008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13799
13800 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13801 operations, to avoid having the difference between pointers
13802 overflow.
13803
138042008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13805
13806 * indent.c (check_display_width): New fun.
13807 (scan_for_column): Use it.
13808
13809 * data.c (syms_of_data): Mark most-positive-fixnum and
13810 most-negative-fixnum as constants.
13811
13812 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13813
13814 * indent.c (scan_for_column): Extract from current_column_1.
13815 Merge with the same code from Fmove_to_column.
13816 (current_column_1, Fmove_to_column): Use it.
13817
138182008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13819
13820 * keymap.c (map_keymap_internal): New fun.
13821 (map_keymap): Use it.
13822 (Fmap_keymap_internal): New fun.
13823 (Fmap_keymap): Remove left-out test from before make_save_value.
13824
13825 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13826
13827 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13828 Use XCAR/XCDR.
13829
13830 * process.h (struct Lisp_Process): Remove filter_multibyte.
13831 * process.c (QCfilter_multibyte): Remove.
13832 (setup_process_coding_systems): Don't use filter_multibyte.
13833 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13834 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13835 (Fset_process_filter_multibyte): Change the coding-system to
13836 approximate the previous behavior.
13837 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13838 coding-system.
13839
13840 * coding.c (decode_coding_object): When not decoding into a buffer,
13841 obey the coding system's preference of (uni|multi)byte.
13842
138432008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13844
13845 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13846 every char is changed and has a different byte-length.
13847 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13848 Fix int -> EMACS_INT.
13849
138502008-03-23 David Hansen <david.hansen@gmx.net>
13851
13852 * dbusbind.c (xd_read_message): Remove extra copying of message
13853 strings. Check for NULL `interface' or `member'.
13854
138552008-03-22 Eli Zaretskii <eliz@gnu.org>
13856
13857 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13858 cFileName a file name that includes `?' characters, use the 8+3
13859 alias in cAlternateFileName instead.
13860
138612008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13862
13863 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13864
138652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13866
13867 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13868 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13869 work on current_buffer only instead (that was already the case
13870 for some of the code anyway).
13871 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13872 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13873 (SET_PT, SET_PT_BOTH): Adjust.
13874 * intervals.h (set_point, temp_set_point, set_point_both)
13875 (temp_set_point_both): Remove redundant declarations.
13876
138772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13878
13879 * fileio.c (Finsert_file_contents):
13880 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13881 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13882 when buffer != current_buffer anyway.
13883
138842008-03-20 Andreas Schwab <schwab@suse.de>
13885
13886 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13887 as default.
13888
138892008-03-19 Jason Rumney <jasonr@gnu.org>
13890
13891 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13892 (syms_of_w32fns): Initialize them.
13893 (HOURGLASS_ID): New constant.
13894 (x_window_to_frame): Don't check hourglass_window.
13895 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13896 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13897 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13898 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13899 Only change the cursor if hourglass is not active.
13900 (Fx_create_frame): Initialize frame's current_cursor.
13901 (hourglass_atimer): Remove.
13902 (hourglass_started): New function.
13903 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13904 (show_hourglass): Adapt to w32, changing argument to frame.
13905
13906 * w32term.h (struct w32_output): Remove hourglass_window.
13907 Add current_cursor.
13908
13909 * eval.c (call_debugger, Fsignal):
13910 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13911 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13912 (Fexecute_extended_command, cancel_hourglass_unwind):
13913 * minibuf.c (read_minibuf):
13914 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13915
139162008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13917
13918 * window.c (run_funs): New fun.
13919 (run_window_configuration_change_hook): Use it to run the buffer-local
13920 and the global part of the hook.
13921
13922 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13923 (unwind_format_mode_line): Restore selected window.
13924 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13925
139262008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13927
13928 * editfns.c (Fchar_equal): Check they are valid characters.
13929
13930 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13931
139322008-03-17 Andreas Schwab <schwab@suse.de>
13933
13934 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13935 against a charset.
13936
13937 * lisp.h (Fbuffer_list): Declare.
13938
139392008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13940
aac0c6e3
MR
13941 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13942 handlebox_widget is != 0.
13943
139442008-03-16 Juri Linkov <juri@jurta.org>
13945
13946 * callint.c (Fcall_interactively): For interactive code letters
13947 'b' and 'B' put the buffer list into the list of default "future"
13948 values of the minibuffer.
13949
139502008-03-16 Andreas Schwab <schwab@suse.de>
13951
13952 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13953 modifiers.
13954
13955 * regex.c (re_match_2_internal): Correct matching of a charset
13956 against latin-1 characters.
13957
139582008-03-16 Kenichi Handa <handa@m17n.org>
13959
13960 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13961 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13962 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13963 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13964 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13965 CHAR_STRING_ADVANCE.
13966 (produce_chars): Fix for the case that the source and the
13967 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13968 instead of CHAR_STRING_ADVANCE.
13969 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13970 STRING_CHAR_ADVANCE.
13971
139722008-03-15 Andreas Schwab <schwab@suse.de>
13973
13974 * regex.c (re_match_2_internal): Correct matching of eight bit
13975 characters in unibyte strings.
13976
139772008-03-15 Martin Rudalics <rudalics@gmx.at>
13978
13979 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13980 at end of range when it coincides with the end of the buffer.
13981
139822008-03-14 Eli Zaretskii <eliz@gnu.org>
13983
13984 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13985
13986 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13987
139882008-03-14 Jason Rumney <jasonr@gnu.org>
13989
13990 * editfns.c (initial_tz): New variable.
13991 (syms_of_editfns): Initialize it.
13992 (Fset_time_zone_rule): Set it when first called.
13993 Use it when TZSTRING is nil.
13994
13995 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13996 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13997 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13998 (globals_of_w32fns): Initialize them.
13999 (compute_tip_xy): Use them to position tooltips.
14000
140012008-03-14 Glenn Morris <rgm@gnu.org>
14002
14003 * emacs.c (main): Revert previous change.
14004 (standard_args): Revert -internal-script back to -scriptload,
14005 and remove the long-option form.
14006
140072008-03-13 Glenn Morris <rgm@gnu.org>
14008
14009 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14010 Remove option -enable-font-backend.
14011
140122008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14013
14014 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14015
140162008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14017
14018 * xterm.c (x_connection_closed): For GTK: If this is the last
14019 terminal just exit without closing the display.
14020
140212008-03-11 Jason Rumney <jasonr@gnu.org>
14022
14023 * w32font.c (w32font_full_name): Use floor to round.
14024
f0131492 140252008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14026
14027 * sound.c (alsa_configure): Declare vol at beginning of block.
14028
14029 * fontset.c (Ffontset_info): Remove extra semicolon.
14030
140312008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14032
14033 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14034 size of resulting string.
14035
140362008-03-10 Jason Rumney <jasonr@gnu.org>
14037
14038 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14039
140402008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14041
14042 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14043 Don't pretend as if characters with display property haven't been
14044 consumed for string-replacing-string case.
14045
140462008-03-08 Kim F. Storm <storm@cua.dk>
14047
14048 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14049 (get_next_display_element, next_element_from_string)
14050 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14051
140522008-03-08 Andreas Schwab <schwab@suse.de>
14053
14054 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14055
140562008-03-06 Jason Rumney <jasonr@gnu.org>
14057
14058 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14059 when charset not specified. Only translate ANSI to unicode when
14060 font_type is truetype.
14061 (w32font_coverage_ok): New function.
14062 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14063
140642008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14065
14066 * lread.c (Fread_char): Resolve modifiers.
14067 (Fread_char_exclusive): Likewise.
14068
14069 * character.c (char_resolve_modifier_mask): New function.
14070 (char_string): Use char_resolve_modifier_mask.
14071 (Fchar_resolve_modifiers): New function.
14072 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14073 function.
14074
140752008-03-04 Jason Rumney <jasonr@gnu.org>
14076
14077 * makefile.w32-in: Always include w32font.c in the build.
14078 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14079
140802008-03-04 Andreas Schwab <schwab@suse.de>
14081
14082 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14083 (versionclean): Likewise.
14084
140852008-03-04 Juanma Barranquero <lekktu@gmail.com>
14086
14087 * .cvsignore: Add oo.
14088
140892008-03-03 Andreas Schwab <schwab@suse.de>
14090
14091 * coding.c (decode_coding_object): Inhibit gap shrinking while
14092 decoding in place.
14093
140942008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14095
14096 * w32term.c: Remove unused include "gnu.h".
14097 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14098
14099 * gnu.h: Rename to ...
14100 * emacs-icon.h: ... this.
14101 * xterm.c: Use emacs-icon.h instead of gnu.h.
14102 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14103
141042008-03-03 Juanma Barranquero <lekktu@gmail.com>
14105
14106 * w32font.c: Include math.h.
14107
141082008-03-03 Jason Rumney <jasonr@gnu.org>
14109
14110 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14111 Compute options separately.
14112 (w32font_open_internal): Set glyph_idx before caching metrics.
14113
14114 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14115 Define if system headers don't.
14116 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14117 (w32font_encode_char): Don't declare here.
14118
14119 * w32font.c (Quniscribe, QCformat): New symbols.
14120 (syms_of_w32font): Define them.
14121 (w32font_has_char): Indicate uncertainty.
14122 (w32font_encode_char): Encode as glyph point. Make static.
14123 (recompute_cached_metrics): New function.
14124 (w32font_open_internal): Use it. Set font to use glyph points
14125 initially. Set format based on type of font.
14126 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14127 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14128 on it. Set format based on information available here.
14129 (add_font_entity_to_list): Identify backend based on opentype_only.
14130
141312008-03-02 Andreas Schwab <schwab@suse.de>
14132
14133 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14134
14135 * coding.c (decode_coding_big5, produce_chars):
14136 Fix typos in last change.
14137
141382008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14139
14140 * gnu.h: New icon.
14141
141422008-03-02 Kenichi Handa <handa@m17n.org>
14143
14144 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14145 `dos', don't decode '\r' if that is the last in the source.
14146 (decode_coding_utf_16, decode_coding_emacs_mule)
14147 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14148 (decode_coding_raw_text, decode_coding_charset): Likewise.
14149 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14150
141512008-03-01 Jason Rumney <jasonr@gnu.org>
14152
14153 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14154
141552008-03-01 Kim F. Storm <storm@cua.dk>
14156
14157 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14158
141592008-03-01 Jason Rumney <jasonr@gnu.org>
14160
14161 * w32font.c (w32font_full_name): New function.
14162 (w32font_open_internal): Use it.
14163
141642008-03-01 Kim F. Storm <storm@cua.dk>
14165
14166 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14167
141682008-03-01 Jason Rumney <jasonr@gnu.org>
14169
14170 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14171
141722008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14173
14174 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14175 xg_frame_resized when the event is for the edit widget.
14176
14177 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14178
14179 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14180 set_char_size.
14181 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14182 operations on widgets here. Just set frame size if needed.
14183 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14184 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14185 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14186 the whole frame.
14187 (xg_create_tool_bar): Move attachment of the tool bar to
14188 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14189 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14190
141912008-03-01 Jason Rumney <jasonr@gnu.org>
14192
14193 * w32fns.c (w32_msg_pump): Disable debug code.
14194
141952008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14196
14197 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14198
141992008-02-29 Chong Yidong <cyd@stupidchicken.com>
14200
14201 * xdisp.c (next_overlay_string): Don't set
14202 overlay_strings_at_end_processed_p if we're currently reading from
14203 a display string.
14204
142052008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14206
14207 * xdisp.c (get_overlay_strings_1): Fix typo.
14208
142092008-02-29 Chong Yidong <cyd@stupidchicken.com>
14210
14211 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14212
142132008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14214
14215 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14216
14217 * xdisp.c (display_mode_element): Cancel the previous change.
14218 (decode_mode_spec): Likewise.
14219 (handle_auto_composed_prop): Don't make composition if it->string
14220 is a string.
14221
142222008-02-27 Kim F. Storm <storm@cua.dk>
14223
14224 * lisp.h (GLYPH): Change type from int to struct with separate char
14225 and face_id members.
14226 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14227 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14228 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14229 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14230 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14231 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14232 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14233 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14234 handle new Lisp glyph code encoding, either an integer or a cons.
14235
14236 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14237 (GLYPH_ALIAS): Delete.
14238 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14239 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14240 (GLYPH_FROM_CHAR): Replace macro by ...
14241 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14242
14243 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14244 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14245 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14246 (GLYPH_INVALID_P): New macro.
14247 (spec_glyph_lookup_face): Update prototype.
14248
14249 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14250 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14251 new glyph code encoding.
14252 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14253 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14254
14255 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14256 Adapt to new glyph type and new glyph code encoding.
14257
14258 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14259
14260 * indent.c (current_column, current_column_1, Fmove_to_column)
14261 (compute_motion): Adapt to new glyph code encoding.
14262
14263 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14264
142652008-02-27 Chong Yidong <cyd@stupidchicken.com>
14266
14267 * process.c (wait_reading_process_output): Check for window
14268 changes caused by timers.
14269 Suggested by Johan Bockgård.
14270
142712008-02-27 Glenn Morris <rgm@gnu.org>
14272
14273 * emacs.c (USAGE1): Add `--disable-font-backend'.
14274
142752008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14276
14277 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14278 is made to the buffer.
14279
142802008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14281
14282 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14283 (face_at_string_position):
14284 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14285 (face_at_string_position):
14286 * xdisp.c (display_string, next_overlay_change):
14287 * buffer.h (overlays_at):
14288 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14289 Update callers.
14290
142912008-02-26 Chong Yidong <cyd@stupidchicken.com>
14292
14293 * editfns.c (Fformat): Doc fix.
14294
142952008-02-26 Juanma Barranquero <lekktu@gmail.com>
14296
14297 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14298 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14299 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14300
143012008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14302
14303 * buffer.c (Fbuffer_swap_text): New function.
14304 (syms_of_buffer): Defsubr it.
14305
143062008-02-25 Chong Yidong <cyd@stupidchicken.com>
14307
14308 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14309
143102008-02-25 Jason Rumney <jasonr@gnu.org>
14311
14312 * w32font.c (w32font_draw): Draw one character at a time when padding.
14313
143142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14315
14316 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14317 Handle a nil arg. Use run_window_configuration_change_hook.
14318 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14319 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14320 Use run_window_configuration_change_hook.
14321
143222008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14323
14324 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14325 1-pixel width.
14326
143272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14328
14329 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14330 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14331 if the glyph in the font is zero pixel with.
14332
14333 * dispextern.h (struct glyph_string): New member padding_p.
14334
14335 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14336
14337 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14338
14339 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14340
14341 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14342
14343 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14344
143452008-02-25 Jason Rumney <jasonr@gnu.org>
14346
14347 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14348
143492008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14350
14351 Allow fine-grained image-cache flushing.
14352 * dispextern.h (struct image): Add `dependencies' field.
14353 (clear_image_caches): Change arg to Lisp_Object.
14354 * image.c (make_image): Initialize `dependencies' field.
14355 (clear_image_cache): Change arg to allow fine-grained flushing.
14356 Perform the flush even if image-cache-eviction-delay is nil.
14357 (clear_image_caches): Change arg to Lisp_Object.
14358 (Fclear_image_cache): Expand meaning of the argument.
14359 (mark_image): Mark `dependencies' field.
14360 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14361 (lface_hash): Use XHASH rather than XFASTINT.
14362 (face_at_buffer_position): Fix int -> EMACS_INT position.
14363 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14364 (select_frame_for_redisplay): Remove code duplication.
14365 (redisplay_internal): Adapt arg to call to clear_image_caches.
14366
143672008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14368
14369 * s/vms4-0.h:
14370 * s/vms4-2.h:
14371 * s/vms4-4.h:
14372 * s/vms5-5.h: Remove, unused.
14373
14374 * s/irix5-2.h:
14375 * s/irix6-0.h:
14376 * s/riscos5.h:
14377 * s/mach-bsd4-3.h:
14378 * m/mips4.h: Remove files for obsolete systems.
14379
14380 * Makefile.in:
14381 * filelock.c:
14382 * unexmips.c:
14383 * m/hp9000s300.h:
14384 * m/iris4d.h:
14385 * s/aix3-1.h:
14386 * s/hpux.h:
14387 * s/msdos.h:
14388 * s/usg5-0.h:
14389 * s/usg5-2-2.h:
14390 * s/usg5-2.h:
14391 * s/usg5-3.h: Remove references to obsolete variables.
14392
14393 * s/irix5-0.h: Remove, move all the contents ...
14394 * s/irix6-5.h: ... here. Simplify.
14395 * config.in: Regenerate.
14396
143972008-02-24 Jason Rumney <jasonr@gnu.org>
14398
14399 * w32term.c (x_draw_glyph_string_background): Clear the background
14400 manually when cleartype is in use.
14401 (x_draw_glyph_string_foreground): Draw text transparently when
14402 cleartype is in use.
14403
14404 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14405 a font into it unless we have to.
14406
144072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14408
14409 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14410 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14411
aac0c6e3
MR
144122008-02-18 Jason Rumney <jasonr@gnu.org>
14413
14414 * w32fns.c (Fw32_shell_execute): Encode parameters.
14415
144162008-02-09 Eli Zaretskii <eliz@gnu.org>
14417
14418 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14419
144202008-02-05 Juanma Barranquero <lekktu@gmail.com>
14421
14422 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14423
144242008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14425
14426 * xterm.c (x_set_offset): Don't change the gravity if
14427 CHANGE_GRAVITY is -1.
14428
144292008-02-23 Chong Yidong <cyd@stupidchicken.com>
14430
14431 * fileio.c (auto_save_error_occurred): New var.
14432 (auto_save_error): Set it.
14433 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14434 error occurred.
14435
144362008-02-23 Eli Zaretskii <eliz@gnu.org>
14437
14438 * w32.c (globals_of_w32): Add initializations for
14439 g_b_init_get_sid_sub_authority and
14440 g_b_init_get_sid_sub_authority_count.
14441
144422008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14443
14444 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14445 (font_parse_xlfd): Use them for sanity check.
14446 (Finternal_set_font_style_table): Make sure the table is bijective.
14447
14448 Consolidate the image_cache to the terminal struct.
14449 * termhooks.h (P_): Remove redundant def.
14450 (struct terminal): New field `image_cache'.
14451 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14452 of FRAME_X_IMAGE_CACHE.
14453 * xterm.h (struct x_display_info): Remove image_cache field.
14454 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14455 * w32term.h (struct w32_display_info): Remove image_cache field.
14456 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14457 * macterm.h (struct mac_display_info): Remove image_cache field.
14458 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14459 * xterm.c (x_term_init):
14460 * w32term.c (w32_term_init):
14461 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14462 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14463 Remove declarations.
14464 (clear_image_caches, mark_image_cache): New declarations.
14465 * xfaces.c (clear_face_cache):
14466 * xdisp.c (redisplay_internal): Use clear_image_caches.
14467 * image.c (clear_image_cache): Don't check that a frame is on
14468 a window-system before checking if it shares the same cache.
14469 (clear_image_caches): New function.
14470 (Fclear_image_cache): Use it.
14471 (mark_image): Move from allo.c.
14472 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14473 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14474 (mark_object): Don't call mark_image_cache for frames.
14475 (mark_terminals): Call mark_image_cache.
14476
14477 * lisp.h (Fdelete_terminal): Declare.
14478
14479 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14480 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14481 wrong_type_argument.
14482
144832008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14484
14485 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14486 malayalam.el, and tamil.el. Add sinhala.el.
14487
144882008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14489
14490 * xterm.c (x_connection_closed): Consolidate identical tests.
14491 (x_delete_terminal): Don't crash if called via x_connection_closed.
14492
144932008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14494
14495 * xdisp.c (decode_mode_spec): New arg string.
14496 (display_mode_element): Adjust for the above change.
14497
144982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14499
14500 * callint.c (Fcall_interactively): Use AREF.
14501
145022008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14503
14504 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14505
145062008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14507
14508 * xfns.c (Fx_show_tip): Set string to " " if empty.
14509
145102008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14511
14512 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14513 with Qt.
14514
145152008-02-17 Kenichi Handa <handa@m17n.org>
14516
14517 * ftfont.c (ftfont_shape): Return Lispy number.
14518
14519 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14520 for GCs.
14521 (Finternal_set_font_selection_order): Call font_update_sort_order
14522 only when enable_font_backend is set.
14523 (realize_x_face): Set face->font_info to that of default face only
14524 when enable_font_backend is set.
14525
14526 * xdisp.c (handle_composition_prop): Set it->c to the fist
14527 character of the composed region.
14528 (fill_composite_glyph_string): Set base_face->font_info to
14529 s->font_info. Get a face for ascii from base_face->ascii_face.
14530 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14531 with a face already decided.
14532 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14533 non-negative.
14534 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14535 call font_prepare_composition unconditionally.
14536
14537 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14538
14539 * xterm.h (struct x_display_info): New member font.
14540
14541 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14542 (x_set_mouse_face_gc, x_new_font): Likewise.
14543 (x_term_init): Setup display_info->font.
14544 (x_delete_terminal): Free display_info->font.
14545
14546 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14547
14548 * ftxfont.c (ftxfont_default_fid): Delete it.
14549 (ftxfont_open): Set xfont->fid to 0.
14550 (ftxfont_end_for_frame): Clear data specific to the frame and the
14551 font-driver.
14552
14553 * xftfont.c (xftfont_default_fid): Delete it.
14554 (xftfont_open): Set xfont->fid to 0.
14555
14556 * fontset.c (FONTSET_OBJLIST): New macro.
14557 (fontset_find_font): Update font-object list of the fontset.
14558 (free_realized_fontset): New function.
14559 (free_face_fontset): Call free_realized_fontset.
14560 (Ffont_info): Call font_close_object only when enable_font_backend
14561 is set.
14562
14563 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14564 [HAVE_NTGUI]: Include w32term.h.
14565 [MAC_OS]: Include macterm.ch.
14566 (font_otf_ValueRecord): Use make_number.
14567 (font_finish_cache): Fix handling of reference count.
14568 (font_clear_cache): Update num_fonts.
14569 (font_open_entity): Update smallest_char_width and
14570 smallest_font_height of the frame.
14571 (font_close_object): Update num_fonts.
14572 (Fclear_font_cache): Fix finding the target cache data.
14573
145742008-02-16 Glenn Morris <rgm@gnu.org>
14575
14576 * fontset.c (Finternal_char_font): Fix compilation warning.
14577
145782008-02-16 Eli Zaretskii <eliz@gnu.org>
14579
14580 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14581 instead of char arrays. Enlarge the size of array passed to
14582 get_token_information.
14583
14584 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14585 warnings.
14586
145872008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14588
14589 * .gdbinit: Don't set `args', it breaks gdb --args.
14590
145912008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14592
14593 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14594 within a narrowed buffer.
14595
145962008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14597
14598 * coding.c (decode_coding_object, encode_coding_object):
14599 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14600
146012008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14604 hardcoding 1.
14605 (detect_coding_system):
14606 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14607 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14608 * insdel.c (insert_from_gap):
14609 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14610 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14611 (string_to_multibyte):
14612 * character.c (chars_in_text, multibyte_chars_in_text):
14613 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14614
14615 * character.h (FETCH_STRING_CHAR_ADVANCE)
14616 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14617 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14618 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14619
14620 * casefiddle.c (casify_region): Only call after-change and composition
14621 functions on the part of the region that was changed.
14622
14623 * keyboard.c (read_avail_input):
14624 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14625
146262008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14627
14628 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14629 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14630
146312008-02-11 Juanma Barranquero <lekktu@gmail.com>
14632
14633 * w32menu.c (push_submenu_start, push_submenu_end)
14634 (push_left_right_boundary, push_menu_pane, push_menu_item):
14635 * keyboard.c (read_key_sequence): Don't pass args with side effects
14636 to AREF, it fails when compiling with -DENABLE_CHECKING.
14637
146382008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14639
14640 * Makefile.in (${lispsource}international/charprop.el):
14641 Delete this target.
14642
14643 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14644 emacs-unicode-2.
14645
146462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14647
14648 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14649
146502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14651
14652 * frame.c (Qnoelisp): New symbol.
14653 (syms_of_frame): Initialize it.
14654 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14655 harmless Elisp code, from a strong `force' from x_connection_closed.
14656 * frame.h (Qnoelisp): Declare.
14657 * xterm.c (x_connection_closed): Pass `noelisp'.
14658
14659 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14660 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14661 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14662 rather than `int' for the type of `type'.
14663
146642008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14665
14666 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14667
14668 * Makefile.in (GNUC): Remove support for gcc-1.x.
14669
146702008-02-10 Richard Stallman <rms@gnu.org>
14671
14672 * lisp.h (ASET): Use AREF, not ASLOT.
14673
146742008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14675
14676 * lisp.h (ASET): Check bounds.
14677
146782008-02-10 Glenn Morris <rgm@gnu.org>
14679
14680 * buffer.c (mode-name): Doc fix.
14681
146822008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14683
14684 * Makefile.in:
14685 * emacs.c:
14686 * gmalloc.c:
14687 * keyboard.c:
14688 * lisp.h:
14689 * m/ibm370aix.h:
14690 * process.c:
14691 * regex.c:
14692 * s/hpux.h:
14693 * sysdep.c:
14694 * sysselect.h:
14695 * systty.h:
14696 * unexec.c:
14697 * w32term.c:
14698 * xsmfns.c:
14699 * xterm.c: Remove code that deals with obsolete variables.
14700
14701 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14702
14703 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14704 nothing else needs it anymore.
14705
147062008-02-09 Eli Zaretskii <eliz@gnu.org>
14707
14708 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14709 instead of unibyte_char_to_multibyte.
14710
147112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14712
14713 * s/gnu-linux.h: Remove commented out code.
14714
14715 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14716
14717 * Makefile.in: Update what RMS says about using autoconf.
14718 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14719 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14720 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14721 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14722
147232008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14724
14725 * keymap.c (Fkey_description): Move side effect outside of macro call.
14726
14727 * xfaces.c (Finternal_make_lisp_face):
14728 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14729
14730 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14731 (syms_of_fontset): Use ASET.
14732
14733 * fns.c (concat): Move side effect outside of macro call.
14734 (hash_clear): Use ASET.
14735
147362008-02-08 Richard Stallman <rms@gnu.org>
14737
14738 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14739 If FORCE, and frame has a surrogate minibuffer for another frame,
14740 delete the other frame first.
14741
147422008-02-07 Timo Savola <timo.savola@iki.fi>
14743
14744 * xterm.c (x_detect_focus_change): Handle embed client message.
14745 (handle_one_xevent): Ditto.
14746 (handle_one_xevent): If embedded and we get a button press/release,
14747 request focus.
14748 (xembed_set_info, xembed_send_message): New functions.
14749 (x_make_frame_visible): Call xembed_set_info if embedded.
14750 (x_make_frame_invisible): Call xembed_set_info if embedded.
14751 (x_term_init): Initialize Xatom_XEMBED.
14752 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14753 (x_iconify_frame): Ditto.
14754
14755 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14756 (enum xembed_info, enum xembed_message, enum xembed_focus)
14757 (enum xembed_modifier, enum xembed_accelerator): New.
14758 (xembed_set_info, xembed_send_message): Declare.
14759 (FRAME_X_EMBEDDED_P): New.
14760
14761 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14762 gtk_plug_new.
14763
14764 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14765 window ID of a frame.
14766 (x_window): Reparent frame if embedded.
14767 (Fx_create_frame): Don't set border width if embedded.
14768
14769 * emacs.c (USAGE3): Add --parent-id.
14770 (standard_args): Ditto.
14771
147722008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14773
14774 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14775
147762008-02-07 Jim Meyering <meyering@redhat.com>
14777
14778 Use "do...while (0)", not "if (1)...else" in macro definitions.
14779 The latter provokes a warning from gcc about the empty else, when
14780 followed by ";". Also, without that trailing semicolon, it would
14781 silently swallow up any following statement.
14782 * syntax.h (SETUP_SYNTAX_TABLE)
14783 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14784 * buffer.h (DECODE_POSITION): Likewise.
14785 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14786 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14787 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14788 (FETCH_CHAR_ADVANCE): Likewise.
14789 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14790
147912008-02-07 Jim Meyering <meyering@redhat.com>
14792
14793 * lread.c [lint]: Don't include <sys/inode.h>.
14794
147952008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14796
14797 * xselect.c (x_handle_dnd_message):
14798 * xmenu.c (digest_single_submenu, xmenu_show):
14799 * xdisp.c (with_echo_area_buffer_unwind_data)
14800 (format_mode_line_unwind_data, unwind_format_mode_line)
14801 (display_menu_bar):
14802 * eval.c (Ffetch_bytecode):
14803 * doc.c (store_function_docstring):
14804 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14805 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14806 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14807
148082008-02-07 Kenichi Handa <handa@m17n.org>
14809
14810 * ftxfont.c (ftxfont_open): Don't set
14811 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14812
14813 * ftfont.c (ftfont_open): Fix previous change.
14814
148152008-02-06 Jason Rumney <jasonr@gnu.org>
14816
14817 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14818 Use cached metrics for ASCII characters.
14819 (w32font_open_internal): Don't set font's owning_frame.
14820 Cache metrics for ASCII characters.
14821
14822 * w32font.h (struct w32font_info): Add ascii_metrics.
14823 Remove owning_frame.
14824
148252008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14826
14827 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14828 to negative value.
14829
14830 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14831
14832 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14833
14834 * charset.c (syms_of_charset): Set QCtest and Qeq.
14835
148362008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14837
14838 * process.c (Fstart_process):
14839 * callproc.c (Fcall_process): Handle the case where
14840 Funhandled_file_name_directory returns nil.
14841
14842 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14843 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14844 * font.c (check_gstring): Use them and AREF to access the vector before
14845 we know it's really a gstring.
14846 (Ffont_shape_text): Fix typo.
46e722a9 14847 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14848
14849 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14850 Declare.
14851
14852 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14853
148542008-02-05 Jason Rumney <jasonr@gnu.org>
14855
14856 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14857 Set smallest_font_height and smallest_char_width in display info.
14858
148592008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14860
14861 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14862
148632008-02-05 Miles Bader <miles@gnu.org>
14864
14865 * xfaces.c (get_lface_attributes, merge_named_face)
14866 (lookup_named_face, lookup_derived_face, realize_named_face):
14867 Revert 2008-02-01 change by cyd@stupidchicken.com.
14868
148692008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14870
14871 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14872 fallback fonts.
14873 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14874
148752008-02-04 Jason Rumney <jasonr@gnu.org>
14876
14877 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14878 set full_name.
14879 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14880
148812008-02-03 Jason Rumney <jasonr@gnu.org>
14882
14883 * makefile.w32-in (OBJ1): Include font.o here.
14884 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14885
148862008-02-02 Jason Rumney <jasonr@gnu.org>
14887
14888 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14889
148902008-02-01 Jason Rumney <jasonr@gnu.org>
14891
14892 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14893
14894 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14895
148962008-02-01 Andreas Schwab <schwab@suse.de>
14897
14898 * Makefile.in (shortlisp, lisp): Update for rename of
14899 ../lisp/language/myanmar.el.
14900
149012008-02-01 Chong Yidong <cyd@stupidchicken.com>
14902
14903 * xfaces.c (get_lface_attributes): Delete function.
14904 (merge_named_face, lookup_named_face, lookup_derived_face)
14905 (realize_named_face): Call lface_from_face_name directly, and use
14906 the fact that merge_face_vectors does not alter its FROM argument.
14907
149082008-02-01 Jason Rumney <jasonr@gnu.org>
14909
14910 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14911 input in the default locale. Handle non-Unicode multibyte input.
14912
149132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14914
14915 * fontset.c (reorder_font_vector): Exclude nil elements from the
14916 font group. Don't try multiple fonts.
14917 (fontset_font): Adjust for the above change.
14918 (Finternal_char_font): Return nil if the found font doesn't
14919 contain the character ch.
14920
14921 * Makefile.in (lisp, shortlisp): Add cham.el.
14922
149232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14924
14925 * font.h (FONTP): Make it return 1 also for a font-object.
14926
14927 * .gdbinit (xfontset): New function.
14928
14929 * font.c (font_find_for_lface): Check if the character C is
14930 supported or not only for the first font.
14931
14932 * fontset.c (reorder_font_vector): Fix typo.
14933 (fontset_find_font): Don't add a font-spec specifying a script.
14934 Use 0 (not Qt) for the indication of empty font-group. Change the
14935 format of RFONT-DEF. Return Qt if no font in the font-group
14936 support the character.
14937 (fontset_font): Adjust for the above change. If no font was
14938 found the character, remember that.
14939 (face_for_char): Adjust for the change of RFONT-DEF.
14940 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14941 no font for the target.
14942 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14943
149442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14945
14946 * font.c (font_load_for_face): Handle the case that the font in
14947 face->lface is a string.
14948
149492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14950
14951 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14952
149532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14954
14955 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14956 Fix previous change. If the frame is not on a window system,
14957 signal an error.
14958
149592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14960
14961 * coding.c (decode_coding_object, encode_coding_object): Adjust
14962 marker positions after conversion.
14963
14964 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14965
149662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14967
14968 * font.c (font_find_for_lface): Fix the handling of the return
14969 value of font_has_char.
14970 (Ffont_shape_text): Fix previous change.
14971
14972 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14973 (fontset_ref_and_range): Delete it.
14974 (fontset_find_font): Call char_table_ref_and_range instead of
14975 FONTSET_REF_AND_RANGE.
14976 (make_fontset): Don't setup font groups of Latin here.
14977 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14978 (new_fontset_from_font): Make the specified font the default for
14979 all Latin characters.
14980
149812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14982
14983 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14984 is on a window system before accessing the fontset of the frame.
14985
149862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14987
14988 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14989
14990 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14991 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14992
14993 * font.c (Ffont_shape_text): If the font driver doesn't have a
14994 shaper function, make zero-width glyphs to have at least one-pixel
14995 width. Fix setting of `to' field of glyphs.
14996
149972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14998
14999 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15000 glyphs.
15001
15002 * font.h (struct font_driver): Improve docstring of member `shape'.
15003
150042008-02-01 Kenichi Handa <handa@m17n.org>
15005
15006 * composite.c (syms_of_composite): Fix docstring of
15007 auto-composition-function.
15008
15009 * font.h (LGLYPH_SIZE): New macro.
15010
15011 * font.c (Ffont_fill_gstring): Stop filling when a character not
15012 supported by the font is found.
15013 (Ffont_shape_text): When a shape callback function returns nil,
15014 try at most two more times with larger gstring.
15015 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15016
15017 * xdisp.c (handle_auto_composed_prop): Change the argument to
15018 auto-composition-function.
15019
15020 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15021 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15022 Lispy glyph and store it in the lgstring.
15023
15024 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15025
15026 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15027
150282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15029
15030 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15031
15032 * fontset.c (Vfont_encoding_charset_alist): New variable.
15033 (syms_of_fontset): DEFVAR it.
15034 (reorder_font_vector, fontset_find_font): Optimize for the case of
15035 no need of reordering.
15036 (face_for_char): Map the charset property by
15037 Vfont_encoding_charset_alist.
15038
150392008-02-01 Jason Rumney <jasonr@gnu.org>
15040
15041 * w32font.c (logfonts_match): Don't check adstyle here.
15042 (font_matches_spec): Check here against physical font instead.
15043 (add_font_entity_to_list): Avoid some substitutions.
15044
15045 * font.c (font_parse_fcname): Default weight and slant to normal.
15046 (font_score): Prefer normal fonts if weight or slant unspecified.
15047 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15048 match freetype scores.
15049
150502008-02-01 Jason Rumney <jasonr@gnu.org>
15051
15052 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15053 font, as it may have been deleted.
15054 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15055 most common hyphenless variation.
15056 (logfonts_match): Check generic family.
15057 (font_matches_spec): Don't check generic family here.
15058 (fill_in_logfont): Set generic family based on adstyle.
15059
15060 * w32font.h (w32font_get_cache): Update declaration.
15061
150622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15063
15064 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15065
15066 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15067 If none of the new drivers are available, call font_update_drivers
15068 with the old drivers.
15069
15070 * w32font.c (w32font_get_cache): Adjust the argument type.
15071
15072 * xfont.c (xfont_get_cache): Adjust the argument type.
15073
15074 * font.h (struct font_driver): Change argument type of get_cache.
15075
15076 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15077
15078 * font.c (Ffont_get): Fix arguments to Fassoc.
15079 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15080 (font_clear_cache): New function.
15081 (font_list_entities, font_matching_entity): Use font_get_cache.
15082 (font_update_drivers): Call font_clear_cache when finishing a driver.
15083
15084 * fontset.c (fontset_find_font): Fix previous change.
15085
150862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15087
15088 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15089 dpyinfo->font_table.
15090 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15091 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15092
15093 * font.c (font_at): Handle the case that the arg C is negative.
15094 Handle the unibyte case.
15095 (Ffont_at): Call font_at with the arg C -1.
15096
15097 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15098 the position here, and call font_at with the arg C -1.
15099 Don't check the range of the existing composition at the point.
15100
151012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15102
15103 * fontset.c (fontset_add): New args charset_id and family.
15104 Change caller.
15105 (load_font_get_repertory, fontset_find_font): Assume that
15106 font_spec is always a font-spec object.
15107 (Fset_fontset_font): Always store a font-spec object in a fontset.
15108
15109 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15110 instead of get_property_and_range.
15111
151122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15113
15114 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15115 (xftfont_open): Don't keep locking face.
15116 (xftfont_close): Don't unlock face.
15117 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15118
15119 * fontset.c (fontset_find_font): Don't prefer a font of
15120 supplementary charset.
15121
151222008-02-01 Kenichi Handa <handa@m17n.org>
15123
15124 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15125 script, langsys_tag to langsys, new member script.
15126 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15127 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15128 listing to the script specified in that property. Fix arg to
15129 OTF_check_features.
15130
151312008-02-01 Jason Rumney <jasonr@gnu.org>
15132
15133 * w32font.h: New file.
15134
15135 * w32font.c: Include it.
15136 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15137 (w32font_open): Set owning_frame.
15138 (w32font_text_extents): Use owning_frame.
15139 (struct font_callback_data): Add opentype_only field.
15140 (add_font_entity_to_list): Use it to filter fonts.
15141 Don't check against full name.
15142 (w32font_list_internal): New function.
15143 (w32font_list): Use it.
15144 (w32font_match_internal): New function.
15145 (w32font_match): Use it.
15146 (w32font_open_internal): New function.
15147 (w32font_open): Use it.
15148 (w32font_get_cache, w32font_close, w32font_has_char)
15149 (w32font_encode_char, w32font_text_extents, w32font_draw):
15150 Make non-static.
15151
15152 * makefile.w32-in (w32font.o): Depend on w32font.h.
15153
151542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15155
15156 * charset.c (Fdefine_charset_internal): Record a supplementary
15157 charset at the tail of Vcharset_order_list.
15158
15159 * font.c (Ffont_shape_text): Fix the return value.
15160
15161 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15162
15163 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15164
151652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15166
15167 * ftfont.c (struct OpenTypeSpec): New struct.
15168 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15169 (ftfont_get_open_type_spec): New function.
15170 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15171
15172 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15173
151742008-02-01 Jason Rumney <jasonr@gnu.org>
15175
15176 * w32font.c (add_font_entity_to_list): Compare only the beginning
15177 of full name.
15178
151792008-02-01 Kenichi Handa <handa@m17n.org>
15180
15181 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15182 Never return HANDLED_RECOMPUTE_PROPS.
15183
151842008-02-01 Kenichi Handa <handa@m17n.org>
15185
15186 * font.c (font_gstring_produce): Delete it.
15187
15188 * composite.h (COMPOSITION_METHOD):
15189 Handle COMPOSITION_WITH_GLYPH_STRING.
15190
151912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15192
15193 * xfont.c (Qx): Delete.
15194 (syms_of_xfont): Don't initialize Qx.
15195
15196 * composite.h (enum composition_method):
15197 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15198
151992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15200
15201 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15202 (choose_face_font): Accept new form of font-spec.
15203
15204 * frame.h (font_driver_list): Declare it unconditionally.
15205 (struct frame): Define members font_driver_list and font_data_list
15206 unconditionally.
15207
15208 * fontset.c: Include "font.h" unconditionally.
15209 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15210 (Fset_fontset_font): Accept a font-spec object.
15211
15212 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15213 PIXEL_SIZE part a wild card.
15214
15215 * dispextern.h (struct glyph_string): Define members clip and
15216 num_clips unconditionally.
15217 (struct face): Define members font_info and extra unconditionally.
15218
15219 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15220 ftfont_info only when HAVE_LIBOTF is defined.
15221
152222008-02-01 Andreas Schwab <schwab@suse.de>
15223
15224 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15225 and end.
15226
152272008-02-01 Jason Rumney <jasonr@gnu.org>
15228
15229 * w32font.c (w32font_driver): Add new fields.
15230
152312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15232
15233 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15234 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15235 (LIBES): Add @M17N_FLT_CFLAGS@.
15236
15237 * composite.c (compose_text): Don't treat the new style
15238 composition specially.
15239
15240 * emacs.c (main): Call syms_of_font unconditionally.
15241
15242 * font.h (FONT_ENTITY_NOT_LOADABLE)
15243 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15244 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15245 (struct font_driver): New member shape.
15246 (font_registry_charsets): Extern it.
15247 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15248 (font_otf_capability, font_drive_otf): Delete their externs.
15249
15250 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15251 (font_charset_alist, font_registry_charsets): Move from xfont.c
15252 and rename.
15253 (font_prop_validate_otf): New function.
15254 (font_property_table): Register it for QCotf.
15255 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15256 (font_drive_otf): Delete.
15257 (font_prepare_composition): New arg F. Adjust for the change of
15258 lispy gstring.
15259 (font_find_for_lface): New arg C.
15260 (font_load_for_face): Adjust for the change of font_find_for_lface.
15261 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15262 lispy gstring.
15263 (Ffont_shape_text): New function.
15264 (Fopen_font): If the font size is not given, use 12-pixel.
15265 (Ffont_at): New arg STRING.
15266 (syms_of_font): Initalize font_charset_alist.
15267 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15268 conditionally.
15269
15270 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15271 fonts of the same font-spec. Change the format of RFONT-DEF.
15272 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15273 Adjust for the change of RFONT-DEF.
15274 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15275
15276 * ftfont.h: New file.
15277
15278 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15279 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15280 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15281 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15282 font_otf_capability and font_drive_otf, set ftfont_shape.
15283 (ftfont_list): Adjust for the change of :otf property value.
15284 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15285 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15286 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15287 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15288 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15289 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15290
15291 * w32term.c (x_draw_composite_glyph_string_foreground):
15292 Adjust for the change of lispy gstring.
15293
15294 * xdisp.c (handle_composition_prop): Adjust for the change of
15295 lispy gstring. Call a function for auto-composition with the
15296 third arg it->window.
15297 (fill_composite_glyph_string): Adjust for the change of lispy string.
15298 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15299
15300 * xfaces.c (set_font_frame_param): Adjust for the change of
15301 font_find_for_lface.
15302
15303 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15304 (xfont_registry_charsets): Likewise. Change caller.
15305 (syms_of_xfont): Don't handle x_font_charset_alist.
15306
15307 * xftfont.c: Include "ftfont.h".
15308 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15309 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15310 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15311 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15312 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15313 Set xftfont_driver.shape to xftfont_shape.
15314
15315 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15316 the change of lispy gstring.
15317
153182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15319
15320 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15321
153222008-02-01 Jason Rumney <jasonr@gnu.org>
15323
15324 * w32font.c (w32font_draw): Fill background manually.
15325
153262008-02-01 Jason Rumney <jasonr@gnu.org>
15327
15328 * font.c (Qfontp): Remove unused symbol.
15329 (QCantialias): New symbol.
15330 (syms_of_font): Define it.
15331 (font_property_table): Set a validator for QCantialias.
15332
15333 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15334 Define if not already.
15335 (QCfamily): Share with xfaces.c.
15336 (Qstandard, Qsubpixel, Qnatural): New symbols.
15337 (syms_of_w32font): Define them. Don't define QCfamily here.
15338 (w32_antialias_type, lispy_antialias_type): New functions.
15339 (w32_enumfont_pattern_entity): New arg requested_font.
15340 Set antialias parameter if non-default was requested.
15341 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15342
153432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15344
15345 * lread.c (read1): Undo the previous change.
15346
153472008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15348
15349 * frame.c (Fdelete_frame): Call font_update_drivers only when
15350 USE_FONT_BACKEND is defined.
15351
153522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15353
15354 * font.h (struct font_bitmap): New member bits_per_pixel.
15355 (struct font_driver): New members start_for_frame and end_for_frame.
15356 (struct font_data_list): New struct.
15357 (font_put_frame_data, font_get_frame_data): Extern them.
15358
15359 * frame.h (struct frame): New member font_data_list.
15360
15361 * font.c (font_update_drivers): Call driver->start_for_frame and
15362 driver->end_for_frame at proper timings.
15363 (font_put_frame_data, font_get_frame_data): New functions.
15364 (Ffont_spec): Add usage in the docstring.
15365
15366 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15367 (Fdelete_frame): Call font_update_drivers.
15368
15369 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15370 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15371 (xftfont_get_xft_draw): New function.
15372 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15373 (xftfont_end_for_frame): New function.
15374 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15375
15376 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15377 Change argument. Cache GCs in the per-frame data.
15378 (struct ftxfont_frame_data): New struct.
15379 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15380 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15381 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15382 (ftxfont_end_for_frame): New function.
15383 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15384
15385 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15386
153872008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * xselect.c (Vselection_coding_system)
15390 (Vnext_selection_coding_system): Delete them.
15391 (syms_of_xselect): Don't declare selection-coding-system and
15392 next-selection-coding-system. They are declared in select.el.
15393
153942008-02-01 Jason Rumney <jasonr@gnu.org>
15395
15396 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15397
15398 * w32fns.c: Include imm.h.
15399 (get_composition_string_fn, get_ime_context_fn): New optional
15400 system functions.
15401 (globals_of_w32fns): Load them from imm32.dll.
15402 (ignore_ime_char): New flag.
15403 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15404 WM_IME_ENDCOMPOSITION messages.
15405
15406 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15407 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15408
154092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15410
15411 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15412 (READCHAR_REPORT_MULTIBYTE): New macro.
15413 (readchar): New 2nd arg MULTIBYTE.
15414 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15415 Make symbol's name multibyte according to the multibyteness of the
15416 source.
15417
154182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15419
15420 * xfaces.c (face_for_overlay_string): Call lookup_face with
15421 correct arguments (fix of synching with the trunk).
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15426 (font_prop_validate_non_neg, font_prop_validate_spacing):
15427 Delete argument prop_index.
15428 (font_property_table): Change arguments to validater. Change Callers.
15429 (font_lispy_object): Delete.
15430 (font_at): Use font_find_object instead fo font_lispy_object.
15431
154322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15433
15434 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15435 and file names.
15436
154372008-02-01 Jason Rumney <jasonr@gnu.org>
15438
15439 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15440 (font_matches_spec): Remove debug output.
15441 (add_font_entity_to_list): Avoid using substituted fonts.
15442
154432008-02-01 Jason Rumney <jasonr@gnu.org>
15444
15445 * doc.c (Fsnarf_documentation):
15446 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15447
154482008-02-01 Miles Bader <miles@gnu.org>
15449
15450 * dispextern.h (struct glyph_row): Only define "clip" field if
15451 HAVE_WINDOW_SYSTEM is defined.
15452
154532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15454
15455 Fix up multi-tty merge.
15456
15457 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15458 and indentation.
15459
15460 * xfaces.c (free_realized_face, clear_face_gcs):
15461 Include font_done_for_face in the input_blocked section, just in case.
15462
15463 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15464 (get_char_face_and_encoding): Undo last change and remove the *other*
15465 duplicate definition (i.e. keep the one that's better scoped and that
15466 includes code for the font-backend).
15467
15468 * terminal.c (create_terminal): Default keyboard_coding to
15469 `no-conversion' and terminal_coding to `undecided'.
15470
15471 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15472
15473 * fontset.c (free_realized_fontsets): Check that the table entry does
15474 contain a fontset before trying to compare it to `base'.
15475
15476 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15477 syms_of_charset, and syms_of_coding earlier because init_window_once
15478 now needs Vcoding_system_hash_table to be setup.
15479
15480 * coding.h (default_buffer_file_coding): Remove.
15481
15482 * coding.c (default_buffer_file_coding): Remove.
15483 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15484 than ->symbol, and use the terminal-local coding system.
15485 (syms_of_coding): Don't setup the coding-systems that are not
15486 terminal-local.
15487 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15488
15489 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15490 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15491
15492 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15493 in chartab.c and were re-added here by mistake.
15494 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15495
15496 * doc.c (Fsnarf_documentation):
15497 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15498 src to etc.
15499
15500 * ChangeLog.10: Add mistakenly removed entry.
15501
155022008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15503
15504 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15505
155062008-02-01 Miles Bader <miles@gnu.org>
15507
15508 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15509 Add extra args to FACE_FOR_CHAR.
15510
155112008-02-01 Kenichi Handa <handa@m17n.org>
15512
15513 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15514 in sequence.
15515
15516 * chartab.c (map_sub_char_table, map_char_table): If the range
15517 contains just one character, call the function with that character
15518 even if the depth is not 3.
15519
155202008-02-01 Jason Rumney <jasonr@gnu.org>
15521
15522 * w32font.c (w32font_text_extents): Calculate metrics for the
15523 whole string.
15524
155252008-02-01 Jason Rumney <jasonr@gnu.org>
15526
15527 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15528
155292008-02-01 Jason Rumney <jasonr@gnu.org>
15530
15531 * w32term.c (x_set_glyph_string_clipping): Use
15532 get_glyph_string_clip_rects.
15533 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15534 Adjust for the change of struct glyph_string.
15535
15536 * w32font.c (w32font_draw): Do clipping here.
15537
155382008-02-01 Kenichi Handa <handa@m17n.org>
15539
15540 * xftfont.c (xftfont_draw): Adjust for the change of struct
15541 glyph_string.
15542
15543 * xterm.c (x_set_glyph_string_clipping): Use
15544 get_glyph_string_clip_rects.
15545 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15546 Adjust for the change of struct glyph_string.
15547
15548 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15549 the resulting clip(s}.
15550 (expose_overlaps): Add arg r. Change callers. Set it to
15551 row->clip temporarily.
15552 (expose_window): Redraw rows overlapping the exposed area.
15553
15554 * dispextern.h (struct glyph_row): New member clip.
15555 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15556 clip_height, new member clip, and num_clips.
15557
155582008-02-01 Kenichi Handa <handa@m17n.org>
15559
15560 * data.c (Fchar_or_string_p): Fix docstring.
15561
155622008-02-01 Kenichi Handa <handa@m17n.org>
15563
15564 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15565 create a temporary XftDraw object.
15566
155672008-02-01 Kenichi Handa <handa@m17n.org>
15568
15569 * font.c (Ffontp): Fix docstring.
15570
15571 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15572 strong evidence of ISO-2022.
15573
155742008-02-01 Kenichi Handa <handa@m17n.org>
15575
15576 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15577 SYNTAX_ENTRY_FOLLOW_PARENT.
15578
155792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15580
15581 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15582 its type.
15583 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15584 Update to the new type of weak_hash_tables and next_weak.
15585
15586 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15587 a plain C pointer to Lisp_Hash_Table.
15588
15589 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15590 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15591 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15592 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15593 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15594 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15595 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15596 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15597 (GC_EQ): Remove since they've been identical to their non-GC_
15598 alter-egos ever since the markbit was eradicated.
15599
15600 * alloc.c:
15601 * buffer.c:
15602 * buffer.h:
15603 * data.c:
15604 * fileio.c:
15605 * filelock.c:
15606 * fns.c:
15607 * frame.h:
15608 * lisp.h:
15609 * macterm.c:
15610 * print.c:
15611 * process.c:
15612 * w32fns.c:
15613 * w32menu.c:
15614 * w32term.c:
15615 * xfns.c:
15616 * xmenu.c:
15617 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15618
156192008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * chartab.c (map_sub_char_table): Make it work for the top-level
15622 char-table. Fix handling of parent char-table.
15623 (map_char_table): Adjust for the above change.
15624
156252008-02-01 Jason Rumney <jasonr@gnu.org>
15626
15627 * w32font.c (Qgdi): Rename from Qw32.
15628
156292008-02-01 Jason Rumney <jasonr@gnu.org>
15630
15631 * w32bdf.c (get_quoted_string): Make function static.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15636 bigger ascent and descent than those of the font, use them as
15637 font's ascent and descent.
15638
156392008-02-01 Kenichi Handa <handa@m17n.org>
15640
15641 * Makefile.in (${lispsource}international/charprop.el): Move this
15642 target within "#ifdef HAVE_UNIDATA" and "#endif".
15643
156442008-02-01 Kenichi Handa <handa@m17n.org>
15645
15646 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15647 (shortlisp): Add ../lisp/language/tai-viet.el.
15648
156492008-02-01 Ulrich Mueller <ulm@gentoo.org>
15650
15651 * Makefile.in (${lispsource}international/charprop.el): Depend on
15652 temacs${EXEEXT}.
15653
156542008-02-01 Jason Rumney <jasonr@gnu.org>
15655
15656 * w32font.c (w32font_close): Delete the GDI font object.
15657
15658 * w32menu.c: Include character.h.
15659
15660 * w32proc.c: Likewise.
15661
15662 * w32select.c: Likewise.
15663
15664 * makefile.w32-in (w32proc.o): Depend on character.h.
15665
156662008-02-01 Jason Rumney <jasonr@gnu.org>
15667
15668 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15669
15670 * w32menu.c (syms_of_w32menu): Likewise.
15671
15672 * w32proc.c (syms_of_ntproc): Likewise.
15673
15674 * w32select.c (syms_of_w32select): Likewise.
15675
15676 * w32term.c (syms_of_w32term): Likewise.
15677
156782008-02-01 Jason Rumney <jasonr@gnu.org>
15679
15680 * w32font.c (w32font_draw): Delete brush after using it.
15681
156822008-02-01 Jason Rumney <jasonr@gnu.org>
15683
15684 * w32font.c (w32font_open): Don't set font_idx.
15685 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15686 to font settings.
15687 (w32font_draw): Fill background explicitly.
15688
156892008-02-01 Jason Rumney <jasonr@gnu.org>
15690
15691 * w32term.c (w32_initialize): Don't call w32font_initialize.
15692
15693 * w32font.c (w32font_info): Remove subranges.
15694 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15695 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15696 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15697 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15698 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15699 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15700 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15701 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15702 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15703 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15704 New symbols.
15705 (font_callback_data): New struct.
15706 (w32font_list, w32font_match): Use it.
15707 (w32font_open): Don't populate subranges.
15708 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15709 (w32font_encode_char): Always return unicode code-point as-is.
15710 (w32font_text_extents): Supply a transformation matrix to
15711 GetGlyphOutline. Never look up by glyph index. Avoid looping
15712 twice. Use unicode version of GetTexExtentPoint32 instead of
15713 glyph index version.
15714 (set_fonts_frame): Remove.
15715 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15716 set frame parameter. Use backward compatible fake foundries.
15717 Save generic family in extra slot under QCfamily. Make width slot
15718 constant. Save QCspacing value. Save list of scripts instead of
15719 binary subranges.
15720 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15721 (add_font_entity_to_list): Use font_callback_data struct. Filter
15722 unwanted fonts.
15723 (add_one_font_entity_to_list): Use font_callback_data struct.
15724 (w32_registry): Default to iso10646_1.
15725 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15726 string font registries. Don't fill in font name if it is a generic
15727 family name, fill family instead. Use spacing, family and script
15728 extra info to fill pitch, family and charset fields.
15729 (list_all_matching_fonts): Use font_callback_data struct.
15730 (unicode_range_for_char): Remove.
15731 (font_supported_scripts): New function.
15732 (w32font_initialize): Remove.
15733 (syms_of_w32font): Update which symbols are defined.
15734
157352008-02-01 Jason Rumney <jasonr@gnu.org>
15736
15737 * font.c (font_pixel_size): Reverse assq_no_quit args.
15738
15739 * w32term.h (FONT_WIDTH): Report max width, not average.
15740 (FONT_MAX_WIDTH): Remove.
15741 (FONT_AVG_WIDTH): New macro.
15742
15743 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15744 redefinition of FONT_WIDTH.
15745
15746 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15747 (w32_cache_char_metrics): Use FONT_WIDTH.
15748
15749 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15750
157512008-02-01 Jason Rumney <jasonr@gnu.org>
15752
15753 * w32font.c (w32font_open): Make lfHeight negative.
15754
15755 * w32fns.c (x_default_font_parameter): Use new style font name.
15756 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15757
157582008-02-01 Jason Rumney <jasonr@gnu.org>
15759
15760 * w32font.c (QCsubranges): New symbol.
15761 (w32font_open, w32font_has_char): Get subranges from subproperty
15762 of extra.
15763 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15764 (syms_of_w32font): Define :subranges symbol.
15765
15766 * font.c (font_put_extra): Expose externally.
15767
15768 * font.h (font_put_extra): Move declaration from font.c.
15769
15770 * font.c (Ffont_get): Use font driver to determine otf capability.
15771 (adjust_anchor): Check if driver defines anchor_point before using.
15772
15773 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15774 (w32font_draw): Use options.
15775 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15776 Fix detection of truetype fonts.
15777 (registry_to_w32_charset): Handle charsets other than iso8859-1
15778 expressed as lisp symbols.
15779 (w32_registry): Express charset as lisp symbol.
15780 (fill_in_logfont): Reverse pixel and point height logic.
15781 Don't set width here. Set quality to default.
15782
15783 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15784 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15785
15786 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15787 Remove redundant loop and allocation.
15788
15789 * makefile.w32-in (font.o, w32font.o): New objects.
15790 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15791 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15792
15793 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15794 STORE_XCHARB a valid l-value.
15795
15796 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15797 calculations for non-Truetype fonts.
15798 (x_draw_glyph_string): Sync with xterm.c.
15799 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15800 Remove redundant code.
15801 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15802
15803 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15804 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15805
15806 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15807 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15808
15809 * w32font.c: New file for w32 font backend.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * term.c: Don't include "buffer.h" twice.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * character.c (Funibyte_string): New function.
15818 (syms_of_character): Defsubr it.
15819
158202008-02-01 Jason Rumney <jasonr@gnu.org>
15821
15822 * w32term.c [USE_FONT_BACKEND]:
15823 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15824 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15825 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15826 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15827 (x_free_frame_resources): Sync with xterm.c.
15828
158292008-02-01 Andreas Schwab <schwab@suse.de>
15830
15831 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15832 char-table size.
15833
158342008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15837
158382008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15841 font_otf_gpos, add font_drive_otf.
15842
15843 * fontset.c (fontset_find_font): Pay attention to font size
15844 specified for a font.
15845 (reorder_font_vector): Check contents of font_def.
15846
15847 * font.c (struct otf_list): Delete it.
15848 (otf_list): Make it a lisp variable.
15849 (otf_open): Use lispy otf_list.
15850 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15851 (check_otf_features): New function.
15852 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15853 New functions.
15854 (font_drive_otf): New function merging font_otf_gsub and
15855 font_otf_gpos.
15856 (font_open_for_lface): New arg spec. Change argument order.
15857 (font_load_for_face): Adjust for the change of font_open_for_lface.
15858 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15859 Ffont_otf_gpos.
15860 (syms_of_font): Staticpro otf_list. Delete defsubr of
15861 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15862
15863 * xfaces.c (set_font_frame_param): Adjust for the change of
15864 font_open_for_lface.
15865
15866 * font.h (font_open_for_lface): Adjust prototype.
15867 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15868 member otf_drive.
15869 (font_otf_gsub, font_otf_gpos): Delete externs.
15870 (font_drive_otf): Extern it.
15871
158722008-02-01 Kenichi Handa <handa@m17n.org>
15873
15874 * font.c (font_at): If the window W is not on a window system,
15875 return Qnil.
15876
15877 * coding.c (produce_chars, encode_coding): Don't call
15878 insert_from_gap if no characters to produce.
15879
158802008-02-01 Kenichi Handa <handa@m17n.org>
15881
15882 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15883 Fclear_face_cache.
15884
15885 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15886
158872008-02-01 Miles Bader <miles@gnu.org>
15888
15889 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15890 Parse "--disable-font-backend" option.
15891 (standard_args): Add "--disable-font-backend" option.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * fontset.c (fontset_find_font): New function.
15896 (fontset_font): Use fontset_find_font.
15897 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15898 Register the specified font for all Latin characters.
15899 (new_fontset_from_font): Register the specified font for all Latin
15900 characters.
15901 (dump_fontset): For a realized fontset, include the base fontset
15902 name in the returned vector.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * character.h (CHAR_STRING): Cast C to unsigned on calling
15907 char_string.
15908
15909 * character.c (char_string): Type of arg C changed to unsigned.
15910 Signal an error if C is an invalid character code.
15911
15912 * editfns.c (general_insert_function, Fchar_to_string):
15913 Use CHARACTERP, not INTEGERP.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15918 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15919
15920 * regex.c (analyse_first): Fix for multibyte characters in "case
15921 charset:" and "case categoryspec:".
15922
159232008-02-01 Andreas Schwab <schwab@suse.de>
15924
15925 * Makefile.in (LIBES): Move standard libraries to the end.
15926
159272008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15930 nonzero, don't shrink the buffer nextb.
15931
15932 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15933
15934 * coding.c (coding_alloc_by_making_gap): New arg offset.
15935 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15936 offset.
15937 (decode_coding_iso_2022): Update coding->safe_charsets.
15938 (decode_coding_gap): Temporarily set
15939 current_buffer->text->inhibit_shrinking to 1.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15944 indexing into elements of s->cmp and s->char2b.
15945
159462008-02-01 Juanma Barranquero <lekktu@gmail.com>
15947
15948 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15949
159502008-02-01 Kenichi Handa <handa@m17n.org>
15951
15952 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15953 target_multibyte instead of multibyte.
15954 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15955 (bcmp_translate): Change the argument name from multibyte to
15956 target_multibyte.
15957
159582008-02-01 Kenichi Handa <handa@m17n.org>
15959
15960 These changes are to compile a regexp into a pattern that can be
15961 used both for multibyte and unibyte targets.
15962
15963 * Makefile.in (search.o): Depend on charset.h.
15964
15965 * character.c (multibyte_char_to_unibyte_safe): New function.
15966
15967 * search.c: Include "charset.h".
15968 (compile_pattern_1): Delete argument multibyte. Don't set
15969 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15970 (compile_pattern): Don't compare cp->buf.target_multibyte.
15971 Compare cp->buf.charset_unibyte.
15972 (compile_pattern): Set cp->buf.target_multibyte.
15973
15974 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15975
15976 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15977
15978 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15979 multibyte. Change callers.
15980 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15981 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15982 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15983 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15984 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15985 (regex_compile): Make the compiled pattern usable both for
15986 multibyte and unibyte targets.
15987 (analyse_first): Make the fastmap usable both for multibyte and
15988 unibyte targets.
15989 (TRANSLATE_VIA_MULTIBYTE): Delete.
15990 (re_match_2_internal): Pay attention to the case that the
15991 multibyteness of bufp and target may be different.
15992
159932008-02-01 Kenichi Handa <handa@m17n.org>
15994
15995 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15996 empty box occupy at least one column width.
15997
159982008-02-01 Miles Bader <miles@gnu.org>
15999
16000 * Makefile.in: Remove redundant HAVE_XFT clause.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16005
160062008-02-01 Kenichi Handa <handa@m17n.org>
16007
16008 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16009 being nil.
16010
160112008-02-01 Kenichi Handa <handa@m17n.org>
16012
16013 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16014
160152008-02-01 Kenichi Handa <handa@m17n.org>
16016
16017 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * search.c (simple_search): Fix previous change.
16022
160232008-02-01 Kenichi Handa <handa@m17n.org>
16024
16025 * xftfont.c (ftfont_font_format): Extern declaration.
16026
16027 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16028
16029 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16030 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16031
16032 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16033 (ftfont_font_format): Fix previous change.
16034
16035 * font.h (Ffont_xlfd_name): EXFUN it.
16036
16037 * font.c (font_parse_xlfd): Fix the array size of `f'.
16038 (register_font_driver): Use EQ to compare driver->type.
16039
16040 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16041 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16042 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16043
160442008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16047 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16048
160492008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * xfont.c (xfont_open): Set font->format.
16052
16053 * xftfont.c (xftfont_open): Set font->format.
16054
16055 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16056 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16057 (ftfont_open): Set font->format.
16058 (ftfont_font_format): New function.
16059
16060 * font.h (struct font): New member format.
16061
16062 * font.c (Qopentype): New variable.
16063 (syms_of_font): Defsym it.
16064 (Fquery_font): Change the format of the last element of the return
16065 value.
16066
160672008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16070 last resort.
16071
160722008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * coding.c (detect_coding_charset): Fix detection of multi-byte
16075 charset.
16076
160772008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16078
16079 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16080
160812008-02-01 Kenichi Handa <handa@m17n.org>
16082
16083 * xdisp.c (get_next_display_element): Set it->face_id for the
16084 first component of a composition.
16085 (x_produce_glyphs): Check if the font is changed or not for composition.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * fontset.c (Qlatin): New variable.
16090 (syms_of_fontset): Define it as a lisp symbol.
16091 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * font.c (font_unparse_fcname): Pay attention to the case that
16096 some of font property is a null string.
16097
160982008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * term.c: Include "composite.h".
16101 (encode_terminal_code): Output all components of composition.
16102 Check the size of encode_terminal_src.
16103 (produce_glyphs): For composition, call produce_composite_glyph.
16104 (append_composite_glyph, produce_composite_glyph): New functions.
16105
16106 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16107 is not found, get font_info from the current ascii face.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16112 buffer-file-name to Qnil before calling insert_from_buffer.
16113
16114 * font.c (font_unparse_fcname): Pay attention to the case that
16115 foundry is a null string.
16116
161172008-02-01 Kenichi Handa <handa@m17n.org>
16118
16119 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16120
16121 * font.c (Qunicode_sip): New variable.
16122 (syms_of_font): Declare it as a Lisp symbol.
16123
16124 * font.h (Qunicode_sip): Extern it.
16125
161262008-02-01 Kenichi Handa <handa@m17n.org>
16127
16128 * composite.c (get_composition_id): Pay attention to TAB component.
16129
16130 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16131 TAB. Adjust for the change of s->char2b which always points to
16132 the first element of allocated memory.
16133
16134 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16135
16136 * xdisp.c (handle_composition_prop): Set it->c to the first
16137 non-TAB component.
16138 (fill_composite_glyph_string): Change argument.
16139 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16140 (x_produce_glyphs): Fix handling of left/right padding.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * coding.c (detect_coding_system): Fix for handling off
16145 inhibit_iso_escape_detection. Fix for the case that no coding
16146 system is defined for a specific coding category.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * font.c (font_matching_entity): Delete unused local var.
16151
16152 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16153 opening a font.
16154
16155 * fileio.c (Finsert_file_contents): On recovering a file, assume
16156 Unix-like eol.
16157 (choose_write_coding_system): On auto-saving a file, force
16158 Unix-like eol.
16159
16160 * coding.c (setup_coding_system): Fix setting of
16161 coding->common_flags based on eol_type.
16162 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16163 inherit from it.
16164
161652008-02-01 Kenichi Handa <handa@m17n.org>
16166
16167 * alloc.c (NSTATICS): Increas to 0x600.
16168
161692008-02-01 Kenichi Handa <handa@m17n.org>
16170
16171 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16172 (ftfont_list): Don't check :name property.
16173 (ftfont_match): New function.
16174 (ftfont_pattern_entity): If the pattern doesn't contain
16175 FC_SPACING, don't assume FC_MONO.
16176
16177 * font.h (struct font_driver): New member `match'.
16178 (font_update_drivers): Adjust prototype.
16179
16180 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16181 property of FONT.
16182 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16183 them unconditionally.
16184 (font_matching_entity): New function.
16185 (font_open_by_name): Try font_matching_entity if exact match is
16186 not found.
16187 (font_update_drivers): Delete the arg FONT. Return a list of
16188 actually used backends. Don't free faces, font caches here.
16189 Don't store data in frame parameters. Don't call x_set_font.
16190 (Ffont_spec): Store :name property as is.
16191 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16192 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16193 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16194 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16195 Call font->driver->otf_gsub instead of font_otf_gsub.
16196
16197 * frame.c (x_set_font_backend): Do more works that were done in
16198 font_update_drivers before.
16199
16200 * xfont.c (xfont_match): New function.
16201 (xfont_driver): Set xfont_driver.match to xfont_match.
16202 (xfont_draw): Set font in GC if necessary.
16203
16204 * ftxfont.c (ftxfont_match): New function.
16205 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16206
16207 * xftfont.c (xftfont_match): New function.
16208 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16209
162102008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 * font.h (struct font): New member scalable.
16213 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16214 (font_otf_gsub): Adjust prototype.
16215
16216 * font.c (font_otf_capability): Fix handling of the default langsys.
16217 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16218 Check the contents of SPEC.
16219 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16220 (check_gstring): New function.
16221 (REPLACEMENT_CHARACTER): New macro.
16222 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16223 glyph codes of GSTRING.
16224 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16225 (font_prepare_composition): Set cmp->glyph_len.
16226 (font_open_entity): Set font->scalable.
16227 (Ffont_get): Handle :otf property.
16228 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16229 functions.
16230 (Fquery_font): Use font->font.full_name.
16231 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16232 Sfont_otf_alternates.
16233
16234 * ftfont.c (ftfont_open): Set font->font.full_name and
16235 font->font.name properly. Fix calculation of font->font.height
16236 and font->min_width.
16237
16238 * ftxfont.c (ftxfont_create_gcs): New function.
16239 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16240 (ftxfont_draw_backgrond): Fix filling region.
16241 (ftxfont_default_fid): New function.
16242 (ftxfont_open): Set xfont->fid to the return value of
16243 ftxfont_default_fid.
16244 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16245 (ftxfont_done_face): Free only GCs that are created by
16246 ftxfont_create_gcs.
16247 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16248
16249 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16250 Clip to src->width, etc (not src->clip_XXX).
16251
16252 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16253 FontBackend frame parameter.
16254
162552008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * font.h (struct font_driver_list): New member `on'.
16258 (Fclear_font_cache): EXFUN it.
16259 (font_update_drivers): Extern it.
16260
16261 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16262 (font_list_entities): Check driver_list->on.
16263 (register_font_driver): Initalize `on' member to 0.
16264 (font_update_drivers): New function.
16265 (Fclear_font_cache): Check driver_list->on.
16266
16267 * frame.h (Qfont_backend): Extern it.
16268 (x_set_font_backend): Extern it.
16269
16270 * frame.c (Qfont_backend): New variable.
16271 (frame_parms): New element for font-backend.
16272 (x_set_font_backend): New function.
16273
16274 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16275 FontBackend frame parameter.
16276 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16277 x_set_font_backend.
16278
16279 * xfont.c (xfont_list): Don't try listing by :name property if the
16280 name is not for XLFD.
16281
162822008-02-01 Kenichi Handa <handa@m17n.org>
16283
16284 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16285 (LGLYPH_SET_TO): New macros.
16286 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16287 element of G is vector or not.
16288 (font_at): Extern it.
16289
16290 * font.c: Include window.h.
16291 (font_lispy_object): New function.
16292 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16293 end of valid glyph.
16294 (font_close_object): Fix getting (struct font *).
16295 (font_at): New function.
16296 (Ffont_get): If FONT is a font-object, get entity from it.
16297 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16298 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16299 range check.
16300 (Ffont_at): New function.
16301 (syms_of_font): Defsubr Sfont_at.
16302
16303 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16304 before the entry for Qcomposition.
16305 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16306 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16307 the font in gstring.
16308 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16309 LGLYPH_FORM (g) to detect the end of valid glyph.
16310 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16311 we are composing with gstring.
16312
16313 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16314 Check if adjustment is vector or not.
16315
16316 * Makefile.in (font.o): Make it depends on window.h.
16317
163182008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16321 adjustment is vector or not.
16322
163232008-02-01 Miles Bader <miles@gnu.org>
16324
16325 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16330 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16331 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16332
16333 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16334 (DEVICE_DELTA): Fix typo.
16335 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16336 LGLYPH format.
16337
16338 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16339 the change of LGLYPH format.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * ftfont.c (ftfont_list): Fix typo.
16344 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16345
163462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16347
16348 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16349
16350 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16351 xftface_info is non-NULL.
16352
163532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16354
16355 * ftfont.c (ftfont_list): Move misplaced #endif.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * ftfont.c (ftfont_list): Pay attention to the case that
16360 FC_CAPABILITY is not defined.
16361
163622008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * xftfont.c (xftfont_open): Set charset related members to -1.
16365
16366 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16367 QCname.
16368 (ftfont_open): Set charset related members to -1.
16369
16370 * fontset.c (Votf_script_alist): New variable.
16371 (syms_of_fontset): Initialize it.
16372 (fontset_font): Delete unused variable.
16373
16374 * fontset.h (Votf_script_alist): Extern it.
16375
16376 * font.c (font_find_for_lface): Optimize code.
16377
16378 * font.h (font_close_object, font_merge_old_spec): Extern them.
16379
163802008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16383 (syms_of_font): Initialize them.
16384 (font_pixel_size): Allow float value in dpi.
16385 (font_prop_validate_type): Delete.
16386 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16387 Change caller.
16388 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16389 (font_prop_validate_extra): Delete.
16390 (font_prop_validate_spacing): New function.
16391 (font_property_table): Add elements for all known properties.
16392 (get_font_prop_index): Rename from check_font_prop_name. New
16393 argument FROM. Change caller.
16394 (font_prop_validate): Validate all known properties.
16395 (font_put_extra): Delete argument force. Change caller.
16396 (font_expand_wildcards): Make it static. Fix the way of shrinking
16397 the possible range.
16398 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16399 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16400 Change caller.
16401 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16402 (font_parse_fcname): Delete argument merge. Fix parsing of point
16403 size. Don't validate properties values here. Change caller.
16404 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16405 (font_open_by_name): Delete unused variable.
16406 (Ffont_spec): Likewise. Validate property values.
16407 (Ffont_match_p): New function.
16408
16409 * font.h (QCscalable): Extern it.
16410 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16411
16412 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16413
16414 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16415 (xfont_list_pattern): New function.
16416 (xfont_list): Use xfont_list_pattern.
16417
164182008-02-01 Kenichi Handa <handa@m17n.org>
16419
16420 * font.h (Flist_fonts): EXFUN it.
16421
164222008-02-01 Jason Rumney <jasonr@gnu.org>
16423
16424 * w32term.c (w32_initialize): Add back smoothing_type and
16425 smoothing_enabled definitions.
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16430 s->face->font on determining underline position.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16435 (font_has_char): Accept font-object too.
16436 (font_find_for_lface): Try at first with a size specified in face.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16441 font_open_by_name.
16442
164432008-02-01 Kenichi Handa <handa@m17n.org>
16444
16445 * font.h (QCspacing, QCdpi): Extern them.
16446 (enum font_spacing): New enum.
16447 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16448
16449 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16450 (QCspacing, QCdpi): New variables.
16451 (syms_of_font): Initialize them.
16452 (font_pixel_size): New function.
16453 (font_put_extra): New function.
16454 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16455 in FONT_EXTRA.
16456 (font_parse_fcname): Handle enumerated values (e.g. bold).
16457 Fix handling font size. Add QCname property that contains only
16458 unknown properties.
16459 (font_score): Change argument. Change caller. Pay attention to
16460 FONT_PIXEL_SIZE_QUANTUM.
16461 (font_sort_entites, font_list_entities, font_find_for_lface)
16462 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16463 (Ffont_spec): Add QCname property that contains only unknown properties.
16464
16465 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16466 include weight in listing pattern, instead check weight of each
16467 listed font. Don't include scalable in pattern. Pay attention to
16468 FONT_PIXEL_SIZE_QUANTUM.
16469
164702008-02-01 Kenichi Handa <handa@m17n.org>
16471
16472 * font.c (font_parse_fcname): Fix parsing of point-size.
16473 (font_unparse_fcname): Produce symbolic names for style properties.
16474 (font_list_entities): Handle float size correctly.
16475 (font_open_by_name): Prefer `normal' property values if the name
16476 doesn't specify them.
16477
16478 * fontset.c (Finternal_char_font): Use font_get_name, not
16479 Ffont_xlfd_name.
16480
16481 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16482 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16483 pattern. Don't force scalable.
16484
16485 * xftfont.c (xftfont_open): For generating a name, start from
16486 96-byte buffer.
16487
164882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16489
16490 * frame.h (x_new_fontset2): Fix prototype.
16491
164922008-02-01 Kenichi Handa <handa@m17n.org>
16493
16494 * font.h (struct font_driver): Delete member parse_name.
16495 (font_match_p, font_get_spec, font_parse_fcname)
16496 (font_unparse_fcname): Extern them.
16497 (font_get_name): Adjust prototype.
16498
16499 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16500 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16501 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16502 unnecessary checks for weight, slant, and swidth.
16503 (font_parse_fcname): New function.
16504 (font_unparse_fcname): New function.
16505 (font_parse_name): New function.
16506 (font_match_p): New function.
16507 (font_get_name): Change return value to Lisp string.
16508 (font_get_spec): New function.
16509 (Qunspecified, Qignore_defface): Don't extern them.
16510 (font_find_for_lface): Assume that LFACE is fully specified.
16511 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16512 object, use it for FACE.
16513 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16514 driver->parse_name.
16515 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16516
16517 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16518 prototype.
16519
16520 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16521 argument F. Don't call Fnew_fontset. Instead, directly call
16522 make_fontset.
16523
16524 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16525
16526 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16527 of x_new_fontset2.
16528
16529 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16530 (Qsans__serif): New variables.
16531 (ftfont_generic_family_list): New variable.
16532 (syms_of_ftfont): Initialize the above variables.
16533 (ftfont_pattern_entity): Delete argument NAME.
16534 (ftfont_list_generic_family): New function.
16535 (ftfont_parse_name): Delete this function.
16536 (ftfont_list): Try generic family only when FcFontList found no font.
16537 (ftfont_list_family): Fix args to FcObjectSetBuild.
16538
16539 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16540 object in attrs[LFACE_FONT_INDEX].
16541 (set_lface_from_font_name): Cancel all changes for font-backend.
16542 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16543 function.
16544 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16545 font object in QCfont attribute.
16546 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16547 (realize_default_face) [USE_FONT_BACKEND]: Call
16548 set_lface_from_font_and_fontset.
16549
16550 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16551 "fixed", and signal error here if no suitable font was found.
16552
16553 * xfont.c (xfont_parse_name): Delete this function.
16554
16555 * xftfont.c (xftfont_open): Change coding style of error
16556 handling. Generate fontconfig's fontname pattern.
16557
16558 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16559 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16560
16561 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16562 Both args FONTSET and FONT_OBJECT must be existing ones.
16563
165642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16565
16566 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16567
165682008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16571
16572 * font.h (struct font): Fix typo.
16573
16574 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16575 XLFD_XXX_INDEX.
16576 (enum xlfd_field_mask): New enum.
16577 (intern_font_field): Changed argument. Change caller. If digits
16578 are followed by non-digits, return a symbol.
16579 (font_expand_wildcards): New function.
16580 (font_parse_xlfd): Fix wildcard handling.
16581 (Ffont_spec): If :name is specified, reflect the info in the other
16582 properties.
16583
16584 * ftfont.c (ftfont_pattern_entity): Fix typo.
16585 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16586 locale.
16587
165882008-02-01 Kenichi Handa <handa@m17n.org>
16589
16590 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16591
16592 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16593 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16594 registry doesn't specify encoding part.
16595 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16596 (font_open_by_name): At first try parsing the name.
16597 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16598 as Lisp symbols.
16599
16600 * fontset.c (reorder_font_vector): Pay attention to the case that
16601 the 3rd element of font_def is nil.
16602 (fontset_font): For the default fontset, append one more fontset
16603 elements for a script-based font specification. Don't add script
16604 attribute on finding a font.
16605 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16606 font name.
16607 (fontset_ascii_font): If a font can't be opened, return nil.
16608
16609 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16610 (ftfont_pattern_entity): New function.
16611 (ftfont_get_cache): Assume that freetype_font_cache is already
16612 initialized.
16613 (ftfont_list): Handle the case that a file is specified in font
16614 name. Use ftfont_pattern_entity to generate entities.
16615 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16616 (syms_of_ftfont): Initialize freetype_font_cache.
16617
16618 * xftfont.c (xftfont_open): Make the font name fontconfig's
16619 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16620 (xftfont_close): Free font->font.name if not NULL.
16621
16622 * xfont.c (xfont_list): If script is specified for a font, return
16623 null_vector.
16624 (xfont_list_family): Declare argument type.
16625
16626 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16627 name, set LFACE_FONT (lface) to nil.
16628
16629 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16630 return Qnil.
16631
166322008-02-01 Kenichi Handa <handa@m17n.org>
16633
16634 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16635 (standard_args): Add "-enable-font-backend".
16636
166372008-02-01 Kenichi Handa <handa@m17n.org>
16638
16639 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16640 (struct xftdraw_list, xftdraw_list): Delete them.
16641 (register_xftdraw, check_xftdraw): Delete them.
16642 (xftfont_prepare_face): Don't call register_xftdraw.
16643 (xftfont_done_face): Don't call check_xftdraw.
16644 (xftfont_draw): Get background color only when with_background is
16645 nonzero.
16646
16647 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 These changes are for the new font handling codes.
16652
16653 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16654 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16655 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16656 (FONTSRC, FONTOBJ): New variables.
16657 (obj): Add $(FONTOBJ).
16658 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16659 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16660 @LIBOTF_LIBS@.
16661 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16662 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16663
16664 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16665
16666 * character.h (Vscript_representative_chars): Extern it.
16667
16668 * character.c (Vscript_representative_chars): New variable.
16669 (syms_of_character): Declare it as a Lisp variable.
16670
16671 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16672 enable_font_backend is nonzero, accept the composition method
16673 COMPOSITION_WITH_GLYPH_STRING.
16674
16675 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16676 enumeration COMPOSITION_WITH_GLYPH_STRING.
16677
16678 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16679 members clip_x, clip_y, clip_width, and clip_height.
16680 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16681
16682 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16683 --enable-font-backend. Call syms_of_font.
16684
16685 * fns.c (assoc_no_quit): New function.
16686
16687 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16688 (face_for_font, new_fontset_from_font)
16689 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16690
16691 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16692 (fontset_font, fontset_ascii, face_for_char)
16693 (make_fontset_for_ascii_face, Ffont_info)
16694 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16695 is nonzero, use font-backend mechanism.
16696 (find_font_encoding): Make it non-static.
16697 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16698 New functions.
16699
16700 * frame.h (struct frame): New members resx and resy.
16701 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16702 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16703
16704 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16705 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16706
16707 * lisp.h (assoc_no_quit): Extern it.
16708
16709 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16710 Through out the file, use FONT_INFO_FROM_FACE instead of
16711 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16712 rif->per_char_metric.
16713 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16714 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16715 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16716 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16717 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16718 nonzero, use font-backend mechanism.
16719 (get_per_char_metric): New function.
16720
16721 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16722 (set_lface_from_font_name)
16723 (set_font_frame_param, free_realized_face)
16724 (prepare_face_for_display, clear_face_gcs)
16725 (Finternal_set_font_selection_order, realize_x_face)
16726 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16727 font-backend mechanism.
16728 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16729 (load_face_font) [USE_FONT_BACKEND]: Abort.
16730 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16731 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16732
16733 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16734 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16735 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16736 nonzero, register all available font drivers. Call
16737 x_default_font_parameter for deciding a font.
16738 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16739
16740 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16741 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16742 (x_set_glyph_string_clipping_exactly)
16743 (x_compute_glyph_string_overhangs)
16744 (x_draw_glyph_string_foreground)
16745 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16746 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16747 enable_font_backend is nonzero, use font-backend mechanism.
16748 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16749
167502008-02-01 Kenichi Handa <handa@m17n.org>
16751
16752 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16753 system_eol_type.
16754 (syms_of_coding): Initialize system_eol_type.
16755
16756 * process.c (Fset_process_coding_system): Inherit system's eol
16757 format if necessary.
16758
167592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16760
16761 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16762
167632008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 * coding.c (decode_eol): Pay attention to buffer relocation in
16766 del_range_2.
16767 (decode_coding): Call decode_eol before restoring undo_list.
16768
167692008-02-01 Kenichi Handa <handa@m17n.org>
16770
16771 * charset.c (Fdefine_charset_internal): Fix setting of
16772 emacs_mule_bytes.
16773
167742008-02-01 Kenichi Handa <handa@m17n.org>
16775
16776 * keyboard.c (read_char): Check if C is a character or not before
16777 looking up Vkeyboard_translate_table.
16778
167792008-02-01 Kenichi Handa <handa@m17n.org>
16780
16781 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16782 condition to terminate the loop.
16783
167842008-02-01 Kenichi Handa <handa@m17n.org>
16785
16786 * coding.c (produce_composition): Compare charbuf[i] instead of
16787 args[i] against 0.
16788 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16789
167902008-02-01 Kenichi Handa <handa@m17n.org>
16791
16792 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16793 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16794 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16795 detect_coding.
16796 (emacs_mule_char): Handle old style (Emacs 20) component character
16797 of a composition.
16798 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16799 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16800 composition rule.
16801 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16802
168032008-02-01 Kenichi Handa <handa@m17n.org>
16804
16805 * coding.c (encode_coding_ccl): Allocate destination dynamically
16806 when necessary.
16807
168082008-02-01 Kenichi Handa <handa@m17n.org>
16809
16810 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16811 the loop. When quitted, show a proper error message.
16812
168132008-02-01 Kenichi Handa <handa@m17n.org>
16814
16815 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16816 src->clip_head and src->clip_tail temporarily instead of src->hl.
16817
16818 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16819 character sequence.
16820 (Fccl_execute_on_string): Use ASET, not XSET.
16821
168222008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16825
168262008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * coding.c (decode_coding): Fix the condition of terminating the
16829 decoding loop.
16830
168312008-02-01 Kenichi Handa <handa@m17n.org>
16832
16833 * data.c (Faset): On setting a character bigger than 255 in a
16834 unibyte string, signal an error instead of make the string multibyte.
16835
168362008-02-01 Kenichi Handa <handa@m17n.org>
16837
16838 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16839 made by a mapping table.
16840
168412008-02-01 Kenichi Handa <handa@m17n.org>
16842
16843 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16844 not.
16845 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16846 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16847
16848 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16849 s->face is NULL or not.
16850
168512008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16854 (x_draw_glyph_string): Fix drawing of right_overhang and
16855 left_overhang around/on cursor.
16856
16857 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16858
168592008-02-01 Kenichi Handa <handa@m17n.org>
16860
16861 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16862
168632008-02-01 Kenichi Handa <handa@m17n.org>
16864
16865 * coding.c (Fdefine_coding_system_internal)
16866 (Fdefine_coding_system_alias): Avoid a duplicated element in
16867 Vcoding_system_alist.
16868
168692008-02-01 Kenichi Handa <handa@m17n.org>
16870
16871 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16872
16873 * coding.c (Qcoding_system_define_form): New variable.
16874 (syms_of_coding): Intern and staticpro it.
16875 (Fcoding_system_p): Check Qcoding_system_define_form.
16876 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16877
16878 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16879 Fcoding_system_p.
16880 (CHECK_CODING_SYSTEM): If ID is not available, call
16881 Fcheck_coding_system.
16882 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16883 Try also Fcheck_coding_system.
16884
168852008-02-01 Kenichi Handa <handa@m17n.org>
16886
16887 * coding.c (code_conversion_restore): GCPRO arg.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * character.c (lisp_string_width): Check multibyteness of STRING.
16892
168932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16894
16895 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16896 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16897 (decode_mac_font_name): Use decode_coding_c_string instead of
16898 decode_coding.
16899 (x_load_font): Initialize fontp->fontset to -1. Set
16900 fontp->encoding_type.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * search.c (search_buffer): Give up BM search on case-fold-search
16905 if one of a target character has a case-equivalence of different
16906 byte length even if that target charcter is an ASCII.
16907 (simple_search): Fix calculation of byte length of matched text.
16908 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16909
169102008-02-01 Kenichi Handa <handa@m17n.org>
16911
16912 * coding.c (decode_coding): Fix handling of invalid bytes.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16917 Unicode characters.
16918
169192008-02-01 Kenichi Handa <handa@m17n.org>
16920
16921 * coding.c (encode_coding_object): If a pre-write-conversion
16922 function makes a new buffer, kill it.
16923
169242008-02-01 Kenichi Handa <handa@m17n.org>
16925
16926 * coding.c (QCascii_compatible_p): New variable.
16927 (syms_of_coding): Initialize it.
16928 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16929 calling string_char.
16930 (record_conversion_result): Add `default:' case.
16931 (coding_charset_list): Delete unused variable `coding_type'.
16932 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16933 property in the plist of the coding system.
16934 (Fcoding_system_put): Check QCascii_compatible_p.
16935
169362008-02-01 Miles Bader <miles@gnu.org>
16937
16938 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16939 removed calculation of frame `f', as it's now used.
16940
169412008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16944 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16945 (UNIDATA): New variable.
16946 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16947 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16948 $(RUN_TEMACS) unconditionally.
16949
169502008-02-01 Kenichi Handa <handa@m17n.org>
16951
16952 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16953 (admindir): New variable.
16954 ($(lispsource)international/charprop.el): New target.
16955
169562008-02-01 Miles Bader <miles@gnu.org>
16957
16958 * character.c (chars-in-region): Remove obsolete function.
16959 (syms_of_character): Remove its initialization.
16960
169612008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16962
16963 * w32select.c (validate_coding_system)
16964 (setup_windows_coding_system): New functions.
16965 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16966 setup_windows_coding_system.
16967 (setup_config, Fw32_get_clipboard_data): Use
16968 validate_coding_system.
16969 (Fx_selection_exists): Move call to setup_config to a place
16970 where signals are allowed.
16971
16972 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16973 (Fcheck_coding_system): Add declarations.
16974
169752008-02-01 Kenichi Handa <handa@m17n.org>
16976
16977 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16978
169792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16980
16981 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16982 string as the second argument for x_new_fontset.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16987 (encode_coding_object): Use safe_call instead of call2.
16988
169892008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16992
16993 * Makefile.in (lisp): Include charprop.el.
16994
169952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16996
16997 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16998 Not sure if it's unnecessary.
16999
170002008-02-01 Steven Tamm <steventamm@mac.com>
17001
17002 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17003 some possibly unnecessary fontset checking code that crashed
17004 when creating a new frame.
17005
170062008-02-01 Kenichi Handa <handa@m17n.org>
17007
17008 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17009 lookup_face.
17010
17011 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17012
17013 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17014
170152008-02-01 Kenichi Handa <handa@m17n.org>
17016
17017 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17018 (coding_charset_list): New function.
17019
17020 * coding.h (coding_charset_list): Extern it.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17025 concatenation of family and registry.
17026
170272008-02-01 Kenichi Handa <handa@m17n.org>
17028
17029 * character.h (BYTE8_STRING): Fix typo.
17030
17031 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17032 string to multibyte (sync to HEAD).
17033
17034 * casefiddle.c (casify_region): Handle changes in byte-length
17035 using replace_range_2 (sync to HEAD).
17036
170372008-02-01 Andreas Schwab <schwab@suse.de>
17038
17039 * chartab.c (map_char_table): GCPRO table and arg.
17040
170412008-02-01 Kenichi Handa <handa@m17n.org>
17042
17043 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17044 already at limit.
17045
170462008-02-01 Kenichi Handa <handa@m17n.org>
17047
17048 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17049 instead of fast_c_string_match_ignore_case.
17050 (find_font_encoding): Change argument to Lisp_Object. Use
17051 fast_string_match_ignore_case instead of
17052 fast_c_string_match_ignore_case. Change caller.
17053
170542008-02-01 Kenichi Handa <handa@m17n.org>
17055
17056 * xdisp.c (get_next_display_element): In unibyte case, decide to
17057 display in octal form by checking a character by
17058 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17059
17060 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17061
17062 * character.c (unibyte_has_multibyte_table): New variable.
17063
17064 * character.h (unibyte_has_multibyte_table): Extern it.
17065 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17066
170672008-02-01 Kenichi Handa <handa@m17n.org>
17068
17069 * coding.c (encode_coding_iso_2022): Fix handling of charset
17070 annotation.
17071
170722008-02-01 Kenichi Handa <handa@m17n.org>
17073
17074 * coding.c (setup_coding_system): If coding_system is nil, use
17075 Qundecided.
17076 (Fterminal_coding_system): Return nil if terminal coding system is
17077 `undecided'.
17078 (syms_of_coding): Define coding-system `undecided' here. Setup
17079 terminal_coding as `undecided'.
17080
170812008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * xdisp.c (message_dolog, set_message_1): Call
17084 unibyte_char_to_multibyte with arg type int.
17085
17086 * lread.c (read1): Fix reading of a char-table.
17087
17088 * print.c (print_object): Include sub char-table in circularities
17089 detection.
17090
170912008-02-01 Kenichi Handa <handa@m17n.org>
17092
17093 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17094 Append the found sequences in car of ARGS instead of prepending.
17095
170962008-02-01 Kenichi Handa <handa@m17n.org>
17097
17098 * fileio.c (report_file_error): Make a unibyte string from
17099 strerror (errorno).
17100 (Fsubstitute_in_file_name): Fix the arg to
17101 unibyte_char_to_multibyte. It is evaluated twice.
17102
171032008-02-01 Kenichi Handa <handa@m17n.org>
17104
17105 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17110 BOM is not found.
17111 (detect_coding, detect_coding_system): Optimization for ISO-2022
17112 when no 8-bit data is found.
17113
171142008-02-01 Jason Rumney <jasonr@gnu.org>
17115
17116 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17117
171182008-02-01 Kenichi Handa <handa@m17n.org>
17119
17120 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17121 CHARS.
17122
171232008-02-01 Steven Tamm <steventamm@mac.com>
17124
17125 * macterm.c (mac_encode_char): Add charset argument and update
17126 to use encoding_type.
17127 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17128 switch to pure fontset.
17129 (decode_mac_font_name): Temporarily remove decoding.
17130 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17131 (x_load_font): Temporarily remove encoding.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * xfaces.c (Fface_font): If frame is not on a window system,
17136 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17137 refer to face->font.
17138 (split_font_name_into_vector, build_font_name_from_vector)
17139 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17140 when HAVE_WINDOW_SYSTEM is defined.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17145 (x_produce_glyphs): Fix setting of members of cmp in case
17146 cmp->glyph_len is zero.
17147
17148 * fontset.c (Fset_fontset_font): Fix docstring.
17149 (Ffontset_info): Make it backward compatible. New arg ALL.
17150
171512008-02-01 Kim F. Storm <storm@cua.dk>
17152
17153 * process.c (read_process_output): Grow decoding_buf when needed;
17154 this could cause a crash in allocate_string and compact_small_strings.
17155
171562008-02-01 Kenichi Handa <handa@m17n.org>
17157
17158 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * coding.c (setup_coding_system): Set coding->common_flags
17163 correctly for raw-text.
17164 (consume_chars): On encoding unibyte text by raw-text, don't check
17165 multibyte form.
17166 (encode_coding): On encoding by raw-text, never use translation tables.
17167
17168 * fileio.c (e_write): Short cut for the case of no encoding.
17169
171702008-02-01 Kenichi Handa <handa@m17n.org>
17171
17172 * coding.c (detect_coding, detect_coding_system): Delete unused
17173 variables.
17174
171752008-02-01 Kenichi Handa <handa@m17n.org>
17176
17177 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17178 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17179
171802008-02-01 Kenichi Handa <handa@m17n.org>
17181
17182 * coding.c (Ffind_coding_systems_region_internal): Include
17183 raw-text and no-conversion in the result.
17184
171852008-02-01 Kenichi Handa <handa@m17n.org>
17186
17187 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17188 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17189 FONT_DEF.
17190 (font_def_arg, add_arg, from_arg, to_arg): New args.
17191 (set_fontset_font): Change argument.
17192 (Fset_fontset_font): Fix for the case that TARGET is a script
17193 name and charset name.
17194 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17195
171962008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 * fontset.c (fontset_font): Rename from fontset_face. Change return
17199 value.
17200 (face_suitable_for_char_p, face_for_char): Adjust for the change
17201 of fontset_font.
17202 (make_fontset_for_ascii_face): Fix setting of the fontset element
17203 for ASCII.
17204 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17205 to get a font name.
17206 (Ffontset_info): Adjust for the change of fontset_font.
17207
17208 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17209
17210 * character.h (LEADING_CODE_LATIN_1_MIN)
17211 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17212
172132008-02-01 Kenichi Handa <handa@m17n.org>
17214
17215 * editfns.c (check_translation): New function.
17216 (Ftranslate_region_internal): Handle M:N mapping.
17217
172182008-02-01 Kenichi Handa <handa@m17n.org>
17219
17220 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17221
172222008-02-01 Kenichi Handa <handa@m17n.org>
17223
17224 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17225 goto invalid_code.
17226 (decode_coding_iso_2022): Fix handling of invalid designation.
17227
17228 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17229 after calling code_conversion_save.
17230
172312008-02-01 Kenichi Handa <handa@m17n.org>
17232
17233 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17234
17235 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17236
17237 * fontset.c: Include "intervals.h".
17238 (fontset_face): Fix comparing of Lisp_Objects.
17239 (free_face_fontset, new_fontset_from_font_name): Fix
17240 Lisp_Object/int mixup.
17241
17242 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17243
17244 * coding.c: Add many prototypes for static functions.
17245 (get_translation_table): Allow max_lookup to be NULL.
17246 (decode_coding, Ffind_coding_systems_region_internal)
17247 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17248 get_translation_table with max_lookup NULL.
17249
172502008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * coding.c (get_translation_table): Declare it as Lisp_Object.
17253 (LOOKUP_TRANSLATION_TABLE): New macro.
17254 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17255 instead of CHAR_TABLE_REF.
17256
172572008-02-01 Kenichi Handa <handa@m17n.org>
17258
17259 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17260 annotation data format.
17261 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17262 Change arguments FROM and TO to single argument NCHARS. Change caller.
17263 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17264 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17265 (decode_coding_ccl, decode_coding_charset): Pay attention to
17266 coding->charbuf_used.
17267 (get_translation): New function.
17268 (produce_chars): New arguments translation_table and last_block.
17269 Translate characters here. Return number of carryover chars.
17270 Change caller.
17271 (produce_composition): New argument pos. Change caller.
17272 Adjust for the change of annotation data format.
17273 (produce_charset, produce_annotation): Likewise.
17274 (decode_coding, encode_coding): Don't call translate_chars.
17275 (consume_chars): New arg translation_table. Change caller.
17276 (translate_chars): Delete.
17277 (syms_of_coding): Make translation-table's number of extra slots 2.
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * search.c (simple_search): Fix setting this_pos_byte in backward
17282 search.
17283
17284 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17285 byte sequence.
17286 (detect_coding_ccl): Fix setting of the variable valids.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17291
17292 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17293
17294 * editfns.c (Ftranslate_region_internal): Rename from
17295 Ftranslate_region. Accept a char-table in TABLE.
17296 (syms_of_editfns): Defsubr Stranslate_region_internal.
17297
17298 * xfaces.c (set_lface_from_font_name): If a font is specified for
17299 a frame, generate a fontset from the font.
17300 (build_scalable_font_name): If the scalable font is requested for
17301 a specific size, don't change that size.
17302 (try_font_list): Try a scalable font also in the case that a
17303 pattern string is specified.
17304
173052008-02-01 Kenichi Handa <handa@m17n.org>
17306
17307 * xfaces.c (Fface_font): New optional arg CHARACTER.
17308
173092008-02-01 Kenichi Handa <handa@m17n.org>
17310
17311 * charset.h (CHARSET_OFFSET): New macro.
17312
173132008-02-01 Kenichi Handa <handa@m17n.org>
17314
17315 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17316
17317 * fontset.c (fontset_face): Handle the case that repertory is a
17318 char-table.
17319 (find_font_encoding): Return nil for unknown encoding.
17320 (Fset_fontset_font): Ignore a font of unknown encoding.
17321
173222008-02-01 Kenichi Handa <handa@m17n.org>
17323
17324 * keymap.c (describe_vector): Handle default value of a char table.
17325
17326 * fontset.c (fontset_face): Handle fallback fonts correctly.
17327 (Ffontset_info): Return infomation about fallback fonts.
17328
173292008-02-01 Kenichi Handa <handa@m17n.org>
17330
17331 * fontset.c (FONTSET_DEFAULT): New macro.
17332 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17333 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17334 the case that it is nil.
17335 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17336 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17337
17338 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17339 subset or superset.
17340
173412008-02-01 Kenichi Handa <handa@m17n.org>
17342
17343 * emacs.c (main): Call init_charset after syms_of_XXX.
17344
17345 * charset.c (Vcharset_map_directory): Delete.
17346 (Vcharset_map_path): New variable.
17347 (load_charset_map_from_file): Use Vcharset_map_path instead.
17348 (init_charset): Initialize Vcharset_map_path.
17349 (syms_of_charset): Delete declaration of "charset-map-directory",
17350 add declaration of "charset-map-path".
17351
173522008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17355 ASCII only string.
17356
17357 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17358
17359 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17360 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17365
17366 * coding.c (QCmnemonic, QCdefalut_char)
17367 (QCdecode_translation_table, QCencode_translation_table)
17368 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17369 (get_translation_table): Return a list of translation tables if
17370 necessary.
17371 (decode_coding): Call get_translation_table with ENCODEP 0.
17372 (char_encodable_p): If translation_table is non-nil, always call
17373 translate_char.
17374 (Fdefine_coding_system_internal): Accept list of translation
17375 tables as :encode-translation-table and :decode-translation-table.
17376 (Fcoding_system_put): New function.
17377 (syms_of_coding): Declare new symbols. Defsubr
17378 Scoding_system_put.
17379 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17380 typically JISX0212.
17381
17382 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17383 when the charset is superset type.
17384
17385 * character.c (translate_char): Accept list of translation tables.
17386
173872008-02-01 Kenichi Handa <handa@m17n.org>
17388
17389 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17390 (CODING_ATTR_TRANS_TBL): New macro.
17391
17392 * coding.c (get_translation_table): New function.
17393 (translate_chars): Fix the bug of skipping annotation data.
17394 (decode_coding, encode_coding): Utilize get_translation_table.
17395 (char_encodable_p, Funencodable_char_position): Translate char if
17396 necessary.
17397 (Ffind_coding_systems_region_internal)
17398 (Fcheck_coding_systems_region): Setup translation table for encode
17399 in a coding system attribute vector in advance.
17400 (Fdefine_coding_system_internal): Allow a symbol as translation
17401 table. For shift-jis type coding system, allow 4th charset.
17402
174032008-02-01 Kenichi Handa <handa@m17n.org>
17404
17405 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17406
17407 * xdisp.c (get_next_display_element): Pass -1 as POS to
17408 FACE_FOR_CHAR if displaying a C-string.
17409
174102008-02-01 Kenichi Handa <handa@m17n.org>
17411
17412 * composite.c (get_composition_id): Handle xoff and yoff in a
17413 composition rule.
17414
17415 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17416 (struct composition): New member lbearing and rbearing.
17417
17418 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17419 (x_get_glyph_overhangs): Handle a composition glyph.
17420 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17421
17422 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17423 composition glyph.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * print.c: Include charset.h.
17428 (Vprint_charset_text_property): New variable.
17429 (Qdefault): Extern it.
17430 (PRINT_STRING_NON_CHARSET_FOUND)
17431 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17432 (print_check_string_result): New variable.
17433 (print_check_string_charset_prop): New function.
17434 (print_prune_charset_plist): New variable.
17435 (print_prune_string_charset): New function.
17436 (print_object): Call print_prune_string_charset if
17437 Vprint_charset_text_property is not t.
17438 (print_interval): Print nothing if interval->plist is nil.
17439 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17440 variable. Init and staticpro print_prune_charset_plist.
17441
174422008-02-01 Kenichi Handa <handa@m17n.org>
17443
17444 * fontset.c (new_fontset_from_font_name): Use the specified font
17445 for all characters in the new fontset.
17446
17447 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17448 OBJECT args.
17449
17450 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17451 OBJECT args for composition too.
17452
17453 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17454 OBJECT args.
17455
174562008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17459
17460 * fontset.c (reorder_font_vector): Adjust for the change of
17461 FONT_DEF format.
17462 (fontset_face): New arg id. Change caller.
17463 (face_for_char): New args pos and object.
17464 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17465 (fs_query_fontset): Check NAME by Fassoc too.
17466 (Fset_fontset_font): Allow non-XLFD font name.
17467 (Ffontset_info): Adjust for the change of FONT_DEF format.
17468
17469 * fontset.h (face_for_char): Adjust prototype.
17470
17471 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17472 (append_space, extend_face_to_end_of_line)
17473 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17474 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17475
17476 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17477 POS and OBJECT args.
17478
17479 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17480 POS and OBJECT args.
17481
174822008-02-01 Jason Rumney <jasonr@gnu.org>
17483
17484 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17485 of GlobalAlloc'ed memory.
17486
174872008-02-01 Kenichi Handa <handa@m17n.org>
17488
17489 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17490
17491 * charset.h (charset_table_used): Delete extern.
17492
17493 * charset.c (charset_table_used): Make it static.
17494 (map_charset_chars): Fix args to c_function with.
17495
17496 * chartab.c (map_sub_char_table_for_charset): Fix args to
17497 c_function with.
17498
17499 * coding.h (enum coding_result_code): Delete
17500 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17501
17502 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17503 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17504 (Vlast_code_conversion_error): New variables.
17505 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17506 (ONE_MORE_BYTE): Record error if any instead of signaling an
17507 error. If non-ASCII multibyte char is found, return the negative
17508 value of the code. All callers changed to check it.
17509 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17510 (record_conversion_result): New function. Change all codes setting
17511 coding->result to call this function.
17512 (detect_coding_utf_8, decode_coding_utf_8)
17513 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17514 Don't use the local variable incomplete.
17515 (emacs_mule_char): Change the second arg to `const'.
17516 (decode_coding): Fix of flushing out unprocessed data.
17517 (make_conversion_work_buffer): Fix making of a work buffer.
17518 (decode_coding_object): Return coding->dst_object.
17519
17520 * fontset.c (set_fontset_font): Fix args.
17521
17522 * lisp.h (CHARACTERBITS): Define as 22.
17523
17524 * process.c (send_process): Be sure to set coding->src_multibyte.
17525
17526 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17527
175282008-02-01 Kenichi Handa <handa@m17n.org>
17529
17530 * xdisp.c (handle_auto_composed_prop): Give limit to
17531 Fnext_single_char_property_change.
17532
175332008-02-01 Kenichi Handa <handa@m17n.org>
17534
17535 * composite.c (syms_of_composite): Don't make the composition hash
17536 table weak.
17537
17538 * fontset.c (Fset_fontset_font): Fix docstring.
17539
17540 * lisp.h (detect_coding_system): Adjust prototype.
17541
17542 * fileio.c (kill_workbuf_unwind): Delete this function.
17543 (Finsert_file_contents): Adjust the call of detect_coding_system.
17544 Get conversion_buffer by code_conversion_save. Use the macro
17545 CODING_MAY_REQUIRE_DECODING. After decoding, update
17546 coding_system.
17547
17548 * coding.h (make_conversion_work_buffer): Delete extern.
17549 (code_conversion_save): Extern it.
17550
17551 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17552 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17553 (decode_coding_utf_8): Don't do eol converion.
17554 (detect_coding_utf_16): Check coding->src_chars, not
17555 coding->src_bytes. Add heuristics for those that have no signature.
17556 (decode_coding_emacs_mule, decode_coding_iso_2022)
17557 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17558 Don't do eol converion.
17559 (adjust_coding_eol_type): Return a new coding system.
17560 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17561 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17562 each change.
17563 (decode_coding): Pay attention to undo_list. Do eol conversion for
17564 all types of coding-systems (if necessary).
17565 (Vcode_conversion_work_buf_list): Delete it.
17566 (Vcode_conversion_reused_workbuf): Rename from
17567 Vcode_conversion_reused_work_buf.
17568 (Vcode_conversion_workbuf_name): New variable.
17569 (reused_workbuf_in_use): New variable.
17570 (make_conversion_work_buffer): Delete the arg DEPTH.
17571 (code_conversion_restore): Change argument to cons.
17572 (code_conversion_save): Delete the argument BUFFER. Change callers.
17573 (detect_coding_system): New argument src_chars. Change callers.
17574 Fix for utf-16 detection.
17575 (init_coding_once): Don't use ISO_carriage_return.
17576 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17577 reused_workbuf_in_use.
17578
175792008-02-01 Kenichi Handa <handa@m17n.org>
17580
17581 * keymap.c (store_in_keymap): Pay attention to the case that idx
17582 is a cons specifying a character range.
17583
175842008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17587 HANDLED_RECOMPUTE_PROPS.
17588
17589 * coding.c (Fdefine_coding_system_internal): Fix checking of
17590 ascii compatibility.
17591
175922008-02-01 Kenichi Handa <handa@m17n.org>
17593
17594 * charset.c (find_charsets_in_text): Delete unused locale variable.
17595 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17596
17597 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17598 Resync charset_list to Vemacs_mule_charset_list.
17599
17600 * keymap.c (store_in_keymap): Pay attention to the case that idx
17601 is a cons specifying a character range.
17602
176032008-02-01 Kenichi Handa <handa@m17n.org>
17604
17605 * composite.c (update_compositions): Bind inhibit-read-only, etc
17606 to t before calling remove-list-of-text-properties.
17607
17608 * print.c (print_object): Always print ASCII chars as is.
17609
176102008-02-01 Kenichi Handa <handa@m17n.org>
17611
17612 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17613
17614 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17615 is a char table.
17616
176172008-02-01 Kenichi Handa <handa@m17n.org>
17618
17619 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17620
176212008-02-01 Kenichi Handa <handa@m17n.org>
17622
17623 * xfaces.c (set_lface_from_font_name): Fix for the case that
17624 FONTNAME is not fontset name.
17625
176262008-02-01 Kenichi Handa <handa@m17n.org>
17627
17628 * fns.c (base64_encode_1): Fix previous change.
17629
176302008-02-01 Kenichi Handa <handa@m17n.org>
17631
17632 * fontset.c (set_fontset_font): New function.
17633 (Fset_fontset_font): If a font is specified for a charset, use
17634 map_charset_chars to store the font spec in a fontset.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 * fontset.c (fontset_face): Create a fallback fontset on demand.
17639 (make_fontset): Don't create a fallback fontset here.
17640 (free_face_fontset): Free a fallback fontset (if any) too.
17641 (n_auto_fontsets): Delete this variable.
17642 (auto_fontset_alist): New variable.
17643 (new_fontset_from_font_name): Check auto_fontset_alist.
17644 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17645 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17646 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17647 Defsubr Sfontset_list_all.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17656
176572008-02-01 Kenichi Handa <handa@m17n.org>
17658
17659 * editfns.c (Fgoto_char): Fix docstring.
17660
176612008-02-01 Kenichi Handa <handa@m17n.org>
17662
17663 * insdel.c (insert_from_gap): Adjust intervals correctly.
17664
176652008-02-01 Jason Rumney <jasonr@gnu.org>
17666
17667 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17668 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17669 (w32_initialize): Try to load it.
17670 (x_get_font_repertory): Use it if available.
17671 (w32_encode_char): Add shortcut for unicode output.
17672
17673 * w32fns.c (w32_load_system_font): Default charset to -1.
17674 (x_to_w32_charset): Match all fonts for unicode.
17675 (w32_to_x_charset): New parameter matching. Don't return partial
17676 or wildcard charsets.
17677 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17678 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17679 (w32_to_x_font): Match charset to real charset.
17680 (enum_font_cb2): Always list unicode versions.
17681
17682 * makefile.w32-in (temacs): Increase EMHEAP.
17683
176842008-02-01 Jason Rumney <jasonr@gnu.org>
17685
17686 * w32term.c (w32_encode_char): New charset parameter.
17687 font_info.encoding becomes encoding_type.
17688 (x_get_font_repertory): New function. Warning: stub only!
17689 (x_new_font): Return quickly if font already set.
17690 (x_new_fontset): fontsetname parameter is Lisp_Object.
17691 Use new fs_query_fontset. Try new_fontset_from_font_name.
17692 Use fontset_name for return value.
17693
17694 * w32term.h: Declare x_get_font_repertory.
17695
17696 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17697 place of find_charset_in_text. Use encode_coding_object in place
17698 of encode_coding.
17699 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17700 decode_coding.
17701
17702 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17703 of x_new_fontset.
17704 (w32_load_system_font): Initialize charset as unicode.
17705 font_info.encoding becomes encoding_type.
17706 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17707 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17708 (syms_of_w32fns): Set get_font_repertory_func.
17709
17710 * w32console.c: Include character.h. Use terminal_encode_buffer
17711 from term.c.
17712 (write_glyphs): Use new version of encode_terminal_code. Use
17713 encode_coding_object in place of encode_coding.
17714
17715 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17716 encoding becomes encoding_type.
17717
17718 * term.c (terminal_encode_buffer): Make externally visible.
17719
17720 * makefile.w32-in: Add character.h dependancies.
17721 (character.o, chartab.o): New targets.
17722
177232008-02-01 Kenichi Handa <handa@m17n.org>
17724
17725 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17726 CODING_ID_EOL_TYPE.
17727
177282008-02-01 Andreas Schwab <schwab@suse.de>
17729
17730 * coding.c (produce_chars): Revert last change.
17731
177322008-02-01 Kenichi Handa <handa@m17n.org>
17733
17734 * charset.h (charset_unicode): Extern it.
17735
17736 * charset.c (string_xstring_p): Check by (C >= 0x100).
17737 (find_charsets_in_text): Change format of the arc CHARSETS. New
17738 arg MULTIBYTE.
17739 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17740 change of find_charsets_in_text.
17741 (Fsplit_char): Fix doc. Never return unknown.
17742
17743 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17744
17745 * coding.c (Fdefine_coding_system_alias): Update
17746 Vcoding_system_list.
17747
17748 * fontset.c (load_font_get_repertory): Pay attention to the case
17749 that ENCODING of a font is specified by a char-table.
17750
17751 * xterm.c (x_get_font_repertory): Handle the case that the
17752 encoding of font is other than Unicode.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17757 if a character is encodable by the terminal coding system. If
17758 not, produces proper number of `?'s. Update
17759 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17760 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17761
177622008-02-01 Kenichi Handa <handa@m17n.org>
17763
17764 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17765 variables.
17766 (encode_terminal_code): Change argument. Encode multiple
17767 characters at once. Store the result of encoding in
17768 terminal_encode_buffer.
17769 (write_glyphs, insert_glyphs): Adjust for the change of
17770 encode_terminal_code.
17771 (term_init): Initialize terminal_encode_buffer and
17772 terminal_encode_buf_size.
17773
17774 * coding.c (consume_chars): If coding->src_object is nil, don't
17775 check annotation.
17776
177772008-02-01 Kenichi Handa <handa@m17n.org>
17778
17779 * character.c (char_string): Use ASCII_CHAR_P instead of
17780 SINGLE_BYTE_CHAR_P.
17781
177822008-02-01 Kenichi Handa <handa@m17n.org>
17783
17784 * xdisp.c (handle_auto_composed_prop): Check if the last
17785 characters of auto-composed region is newly composed with the
17786 following characters.
17787 (handle_composition_prop): Fix checking of point being inside
17788 composition.
17789
177902008-02-01 Kenichi Handa <handa@m17n.org>
17791
17792 * fns.c (concat): Don't change multibyteness of the result by
17793 concatenating an 8-bit character.
17794
17795 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17796 multibyteness of the result when newelt is an 8-bit character.
17797
177982008-02-01 Dave Love <fx@gnu.org>
17799
17800 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17801 EMACS_INT.
17802
17803 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17804
17805 * xfaces.c (face_numeric_value): Declare dim size_t.
17806 (Finternal_lisp_face_equal_p): Remove unused f.
17807
17808 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17809 (MATRIX_ROW): Remove unused vars.
17810 (draw_glyphs, x_insert_glyphs, fast_find_position)
17811 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17812 byte/char counts.
17813
17814 * regex.c (regex_compile): Remove unused var.
17815
17816 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17817
17818 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17819 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17820
17821 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17822
17823 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17824
17825 * fileio.c (Fwrite_region): Remove unused var.
17826
17827 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17828 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17829
17830 * composite.c (Fremove_list_of_text_properties): Declare.
17831
17832 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17833 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17834 (coding_inherit_eol_type): Remove unused attrs.
17835 (detect_coding): Cast arg of detect_eol.
17836
17837 * charset.c (syms_of_charset): Remove unused var p.
17838 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17839 byte/char counts.
17840
17841 * casetab.c (set_case_table): Remove unused var.
17842
17843 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17844 unused vars.
17845
178462008-02-01 Dave Love <fx@gnu.org>
17847
17848 * xterm.c (x_bitmap_mask): Declare.
17849
178502008-02-01 Dave Love <fx@gnu.org>
17851
17852 * xterm.c (x_term_init): Fix type error.
17853
17854 * lisp.h: Add Funibyte_char_to_multibyte.
17855
17856 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17857 (Fset_coding_system_priority): Doc fix.
17858
17859 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17860
17861 * indent.c (check_composition): Make start and end EMACS_INT.
17862
17863 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17864
17865 * xdisp.c (handle_composition_prop, check_point_in_composition):
17866 Make buffer positions EMACS_INT.
17867
17868 * composite.c (find_composition, run_composition_function)
17869 (update_compositions, Ffind_composition_internal): Make buffer
17870 positions EMACS_INT.
17871
17872 * composite.h (find_composition, update_compositions): Make
17873 position args EMACS_INT.
17874
17875 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17876
17877 * intervals.c (get_property_and_range):
17878 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17879
17880 * unexalpha.c: Don't include varargs.h.
17881
178822008-02-01 Dave Love <fx@gnu.org>
17883
17884 * coding.h (ENCODE_UTF_8): New.
17885
17886 * Makefile.in (gtkutil.o): Depend on coding.h.
17887
17888 * coding.c (Fset_coding_system_priority): Doc fix.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17893 the case of auto saving.
17894
178952008-02-01 Andreas Schwab <schwab@suse.de>
17896
17897 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17898 `range' from GC.
17899
179002008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * fileio.c (choose_write_coding_system): Return a decided coding system.
17907 (Fwrite_region): Set Vlast_coding_system_used to the return value
17908 of choose_write_coding_system.
17909
179102008-02-01 Kenichi Handa <handa@m17n.org>
17911
17912 * charset.c (Fset_charset_priority): Pay attention to duplicated
17913 arguments.
17914
17915 * coding.c (QCcategory): New variable.
17916 (syms_of_coding): Defsym it. Set all elements of
17917 Vcoding_category_table and their symbol values.
17918 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17919 coding-category-XXX, and coding-category-list.
17920 (Fdefine_coding_system_internal): Add category in the plist.
17921
179222008-02-01 Kenichi Handa <handa@m17n.org>
17923
17924 * callproc.c (Fcall_process): Handle carryover correctly.
17925
17926 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17927 (raw_text_coding_system): Check NILP (coding_system).
17928 (coding_inherit_eol_type): Check NILP (coding_system) and
17929 NILP (parent).
17930 (consume_chars): Fix for the case of raw-text.
17931
17932 * process.c (read_process_output): Handle carryover correctly.
17933
179342008-02-01 Dave Love <fx@gnu.org>
17935
17936 * regex.c (re_search_2): Fix last change.
17937
179382008-02-01 Kenichi Handa <handa@m17n.org>
17939
17940 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17941 target_multibyte. Even in a unibyte case, return a converted
17942 multibyte char.
17943 (GET_CHAR_AFTER): New macro.
17944 (PATFETCH): Translate via multibyte char.
17945 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17946 (SETUP_MULTIBYTE_RANGE): New macro.
17947 (regex_compile): Setup compiled code so that its multibyteness
17948 matches that of a target. Fix the handling of "[X-YZ]" using
17949 SETUP_MULTIBYTE_RANGE.
17950 (analyse_first) <charset>: For filling fastmap for all multibyte
17951 characters, don't check by BASE_LEADING_CODE_P.
17952 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17953 the same as RE_MULTIBYTE_P (bufp) now.
17954 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17955 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17956 (TRANSLATE_VIA_MULTIBYTE): New macro.
17957 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17958 It is the same as RE_MULTIBYTE_P (bufp) now.
17959 <exactn>: Translate via multibyte.
17960 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17961 translate it.
17962 <charset, charset_not>: Fetch a character by
17963 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17964 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17965 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17966 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17967 by GET_CHAR_AFTER.
17968 (bcmp_translate): Likewise.
17969
17970 * search.c (compile_pattern): Check the member target_multibyte,
17971 not the member multibyte of buf.
17972
17973 * lread.c (read1): While reading a string, set force_singlebyte
17974 and force_multibyte correctly.
17975
17976 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17977 up of unibyte_to_multibyte_table.
17978
179792008-02-01 Kenichi Handa <handa@m17n.org>
17980
17981 * coding.c (setup_coding_system): If coding has
17982 post-read-conversion or pre-write-conversion, set
17983 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17984 respectively.
17985 (decode_coding_gap): Run post-read-conversion if any.
17986
17987 * fileio.c (Finsert_file_contents): Even if we read into a
17988 unibyte buffer, check if we must decode the result or not.
17989
179902008-02-01 Kenichi Handa <handa@m17n.org>
17991
17992 * coding.c (make_conversion_work_buffer): Change the work buffer
17993 name to the same one as that of Emacs 21.
17994
179952008-02-01 Kenichi Handa <handa@m17n.org>
17996
17997 * coding.h (make_conversion_work_buffer): Adjust prototype.
17998 (code_conversion_restore): Don't extern it.
17999
18000 * coding.c (detected_mask): Delete unused variable.
18001 (decode_coding_iso_2022): Pay attention to the byte sequence of
18002 CTEXT extended segment, and retain those bytes as is.
18003 (decode_coding_ccl): Delete unused variable `valids'.
18004 (setup_coding_system): Delete unused variable `category'.
18005 (consume_chars): Delete unused variable `category'. Make it work
18006 for non-multibyte case.
18007 (make_conversion_work_buffer): Change argument.
18008 (saved_coding): Delete unused variable.
18009 (code_conversion_restore): Don't check saved_coding->destination.
18010 (code_conversion_save): New function.
18011 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18012 instead of record_unwind_protect.
18013 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18014 (detect_coding_system): Delete unused variable `mask'.
18015 (Fdefine_coding_system_internal): Delete unused variable id.
18016
18017 * fileio.c (kill_workbuf_unwind): New function.
18018 (Finsert_file_contents): On replacing, call
18019 make_conversion_work_buffer with correct args, and call
18020 record_unwind_protect with the first arg kill_workbuf_unwind.
18021
18022 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18023
180242008-02-01 Kenichi Handa <handa@m17n.org>
18025
18026 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18027 (fontset_add): Fix for the case that TO is less than TO1.
18028 (Ffontset_info): Don't use fallback fontset on checking the
18029 default fontset.
18030 (dump_fontset): New function for debugging.
18031
18032 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18033 coding_type is Qcharset.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18038 (map_char_table): Don't inherit the value from the parent on
18039 initializing VAL. Adjust for the above change.
18040
180412008-02-01 Kenichi Handa <handa@m17n.org>
18042
18043 * coding.c (Qsignature, Qendian): Delete these variables.
18044 (syms_of_coding): Don't initialize them.
18045 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18046 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18047 detect_info->found.
18048 (decode_coding_utf_16): Don't detect BOM here.
18049 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18050 is NOT utf_16_without_bom.
18051 (setup_coding_system): For a coding system of type utf-16, check
18052 if the attribute :endian is Qbig or not (not nil or not), and set
18053 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18054 (detect_coding): If coding type is utf-16 and BOM detection is
18055 required, detect it.
18056 (Fdefine_coding_system_internal): For a coding system of type
18057 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18058
180592008-02-01 Kenichi Handa <handa@m17n.org>
18060
18061 * coding.c (coding_set_source): Fix for the case that the current
18062 buffer is different from coding->src_object.
18063 (decode_coding_object): Don't use the conversion work buffer if
18064 DST_OBJECT is a buffer.
18065
180662008-02-01 Dave Love <fx@gnu.org>
18067
18068 * lread.c (read_emacs_mule_char) [len==2]: Index
18069 emacs_mule_charset correctly.
18070
180712008-02-01 Dave Love <fx@gnu.org>
18072
18073 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18074 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18075 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18076 treated specially.)
18077 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18078 (detected_mask): Remove Big5 bits.
18079
180802008-02-01 Kenichi Handa <handa@m17n.org>
18081
18082 The following changes are to make the font rescaling facility
18083 compatible with Emacs 21.
18084
18085 * xfaces.c (Vface_font_rescale_alist): Rename from
18086 Vface_resizing_fonts.
18087 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18088 (font_rescale_ratio): Rename from font_resizing_ratio.
18089 (split_font_name): Set font->rescale_ratio.
18090 (better_font_p): Pay attention to font->rescale_ratio.
18091 (build_scalable_font_name): Likewise. Change RESX, and RESY
18092 fields.
18093 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18094
180952008-02-01 Kenichi Handa <handa@m17n.org>
18096
18097 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18098 (Qutf_16_le): Remove these variables.
18099 (syms_of_coding): Don't DEFSYM them.
18100 (decode_coding_utf_16): Fix handling of BOM.
18101 (encode_coding_utf_16): Fix handling of BOM.
18102
181032008-02-01 Kenichi Handa <handa@m17n.org>
18104
18105 * fileio.c (Finsert_file_contents): On replacing, before decoding
18106 the file into the work buffer, set point of the work buffer to the end.
18107
181082008-02-01 Dave Love <fx@gnu.org>
18109
18110 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18111
181122008-02-01 Dave Love <fx@gnu.org>
18113
18114 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18115 and fix C types.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * xdisp.c (SKIP_GLYPHS): New macro.
18120 (set_cursor_from_row): Pay attention to string display properties.
18121
18122 * category.c (copy_category_entry): Fix for the case that RANGE
18123 is an integer.
18124
18125 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18126
18127 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18128
181292008-02-01 Kenichi Handa <handa@m17n.org>
18130
18131 * charset.c (Fcharset_id_internal): New function.
18132 (syms_of_charset): Defsubr it.
18133
18134 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18135 with the last arg charset_list acquired from coding.
18136 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18137 the attribute coding_attr_ccl_valids.
18138
18139 * coding.h (enum define_coding_ccl_arg_index): Set the first
18140 member coding_arg_ccl_decoder to coding_arg_max.
18141
18142 * ccl.h (ccl_driver): Adjust prototype.
18143
18144 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18145 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18146 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18147 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18148 last arg Qnil.
18149
181502008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18153 call encode_char.
18154
18155 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18156
181572008-02-01 Dave Love <fx@gnu.org>
18158
18159 * composite.c (syms_of_composite): Make composition_hash_table weak.
18160
181612008-02-01 Kenichi Handa <handa@m17n.org>
18162
18163 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18164 (font_name_registry): Don't extern them.
18165 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18166
18167 * fontset.h (Qfontset): Don't extern it.
18168 (new_fontset_from_font_name): Extern it.
18169
18170 * fontset.c: Give 8 extra slots to fontset objects.
18171 (Qfontset_info): New variable.
18172 (syms_of_fontset): Defsym it.
18173 (FONTSET_FALLBACK): New macro.
18174 (fontset_face): Try also the default fontset.
18175 (make_fontset): Realize a fallback fontset from the default fontset.
18176 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18177 using split_font_name_into_vector and build_font_name_from_vector.
18178 (Fset_fontset_font): Access the elements of font_spec by enum
18179 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18180 name by using split_font_name_into_vector.
18181 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18182 generate a proper font name from the fontset name. Update
18183 Vfontset_alias_alist.
18184 (n_auto_fontsets): New variable.
18185 (new_fontset_from_font_name): New function.
18186 (Ffont_info): Store the information about fonts generated from the
18187 default fontset in the first extra slot of the returned char-table.
18188
18189 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18190 (font_name_registry): Delete function.
18191 (split_font_name_into_vector): New function.
18192 (build_font_name_from_vector): New function.
18193 (font_list): The argument REGISTRY is now a list of registry names.
18194 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18195 specifies an explicit font name, return the name as is. Make a
18196 list of registy names.
18197
18198 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18199 of x_new_fontset.
18200 (Fx_create_frame): Don't call x_new_fontset here. Just use
18201 x_list_fonts to check the existence of fonts.
18202
18203 * xterm.h (x_new_fontset): Adjust prototype.
18204
18205 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18206 string. Use new_fontset_from_font_name to create a fontset from a
18207 font name.
18208
182092008-02-01 Kenichi Handa <handa@m17n.org>
18210
18211 * syntax.c (Vfind_word_boundary_function_table): New name for
18212 Vnext_word_boundary_function_table.
18213 (find-word-boundary-function-table): New name for
18214 next-word-boundary-function-table.
18215
182162008-02-01 Dave Love <fx@gnu.org>
18217
18218 * Makefile.in: Fix some dependencies.
18219
18220 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18221 set it to nil before returning.
18222
18223 * composite.c (update_compositions): Fix type error.
18224
18225 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18226
182272008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * xterm.c (x_new_font): Optimize for the case that the font is
18230 already set for the frame.
18231
182322008-02-01 Kenichi Handa <handa@m17n.org>
18233
18234 * chartab.c (char_table_ascii): Check if the char table contents
18235 is sub-char-table or not.
18236 (char_table_set, char_table_set_range): Fix argument to
18237 char_table_ascii.
18238
18239 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18240 (detect_coding_utf_8, detect_coding_utf_16)
18241 (detect_coding_emacs_mule, detect_coding_iso_2022)
18242 (detect_coding_sjis, detect_coding_big5)
18243 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18244 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18245 sequence is valid in this coding system. Change callers.
18246 (MAX_ANNOTATION_LENGTH): New macro.
18247 (ADD_ANNOTATION_DATA): New macro.
18248 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18249 ADD_ANNOTATION_DATA. Change the format of annotation data.
18250 (ADD_CHARSET_DATA): New macro.
18251 (emacs_mule_char): New argument ID. Change callers.
18252 (decode_coding_emacs_mule, decode_coding_iso_2022)
18253 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18254 Produce charset annotation data in coding->charbuf.
18255 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18256 to charset annotation data in coding->charbuf.
18257 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18258 coding->common_flags if the coding system is iso-2022 based and
18259 uses designation.
18260 (produce_composition): Adjust for the new annotation data format.
18261 (produce_charset): New function.
18262 (produce_annotation): Handle charset annotation.
18263 (handle_composition_annotation, handle_charset_annotation): New
18264 functions.
18265 (consume_chars): Handle charset annotation. Utilize the above two
18266 functions.
18267 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18268 buffer, get the deleted text as a string and set
18269 coding->src_object to that string.
18270 (detect_coding, detect_coding_system): Use the new struct
18271 coding_detection_info.
18272
18273 * coding.h (struct coding_detection_info): New structure.
18274 (struct coding_system): Adjust prototype of the member `detector'.
18275 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18276
182772008-02-01 Kenichi Handa <handa@m17n.org>
18278
18279 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18280
182812008-02-01 Dave Love <fx@gnu.org>
18282
18283 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18284 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18285 to new local and nullify apropos_accumulate before returning.
18286 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18287
182882008-02-01 Kenichi Handa <handa@m17n.org>
18289
18290 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18291 correctly.
e3eea1fc 18292
aac0c6e3
MR
182932008-02-01 Dave Love <fx@gnu.org>
18294
18295 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18296
182972008-02-01 Kenichi Handa <handa@m17n.org>
18298
18299 The following changes are to make character composition happen
18300 automatically on displaying.
18301
18302 * Makefile.in (lisp, shortlisp): Add composite.elc.
18303
18304 * composite.h (Qauto_composed, Vauto_composition_function)
18305 (Qauto_composition_function): Extern them.
18306
18307 * composite.c (Vcomposition_function_table)
18308 (Qcomposition_function_table): Delete variables.
18309 (Qauto_composed, Vauto_composition_function)
18310 (Qauto_composition_function): New variables.
18311 (run_composition_function): Don't call
18312 compose-chars-after-function.
18313 (update_compositions): Clear `auto-composed' text property.
18314 (compose_chars_in_text): Delete this function.
18315 (syms_of_composite): Staticpro Qauto_composed and
18316 Qauto_composition_function. Declare Vauto_composition_function as
18317 a Lisp variable.
18318
18319 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18320
18321 * xdisp.c (it_props): Add an entry for Qauto_composed.
18322 (handle_auto_composed_prop): New function.
18323
18324 * xselect.c (selection_data_to_lisp_data): Don't call
18325 compose_chars_in_text.
18326
183272008-02-01 Dave Love <fx@gnu.org>
18328
18329 * keyboard.c (read_char): Modify checking around use of
18330 Vkeyboard_translate_table.
18331
18332 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18333 and fix C types.
18334
183352008-02-01 Kenichi Handa <handa@m17n.org>
18336
18337 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18338 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18339 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18340 the case that the last byte is '\r' correctly.
18341 (decode_coding): Flush out the unprocessed data correctly.
18342 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18343
183442008-02-01 Dave Love <fx@gnu.org>
18345
18346 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18347 Add XK_ISO... case.
18348 (xaw_scroll_callback): Revert last change.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18353
183542008-02-01 Kenichi Handa <handa@m17n.org>
18355
18356 * xfaces.c (Vface_resizing_fonts): New variable.
18357 (struct font_name): New member `resizing_ratio'.
18358 (font_resizing_ratio): New function.
18359 (split_font_name): Set font->resizing_ratio.
18360 (better_font_p): Pay attention to font->resizing_ratio.
18361 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18362 RESX, and RESY fields.
18363 (try_alternative_families): Try scalable fonts if
18364 Vscalable_fonts_allowed is not Qt.
18365 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18366
183672008-02-01 Dave Love <fx@gnu.org>
18368
18369 * xterm.c (xaw_scroll_callback): Cast correctly.
18370
183712008-02-01 Dave Love <fx@gnu.org>
18372
18373 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18374 (lispy_kana_keys): Comment out.
18375 (make_lispy_event) [XK_kana_A]: Comment out.
18376
18377 * xterm.c (xaw_scroll_callback): Cast call_data.
18378 (XTread_socket): Deal with ASCII keysyms.
18379 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18380
183812008-02-01 Dave Love <fx@gnu.org>
18382
18383 * xterm.c (Vx_keysym_table): New.
18384 (syms_of_xterm): Initialize it.
18385 (XTread_socket): Use it.
18386 From head: Eliminate incorrect optimization that tried to avoid
18387 decoding the output of X*LookupString.
18388 (x_get_font_repertory): Delete charset declaration.
18389
183902008-02-01 Kenichi Handa <handa@m17n.org>
18391
18392 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18393 return 0.
18394 (Fdefine_coding_system_internal): Setup
18395 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18396
183972008-02-01 Dave Love <fx@gnu.org>
18398
18399 * coding.c (Fcheck_coding_system): Doc fix.
18400
18401 * editfns.c (Finsert_byte): Return a proper value.
18402
184032008-02-01 Kenichi Handa <handa@m17n.org>
18404
18405 * coding.c (decode_coding): Fix args to translate_chars. Pay
18406 attention to Vstandard_translation_table_for_decode.
18407 (encode_coding): Fix args to translate_chars. Pay attention to
18408 Vstandard_translation_table_for_encode.
18409
18410 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18411 SINGLE_BYTE_CHAR_P.
18412
18413 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18414 not by SINGLE_BYTE_CHAR_P.
18415
18416 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18417 SINGLE_BYTE_CHAR_P.
18418
18419 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18420 SINGLE_BYTE_CHAR_P.
18421
18422 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18423 by SINGLE_BYTE_CHAR_P.
18424
18425 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18426 SINGLE_BYTE_CHAR_P.
18427
184282008-02-01 Dave Love <fx@gnu.org>
18429
18430 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18431
184322008-02-01 Dave Love <fx@gnu.org>
18433
18434 * fns.c (Flanginfo): Fix typo.
18435
18436 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18437
184382008-02-01 Kenichi Handa <handa@m17n.org>
18439
18440 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18441 (detect_coding_emacs_mule, detect_coding_iso_2022)
18442 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18443 incomplete byte sequence. Don't update *mask when correctly detected.
18444 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18445 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18446 (detect_coding, detect_coding_system): Adjust for the changes above.
18447
184482008-02-01 Kenichi Handa <handa@m17n.org>
18449
18450 * character.c (char_string): Rename from
18451 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18452 (string_char): Rename from string_char.
18453
18454 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18455 if C is greater than MAX_3_BYTE_CHAR.
18456 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18457 string_char instead of string_char_with_unification.
18458
184592008-02-01 Dave Love <fx@gnu.org>
18460
18461 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * keymap.c (push_key_description): Pay attention to force_multibyte.
18466
18467 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18468
184692008-02-01 Dave Love <fx@gnu.org>
18470
18471 * charset.c (define_charset_internal): Rename `supprementary'.
18472
18473 * Makefile.in (lisp, shortlisp): Remove latin-N.
18474
184752008-02-01 Dave Love <fx@gnu.org>
18476
18477 * xfns.c (x_window, x_window): Use use_xim.
18478
18479 * xterm.c (use_xim): Initialize.
18480 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18481 (x_term_init): Maybe set use_xim.
18482
18483 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18484
184852008-02-01 Kenichi Handa <handa@m17n.org>
18486
18487 * search.c (search_buffer): Fix case-fold-search of multibyte
18488 characters.
18489 (boyer_moore): Rename the last argument to char_high_bits.
18490
184912008-02-01 Kenichi Handa <handa@m17n.org>
18492
18493 * xdisp.c (display_string): Fix for the case of zero width glyph.
18494
18495 * xfns.c (x_set_font): Change the error message of the case that
18496 x_new_fontset returns Qt.
18497
18498 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18499 (Finternal_set_lisp_face_attribute): Use signal_error for the
18500 error of invalid fontset.
18501
18502 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18503 fontset, return Qt.
18504
185052008-02-01 Dave Love <fx@gnu.org>
18506
18507 * unexelf.c (unexec): Make .got handling not SGI-specific.
18508
18509 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18510
18511 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18512
18513 * keyboard.c (read_key_sequence): Fix type error.
18514
18515 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18516 type error.
18517
18518 * fontset.c (fontset_add): Return Lisp_Object.
18519
185202008-02-01 Dave Love <fx@gnu.org>
18521
18522 * charset.h (charset_ordered_list_tick): Declare extern.
18523
185242008-02-01 Kenichi Handa <handa@m17n.org>
18525
18526 The following changes (and some of 2008-02-01 changes of mine) are
18527 for handling syntax, category, and case conversion for unibyte
18528 characters by converting them to multibyte on the fly. With these
18529 changes, we don't have to setup syntax and case tables for unibyte
18530 characters in each language environment.
18531
18532 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18533 multibyte if necessary.
18534
18535 * bytecode.c (Fbyte_code): Likewise.
18536
18537 * character.h (LEADING_CODE_LATIN_1_MIN)
18538 (LEADING_CODE_LATIN_1_MAX): New macros.
18539 (unibyte_to_multibyte_table): Extern it.
18540 (unibyte_char_to_multibyte): New macro.
18541 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18542 (CHAR_LEADING_CODE): New macro.
18543 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18544
18545 * character.c (unibyte_to_multibyte_table): New variable.
18546 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18547 (multibyte_char_to_unibyte): If C is an eight-bit character,
18548 convert it to the corresponding byte value.
18549
18550 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18551 not 1, signals an error. Update the elements of
18552 unibyte_to_multibyte_table.
18553 (init_charset_once): Initialize unibyte_to_multibyte_table.
18554 (syms_of_charset): Define the charset `iso-8859-1'.
18555
18556 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18557 as is without converting it to unibyte. In a unibyte buffer,
18558 convert C to multibyte before checking the syntax.
18559
18560 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18561
18562 * minibuf.c (Fminibuffer_complete_word): Use the macro
18563 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18564
18565 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18566
18567 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18568 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18569 that is zero, convert an eight-bit char to multibyte.
18570 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18571 non-emacs case.
18572 (PATFETCH): Convert an eight-bit char to multibyte.
18573 (HANDLE_UNIBYTE_RANGE): New macro.
18574 (regex_compile): Setup the compiled pattern for multibyte chars
18575 even if the given regex string is unibyte. Use PATFETCH_RAW
18576 instead of PATFETCH in many places. To handle `charset'
18577 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18578 only for ASCII chars.
18579 (analyse_first) <exactn>: Simplify because the compiled pattern
18580 is multibyte.
18581 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18582 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18583 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18584 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18585 multibyte always 1.
18586 (re_search_2): In emacs, set the locale variable multibyte to 1,
18587 otherwise to 0. New local variable target_multibyte. Check it
18588 to decide the multibyteness of STR1 and STR2. If
18589 target_multibyte is zero, convert unibyte chars to multibyte
18590 before translating and checking fastmap.
18591 (TARGET_CHAR_AND_LENGTH): New macro.
18592 (re_match_2_internal): In emacs, set the locale variable multibyte
18593 to 1, otherwise to 0. New local variable target_multibyte. Check
18594 it to decide the multibyteness of STR1 and STR2. Use
18595 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18596 <charset, charset_not>: If multibyte is nonzero, check fastmap
18597 only for ASCII chars. Call bcmp_translate with
18598 target_multibyte, not with multibyte.
18599 <begline>: Declare the local variable C as `unsigned'.
18600 (bcmp_translate): Change the last arg name to target_multibyte.
18601
18602 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18603 the regexp pattern and the matching target. Set cp->buf.multibyte
18604 to the multibyteness of the regexp pattern. Set
18605 cp->but.target_multibyte to the multibyteness of the matching target.
18606 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18607 FETCH_STRING_CHAR_ADVANCE.
18608 (Freplace_match): Convert unibyte chars to multibyte.
18609
18610 * syntax.c (char_quoted, back_comment, scan_words)
18611 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18612 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18613 unibyte chars to multibyte.
18614 (skip_chars): Delete the arg syntaxp, and move the code for
18615 handling syntaxes to skip_syntaxes. Change callers.
18616 Fix the case that the multibyteness of STRING and the current
18617 buffer doesn't match.
18618 (skip_syntaxes): New function.
18619 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18620 SINGLE_BYTE_CHAR_P.
18621
186222008-02-01 Kenichi Handa <handa@m17n.org>
18623
18624 * xfaces.c (QCfontset): New variable.
18625 (LFACE_FONTSET): New macro.
18626 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18627 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18628 (Finternal_set_lisp_face_attribute)
18629 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18630 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18631 check also LFACE_FONTSET_INDEX.
18632 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18633 attrs[LFACE_FONT_INDEX].
18634 (syms_of_xfaces): Intern and staticpro QCfontset.
18635
18636 * dispextern.h (enum lface_attribute_index): New member
18637 LFACE_FONTSET_INDEX.
18638
18639 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18640
186412008-02-01 Kenichi Handa <handa@m17n.org>
18642
18643 * coding.c (coding_set_destination): Fix coding->destination for
18644 the case converting a region.
18645 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18646 (encode_coding_object): Fix coding->dst_pos and
18647 coding->dst_pos_byte for the case converting a region.
18648
18649 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18650
18651 * character.h (BYTE8_STRING): New macro.
18652
18653 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18654
186552008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18658 characters by octal form.
18659
18660 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18661
18662 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18663 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18664 _fetch_multibyte_char_len.
18665 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18666
18667 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18668
18669 * casefiddle.c (casify_object): Simplify. Handle the case that
18670 the case conversion change the byte length.
18671 (casify_region): Likewise.
18672
18673 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18674
18675 * character.c (_fetch_multibyte_char_len): Delete this variable.
18676 (syms_of_character): Setup Vprintable_chars.
18677
18678 * editfns.c (Fchar_equal): Fix for the unibyte case.
18679 (Finsert_byte): New function.
18680 (syms_of_editfns): Defsubr it.
18681
18682 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18683 of direct code 0x3ffff.
18684
18685 * search.c (Freplace_match): Fix for the unibyte case.
18686
186872008-02-01 Kenichi Handa <handa@m17n.org>
18688
18689 * lread.c (safe_to_load_p): Fix the logic.
18690
18691 * syntax.c (scan_words): Don't treat characters belonging to
18692 different scripts as constituting a word.
18693
18694 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18695
18696 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18697
18698 * emacs.c (main): In the case of --unibyte, instead of aborting on
18699 finding non-empty buffer, make it unibyte.
18700
187012008-02-01 Kenichi Handa <handa@m17n.org>
18702
18703 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18704 to create a fontset.
18705
187062008-02-01 Dave Love <fx@gnu.org>
18707
18708 * character.c (Funibyte_char_to_multibyte): Doc fix.
18709
18710 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * fontset.c (fontset_add): Make the type `int'.
18715 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18716
18717 * character.c (unibyte_char_to_multibyte)
18718 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18719 charset_unibyte, not charset_primary.
18720
18721 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18722
18723 * charset.c (charset_unibyte): Rename from charset_primary.
18724 (Funibyte_charset): Rename from Fprimary_charset.
18725 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18726 (syms_of_charset): Adjust for the above changes.
18727
18728 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18729 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18730 it->multibyte_p is zero.
18731
18732 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18733 Delete extern.
18734
187352008-02-01 Kenichi Handa <handa@m17n.org>
18736
18737 * coding.c (Fdefine_coding_system_internal): Fix category setting
18738 for a coding system of type iso-2022.
18739
187402008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18743
187442008-02-01 Kenichi Handa <handa@m17n.org>
18745
18746 * syntax.c (Vnext_word_boundary_function_table): New variable.
18747 (next-word-boundary-function-table): Declare it as a Lisp variable
18748 in syms_of_syntax.
18749 (scan_words): Call functions in Vnext_word_boundary_function_table
18750 if any.
18751
18752 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18753
18754 * fontset.c (fs_load_font): If fontp->charset is not negative,
18755 return fontp without setting its members.
18756
187572008-02-01 Dave Love <fx@gnu.org>
18758
18759 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18760
18761 * m/sparc.h (HAVE_ALLOCA): Delete.
18762
18763 * s/irix6-5.h: Don't include strings.h.
18764 (bcopy, bzero, bcmp): Don't undef.
18765
18766 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18767
18768 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18769 (TIOCSIGSEND): Don't test IRIX6.
18770 (bcopy, bzero, bcmp): Define conditionally.
18771
187722008-02-01 Kenichi Handa <handa@m17n.org>
18773
18774 * buffer.c (Qas, Qmake, Qto): New variables.
18775 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18776 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18777
18778 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18779 we are inserting a process output into a multibyte buffer.
18780
18781 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18782 multibyte_char_to_unibyte.
18783
18784 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18785 by the primary charset, make it eight-bit char.
18786 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18787
18788 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18789 (charset_8_bit__control, charset_8_bit_graphic)
18790 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18791 (define_charset_internal): New function.
18792 (syms_of_charset): Call define_charset_internal for pre-defined
18793 charsets.
18794
18795 * charset.h (charset_8_bit): Extern it.
18796
18797 * coding.c (make_conversion_work_buffer): Adjust for the change
18798 of Fset_buffer_multibyte.
18799 (encode_coding_raw_text): Increment p0 in the loop.
18800
18801 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18802
18803 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18804 for the change of Fset_buffer_multibyte.
18805
18806 * fns.c (Fstring_to_multibyte): New function.
18807 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18808
188092008-02-01 Dave Love <fx@gnu.org>
18810
18811 * xfns.c (x_put_x_image): Declare args.
18812
18813 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18814 (try_font_list): Declare an arg.
18815
18816 * xdisp.c (message2_nolog, set_message): Declare an arg.
18817
18818 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18819
18820 * syntax.c (scan_sexps_forward): Declare an arg.
18821
18822 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18823 Declare an arg.
18824
18825 * lisp.h (Fnew_fontset): Declare.
18826
18827 * keymap.c (push_key_description): Call CHARACTERP correctly.
18828
18829 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18830 (face_for_char): Delete unused vars.
18831 (Fset_fontset_font): Doc fix. Delete unused vars.
18832
18833 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18834
18835 * composite.c (update_compositions): Declare arg.
18836
18837 * cm.c (calccost, cmgoto): Declare args.
18838
18839 * charset.c: Remove `emacs' conditional. Doc fixes.
18840 (map_char_table_for_charset): Declare.
18841
18842 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18843
18844 * ccl.c: Remove `emacs' conditional.
18845
188462008-02-01 Kenichi Handa <handa@m17n.org>
18847
18848 The following changes are to allow specifying multiple font
18849 patterns for a character range (specified by script or charset).
18850
18851 * Makefile.in (abbrev.o): Depend on syntax.h.
18852 (xfaces.o): Depend on charset.h.
18853
18854 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18855 SINGLE_BYTE_CHAR_P.
18856
18857 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18858
18859 * character.h (Vchar_script_table): Extern it.
18860
18861 * character.c (Vscript_alist): Delete.
18862 (Vchar_script_table, Qchar_script_table): New variable.
18863 (syms_of_character): Declare Vchar_script_table as a lisp variable
18864 and initialize it.
18865
18866 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18867 have property char-table-extra-slots, make no extra slot.
18868
18869 * dispextern.h (struct face): Delete member `charset'.
18870 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18871 SINGLE_BYTE_CHAR_P.
18872 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18873 Add prototypes.
18874 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18875 (generate_ascii_font_name): Rename from generate_ascii_font.
18876
18877 * fontset.h (get_font_repertory_func): New prototype.
18878 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18879 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18880
18881 * fontset.c (Qprepend, Qappend): New variables.
18882 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18883 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18884 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18885 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18886 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18887 (load_font_get_repertory): New functions.
18888 (fontset_set): Delete.
18889 (fontset_face): New arg FACE. Return face ID, not face.
18890 Complete re-write to handle new fontset structure. Change caller.
18891 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18892 (face_for_char): Don't call lookup_face.
18893 (make_fontset_for_ascii_face): New arg FACE.
18894 (fs_load_font): New arg CHARSET_ID. Don't check
18895 Vfont_encoding_alist here.
18896 (find_font_encoding): New function.
18897 (list_fontsets): Use STRINGP, not ! NILP.
18898 (accumulate_script_ranges): New function.
18899 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18900 re-written to handle new fontset structure.
18901 (Ffontset_font): Return a copy of element.
18902 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18903 docstring of font-encoding-alist.
18904
18905 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18906 (Fset_fotset_font): Fix arguments to 5.
18907
18908 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18909
18910 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18911 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18912 (highlight_trailing_whitespace): Adjust for the change of
18913 lookup_named_face.
18914
18915 * xfaces.c: Include charset.h.
18916 (load_face_font): Delete argument C. Change caller.
18917 (generate_ascii_font_name): Rename from generate_ascii_font.
18918 (font_name_registry): New function.
18919 (cache_face): Store ascii faces before non-ascii faces in buckets.
18920 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18921 Lookup only ascii faces.
18922 (lookup_non_ascii_face): New function.
18923 (lookup_named_face): Delete argument C. Change caller.
18924 (lookup_derived_face): Delete argument C. Change caller.
18925 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18926 a string, just call font_list with it.
18927 (choose_face_font): Delete arguments FACE and C. New arg
18928 FONT_SPEC. Change caller.
18929 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18930 Change caller.
18931 (realize_non_ascii_face): New function.
18932 (realize_x_face): Call load_face_font here.
18933 (realize_tty_face): Delete argument C. Change caller.
18934 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18935 get a face ID.
18936 (dump_realized_face): Don't print charset of FACE.
18937
18938 * xfns.c (x_set_font): Always call x_new_fontset and
18939 store_frame_parameter.
18940 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18941 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18942
18943 * xterm.h (x_get_font_repertory): Extern it.
18944
18945 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18946 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18947 it->multibyte_p is zero.
18948 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18949 (x_new_fontset): If FONTSETNAME doesn't match any existing
18950 fontsets, create a new one.
18951 (x_get_font_repertory): New function.
18952
189532008-02-01 Kenichi Handa <handa@m17n.org>
18954
18955 * coding.c (Ffind_coding_systems_region_internal): Detect an
18956 ASCII only string correctly.
18957
18958 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18959 version is 0.
18960
189612008-02-01 Kenichi Handa <handa@m17n.org>
18962
18963 * lread.c: Include "coding.h".
18964 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18965 (load_each_byte, unread_char): New variables.
18966 (readchar_backlog): Delete.
18967 (readchar): Return a character unless load_each_byte is nonzero.
18968 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18969 cons. If unread_char is not -1, simply return it.
18970 (unreadchar): Handle the case that readcharfun is
18971 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18972 (read_multibyte): Delete.
18973 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18974 (read_emacs_mule_char): New functions.
18975 (Fload): Even if the file doesn't have the extension ".elc", if
18976 safe_to_load_p returns a positive version number, assume that the
18977 file contains bytecompiled code. If the version is less than 22,
18978 load the file while decoding multibyte sequences by emacs-mule.
18979 (readevalloop): Don't use readchar_backlog.
18980 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18981 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18982 (read_escape): Delete the arg BYTEREP.
18983 (read1): Set load_each_byte to 1 temporarily while handling
18984 #@NUMBER. Don't call read_multibyte.
18985 (read_vector): Call Fread with a cons. If readcharfun is
18986 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18987 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18988 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18989 and Qload_force_doc_strings.
18990
189912008-02-01 Kenichi Handa <handa@m17n.org>
18992
18993 * xdisp.c (face_before_or_after_it_pos): Call
18994 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18995
189962008-02-01 Kenichi Handa <handa@m17n.org>
18997
18998 * character.h (TRAILING_CODE_P): New macro.
18999 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19000 (string_char_with_unification): Fix prototype.
19001 (Vscript_alist): Extern it.
19002
19003 * character.c (Vscript_alist): New variable.
19004 (string_char_with_unification, str_as_unibyte)
19005 (string_escape_byte8): Add `const' to local variables.
19006 (syms_of_character): Declare script-alist as a Lisp variable.
19007
19008 * charset.h (Vcharset_ordered_list): Extern it.
19009 (charset_ordered_list_tick): Extern it.
19010 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19011 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19012 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19013 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19014 (Funify_charset): Adjust for the change of Funify_charset.
19015
19016 * charset.c (charset_ordered_list_tick): New variable.
19017 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19018 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19019 deunify intead of unify a charset.
19020 (string_xstring_p): Add `const' to local variables.
19021 (find_charsets_in_text): Add `const' to arguments and local variables.
19022 (encode_char): Adjust for the change of Funify_charset. Fix
19023 detecting of invalid code.
19024 (Fset_charset_priority): Increment charset_ordered_list_tick.
19025 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19026 and TO_CODE.
19027
19028 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19029 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19030 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19031 (decode_coding_ccl, consume_chars)
19032 (Ffind_coding_systems_region_internal)
19033 (Fcheck_coding_systems_region): Add `const' to local variables.
19034
19035 * print.c (print_object): Use octal form for printing the
19036 contents of a bool vector.
19037
190382008-02-01 Dave Love <fx@gnu.org>
19039
19040 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19041 <version == 20>: Refuse to load.
19042
190432008-02-01 Dave Love <fx@gnu.org>
19044
19045 * fns.c: Move coding.h.
19046 (Qcodeset, Qdays, Qmonths): New.
19047 (concat): Use CHARACTERP instead of INTEGERP.
19048 (Flocale_codeset): Delete.
19049 (Flanginfo): New function.
19050 (syms_of_fns): Change accordingly.
19051
19052 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19053
190542008-02-01 Dave Love <fx@gnu.org>
19055
19056 * casetab.c (init_casetab_once, init_casetab_once): Fix
19057 CHAR_TABLE_SET call.
19058
19059 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19060
19061 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19062
19063 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19064 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19065 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19066
19067 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19068
19069 * coding.c (ENCODE_DESIGNATION, decode_eol)
19070 (make_conversion_work_buffer, code_conversion_restore)
19071 (Fdefine_coding_system_internal): Convert Lisp types.
19072 (code_conversion_restore): Use EQ, not ==.
19073 (Fencode_coding_string): Fix code_convert_string call.
19074
19075 * coding.h (code_convert_region): Fix prototype.
19076
19077 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19078
19079 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19080 (Ffontset_info): Convert Lisp types.
19081
19082 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19083
19084 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19085
19086 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19087
19088 * chartab.c: Include "...h", not <...h> in some cases.
19089
19090 * callproc.c (Fcall_process): Remove unused variables.
19091
190922008-02-01 Dave Love <fx@gnu.org>
19093
19094 * coding.c (Fset_coding_system_priority): Allow null arg list.
19095
190962008-02-01 Dave Love <fx@gnu.org>
19097
19098 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19099 (Fself_insert_and_exit): Use CHARACTERP.
19100
19101 * callproc.c (Fcall_process): Remove unused vars.
19102
19103 * xterm.c (XTread_socket): Add extra dead keysyms.
19104
19105 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19106
19107 * dispextern.h: Remove prototypes for redraw_frame,
19108 redraw_garbaged_frames.
19109
19110 * cmds.c (Fself_insert_command): Use CHARACTERP.
19111
19112 * chartab.c (make_sub_char_table): Remove unused var.
19113 (Fset_char_table_default, Fmap_char_table): Doc fix.
19114
19115 * keymap.c (access_keymap): Remove generic char code.
19116 (push_key_description): Use CHARACTERP.
19117
191182008-02-01 Dave Love <fx@gnu.org>
19119
19120 * charset.c: Doc fixes.
19121 (Funify_charset): Extra checking.
19122
191232008-02-01 Dave Love <fx@gnu.org>
19124
19125 * lread.c: Remove some unused variables.
19126 (safe_to_load_p): If safe, return the magic number version byte.
19127 (Fload): Maybe use load-with-code-conversion.
19128
191292008-02-01 Kenichi Handa <handa@m17n.org>
19130
19131 * category.c (Fmodify_category_entry): Don't modify the contents
19132 of category_set for characters out of the range. Avoid
19133 unnecessary modification.
19134
19135 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19136 Vchar_unify_table. The default value of the table is now nil.
19137
19138 * character.c (syms_of_character): Setup Vchar_width_table for
19139 eight-bit-control and raw-byte chars.
19140
19141 * charset.h (enum define_charset_arg_index): Delete
19142 charset_arg_parents and add charset_arg_subset and
19143 charset_arg_superset.
19144 (enum charset_attr_index): Delete charset_parents and add
19145 charset_subset and charset_superset.
19146 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19147 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19148 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19149 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19150 (CHARSET_SUPERSET): New macros.
19151 (charset_work): Extern it.
19152 (ENCODE_CHAR): Use charset_work.
19153 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19154 (map_charset_chars): Extern it.
19155
19156 * charset.c (load_charset_map): Set the default value of encoder
19157 and deunifier char-tables to nil.
19158 (map_charset_chars): Change argument. Change callers. Use
19159 map_char_table_for_charset instead of map_char_table.
19160 (Fmap_charset_chars): New optional args from_code and to_code.
19161 (Fdefine_charset_internal): Adjust for the change of
19162 `define-charset' (:parents -> :subset or :superset).
19163 (charset_work): New variable.
19164 (encode_char, syms_of_charset): Adjust for the change of
19165 Fdefine_charset_internal.
19166 (Ffind_charset_string): Setup the vector `charsets' correctly.
19167
19168 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19169 the previous change.
19170 (char_table_ref_and_range): Adjust for the above change.
19171 (map_sub_char_table_for_charset): New function.
19172 (map_char_table_for_charset): New function.
19173
19174 * keymap.c (describe_vector): Handle a char-table directly here.
19175 (describe_char_table): Delete.
19176
19177 * lisp.h (map_charset_chars): Delete.
19178
191792008-02-01 Dave Love <fx@gnu.org>
19180
19181 * fns.c (count_combining): Comment out (unused).
19182 (Flocale_codeset): New.
19183 (syms_of_fns): Defsubr it.
19184
19185 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19186 (size_t): Remove.
19187
191882008-02-01 Dave Love <fx@gnu.org>
19189
19190 * Makefile.in (chartab.o): Depend on charset.h.
19191
191922008-02-01 Kenichi Handa <handa@m17n.org>
19193
19194 * character.c (syms_of_character): Set the default value of
19195 Vprintable_chars to Qnil.
19196
191972008-02-01 Dave Love <fx@gnu.org>
19198
19199 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19200
192012008-02-01 Kenichi Handa <handa@m17n.org>
19202
19203 * charset.c (load_charset_map): Handle the case that from < to
19204 correctly.
19205
19206 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19207 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19208 Pay attention to raw-8-bit chars.
19209
192102008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19213 It is not bytecompiled now.
19214
19215 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19216 (charset_jisx0208): New variables.
19217 (Fdefine_charset_internal): Setup them if appropriate.
19218 (init_charset_once): Initialize them to -1.
19219
19220 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19221 (charset_jisx0208): Extern them.
19222
19223 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19224 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19225 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19226 (setup_iso_safe_charsets): Fix arguments to Fassq.
19227 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19228 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19229 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19230 (encode_coding_iso_2022): Change the 1st arg to
19231 ENCODE_ISO_CHARACTER to a variable.
19232
192332008-02-01 Kenichi Handa <handa@m17n.org>
19234
19235 * charset.h (enum define_charset_arg_index): New enums
19236 charset_arg_min_code and charset_arg_max_code.
19237 (struct charset): New member char_index_offset.
19238
19239 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19240 Take charset->char_index_offset into account.
19241 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19242 args[charset_arg_max_code]. Setup charset.char_index_offset.
19243 (syms_of_charset): Fix args to Fdefine_charset_internal.
19244
192452008-02-01 Dave Love <fx@gnu.org>
19246
19247 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19248
192492008-02-01 Dave Love <fx@gnu.org>
19250
19251 * coding.c: Doc fixes.
19252 (Fcoding_system_aliases): Fix return value.
19253 (Qmac): Remove (duplicated) definition.
19254
192552008-02-01 Dave Love <fx@gnu.org>
19256
362654a6
JB
19257 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19258 New functions.
aac0c6e3
MR
19259
19260 * character.c (Fstring): Doc fix.
19261
19262 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19263
362654a6 19264 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19265 (font-encoding-alist): Doc fix.
19266
192672008-02-01 Dave Love <fx@gnu.org>
19268
19269 * term.c (costs_set): Declare static, non-initialized for pcc.
19270 (encode_terminal_code): Remove unused var.
19271
19272 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19273 for K&R.
19274
19275 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19276
19277 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19278 (suffixes): Move out of make_subsidiaries for K&R.
19279
19280 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19281
19282 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19283
192842008-02-01 Dave Love <fx@gnu.org>
19285
19286 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19287
19288 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19289
192902008-02-01 Yong Lu <lyongu@asia-infonet.com>
19291
19292 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19293
19294 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19295
192962008-02-01 Kenichi Handa <handa@m17n.org>
19297
19298 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19299 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19300
193012008-02-01 Kenichi Handa <handa@m17n.org>
19302
19303 * coding.c (decode_coding_charset): Adjust for the change of
19304 Fdefine_coding_system_internal.
19305 (Fdefine_coding_system_internal): For a coding system of
19306 `charset' type, store a list of charset IDs in
19307 `charset_attr_charset_valids' element of coding attributes.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19312 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19313 caller. Handle 2-byte and 3-byte charsets correctly.
19314 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19315 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19316 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19317 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19318 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19319 sequence.
19320 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19321 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19322 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19323 and alt&rule composition.
19324 (decode_coding_iso_2022): Handle composition correctly.
19325 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19326
19327 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19328 re-defining a charset. If the charset has :emacs-mule-id, setup
19329 emacs_mule_bytes.
19330 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19331
193322008-02-01 Kenichi Handa <handa@m17n.org>
19333
19334 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19335 (encode_coding_big5, encode_coding_charset): If coding requires safe
19336 encoding, produce a character specified by
19337 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19338
193392008-02-01 Dave Love <fx@gnu.org>
19340
19341 * xterm.c (XSetIMValues): Declare.
19342
19343 * process.c: Conditionally include sys/wait.h, pty.h.
19344
19345 * print.c (print_object): Fix print format for 64-bit systems.
19346
19347 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19348
19349 * buffer.c (emacs_strerror): Declare.
19350
19351 * fontset.c (Fclear_face_cache): Declare.
19352 (accumulate_font_info): Comment-out (unused).
19353 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19354 variables.
19355
19356 * character.h (string_escape_byte8): Declare.
19357
19358 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19359 unused vars.
19360 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19361 (Fmap_charset_chars): Doc fix.
19362
19363 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19364 (Fset_coding_system_priority, Fset_coding_system_priority)
19365 (Fdefine_coding_system_internal): Doc fix.
19366
193672008-02-01 Dave Love <fx@gnu.org>
19368
19369 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19370
193712008-02-01 Kenichi Handa <handa@m17n.org>
19372
19373 * character.c (string_escape_byte8): Make multibyte string with
19374 correct size.
19375
19376 * charset.c (Fmake_char): Delete unnecessary code.
19377
193782008-02-01 Kenichi Handa <handa@m17n.org>
19379
19380 * xfns.c (x_encode_text): Allocate coding.destination here, and
19381 call encode_coding_object with dst_object Qnil.
19382
19383 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19384 multibyte form correctly.
19385
19386 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19387 against Vfont_encoding_alist.
19388
19389 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19390 handling of charset list.
19391 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19392 (decode_coding_object): Move point to coding->dst_pos before
19393 calling post-read-conversion function.
19394 (encode_coding_object): Give correct arguments to
19395 pre-write-conversion. Ignore the return value of
19396 pre-write-conversion function. Pay attention to the case that
19397 pre-write-conversion changes the current buffer. If dst_object is
19398 Qt, even if coding->src_bytes is zero, allocate at least one byte
19399 to coding->destination.
19400
19401 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19402
19403 * charset.c (Fmake_char): Make it more backward compatible.
19404 (Fmap_charset_chars): Fix docstring.
19405
194062008-02-01 Dave Love <fx@gnu.org>
19407
19408 * coding.c: Doc fixes.
19409 (Fdefine_coding_system_alias): Use names, not symbols, in
19410 coding-system-alist.
19411
194122008-02-01 Kenichi Handa <handa@m17n.org>
19413
19414 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19415 of calling free_realized_face.
19416
194172008-02-01 Yong Lu <lyongu@asia-infonet.com>
19418
19419 * charset.c (read_hex): Don't treat SPC as a comment starter.
19420 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19421 (Fdecode_char): Fix typo.
19422
194232008-02-01 Kenichi Handa <handa@m17n.org>
19424
19425 * charset.h (struct charset): New member `code_space_mask'.
19426
19427 * coding.c (coding_set_source): Delete the local variable beg_byte.
19428 (encode_coding_charset, Fdefine_coding_system_internal):
19429 Delete the local variable charset.
19430 (Fdefine_coding_system_internal): Setup
19431 attrs[coding_attr_charset_valids] correctly.
19432
19433 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19434 member to check if CODE is valid or not.
19435 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19436 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19437 is within the range of charset->min_code and carset->max_code.
19438
194392008-02-01 Dave Love <fx@gnu.org>
19440
19441 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19442
19443 * dispextern.h (generate_ascii_font): Fix return type.
19444
19445 * xfaces.c (generate_ascii_font): Fix arg declaration.
19446
19447 * coding.c (coding_inherit_eol_type)
19448 (Fset_terminal_coding_system_internal)
19449 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19450
194512008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19454 multiple charsets correctly.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * search.c (boyer_moore): Fix handling of multibyte character
19459 translation.
19460
19461 * xdisp.c (display_mode_element): When the variable `elt' is
19462 changed, update `this' and `lisp_string'.
19463
194642008-02-01 Kenichi Handa <handa@m17n.org>
19465
19466 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19467
19468 * callproc.c (Fcall_process): Be sure to give the current buffer
19469 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19470
19471 * charset.c (struct charset_map_entries): New struct.
19472 (load_charset_map): Rename from parse_charset_map. New args
19473 entries and n_entries. Change caller.
19474 (load_charset_map_from_file): Rename from load_charset_map.
19475 Change caller. New arg control_flag. Call load_charset_map at
19476 the tail.
19477 (load_charset_map_from_vector): New function.
19478 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19479 (encode_char): If the charset is compact, change a character index
19480 to a code point.
19481
19482 * coding.c (coding_alloc_by_making_gap): Check the case that the
19483 source and destination are the same correctly.
19484 (decode_coding_raw_text): Set coding->consumed_char and
19485 coding->consumed to 0.
19486 (produce_chars): If coding->chars_at_source is nonzero, update
19487 coding->consumed_char and coding->consumed before calling
19488 alloc_destination.
19489 (Fdefine_coding_system_alias): Register ALIAS in
19490 Vcoding_system_alist.
19491 (syms_of_coding): Define `no-conversion' coding system at the tail.
19492
19493 * fileio.c (Finsert_file_contents): Set coding_system instead of
19494 val. If the current buffer is multibyte, always call
19495 decode_coding_gap.
19496
19497 * xfaces.c (try_font_list): Give higher priority to fontset's
19498 family than face's family.
19499
195002008-02-01 Kenichi Handa <handa@m17n.org>
19501
19502 * callproc.c (Fcall_process): Be sure to give the current buffer
19503 to decode_coding_c_string.
19504
19505 * xfaces.c (try_font_list): Give a family specified in a fontset
19506 higher priority than a family specified in a face.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19511 Fix arguments to insert_from_buffer.
19512
19513 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19514
195152008-02-01 Kenichi Handa <handa@m17n.org>
19516
19517 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19518 (decode_coding_gap): Set coding->dst_multibyte correctly.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19523 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19524 (encode_coding_utf_16): Substitute coding->default_char for
19525 non-Unicode characters.
19526 (decode_coding): Don't call record_insert here.
19527 (setup_coding_system): Initialize `surrogate' of
19528 coding->spec.utf_16 to 0.
19529 (EMIT_ONE_BYTE): Fix for multibyte case.
19530
19531 * insdel.c (insert_from_gap): Call record_insert.
19532
195332008-02-01 Kenichi Handa <handa@m17n.org>
19534
19535 * casefiddle.c (casify_region): Fix multibyte case.
19536
19537 * character.c (c_string_width): Add return type `int'.
19538 (char_string_with_unification): Delete arg ADVANCED.
19539
19540 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19541 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19542 (CHAR_STRING_ADVANCE): Make it do-while statement.
19543
19544 * chartab.c (sub_char_table_set_range): Optimize for the case
19545 DEPTH == 3. Add workaround code for a GCC optimization bug.
19546
19547 * charset.c (parse_charset_map): Remove an unused variable.
19548
19549 * coding.c: Delete unused variables.
19550
19551 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19552 earlier. If inserted is zero and the coding system doesn't
19553 require flushing, don't call decode_coding_gap.
19554
19555 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19556
195572008-02-01 Kenichi Handa <handa@m17n.org>
19558
19559 The following changes are for using Unicode as an internal
19560 character model, and use UTF-8 format for buffer/string
19561 representation.
19562
19563 * .gdbinit (xchartable): Adjust for the change of char table structure.
19564 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19565
19566 * Makefile.in (obj): Add character.o and chartab.o.
19567 (lisp, shortlisp): Remove utf-8.elc.
19568 (*.o): For many files, change dependency on charset.h to
19569 character.h, and add dependency on character.h.
19570 (character.o, chartab.o): New targets.
19571
19572 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19573 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19574 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19575 of "charset.h".
19576
19577 * dired.c, filelock.c: Include "character.h".
19578
19579 * alloc.c: Include "character.h" instead of "charset.h".
19580 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19581 (syms_of_alloc): Remove defsubr for Smake_char_table.
19582
19583 * buffer.c: Include "character.h" instead of "charset.h", don't
19584 include "coding.h".
19585 (Fset_buffer_multibyte): Adjust for UTF-8.
19586
19587 * buffer.h: EXFUN Fbuffer_live_p.
19588
19589 * callproc.c: Include "character.h" instead of "charset.h".
19590 (Fcall_process): Big change for the new code-conversion APIs.
19591
19592 * casetab.c: Include "character.h" instead of "charset.h".
19593 (set_canon, set_identity, shuffle): Adjust for the new
19594 map_char_table spec.
19595 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19596 accessing the char table structure.
19597
19598 * chartab.c: New file that implements char table.
19599
19600 * category.c: Include "character.h".
19601 (copy_category_entry): New function.
19602 (copy_category_table): Call map_char_table and copy_category_entry.
19603 (Fmake_category_table): Initialize all top-level slots.
19604 (char_category_set): New function.
19605 (modify_lower_category_set): Delete.
19606 (Fmodify_category_entry): Call char_table_ref_and_range.
19607
19608 * category.h (CATEGORY_SET): Just call char_category_set.
19609
19610 * ccl.c: Include "character.h".
19611 (Qccl, Qcclp): New variables.
19612 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19613 it's less than 256.
19614 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19615 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19616 and DST type.
19617 (ccl_driver): Change types of argument, adjust code accordingly.
19618 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19619 ccl_driver.
19620 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19621
19622 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19623 New members src_multibyte, dst_multibyte, consumed, and produced.
19624 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19625 (CODING_SPEC_CCL_PROGRAM): New macro.
19626 (ccl_driver): Update prototype.
19627 (Qccl, Qcclp, Fccl_program_p): Extern them.
19628 (CHECK_CCL_PROGRAM): New macro.
19629
19630 * character.c, character.h, chartab.c: New files.
19631
19632 * charset.c: Mostly re-written. Move character and multibyte sequence
19633 handling codes to character.c.
19634
19635 * charset.h: Mostly re-written. Move character and multibyte sequence
19636 handling codes to character.h.
19637
19638 * coding.c, coding.h: Mostly re-written.
19639
19640 * composite.c: Include "character.h" instead of "charset.h".
19641 (CHAR_WIDTH): Move to character.h.
19642 (HASH_KEY, HASH_VALUE): Delete.
19643
19644 * composite.h (enum composition_method): Change order of enumeration
19645 symbols.
19646
19647 * data.c: Include "character.h" instead of "charset.h".
19648 (Faref): Call CHAR_TABLE_REF for a char table.
19649 (Faset): Call CHAR_TABLE_SET for a char table.
19650
19651 * dispextern.h (free_realized_face, check_face_attribytes)
19652 (generate_ascii_font): Extern them.
19653 (free_realized_multibyte_face): Delete extern.
19654
19655 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19656 table structure.
19657
19658 * editfns.c: Include "character.h" instead of "charset.h".
19659 (Fchar_to_string): Always call CHAR_STRING.
19660
19661 * emacs.c (main): Call init_charset_once, init_charset,
19662 syms_of_chartab, and syms_of_character.
19663
19664 * fileio.c: Include "character.h" instead of "charset.h".
19665 (Finsert_file_contents): Big change for the new code-conversion API.
19666 (choose_write_coding_system, Fwrite_region): Likewise.
19667 (build_annotations_2): Delete.
19668 (e_write): Big change for the new code-conversion API.
19669
19670 * fns.c: Include "character.h" instead of "charset.h".
19671 (copy_sub_char_table): Move to chartab.c.
19672 (Fcopy_sequence): Call copy_char_table for a char table.
19673 (concat): Delete codes calling count_multibyte.
19674 (string_char_to_byte, string_byte_to_char): Adjust for the new
19675 multibyte form.
19676 (internal_equal): Adjust for the change of char table structure.
19677 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19678 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19679 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19680 (char_table_translate, optimize_sub_char_table)
19681 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19682 chartab.c.
19683 (char_table_ref_and_index): Delete.
19684 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19685 (Fmd5): Call preferred_coding_system instead of accessing
19686 Vcoding_category_list. Adjust for the new code-conversion API.
19687 (syms_of_fns): Move defsubr for char table related functions to
19688 chartab.c.
19689
19690 * fontset.c: Mostly re-written.
19691
19692 * fontset.h (struct font_info): Change type of the member encoding_type.
19693 (enum FONT_SPEC_INDEX): New enum.
19694 (fontset_font_pattern, fs_load_font): Update prototype.
19695 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19696
19697 * indent.c: Include "character.h" instead of "charset.h".
19698 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19699
19700 * insdel.c: Include "character.h" instead of "charset.h".
19701 (copy_text): Don't refer to Vnonascii_translation_table.
19702 (insert_from_gap): New function.
19703
19704 * keyboard.c: Include "character.h" instead of "charset.h".
19705 (command_loop_1): Never call direct_output_forward_char before
19706 a non-ASCII character.
19707 (read_char): If Vkeyboard_translate_table is a char table, always
19708 translate a character.
19709
19710 * keymap.c: Include "character.h".
19711 (store_in_keymap): Handle the case that IDX is a cons.
19712 (Fdefine_key): Handle the case that KEY is a cons and the car part
19713 is also a cons (range).
19714 (push_key_description): Adjust for the new character code.
19715 (describe_vector): Call describe_char_table for a char table.
19716 (describe_char_table): New function.
19717
19718 * keymap.h (describe_char_table): Extern it.
19719
19720 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19721 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19722 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19723 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19724 Delete.
19725 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19726 structure.
19727 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19728 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19729 (CHARTAB_SIZE_BITS_3): New macros.
19730 (chartab_size): Extern it.
19731 (struct Lisp_Char_Table): Re-design.
19732 (struct Lisp_Sub_Char_Table): New structure.
19733 (HASH_KEY, HASH_VALUE): Move from fns.c.
19734 (CHARACTERBITS): Define as 22.
19735 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19736 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19737 (GC_SUB_CHAR_TABLE_P): New macro.
19738 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19739 (code_convert_string_norecord): Deleted extern.
19740 (init_character_once, syms_of_character, init_charset)
19741 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19742
19743 * lread.c: Include "character.h".
19744 (read_multibyte): New arg NBYTES.
19745 (read_escape): Change the meaning of returned *BYTEREP.
19746 (to_multibyte): Delete.
19747 (read1): Adjust the handling of char table and string.
19748
19749 * print.c: Include "character.h" instead of "charset.h".
19750 (print_string): Convert 8-bit raw bytes to octal form by
19751 string_escape_byte8.
19752 (print_object): Adjust for the new multibyte form. Print 8-bit
19753 raw bytes always in octal form. Handle sub char table correctly.
19754
19755 * process.c: Include "character.h" instead of "charset.h".
19756 (read_process_output, send_process): Adjust for the new
19757 code-conversion API.
19758
19759 * puresize.h (BASE_PURESIZE): Increase.
19760
19761 * regex.c: Include "character.h" instead of "charset.h".
19762 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19763 (regex_compile): Accept a range whose starting and ending
19764 character have different leading bytes.
19765 (analyse_first): Adjust for the above change.
19766
19767 * search.c: Include "character.h" instead of "charset.h".
19768 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19769 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19770
19771 * syntax.c: Include "character.h" instead of "charset.h".
19772 (syntax_parent_lookup): Delete.
19773 (Fmodify_syntax_entry): Accept a cons as CHAR.
19774 (skip_chars): Adjust for the new multibyte form.
19775 (init_syntax_once): Call char_table_set_range instead of directly
19776 accessing the structure of a char table.
19777
19778 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19779 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19780 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19781 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19782
19783 * term.c: Include "buffer.h" and "character.h".
19784 (encode_terminal_code, write_glyphs): Adjust for the new
19785 code-conversion API.
19786 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19787
19788 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19789
19790 * xdisp.c: Include "character.h".
19791 (get_next_display_element): Adjust for the new multibyte form.
19792 (disp_char_vector): Adjust for the new char table structure.
19793 (decode_mode_spec_coding): Adjust for the new structure of
19794 coding system.
19795 (decode_mode_spec): Adjust for the new code-conversion API.
19796
19797 * xfaces.c: Include "character.h" instead of "charset.h".
19798 (load_face_font): Adjust for the change of choose_face_font and
19799 FS_LOAD_FONT.
19800 (generate_ascii_font): New function.
19801 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19802 (set_font_frame_param): Adjust for the change of choose_face_font.
19803 (free_realized_face): Make it public.
19804 (free_realized_faces_for_fontset): Rename from
19805 free_realized_multibyte_face. Free also faces realized for ASCII.
19806 (choose_face_font): Change arguments. Adjust for the change of
19807 fontset_font_pattern and FS_LOAD_FONT.
19808
19809 * xfns.c: Include "character.h".
19810 (x_encode_text): Adjust for the new code-conversion API.
19811
19812 * xselect.c: Don't include "charset.h".
19813 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19814
19815 * xterm.c: Include "character.h".
19816 (x_encode_char): New argument CHARSET. Change caller.
19817 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19818 Call ENCODE_CHAR instead of SPLIT_CHAR.
19819 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19820 CHAR_WIDTH instead of CHARSET_WIDTH.
19821 (XTread_socket): Adjust for the new code-conversion API.
19822 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19823 (x_load_font): Adjust for the change of struct font.
19824
198252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19826
19827 * xfaces.c (face_at_buffer_position): Remove unused vars.
19828
198292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19830
19831 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19832 Fix overflow checking.
19833
198342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19835
19836 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19837 Cancel previous change.
19838
198392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19840
19841 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19842 ccl->eight_bit_control. Fix check for buffer overflow.
19843 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19844 (ccl_driver): Initialize extra_bytes to 0.
19845
198462008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19847
19848 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19849 return it ORed with ctrl_modifier.
19850
198512008-01-29 Miles Bader <miles@gnu.org>
19852
19853 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19854
198552008-01-28 Jason Rumney <jasonr@gnu.org>
19856
19857 * w32.c (stat): Don't double check for networked drive.
19858
198592008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19860
19861 * window.c (run_window_configuration_change_hook): New function.
19862 Code extracted from set_window_buffer. Set the selected frame.
19863 (set_window_buffer): Use it.
19864 * window.h (run_window_configuration_change_hook): Declare.
19865 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19866
19867 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19868
198692008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19870
19871 * Makefile.in: Remove references to unused macros.
19872
198732008-01-26 Eli Zaretskii <eliz@gnu.org>
19874
19875 * w32.c (g_b_init_get_sid_sub_authority)
19876 (g_b_init_get_sid_sub_authority_count): New static variables.
19877 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19878 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19879 (init_user_info): Use them to retrieve uid and gid.
19880 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19881 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19882 st_uid and st_gid of the file.
19883
198842008-01-26 Jason Rumney <jasonr@gnu.org>
19885
19886 * w32.c (logon_network_drive): New function.
19887 (stat): Use it.
19888
198892008-01-26 Chong Yidong <cyd@stupidchicken.com>
19890
19891 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19892 invisible text covered with an ellipsis.
19893
198942008-01-25 Richard Stallman <rms@gnu.org>
19895
19896 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19897 jump back to beginning. Move some other initializations after that.
19898 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19899 New variables.
19900 (syms_of_xdisp): Init them.
19901
19902 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19903
19904 * buffer.c (reset_buffer_local_variables):
19905 Implement `permanent-local-hook'.
19906 (Qpermanent_local_hook): New variable.
19907 (syms_of_buffer): Init and staticpro it.
19908
199092008-01-25 Michael Albinus <michael.albinus@gmx.de>
19910
19911 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19912
199132008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19914
19915 * fns.c (Fclrhash): Return TABLE.
19916
199172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19918
19919 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19920 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19921 is set even without positional changes.
19922 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19923
19924 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19925
199262008-01-23 Jason Rumney <jasonr@gnu.org>
19927
19928 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19929
19930 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19931 the unicode range available in MULE by locale-coding-system.
19932 Improve dbcs lead byte detection. Set event timestamp and modifiers
19933 earlier.
19934
199352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19936
19937 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19938 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19939 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19940 when used on child processes.
19941
199422008-01-21 Michael Albinus <michael.albinus@gmx.de>
19943
19944 * dbusbind.c (Fdbus_method_return_internal): Rename from
19945 Fdbus_method_return.
19946 (Fdbus_unregister_object): Move to dbus.el.
19947 (Fdbus_call_method, Fdbus_method_return_internal)
19948 (Fdbus_send_signal): Improve debug messages.
19949
199502008-01-20 Martin Rudalics <rudalics@gmx.at>
19951
19952 * undo.c (undo_inhibit_record_point): New variable.
19953 (syms_of_undo): Initialize it.
19954 (record_point): Don't record point when undo_inhibit_record_point
19955 is set.
19956
199572008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19958
19959 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19960
19961 * xdisp.c (Qauto_hscroll_mode): New var.
19962 (syms_of_xdisp): Initialize it.
19963 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19964 window's buffer.
19965 (hscroll_windows): Don't check automatic_hscrolling_p here.
19966
19967 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19968 vscroll if we're setting window-buffer to the value it already has.
19969
199702008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19971
19972 * m/intel386.h: Remove references to XENIX.
19973
199742008-01-17 Andreas Schwab <schwab@suse.de>
19975
19976 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19977 instead of HAVE_X86_64_LIB64_DIR.
19978 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19979
199802008-01-17 Glenn Morris <rgm@gnu.org>
19981
19982 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19983 to HAVE_X86_64_LIB64_DIR.
19984
199852008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19986
19987 * s/irix3-3.h:
19988 * s/irix4-0.h:
19989 * s/386-ix.h:
19990 * s/domain.h:
19991 * s/hpux9-x11r4.h:
19992 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19993
19994 * sysdep.c: Remove code containing references to symbols defined
19995 by unsupported systems.
19996
199972008-01-16 Glenn Morris <rgm@gnu.org>
19998
19999 * coding.c (select-safe-coding-system-function): Doc fix.
20000
200012008-01-15 Glenn Morris <rgm@gnu.org>
20002
20003 * config.in: Revert 2008-01-13 change: this is a generated file.
20004
200052008-01-13 Tom Tromey <tromey@redhat.com>
20006
20007 * lisp.h: Fix typo.
20008
200092008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20010
20011 * m/sequent-ptx.h:
20012 * m/sequent.h:
20013 * s/ptx.h:
20014 * s/ptx4-2.h:
20015 * s/ptx4.h: Remove files for systems no longer supported.
20016
20017 * callproc.c (Fcall_process): Fix previous change.
20018
200192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20020
20021 * unexsunos4.c: Remove file, system not supported anymore.
20022
20023 * m/mips.h:
20024 * m/intel386.h:
20025 * callproc.c:
20026 * config.in:
20027 * ecrt0.c:
20028 * emacs.c:
20029 * fileio.c:
20030 * frame.c:
20031 * getpagesize.h:
20032 * keyboard.c:
20033 * lread.c:
20034 * process.c:
20035 * puresize.h:
20036 * sysdep.c:
20037 * systty.h:
20038 * syswait.h:
20039 * unexec.c:
20040 * xdisp.c:
20041 * alloc.c: Remove code containing references to symbols defined by
20042 unsupported systems.
20043
200442008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20045
20046 * coding.c (detect_coding_mask): Fix previous change.
20047
200482008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20049
20050 * coding.c (detect_coding_iso2022): New arg
20051 latin_extra_code_state. Allow Latin extra codes only
20052 when *latin_extra_code_state is nonzero.
20053 (detect_coding_mask): If there is a NULL byte, detect the encoding
20054 as UTF-16 or binary. If Latin extra codes exist, detect the
20055 encoding as ISO-2022 only when there's no other proper encoding is
20056 found.
20057
200582008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20059
20060 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20061 #ifdef MAC_OS.
20062
200632008-01-08 Richard Stallman <rms@gnu.org>
20064
20065 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20066
200672008-01-06 Nick Roberts <nickrob@snap.net.nz>
20068
20069 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20070 menu bar in parentheses.
20071
200722008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20073
20074 * m/7300.h:
20075 * m/acorn.h:
20076 * m/alliant-2800.h:
20077 * m/alliant.h:
20078 * m/alliant1.h:
20079 * m/alliant4.h:
20080 * m/altos.h:
20081 * m/amdahl.h:
20082 * m/apollo.h:
20083 * m/att3b.h:
20084 * m/aviion-intel.h:
20085 * m/aviion.h:
20086 * m/celerity.h:
20087 * m/clipper.h:
20088 * m/cnvrgnt.h:
20089 * m/convex.h:
20090 * m/cydra5.h:
20091 * m/delta88k.h:
20092 * m/dpx2.h:
20093 * m/dual.h:
20094 * m/elxsi.h:
20095 * m/f301.h:
20096 * m/gould-np1.h:
20097 * m/gould.h:
20098 * m/i860.h:
20099 * m/ibmps2-aix.h:
20100 * m/ibmrt-aix.h:
20101 * m/ibmrt.h:
20102 * m/irist.h:
20103 * m/is386.h:
20104 * m/isi-ov.h:
20105 * m/mega68.h:
20106 * m/mg1.h:
20107 * m/news-r6.h:
20108 * m/news-risc.h:
20109 * m/news.h:
20110 * m/nh3000.h:
20111 * m/nh4000.h:
20112 * m/ns16000.h:
20113 * m/ns32000.h:
20114 * m/nu.h:
20115 * m/orion.h:
20116 * m/orion105.h:
20117 * m/paragon.h:
20118 * m/pfa50.h:
20119 * m/plexus.h:
20120 * m/pyramid.h:
20121 * m/pyrmips.h:
20122 * m/sh3el.h:
20123 * m/sps7.h:
20124 * m/sr2k.h:
20125 * m/stride.h:
20126 * m/sun1.h:
20127 * m/sun2.h:
20128 * m/sun3-68881.h:
20129 * m/sun3-fpa.h:
20130 * m/sun3-soft.h:
20131 * m/sun3.h:
20132 * m/sun386.h:
20133 * m/symmetry.h:
20134 * m/tad68k.h:
20135 * m/tahoe.h:
20136 * m/targon31.h:
20137 * m/tek4300.h:
20138 * m/tekxd88.h:
20139 * m/tower32.h:
20140 * m/tower32v3.h:
20141 * m/ustation.h:
20142 * m/wicat.h:
20143 * m/xps100.h:
20144 * s/cxux.h:
20145 * s/cxux7.h:
20146 * s/dgux.h:
20147 * s/dgux4.h:
20148 * s/dgux5-4-3.h:
20149 * s/dgux5-4r2.h:
20150 * s/esix.h:
20151 * s/esix5r4.h:
20152 * s/hiuxmpp.h:
20153 * s/hiuxwe2.h:
20154 * s/iris3-5.h:
20155 * s/iris3-6.h:
20156 * s/isc2-2.h:
20157 * s/isc3-0.h:
20158 * s/isc4-0.h:
20159 * s/isc4-1.h:
20160 * s/newsos5.h:
20161 * s/newsos6.h:
20162 * s/osf1.h:
20163 * s/osf5-0.h:
20164 * s/riscix1-1.h:
20165 * s/riscix12.h:
20166 * s/sco4.h:
20167 * s/sco5.h:
20168 * s/sunos4-0.h:
20169 * s/sunos4-1.h:
20170 * s/sunos413.h:
20171 * s/sunos4shr.h:
20172 * s/umax.h:
20173 * s/unipl5-2.h:
20174 * s/xenix.h:
20175 * cxux-crt0.s:
20176 * unexapollo.c:
20177 * unexconvex.c:
20178 * unexenix.c:
20179 * unexsni.c: Remove files for systems no longer supported.
20180
20181 * m/intel386.h: Remove references to unsupported systems.
20182
20183 * w32.c (get_emacs_configuration): Remove reference to i860.
20184
20185 * sysdep.c: Remove dead code.
20186
201872008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20188
20189 * s/rtu.h:
20190 * m/masscomp.h: Remove files. Platform is obsolete.
20191
201922008-01-04 Michael Albinus <michael.albinus@gmx.de>
20193
20194 * dbusbind.c (Fdbus_method_return): New function.
20195 (xd_read_message): Add the serial number to the event.
20196 (Fdbus_register_method): Activate the function.
20197
201982008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20199
20200 * keyboard.c (read_key_sequence): Fix typo.
20201
202022008-01-03 Michael Albinus <michael.albinus@gmx.de>
20203
20204 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20205 (xd_signature, xd_append_arg): Handle element type detection for
20206 empty arrays.
20207 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20208 SDATA () calls; this must be solved more general.
20209 (Fdbus_register_signal): Use SBYTES instead of strlen.
20210
202112008-01-03 Magnus Henoch <magnus@zemdatav>
20212
20213 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20214 unsigned int for byte values (necessary for big-endian platform).
20215 (Fdbus_call_method): Handle the case of no returned arguments.
20216
202172007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20218
20219 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20220
202212007-12-31 Magnus Henoch <mange@freemail.hu>
20222
20223 * dbusbind.c (xd_signature): Signature of variant is just "v".
20224
202252007-12-30 Michael Albinus <michael.albinus@gmx.de>
20226
20227 * dbusbind.c: Fix several errors and compiler warnings.
20228 Reported by Tom Tromey <tromey@redhat.com>.
20229 (XD_ERROR, XD_DEBUG_MESSAGE)
20230 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20231 (xd_append_arg): Part for basic D-Bus types rewritten.
20232 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20233 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20234 appropriate.
20235 (xd_read_message): Return Qnil. Don't signal an error; it is not
20236 useful during event reading.
20237 (Fdbus_register_signal): Signal an error if the check for
20238 FUNCTIONP fails.
20239 (Fdbus_register_method): New function. The implementation is not
20240 complete, the call of the function signals an error therefore.
20241 (Fdbus_unregister_object): New function, renamed from
20242 Fdbus_unregister_signal. The initial check signals an error, if
20243 the object is not well formed.
20244
202452007-12-30 Richard Stallman <rms@gnu.org>
20246
20247 * textprop.c (get_char_property_and_overlay):
20248 Signal error if POSITION is out of range in a buffer.
20249
202502007-12-29 Martin Rudalics <rudalics@gmx.at>
20251
20252 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20253 because the original parameters are in pure storage now.
20254
202552007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20256
20257 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20258
202592007-12-22 Eli Zaretskii <eliz@gnu.org>
20260
20261 * callint.c (syms_of_callint) <command-history>: Add reference to
20262 history-length in the doc string.
20263
202642007-12-17 Jason Rumney <jasonr@gnu.org>
20265
20266 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20267 before passing as wParam.
20268
202692007-12-22 Michael Albinus <michael.albinus@gmx.de>
20270
20271 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20272 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20273 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20274 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20275 as number.
20276 (Fdbus_call_method): Fix docstring.
20277
202782007-12-21 Michael Albinus <michael.albinus@gmx.de>
20279
20280 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20281 New macros.
20282 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20283 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20284 Simplify.
20285 (xd_signature): New function.
20286 (xd_append_arg): Compute also signatures. Major rewrite.
20287 (xd_retrieve_arg): Make debug messages friendly.
20288 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20289 Check for signatures of arguments.
20290
202912007-12-19 Michael Albinus <michael.albinus@gmx.de>
20292
20293 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20294 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20295 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20296 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20297 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20298 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20299 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20300 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20301 (xd_retrieve_value): Remove. Functionality included in ...
20302 (xd_append_arg): New function.
20303 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20304
203052007-12-16 Michael Albinus <michael.albinus@gmx.de>
20306
20307 * dbusbind.c (top): Include <stdio.h>.
20308 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20309 dbus_message_new_method_call and dbus_message_new_signal.
20310 (Fdbus_register_signal): Rename unique_name to uname.
20311 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20312 non-existing unique name. Fix typos in matching rule. Return an
20313 object which is useful in Fdbus_unregister_signal.
20314 (Fdbus_unregister_signal): Reimplementation, in order to remove
20315 only the corresponding entry.
20316 (Vdbus_registered_functions_table): Change the order of entries.
20317 Apply these changes in xd_read_message and Fdbus_register_signal.
20318
203192007-12-16 Andreas Schwab <schwab@suse.de>
20320
20321 * fileio.c (Finsert_file_contents): Fix overflow check to not
20322 depend on undefined integer overflow.
20323
203242007-12-14 Jason Rumney <jasonr@gnu.org>
20325
20326 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20327 for characters above 127.
20328
203292007-12-13 Jason Rumney <jasonr@gnu.org>
20330
20331 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20332 before dereferencing array.
20333 (lookup_vk_code): Remove zero comparison.
20334
203352007-12-14 Michael Albinus <michael.albinus@gmx.de>
20336
20337 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20338 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20339 Use `unsigned int' instead of `uint'.
20340 (xd_read_message, Fdbus_register_signal): Split expressions into
20341 multiple lines before operators "&&" and "||", according to the
20342 GNU Coding Standards.
20343
203442007-12-14 Eli Zaretskii <eliz@gnu.org>
20345
20346 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20347
203482007-12-12 Juri Linkov <juri@jurta.org>
20349
20350 * buffer.c (Frename_buffer): In interactive spec replace
20351 `read-buffer' with `read-string' that uses `buffer-name-history'
20352 as history, and the current buffer's name as default.
20353
203542007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20355
20356 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20357 manipulating the backtrace manually.
20358 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20359 (struct backtrace, backtrace_list): Remove.
20360 (command_loop_1): Remove dead var `no_direct'.
20361
20362 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20363 preserve non-built-in buffer-local variables.
20364 (Fkill_all_local_variables): Don't re-create&re-set permanent
20365 buffer-local variables.
20366
203672007-12-09 Juri Linkov <juri@jurta.org>
20368
20369 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20370 Lisp code that uses `read-buffer' with current buffer as default.
20371
203722007-12-08 Michael Albinus <michael.albinus@gmx.de>
20373
20374 * dbusbind.c (xd_read_message): Generate an event for every
20375 registered handler. There might be several handlers registered
20376 for the same signal.
20377 (Fdbus_register_signal): Don't overwrite a registration for the
20378 same signal. Add a new registration if handlers are different.
20379 (Vdbus_registered_functions_table): Rework doc string.
20380
203812007-12-07 Michael Albinus <michael.albinus@gmx.de>
20382
20383 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20384 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20385 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20386 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20387 Unify argument lists.
20388 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20389 arguments and hash table keys. Use unique name for service.
20390 (Fdbus_unregister_signal): Remove checks.
20391 (Vdbus_registered_functions_table): Fix doc string.
20392
203932007-12-05 Magnus Henoch <mange@freemail.hu>
20394
20395 * process.c (make_process): Initialize pty_flag to 0.
20396
203972007-12-05 Jason Rumney <jasonr@gnu.org>
20398
20399 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20400 specified XBMs.
20401
204022007-12-05 Richard Stallman <rms@gnu.org>
20403
20404 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20405
204062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20407
20408 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20409 New variable.
20410 (mac_try_close_socket) [MAC_OSX]: New function.
20411 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20412 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20413
20414 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20415 Use mac_try_close_socket.
20416
204172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20418
20419 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20420 reloc_base.
20421 (copy_dysymtab): Compute relocation base here.
20422 (rebase_reloc_address) [__ppc64__]: New function.
20423 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20424 changed.
20425
204262007-12-05 Jason Rumney <jasonr@gnu.org>
20427
20428 * w32proc.c (sys_spawnve): Quote args with wildcards.
20429
204302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20431
20432 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20433 __objc_* sections.
20434 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20435
204362007-12-05 Michael Albinus <michael.albinus@gmx.de>
20437
20438 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20439 Move check for Vdbus_registered_functions_table to
20440 xd_read_queued_messages.
20441 (xd_read_queued_messages): Protect xd_read_message calls by
20442 internal_condition_case_1.
20443
204442007-12-04 Michael Albinus <michael.albinus@gmx.de>
20445
20446 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20447 Qdbus_system_bus and Qdbus_session_bus, respectively.
20448 (Vdbus_intern_symbols): Remove.
20449 (Vdbus_registered_functions_table): New hash table.
20450 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20451 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20452 Rewrite in order to manage registered functions by hash table
20453 Vdbus_registered_functions_table.
20454
204552007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20456
20457 * xterm.c: Update URL to Window Manager Specification in comment.
20458
204592007-12-02 Michael Albinus <michael.albinus@gmx.de>
20460
20461 * config.in (HAVE_DBUS): Add.
20462
20463 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20464 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20465 (obj): Add $(DBUS_OBJ).
20466 (LIBES): Add $(DBUS_LIBS).
20467 (dbusbind.o): New target.
20468
20469 * dbusbind.c: New file.
20470
20471 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20472
20473 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20474 (Qdbus_event): New Lisp symbol.
20475 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20476 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20477 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20478
20479 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20480
204812007-12-01 Richard Stallman <rms@gnu.org>
20482
20483 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20484
204852007-11-30 Jason Rumney <jasonr@gnu.org>
20486
20487 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20488 (w32con_reset_terminal_modes): Clear screen buffer.
20489 (w32_face_attributes): Don't use color indexes that are out of range.
20490 Only reverse the default colors.
20491
20492 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20493 WINDOWSNT.
20494
20495 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20496
204972007-11-29 Jason Rumney <jasonr@gnu.org>
20498
20499 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20500 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20501 if the terminal colors are initialized.
20502 (unspecified_fg, unspecified_bg): Remove unused declarations.
20503
205042007-11-29 Andreas Schwab <schwab@suse.de>
20505
20506 * keyboard.c (apply_modifiers): Fix typo.
20507
205082007-11-29 Richard Stallman <rms@gnu.org>
20509
20510 * keymap.c (Fcurrent_local_map): Doc fix.
20511
205122007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20513
20514 * s/gnu-kfreebsd.h: New file.
20515
205162007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20517
20518 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20519 Don't cast redundantly.
20520
20521 * keyboard.c (KEY_TO_CHAR): New macro.
20522 (parse_modifiers, apply_modifiers): Accept integer arguments.
20523 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20524 for chars and symbol keys.
20525 After doing such remapping, apply function-key-map again.
20526
205272007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20528
20529 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20530 compiled anymore.
20531
205322007-11-26 Andreas Schwab <schwab@suse.de>
20533
20534 * process.c (list_processes_1): Fix indentation level of the
20535 command column.
20536
205372007-11-23 Andreas Schwab <schwab@suse.de>
20538
20539 * editfns.c (Fformat): Handle %c specially since it requires the
20540 argument to be of type int.
20541
205422007-11-23 Markus Triska <markus.triska@gmx.at>
20543
20544 * emacs.c (main): Call init_editfns before init_process, since
20545 init_process sets Vprocess_connection_type depending on OS release.
20546
205472007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20548
20549 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20550 (find_symbol_value): Use do_symval_forwarding.
20551
20552 * data.c (set_internal): Set the value in the `cons-cell' (for
20553 Buffer_Local_values) not only for frame-local variables.
20554
205552007-11-22 Andreas Schwab <schwab@suse.de>
20556
20557 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20558 values to sprintf.
20559 * keymap.c (Fsingle_key_description): Likewise.
20560 * print.c (print_object): Likewise.
20561
205622007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20563
20564 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20565 file for image is nil.
20566
205672007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20568
20569 * term.c: Include stdarg.h.
20570 (fatal): Implement using varargs.
20571 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20572
205732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20574
20575 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20576 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20577 Update call to buffer_slot_type_mismatch.
20578 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20579 (buffer_slot_type_mismatch): Update.
20580 * buffer.c (buffer_local_types): Remove.
20581 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20582 (defvar_per_buffer): Set the type in the buffer_objfwd.
20583
205842007-11-21 Jason Rumney <jasonr@gnu.org>
20585
20586 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20587 CreateFileMapping returns NULL on failure.
20588
205892007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20590
20591 * search.c (Fset_match_data): Remove the `evaporate' feature.
20592 (unwind_set_match_data): Don't use the `evaporate' feature.
20593
205942007-11-21 Jason Rumney <jasonr@gnu.org>
20595
20596 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20597
20598 * w32console.c (w32con_write_glyphs): Remove unused variables.
20599
206002007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20601
20602 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20603
20604 * s/darwin.h (MULTI_KBOARD): Remove.
20605
20606 * macfns.c (x_create_tip_frame, Fx_create_frame)
20607 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20608
206092007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20610
20611 * buffer.c (Fbuffer_local_value): Remove redundant test.
20612 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20613 than in `current-buffer' to match the comment.
20614 Do the swap using swap_in_global_binding.
20615
20616 * data.c (store_symval_forwarding, set_internal):
20617 * eval.c (specbind): Remove dead code.
20618
20619 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20620 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20621 Since we do not want to see internal Lisp_*fwd objects here.
20622
206232007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20624
20625 * sysdep.c (init_system_name): Use getaddrinfo if available.
20626
20627 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20628 (x_scroll_bar_note_movement): start, end, with, height in struct
20629 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20630
206312007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20632
20633 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20634
206352007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20636
20637 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20638 This undoes Richard's change of 14-Oct-2002.
20639
20640 * alloc.c (allocate_other_vector):
20641 * lisp.h (allocate_other_vector): Remove.
20642
20643 * window.c (struct save_window_data): Move non-lisp data to the end
20644 and make it `int' rather than Lisp_Object.
20645 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20646 Done wrap/unwrap integer values.
20647 (Fset_window_configuration, compare_window_configurations):
20648 Update use of fields to their new types.
20649
20650 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20651 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20652 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20653 (SET_SCROLL_BAR_X_WINDOW): Remove.
20654 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20655 Access the new x_window field directly.
20656 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20657 Don't wrap/unwrap integers into Lisp_Objects.
20658 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20659 (x_scroll_bar_report_motion):
20660 Don't wrap/unwrap integers into Lisp_Objects.
20661 (x_term_init): Use SDATA.
20662 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20663 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20664 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20665 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20666 * xfns.c (x_set_background_color):
20667 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20668 Access the new x_window field directly.
20669
20670 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20671 (allocate_pseudovector): Make non-static.
20672
20673 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20674 (allocate_pseudovector): Declare.
20675 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20676
206772007-11-15 Andreas Schwab <schwab@suse.de>
20678
20679 * editfns.c (Fformat): Correctly format EMACS_INT values.
20680 Also take precision into account when formatting an integer.
20681
20682 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20683
206842007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20685
20686 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20687 (syms_of_keyboard): Defsubr it.
20688
20689 * data.c (swap_in_global_binding): Fix longstanding bug where
20690 store_symval_forwarding was not called with the right second argument,
20691 thus causing objfwd-ing from being dropped.
20692
206932007-11-14 Juanma Barranquero <lekktu@gmail.com>
20694
20695 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20696 (Fx_display_pixel_height, Fx_display_planes)
20697 (Fx_display_color_cells, Fx_server_max_request_size)
20698 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20699 (Fx_display_visual_class, Fx_display_save_under):
20700 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20701 (Fx_display_pixel_height, Fx_display_planes)
20702 (Fx_display_color_cells, Fx_server_max_request_size)
20703 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20704 (Fx_display_mm_height, Fx_display_mm_width)
20705 (Fx_display_backing_store, Fx_display_visual_class)
20706 (Fw32_select_font, Fx_display_save_under):
20707 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20708 (Fx_display_pixel_height, Fx_display_planes)
20709 (Fx_display_color_cells, Fx_server_max_request_size)
20710 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20711 (Fx_display_save_under): Fix typos in docstrings.
20712
207132007-11-14 Juanma Barranquero <lekktu@gmail.com>
20714
20715 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20716 corresponding to deleted entries; they are an implementation detail.
20717 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20718 Remove variables.
20719 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20720 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20721 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20722 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20723 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20724 (Fw32_define_rgb_color, Fw32_load_color_file)
20725 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20726 Fix typos in docstrings.
20727 (Fx_server_version): Reflow docstring.
20728 (Fw32_shell_execute): Doc fixes.
20729
207302007-11-13 Juanma Barranquero <lekktu@gmail.com>
20731
20732 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20733 if w32_parse_hot_key returned nil.
20734
207352007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20736
20737 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20738
207392007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20740
aac0c6e3
MR
20741 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20742
20743 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20744
20745 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20746 Remove W32_SCROLL_BAR_CLICK_EVENT.
20747
20748 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20749 Add MULTIMEDIA_KEY_EVENT.
20750
20751 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20752 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20753 (make_lispy_event) [WINDOWSNT]: Use it to translate
20754 MULTIMEDIA_KEY_EVENT.
20755
20756 * w32term.h (WM_APPCOMMAND): Define if not already.
20757 (GET_APPCOMMAND_LPARAM): Likewise.
20758
20759 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20760 WM_APPCOMMAND.
20761
20762 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20763 (syms_of_w32fns): Export and initialize it.
20764 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20765
207662007-11-09 Chong Yidong <cyd@stupidchicken.com>
20767
20768 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20769 twice.
20770
20771 * xdisp.c (handle_face_prop): Fix last change.
20772
207732007-11-09 Richard Stallman <rms@gnu.org>
20774
20775 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20776 not just for after-strings and before-strings.
20777 Call face_for_overlay_string and pass the overlay to it.
20778 (handle_display_prop): Determine whether property came from an overlay.
20779 Pass OVERLAY arg to handle_single_display_spec.
20780 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20781 (load_overlay_strings): Fill in it->string_overlays.
20782 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20783
20784 * xfaces.c (face_for_overlay_string): Function renamed from
20785 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20786
20787 * dispextern.h (struct it): New elt string_overlays.
20788 New elt from_overlay, also in stack.
20789 Rearrange a few elements.
20790 (face_for_overlay_string): Decl renamed from
20791 face_at_buffer_position_no_overlays, and add argument.
20792
207932007-11-09 Richard Stallman <rms@gnu.org>
20794
20795 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20796 to get the base face for an overlay string.
20797
20798 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20799
20800 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20801
20802 * xdisp.c (handle_stop): Move some code out of loop.
20803
208042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20805
20806 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20807 Fix conversion from Lisp object to ATSUFontID.
20808
208092007-11-09 Jason Rumney <jasonr@gnu.org>
20810
20811 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20812
208132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20814
20815 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20816 Don't assume regions are aligned to page boundary.
20817 (print_load_command_name): Add LC_UUID if defined.
20818
208192007-11-09 Richard Stallman <rms@gnu.org>
20820
20821 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20822
208232007-11-07 Jason Rumney <jasonr@gnu.org>
20824
20825 * s/windows95.h: Remove.
20826
208272007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20828
20829 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20830 abort with a message on unhandled store_type values.
20831
208322007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20833
20834 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20835 Remove HAVE_X11R5 and HAVE_X11R4.
20836
208372007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20838
20839 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20840
208412007-11-01 Johan Bockgård <bojohan@gnu.org>
20842
20843 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20844 Don't set s->stippled_p here, since it has already been set by
20845 x_set_glyph_string_gc from x_draw_glyph_string.
20846
208472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20848
20849 * sunfns.c: Remove file.
20850
20851 * m/sun386.h:
20852 * m/sun2.h:
20853 * m/sparc.h: Remove Sun windows code.
20854
208552007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20856
20857 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20858 (init_keyboard): Set current_kboard's window-system to nil.
20859 (tty_read_avail_input): Typo.
20860 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20861
208622007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20863
20864 * s/usg5-4.h:
20865 * s/usg5-3.h:
20866 * s/ptx.h:
20867 * m/is386.h:
20868 * m/ibmps2-aix.h:
20869 * Makefile.in: Remove all mentions of X10.
20870
20871 * dispnew.c (syms_of_display): Don't mention version 10.
20872
208732007-10-28 Juanma Barranquero <lekktu@gmail.com>
20874
20875 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20876 ($(BLD)/abbrev.$(O)): Remove.
20877
208782007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20879
20880 Rewrite abbrev.c in Elisp.
20881 * image.c (Qcount): Don't declare as extern.
20882 (syms_of_image): Initialize and staticpro `Qcount'.
20883 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20884 * emacs.c (main): Don't call syms_of_abbrev.
20885 * Makefile.in (obj): Remove abbrev.o.
20886 (abbrev.o): Remove.
20887 * abbrev.c: Remove.
20888
208892007-10-26 Martin Rudalics <rudalics@gmx.at>
20890
20891 * window.c (window_min_size_2): Don't count header-line.
20892
208932007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20894
20895 * frame.h (struct frame): Move all bit fields after the first bit
20896 field to take advantage of the available space. Group all the
20897 chars together to reduce wasted space due to padding.
20898
208992007-10-26 Juanma Barranquero <lekktu@gmail.com>
20900
20901 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20902
20903 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20904 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20905 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20906 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20907 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20908 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20909 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20910 (last_marked, mark_object_loop_halt): Make static.
20911
20912 * frame.c (syms_of_frame) <delete-frame-functions>:
20913 Fix typo in docstring.
20914
209152007-10-25 Juanma Barranquero <lekktu@gmail.com>
20916
20917 * w32.c (init_environment): Fix tiny memory leak.
20918 (w32_get_resource): Remove unused variable `ok'.
20919
209202007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20921
20922 Make `window-system' into a keyboard-local variable (rather than
20923 frame-local as done originally by multi-tty).
20924
20925 * keyboard.h (struct kboard): Add Vwindow_system.
20926 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20927 (mark_kboards): Mark Vwindow_system.
20928
20929 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20930 (init_display): Don't set the obsolete `window-system' frame-param.
20931
20932 * xterm.c (x_term_init):
20933 * w32term.c (w32_create_terminal):
20934 * term.c (init_tty): Set Vwindow_system.
20935 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20936 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20937
20938 * xfns.c (Fx_create_frame, x_create_tip_frame):
20939 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20940 * macfns.c (Fx_create_frame):
20941 Don't set the obsolete `window-system' frame-param.
20942
20943 * frame.h (Qwindow_system): Remove.
20944 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20945 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20946
209472007-10-24 Richard Stallman <rms@gnu.org>
20948
20949 * frame.c (x_figure_window_size): For fullscreen case,
20950 set USPosition | PPosition without clobbering rest of window_prompting.
20951
20952 * keyboard.c (Fcurrent_idle_time): Doc fix.
20953
20954 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20955
209562007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20957
20958 * process.c (unwind_request_sigio): Only define if __ultrix__.
20959
20960 * callproc.c (child_setup): Remove spurious *.
20961
20962 * lisp.h (Fget_text_property): Declare.
20963 (have_menus_p): Declare it here rather than in sys-dep header files.
20964 * macterm.h (have_menus_p):
20965 * msdos.h (have_menus_p):
20966 * xterm.h (have_menus_p): Remove.
20967
20968 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20969 (Fmake_variable_frame_local): Just check the variable's const-ness
20970 rather than checking nil or t.
20971
209722007-10-22 Jason Rumney <jasonr@gnu.org>
20973
20974 * w32fns.c: Include math.h.
20975 (w32_abort): Declaration moved to nt/config.nt.
20976
20977 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20978 (abort): Redefinition moved to nt/config.nt.
20979
20980 * m/windowsnt.h: Remove.
20981
209822007-10-22 Juanma Barranquero <lekktu@gmail.com>
20983
20984 * emacs.c (Fdump_emacs): Fix typo in message.
20985 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20986 <installation-directory>: Reflow docstring.
20987
209882007-10-22 Juri Linkov <juri@jurta.org>
20989
20990 * minibuf.c: Allow minibuffer default to be a list of default values.
20991 With empty input use the first element of this list as returned default.
20992 (string_to_object)
20993 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20994 (read_minibuf): If defalt is cons, set histstring to its car.
20995 (Fread_string): If default_value is cons, set val to its car.
20996 (Fread_buffer): If def is cons, use its car.
20997 (Fcompleting_read): If defalt is cons, set val to its car.
20998
209992007-10-21 Michael Albinus <michael.albinus@gmx.de>
21000
21001 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21002
210032007-10-20 Juanma Barranquero <lekktu@gmail.com>
21004
21005 * doc.c (Fdocumentation): Check for advice in all cases.
21006
210072007-10-19 Chong Yidong <cyd@stupidchicken.com>
21008
21009 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21010
210112007-10-19 Richard Stallman <rms@gnu.org>
21012
21013 * doc.c (Fdocumentation): Check for and handle an advised function.
21014
210152007-10-19 Juanma Barranquero <lekktu@gmail.com>
21016
21017 * process.c (Fset_process_filter): Doc fix.
21018
210192007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21020
21021 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21022 which caused key-translation-map to applied repeatedly (thus breaking
21023 double-mode).
21024
210252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21026
21027 * xselect.c (x_own_selection, x_handle_selection_clear)
21028 (x_clear_frame_selections):
21029 * w32menu.c (list_of_panes, list_of_items):
21030 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21031 * textprop.c (validate_plist, interval_has_all_properties)
21032 (interval_has_some_properties, interval_has_some_properties_list)
21033 (add_properties, text_property_list):
21034 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21035 * minibuf.c (Fassoc_string):
21036 * macselect.c (x_own_selection, x_clear_frame_selections)
21037 (Fx_disown_selection_internal):
21038 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21039 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21040
210412007-10-17 Chong Yidong <cyd@stupidchicken.com>
21042
21043 * process.c: Link to libs for calling res_init() if available.
21044 (Fmake_network_process): Call res_init() before getaddrinfo or
21045 gethostbyname, if possible.
21046
210472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21048
21049 * lread.c (read1): Set pvectype for char_tables.
21050
21051 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21052 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21053 Add type checks.
21054 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21055
21056 * alloc.c (free_misc): Use XMISCTYPE.
21057 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21058
210592007-10-17 Glenn Morris <rgm@gnu.org>
21060
21061 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21062 (syms_of_minibuf): Add Qcompletion_ignore_case.
21063 * dired.c (Qcompletion_ignore_case): Change to external.
21064 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21065 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21066 (Fread_file_name): Use it rather than intern'ing.
21067
21068 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21069 (Fread_coding_system): Ignore case of user input.
21070
210712007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21072
21073 * xdisp.c (handle_display_prop): Ignore display specs after
21074 replacing one when string text is being replaced.
21075 (handle_single_display_spec): Pretend as if characters with display
21076 property haven't been consumed only when buffer text is being replaced.
21077
210782007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21079
21080 * xfns.c (Fx_create_frame, Fx_display_list):
21081 * window.c (window_fixed_size_p, enlarge_window)
21082 (shrink_window_lowest_first):
21083 * macterm.c (init_font_name_table):
21084 * macfns.c (Fx_create_frame, Fx_display_list):
21085 * lread.c (close_load_descs):
21086 * keyboard.c (read_char_x_menu_prompt):
21087 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21088 * coding.c (code_convert_region_unwind): Test the type of an object
21089 rather than just !NILP before extracting data from it.
21090
21091 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21092
21093 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21094 (XMISCANY): New macro.
21095 (XMISCTYPE): Use it.
21096 (struct Lisp_Misc_Any): New type.
21097 (union Lisp_Misc): Use it.
21098 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21099 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21100 (find_symbol_value, set_internal, default_value, Fset_default)
21101 (Fmake_variable_buffer_local, Fmake_local_variable)
21102 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21103 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21104 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21105 * alloc.c (allocate_buffer): Set the size and tag.
21106 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21107 Use XMISCANY.
21108 (die): Follow the GNU convention for error messages.
21109 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21110 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21111 tag any more.
21112 (set_buffer_internal_1):
21113 * frame.c (store_frame_param):
21114 * eval.c (specbind):
21115 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21116
21117 * doc.c (Fsnarf_documentation): Simplify.
21118
211192007-10-14 Juanma Barranquero <lekktu@gmail.com>
21120
21121 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21122 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21123
211242007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21125
21126 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21127
211282007-10-14 Juanma Barranquero <lekktu@gmail.com>
21129
21130 * eval.c (do_autoload): Don't save autoloads.
21131
21132 * data.c (Ffset): Save autoload of the function being set.
21133
211342007-10-07 John Paul Wallington <jpw@pobox.com>
21135
21136 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21137 parameter before setting up faces.
21138
211392007-10-13 Eli Zaretskii <eliz@gnu.org>
21140
21141 * ccl.c (Fregister_code_conversion_map):
21142 * keyboard.c (append_tool_bar_item): Reformat last change.
21143
21144 * lisp.h (eabs): Rename from `abs'. All callers changed.
21145
211462007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21147
21148 * buffer.c (add_overlay_mod_hooklist):
21149 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21150 * fontset.c (make_fontset):
21151 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21152 (append_tool_bar_item):
21153 * macmenu.c (grow_menu_items):
21154 * w32menu.c (grow_menu_items):
21155 * xmenu.c (grow_menu_items): Use larger_vector.
21156
211572007-10-13 Eli Zaretskii <eliz@gnu.org>
21158
21159 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21160 selected frame'' on MSDOS).
21161
211622007-10-12 Martin Rudalics <rudalics@gmx.at>
21163
21164 * frame.c (Qexplicit_name): New variable.
21165 (x_report_frame_params): Report it in parameter alist.
21166 (syms_of_frame): Intern and staticpro it.
21167
211682007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21169
21170 * macfns.c (x_create_tip_frame): Set terminal for frame.
21171
211722007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21173
21174 * frame.c (Qenvironment): Remove.
21175 (syms_of_frame) <Qenvironment>: Don't initialize.
21176 (Fdelete_frame): Don't treat the `environment' param specially.
21177 * frame.h (Qenvironment): Don't declare.
21178 * callproc.c (set_initial_environment): Don't set unused frame param.
21179
21180 * frame.c (Fframe_with_environment): Remove.
21181 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21182
21183 * lisp.h (Fframe_with_environment): Don't declare.
21184
211852007-10-10 Juanma Barranquero <lekktu@gmail.com>
21186
21187 * indent.c (indent_tabs_mode, last_known_column)
21188 (last_known_column_modified): Make static.
21189 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21190
211912007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21192
21193 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21194
211952007-10-09 Jason Rumney <jasonr@gnu.org>
21196
21197 * w32term.c (x_set_window_size): Disable code that attempts to tell
21198 Lisp code about a size change before it actually happens.
21199
212002007-10-09 Richard Stallman <rms@gnu.org>
21201
21202 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21203 return HANDLED_RETURN.
21204
212052007-10-08 Martin Rudalics <rudalics@gmx.at>
21206
21207 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21208 when there's an unread command event.
21209
21210 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21211 window autoselection act appropriately when leaving selected frame.
21212 (syms_of_frame): Initialize focus_follows_mouse.
21213 * frame.h (focus_follows_mouse): Extern it.
21214 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21215 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21216 * msdos.c (dos_rawgetc): Likewise.
21217 * w32term.c (w32_read_socket): Likewise.
21218 * xterm.c (handle_one_xevent): Likewise.
21219 * xdisp.c (syms_of_xdisp): In doc-string of
21220 mouse-autoselect-window mention focus-follows-mouse.
21221
212222007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21223
21224 * macterm.c (mac_load_query_font): Fix missing return value.
21225 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21226 Add BLOCK_INPUT.
21227
212282007-10-08 Richard Stallman <rms@gnu.org>
21229
21230 * xdisp.c (get_window_cursor_type): Implement documented behavior
21231 for cursor-in-non-selected-windows = t.
21232
212332007-10-08 Jason Rumney <jasonr@gnu.org>
21234
21235 * w32.c (w32_get_resource): Always close registry keys.
21236
212372007-10-08 Jason Rumney <jasonr@gnu.org>
21238
21239 * makefile.w32-in (LIBS): Add COMCTL32.
21240
21241 * w32fns.c (globals_of_w32fns): Init common controls.
21242
212432007-10-08 Richard Stallman <rms@gnu.org>
21244
21245 * image.c (our_memory_buffer): Rename from omfib_buffer.
21246
212472007-10-08 Richard Stallman <rms@gnu.org>
21248
21249 * buffer.c (Foverlays_at): Doc fix.
21250
212512007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21252
21253 * fns.c (Fplist_put): Preserve uneven tail data.
21254
212552007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21256
21257 * termhooks.h (enum event_kind): Remove trailing comma.
21258
21259 * frame.h (enum): Remove trailing comma.
21260
212612007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21262
21263 * w32proc.c (delete_child): Don't terminate threads of zombies.
21264
212652007-10-08 Martin Rudalics <rudalics@gmx.at>
21266
21267 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21268
21269 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21270 last-repeatable-command.
21271 (init_kboard): Initialize Vlast_repeatable_command.
21272 (command_loop_1): Set it to real_this_command unless that was
21273 bound to an input event.
21274 (mark_kboards): Mark it.
21275
212762007-10-08 Richard Stallman <rms@gnu.org>
21277
21278 * eval.c (condition-case): Doc fix.
21279
212802007-10-08 Masatake YAMATO <jet@gyve.org>
21281
21282 * xfaces.c (tty_supports_face_attributes_p): Fix code
21283 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21284 was copied and not edited.
21285
212862007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21287
21288 Add new `input-decode-map' keymap and use it for terminal
21289 escape sequences.
21290 * keyboard.h (struct kboard): Add Vinput_decode_map.
21291 Remove Vlocal_key_translation_map.
21292 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21293 (init_kboard): Init input-decode-map.
21294 Replace local-key-translation-map back with key-translation-map.
21295 (syms_of_keyboard): Declare input-decode-map.
21296 Remove local-key-translation-map. Update docstrings.
21297 (mark_kboards): Mark Vinput_decode_map.
21298 Don't mark Vlocal_key_translation_map.
21299 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21300 Replace local-key-translation-map back with key-translation-map.
21301 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21302 Bind in input-decode-map rather than function-key-map.
21303
21304 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21305 This was made redundant by the previous introduction of XSETPVECTYPE.
21306
213072007-10-09 Richard Stallman <rms@gnu.org>
21308
21309 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21310
213112007-09-29 Richard Stallman <rms@gnu.org>
21312
21313 * eval.c (internal_condition_case_2, internal_condition_case_1)
21314 (internal_condition_case): Reenable abort if x_catching_errors ()
21315 to see if that really happens and why.
21316
213172007-10-06 Andreas Schwab <schwab@suse.de>
21318
21319 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21320
213212007-10-04 Juanma Barranquero <lekktu@gmail.com>
21322
21323 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21324
213252007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21326
21327 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21328
213292007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21330
21331 * window.h (struct window):
21332 * window.c (struct save_window_data, struct saved_window):
21333 * termhooks.h (struct terminal):
21334 * process.h (struct Lisp_Process):
21335 * frame.h (struct frame):
21336 * buffer.h (struct buffer):
21337 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21338 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21339 The size field of (pseudo)vectors is now unsigned.
21340 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21341
21342 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21343 Turn `count' into an integer.
21344
21345 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21346 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21347 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21348 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21349 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21350
21351 * alloc.c (allocate_pseudovector): New fun.
21352 (ALLOCATE_PSEUDOVECTOR): New macro.
21353 (allocate_window, allocate_terminal, allocate_frame)
21354 (allocate_process): Use it.
21355 (mark_vectorlike): New function.
21356 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21357 (mark_terminals): Use it.
21358 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21359 (Fmake_byte_code): Use XSETPVECTYPE.
21360
21361 * frame.c (Fframe_parameters): Minor simplification.
21362
21363 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21364
21365 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21366
21367 * buffer.c (Fget_buffer_create, init_buffer_once):
21368 * lread.c (defsubr):
21369 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21370
21371 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21372 defined differently in the m/*.h files.
21373 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21374 (XSETPVECTYPE): New macro.
21375 (XSETPSEUDOVECTOR): Use it.
21376
21377 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21378 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21379
21380 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21381 * lread.c (defvar_per_buffer):
21382 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21383
21384 * window.c (candidate_window_p): Only consider as visible frames that
21385 are on the same terminal.
21386
21387 * m/ibms390x.h (MARKBIT): Remove unused macro.
21388
213892007-10-01 Juanma Barranquero <lekktu@gmail.com>
21390
21391 * lread.c (Fload): Fix typo in docstring.
21392
213932007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21394
21395 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21396 of a non-zero value can't yield zero.
21397
213982007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21399
21400 * term.c (term_clear_mouse_face, term_mouse_highlight)
21401 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21402
21403 * print.c (safe_debug_print): Use XHASH.
21404
21405 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21406 Lisp elements such as tags.
21407 (XHASH): New macro.
21408 (EQ): Use it.
21409 (SREF, SSET, STRING_COPYIN): Use SDATA.
21410 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21411
21412 * alloc.c (mark_terminal): Remove left-over declaration.
21413 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21414 (allocate_vectorlike): Remove type argument. Adjust callers.
21415 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21416 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21417
21418 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21419 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21420 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21421 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21422 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21423 Use them.
21424
21425 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21426 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21427 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21428
214292007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21430
21431 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21432 loaded by default.
21433
214342007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21435
21436 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21437 on this tty.
21438 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21439
21440 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21441 Update all users.
21442 (handle_one_term_event): Use Gpm_DrawPointer.
21443 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21444 Signal errors instead of returning nil. Always return nil.
21445 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21446 Make it a noop if gpm-mouse was not activated.
21447 (syms_of_term): Update names.
21448
214492007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21450
21451 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21452 (init_sys_modes): Check that gpm_tty is the current tty.
21453
21454 * alloc.c (allocate_terminal): Set the vector size to only count the
21455 lisp fields. Initialize those to nil.
21456 (mark_object): Don't treat terminals specially.
21457 (mark_terminal): Remove.
21458 (mark_terminals): Use mark_object instead.
21459
21460 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21461 the GC to the beginning.
21462
21463 * indent.h:
21464 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21465
21466 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21467
214682007-09-25 Jason Rumney <jasonr@gnu.org>
21469
21470 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21471
21472 * w32console.c (create_w32cons_output): Remove.
21473
21474 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21475
21476 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21477 (reset_sys_modes): Use reset_terminal_modes_hook.
21478
214792007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21480
21481 * eval.c (do_autoload): Don't output any message.
21482
214832007-09-24 Juri Linkov <juri@jurta.org>
21484
21485 * emacs.c (standard_args): Change priority of "--no-splash"
21486 from 40 to 3. Add "--no-desktop" with the same priority.
21487
214882007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21489
21490 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21491 and optimize the case where they are all 1.
21492
214932007-09-23 Johannes Weiner <hannes@saeurebad.de>
21494
21495 * lisp.h (abs): Define if not defined.
21496 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21497 Don't define `abs', since it's defined in lisp.h.
21498
214992007-09-22 Eli Zaretskii <eliz@gnu.org>
21500
21501 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21502 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21503 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21504 (init_tty): Use DEV_TTY instead of "/dev/tty".
21505 [WINDOWSNT]: No need to protect from NAME arg being null.
21506
215072007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21508
21509 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21510 up the tty state.
21511
215122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21513
21514 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21515 (gpm_tty): Change its type.
21516 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21517 (gpm_tty): Change its type and initialize it.
21518 (Fterm_open_connection): Check the frame is indeed a tty.
21519 Use the new gpm_tty.
21520 (Fterm_close_connection): Use the new gpm_tty.
21521 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21522 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21523
215242007-09-21 Juanma Barranquero <lekktu@gmail.com>
21525
21526 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21527 underline_color, to draw strike-through.
21528
215292007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21530
21531 * lisp.h (allocate_terminal): Declare.
21532
21533 * window.c (candidate_window_p): Consider frames that are being placed
21534 by the user as somewhere between visible and iconified.
21535 (window_loop): Prefer windows on the current frame.
21536 (Fselect_window): Move the use of select-frame to the beginning so we
21537 can just delegate all the work (it'll call us back anyway).
21538
21539 * frame.c (Qdisplay_environment_variable):
21540 * frame.h (Qdisplay_environment_variable): Delete.
21541
21542 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21543 of the first arg, since that value may be a union.
21544
21545 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21546 parameter rather than Qdisplay_environment_variable. If all else
21547 fails, look for DISPLAY in initial-environment.
21548
215492007-09-21 Glenn Morris <rgm@gnu.org>
21550
21551 * Makefile.in (emacstool): Remove target.
21552 (lisp, shortlisp): Remove termdev.elc.
21553
215542007-09-21 Markus Triska <markus.triska@gmx.at>
21555
21556 * xterm.c (x_delete_display): Compile session management conditionally.
21557
215582007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21559
21560 * callproc.c (getenv_internal_1): New function.
21561 (getenv_internal): Use it.
21562 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21563
21564 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21565 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21566 (Fset_terminal_parameter): Work with dead terminals as well.
21567 (Fmodify_terminal_parameters): Remove.
21568
21569 * terminal.c (get_terminal): Handle terminals.
21570 Make sure the terminal returned is live.
21571 (create_terminal): Use allocate_terminal.
21572 (mark_terminals): Move to alloc.c.
21573 (delete_terminal): Use terminal->name as liveness status.
21574 NULL out fields after freeing their contents.
21575 Don't deallocate the object.
21576 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21577 rather than an int.
21578 (Fterminal_live_p): Accept non-integer arguments.
21579 (Fterminal_list): Return terminal objects rather than an ints.
21580
21581 * alloc.c (enum mem_type): New member for `terminal' objects.
21582 (allocate_terminal): New function.
21583 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21584 Handle terminals.
21585 (mark_terminal): New fun.
21586 (mark_terminals): Move from terminal.c.
21587
21588 * term.c (get_tty_terminal): Don't treat output_initial specially.
21589 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21590 (delete_tty): Use terminal->name as liveness status.
21591
21592 * termhooks.h (struct terminal): Make it into a pseudovector.
21593 Remove `deleted' replaced by checking `name's nullness.
21594
21595 * print.c (print_object): Handle terminals.
21596
21597 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21598 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21599
21600 * frame.c (make_terminal_frame):
21601 * keyboard.c (tty_read_avail_input):
21602 * w32term.c (x_delete_terminal):
21603 * xfns.c (Fx_create_frame, x_create_tip_frame):
21604 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21605
216062007-09-20 Glenn Morris <rgm@gnu.org>
21607
21608 * process.c (Fmake_network_process): Doc fix.
21609
216102007-09-19 Jason Rumney <jasonr@gnu.org>
21611
21612 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21613
216142007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21615
21616 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21617 Fix a C warning regarding variable constness.
21618
21619 * xterm.c (handle_one_xevent): Fix a C warning.
21620
216212007-09-18 Jason Rumney <jasonr@gnu.org>
21622
21623 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21624
216252007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21626
21627 * gtkutil.c (gdpy_def): New variable.
21628 (xg_initialize): Initialize gdpy_def.
21629 (xg_display_close): If no other display exists, set gdpy_def to a
21630 new connection.
21631
216322007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21633
21634 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21635 when we have no file name for the icon.
21636 (xg_tool_bar_expose_callback): Remove.
21637 (xg_create_tool_bar): Don't connect expose signal to
21638 xg_tool_bar_expose_callback.
21639 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21640
216412007-09-16 Andreas Schwab <schwab@suse.de>
21642
21643 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21644 values instead of zapping them.
21645
216462007-09-14 Glenn Morris <rgm@gnu.org>
21647
21648 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21649 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21650 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21651 scope and rename to omfib_buffer for clarity.
21652 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21653
216542007-09-14 Kenichi Handa <handa@m17n.org>
21655
21656 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21657
216582007-09-13 Jason Rumney <jasonr@gnu.org>
21659
21660 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21661
21662 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21663
21664 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21665 (mac_term_init): Call here instead, passing rif.
21666
216672007-09-13 Glenn Morris <rgm@gnu.org>
21668
21669 * s/hpux.h: No longer define `static' as nothing.
21670
216712007-09-13 Johan Bockgård <bojohan@gnu.org>
21672
21673 * callint.c (Fcall_interactively): Remove unused var `fun'.
21674
216752007-09-12 Romain Francoise <romain@orebokech.com>
21676
21677 * window.c (prefer_window_split_horizontally, display_buffer):
21678 Revert 2007-09-08 change.
21679
216802007-09-12 Glenn Morris <rgm@gnu.org>
21681
21682 * alloca.c: Remove file.
21683 * Makefile.in (alloca): Do not undef.
21684 (allocaobj, alloca.o): Remove.
21685 (otherobj): Remove allocaobj.
21686 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21687 * regex.c (C_ALLOCA): Remove all references and code that was only
21688 used when this was defined.
21689 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21690 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21691 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21692
21693 * Makefile.in (SOURCES, unlock, relock): Delete.
21694
21695 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21696 (menu_grab_callback): All uses changed.
21697
21698 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21699 (x_reply_selection_request): All uses changed.
21700
217012007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21702
21703 * lread.c (load_warn_old_style_backquotes): Change message to look
21704 better when it appears in the middle of byte-compiler messages.
21705
217062007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21707
21708 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21709
21710 * xterm.c (x_create_terminal): Add comment.
21711
21712 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21713
217142007-09-10 Richard Stallman <rms@gnu.org>
21715
21716 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21717
217182007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21719
21720 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21721 (DEFUN): Document `intspec', use it instead of `prompt'.
21722
21723 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21724
21725 * data.c (Finteractive_form): If the interactive specification starts
21726 with a `(', use it as a Lisp form.
21727
21728 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21729 name and file modes.
21730
21731 * callint.c (Fcall_interactively): Comment fixes.
21732
217332007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21734
21735 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21736 and compiled functions.
21737
217382007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21739
21740 * window.c (prefer_window_split_horizontally): New variable.
21741 (display_buffer): Consider splitting window horizontally depending
21742 on prefer_window_split_horizontally.
21743
217442007-09-08 Eli Zaretskii <eliz@gnu.org>
21745
21746 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21747
217482007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21749
21750 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21751
21752 * frame.c (x_set_frame_parameters): Check number is positive before
21753 using XFASTINT.
21754
21755 * window.c (freeze_window_start): Don't presume selected_window holds
21756 a window object.
21757 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21758
217592007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21760
21761 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21762
217632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21764
21765 * window.c (Vsplit_window_preferred_function): New var.
21766 (Fdisplay_buffer): Use it.
21767 (syms_of_window): Export, and initialize it.
21768
217692007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21770
21771 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21772
217732007-09-06 Glenn Morris <rgm@gnu.org>
21774
21775 * gtkutil.c (menu_grab_callback) <cnt>:
21776 * xselect.c (x_reply_selection_request) <cnt>: Move static
21777 variable to file scope.
21778
217792007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21780
21781 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21782 consistent values of selected_frame and selected_window.
21783
217842007-09-04 Jason Rumney <jasonr@gnu.org>
21785
21786 * w32console.c (initialize_w32_display): Zero unused hooks.
21787
217882007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21789
21790 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21791 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21792
217932007-09-04 Jason Rumney <jasonr@gnu.org>
21794
21795 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21796 in w32console.c. Set up input. Remove XXX comments that have been
21797 confirmed as correct.
21798
21799 * s/ms-w32.h (MULTI_KBOARD): Define.
21800
21801 * w32console.c (one_and_only_w32cons): Remove.
21802 (initialize_w32_display): Take terminal argument.
21803
21804 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21805 initialize_w32_display.
21806 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21807
21808 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21809
21810 * keyboard.c (discard_mouse_events): Discard it.
21811 (make_lispy_event): Translate it to a lisp event.
21812 (lispy_wheel_names): Add wheel-left and right events.
21813 (syms_of_keyboard): Enlarge wheel_syms.
21814
21815 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21816 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21817
21818 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21819
21820 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21821 from WM_MOUSEHWHEEL.
21822 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21823
21824 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21825 terminal.
21826
21827 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21828 keyboard for the terminal.
21829
218302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21831
21832 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21833 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21834 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21835 and resume-tty-function to resume-tty-hook.
21836 (Fsuspend_tty, Fresume_tty): Use new names.
21837
218382007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21839
21840 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21841 if it starts with "n:".
21842
218432007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21844
21845 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21846
218472007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21848
21849 * frame.h:
21850 * frame.c (Qterm_environment_variable): Remove.
21851 (syms_of_frame): Don't init and staticpro it.
21852
21853 * callproc.c (getenv_internal): Remove special case for $TERM.
21854
21855 * callproc.c (Vinitial_environment): New variable.
21856 (set_initial_environment): Initialize it.
21857 (syms_of_callproc): Declare it.
21858 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21859 TERM under which a process runs is never related to the TERM in which
21860 Emacs is running.
21861
218622007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21863
21864 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21865 * s/darwin.h: ... do it here.
21866
218672007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21868
21869 * lisp.h (set_initial_environment): Rename from set_global_environment.
21870
21871 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21872 removed by mistake on the multi-tty branch.
21873
21874 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21875 (Fmodify_frame_parameters): Return a value.
21876
21877 * image.c (png_load): Comment-out var only used in commented-out code.
21878
21879 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21880 before passing it to mark_object.
21881
21882 * xfaces.c (internal_resolve_face_name): Return a value.
21883 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21884
21885 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21886 (x_icon): Comment-out var only used in commented-out code.
21887
218882007-08-29 Romain Francoise <romain@orebokech.com>
21889
21890 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21891 QUIT hasn't been provided.
21892
218932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21894
21895 * callproc.c (child_setup, getenv_internal): Use the
21896 display-environment-variable and term-environment-variable frame params.
21897 (set_initial_environment): Initialise Vprocess_environment.
21898
21899 * config.in: Disable multi-keyboard support on a mac.
21900
21901 * frame.c (Qterm_environment_variable)
21902 (Qdisplay_environment_variable): New variables.
21903 (syms_of_frame): Intern and staticpro them.
21904 (Fmake_terminal_frame): Disable output method test.
21905
21906 * frame.h: Declare them here.
21907
21908 * macfns.c (x_set_mouse_color): Get rif from the frame.
21909 (x_set_tool_bar_lines): Don't use updating_frame.
21910 (mac_window): Add 2 new parameters for consistency with other systems.
21911 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21912 frame parameters following what is done in X11 and w32. Don't use
21913 FRAME_MAC_DISPLAY_INFO.
21914 (Fx_open_connection, start_hourglass): Remove window-system check.
21915 (x_create_tip_frame): Get the keyboard from the terminal.
21916
21917 * macmenu.c: Reorder includes.
21918 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21919
21920 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21921 terminal parameter.
21922 (x_clear_frame): Add a frame parameter.
21923 (note_mouse_movement): Get rif from the frame.
21924 (mac_term_init): Initialize the terminal.
21925 (mac_initialize): Make static and move terminal initialization ...
21926 (mac_create_terminal): ... to this new function.
21927
21928 * macterm.h (struct mac_display_info): Add terminal.
21929 (mac_initialize): Delete declaration.
21930
21931 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21932
21933 * sysdep.c: Comment out text after #endif.
21934
21935 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21936 is defined. Better initialize ttys in windows. Use terminal
21937 specific mouse_position_hook.
21938
21939 * termhooks.h (union display_info): Add mac_display_info.
21940
21941 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21942 Set the default minibuffer frame, window_system and the rest of the
21943 frame parameters following what is done in X11.
21944
21945 * w32term.c (w32_initialize): Make static.
21946
21947 * xselect.c (x_handle_selection_clear): Only access
21948 terminal->kboard when MULTI_KBOARD is defined.
21949
21950 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21951 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21952
219532007-08-29 Jason Rumney <jasonr@gnu.org>
21954
21955 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21956 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21957
21958 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21959 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21960
21961 * keyboard.c (restore_kboard_configuration): Only define when
21962 MULTI_KBOARD defined.
21963
21964 * makefile.w32-in: Update dependancies from Makefile.in.
21965 (OBJ1): Add terminal.$(O)
21966
21967 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21968 Don't define function body.
21969 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21970
21971 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21972
21973 * w32.c (request_sigio, unrequest_sigio): Remove.
21974
21975 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21976 (w32con_clear_frame, w32con_clear_end_of_line)
21977 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21978 (w32con_delete_glyphs, w32con_set_terminal_window)
21979 (scroll_line, w32_sys_ring_bell): Add frame arg.
21980 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21981 Add terminal arg.
21982 (PICK_FRAME): Remove.
21983 (w32con_write_glyphs): Use frame specific terminal coding.
21984 (one_and_only_w32cons): New global variable.
21985 (initialize_w32_display): Use it for storing hooks.
21986 (create_w32cons_output): New function.
21987
21988 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21989 arg a frame.
21990
21991 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21992 Set window_system.
21993 (x_set_tool_bar_lines): Don't use updating_frame.
21994 (Fx_create_frame): Set terminal and ref count.
21995 (Fx_open_connection): Remove window-system check.
21996
21997 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21998
21999 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22000 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22001 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22002 Add frame arg.
22003 (x_delete_terminal, w32_create_terminal): New functions.
22004 (w32_term_init): Create a terminal.
22005 (w32_initialize): Move terminal specific initialization to
22006 w32_create_terminal.
22007
22008 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22009 (w32_clear_rect, w32_clear_area): Use background from frame.
22010 (w32_display_info): Add terminal.
22011 (w32_sys_ring_bell, x_delete_display): Declare here.
22012
22013 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22014
22015 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22016
220172007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22018
22019 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22020 Fix get_named_tty calls for the controlling tty.
22021
220222007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22023
194d44e7 22024 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22025
220262007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22027
22028 * term.c (tty_insert_glyphs): Add missing first parameter.
22029
220302007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22031
22032 * buffer.c (Fbuffer_list, Fbury_buffer):
22033 Take frame->buried_buffer_list into account.
22034
22035 * cm.c (current_tty): New variable, for cmputc().
22036 (cmputc): Use it.
22037 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22038 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22039 (cmgoto): Add tty parameter. Pass it on to calccost().
22040 Use emacs_tputs() instead of tputs().
22041
22042 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22043 tputs().
22044 (current_tty): New variable, for cmputc().
22045 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22046
22047 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22048 (internal_condition_case, internal_condition_case_1)
22049 (internal_condition_case_2): Don't abort when x_catching_errors.
22050
22051 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22052 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22053 prevent crashes caused by bogus longjmps in read_char.
22054
22055 * keymap.h (Fset_keymap_parent): Add EXFUN.
22056
22057 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22058 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22059 Remove redundant definition.
22060
22061 * macfns.c (x_set_mouse_color, x_make_gc):
22062 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22063
22064 * w32term.c (x_free_frame_resources):
22065 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22066 (w32_initialize): Use the accessor macros for terminal characteristics.
22067
22068 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22069 Use the accessor macros for terminal characteristics.
22070 * msdos.c (internal_terminal_init): Use the accessor macros for
22071 terminal characteristics.
22072 (ScreenVisualBell, internal_terminal_init):
22073 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22074
22075 * termopts.h (no_redraw_on_reenter): Declare.
22076
22077 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22078 (mark_terminals, mark_ttys): Declare.
22079 (Fgarbage_collect): Call them.
22080 (mark_object): Mark buried_buffer_list.
22081
22082 * prefix-args.c: Include stdlib.h for exit.
22083
22084 * syssignal.h: Add comment.
22085
22086 * indent.c: Include stdio.h.
22087
22088 * window.h (Vinitial_window_system): Declare.
22089 (Vwindow_system): Delete declaration.
22090
22091 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22092
22093 * image.c (lookup_image): Don't initialize `c' until the xasserts
22094 have been run.
22095
22096 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22097 FRAME_FOREGROUND_PIXEL.
22098
22099 * print.c (print_preprocess): Don't lose print_depth levels while
22100 iterating.
22101
22102 * widget.c (update_from_various_frame_slots):
22103 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22104
22105 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22106 frames.
22107 (window_internal_height): Remove bogus make_number call.
22108 (init_window_once): Call make_terminal_frame with two zero parameters.
22109
22110 * fileio.c (Fread_file_name): Update comment.
22111
22112 * callint.c (Fcall_interactively):
22113 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22114 Make sure it is correctly unwound.
22115
22116 * xsmfns.c (x_session_close): New function.
22117
22118 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22119 Delete declarations.
22120
22121 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22122 (x_output): Remove background_pixel and foreground_pixel fields.
22123 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22124 (x_delete_device, x_session_close): Declare.
22125
22126 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22127 (read_filtered_event): Call `read_char' with a local
22128 `wrong_kboard_jmpbuf'.
22129
22130 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22131 Don't call single_kboard_state. Use FRAME_RIF.
22132
22133 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22134 systems.
22135
22136 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22137 (Fframe_with_environment, Fset_input_meta_mode)
22138 (Fset_quit_char): EXFUN.
22139 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22140 (init_sys_modes, reset_sys_modes): Update prototypes.
22141 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22142
22143 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22144 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22145 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22146 Delete declarations.
22147 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22148 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22149 New declarations.
22150
22151 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22152 already does that during init_display(). Call syms_of_keymap
22153 before syms_of_keyboard. Call `syms_of_terminal'.
22154 Call set_initial_environment, not set_process_environment.
22155 (shut_down_emacs): Call reset_all_sys_modes() instead of
22156 reset_sys_modes().
22157
22158 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22159 (internal_resolve_face_name, resolve_face_name_error): New functions.
22160 (resolve_face_name): Protect against loops and errors thrown by Fget.
22161 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22162 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22163
22164 * scroll.c: Replace CURTTY() with local variables throughout the
22165 file (where applicable).
22166 (calculate_scrolling, calculate_direct_scrolling)
22167 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22168 characteristics.
22169
22170 * keymap.c (Vfunction_key_map): Remove.
22171 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22172 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22173 (Vkey_translation_map): Remove.
22174 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22175 (Fdescribe_buffer_bindings)
22176 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22177 Update for terminal-local key-translation-map.
22178
22179 * Makefile.in (callproc.o): Update dependencies.
22180 (lisp, shortlisp): Add termdev.elc.
22181 (obj): Add terminal.o.
22182 (terminal.o): Add dependencies.
22183 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22184 (data.o, fns.o): Add termhooks.h dependency.
22185 (SOME_MACHINE_LISP): Add dnd.elc.
22186 (minibuf.o): Fix typo.
22187 Update dependencies.
22188
22189 * data.c (do_symval_forwarding, store_symval_forwarding)
22190 (find_symbol_value): Use the selected frame's keyboard, not
22191 current_kboard.
22192
22193 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22194 Vwindow_system.
22195
22196 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22197 Fmenu_bar_open.
22198 (syms_of_xmenu): Update defsubr.
22199 (mouse_position_for_popup, Fx_popup_menu)
22200 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22201 (set_frame_menubar, free_frame_menubar)
b97439ce 22202 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22203 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22204 an X frame.
22205
22206 * xselect.c (x_own_selection): Abort if not an X frame.
22207 (some_frame_on_display): Check if it is an X frame.
22208 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22209
22210 * coding.c: Include frame.h and termhooks.h.
22211 (terminal_coding, keyboard_coding): Delete.
22212 (Fset_terminal_coding_system_internal)
22213 (Fset_keyboard_coding_system_internal)
22214 (Fkeyboard_coding_system)
22215 (Fterminal_coding_system): Add a terminal parameter.
22216 Get terminal_coding from the terminal.
22217 (init_coding_once): Don't call setup_coding_system here.
22218
22219 * dispextern.h (set_scroll_region, turn_off_insert)
22220 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22221 (tty_clear_end_of_line, tty_setup_colors)
22222 (delete_tty, updating_frame)
22223 (produce_special_glyphs, produce_glyphs, write_glyphs)
22224 (insert_glyphs): Remove.
22225 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22226 (tty_turn_off_highlight, get_tty_size): Add declaration.
22227 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22228
22229 * frame.h (enum output_method): Add output_initial.
22230 (struct x_output): Delete.
22231 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22232 Access foreground_pixel and background_pixel directly from the frame.
22233 (tty_display): Delete.
22234 (struct frame): Add buried_buffer_list, foreground_pixel,
22235 background_pixel and terminal. Delete kboard.
22236 (union output_data): Add tty.
22237 (FRAME_KBOARD): Get the kboard from the terminal.
22238 (FRAME_INITIAL_P): New macro.
22239 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22240 (Qterm_environment_variable, Qdisplay_environment_variable)
22241 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22242 New declarations.
22243
22244 * termchar.h (tty_output, tty_display_info): New structures.
22245 (tty_list): Declare.
22246 (FRAME_TTY, CURTTY): New macros.
22247 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22248 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22249 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22250 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22251
22252 * callproc.c: Include frame.h and termhooks.h, for terminal
22253 parameters.
22254 (add_env): New function.
22255 (child_setup): Use it.
22256 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22257 (getenv_internal): Fix get_terminal_param call.
22258 (Fgetenv_internal, egetenv): Update doc.
22259 (syms_of_callproc): Initialize Vprocess_environment to nil.
22260 Register and initialize them. Remove obsolete defvars. Update doc
22261 strings.
22262 (child_setup): Handle Vlocal_environment_variables.
22263 (getenv_internal): Add terminal parameter.
22264 Handle Vlocal_environment_variables.
22265 (Fgetenv_internal): Add terminal parameter.
22266 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22267 environment in a frame (not terminal) parameter. Update doc strings.
22268 (set_initial_environment): Rename from set_global_environment.
22269 Store Emacs environment in initial frame parameter.
22270
22271 * xdisp.c (redisplay_internal): Update references to
22272 `previous_terminal_frame'.
22273 (display_mode_line, Fformat_mode_line): Replace calls to
22274 `push_frame_kboard' with `push_kboard'.
22275 (get_glyph_string_clip_rects): Add extra parentheses and
22276 braces to prevent compiler warnings.
22277 (calc_pixel_width_or_height): Add xassert to check that the
22278 frame is alive. Don't call `lookup_image' on a termcap frame.
22279 (message2_nolog, message3_nolog, redisplay_internal)
22280 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22281 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22282 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22283 (Fx_display_pixel_width, Fx_display_pixel_height)
22284 (Fx_display_planes, Fx_display_color_cells)
22285 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22286 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22287 (Fx_display_backing_store, Fx_display_visual_class)
22288 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22289 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22290
22291 * xfns.c (x_set_foreground_color x_set_background_color)
22292 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22293 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22294 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22295 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22296 terminal that is being deleted.
22297 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22298 frame parameter, and make sure it overrides any user-supplied setting.
22299 (Fx_close_connection, Fx_synchronize): Unify argument names with
22300 the rest of the DEFUNs.
22301
22302 * dispnew.c (Fsend_string_to_terminal): Update call to
22303 `get_tty_terminal'.
22304 (Fredraw_frame, Fsend_string_to_terminal)
22305 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22306 FRAME_TERMCAP_P and FRAME_TTY.
22307 (window_change_signal): Don't believe width/height values that are
22308 impossibly small.
22309 (Vinitial_window_system): Rename from Vwindow_system.
22310 (termscript, Wcm, rif): Delete.
22311
22312 * termhooks.h (struct terminal): New struct containing the
22313 previously global text display hooks and new members NAME,
22314 DELETED and PARAM_ALIST.
22315 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22316 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22317 (FRAME_RIF): New macros.
22318 (get_terminal_param, get_device): New declarations.
22319 (termscript): Delete declaration.
22320
22321 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22322 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22323 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22324 FRAME_FOREGROUND_PIXEL.
22325 (x_fully_uncatch_errors): Disable definition.
22326 (x_scroll_bar_expose): Fix reference to foreground pixel.
22327 (XTread_socket): Disable loop on all X displays.
22328 (x_delete_terminal): Don't set terminal->deleted and let
22329 delete_terminal delete the frames on the terminal.
22330 (x_delete_display): Doc update to reflect changes in
22331 delete_terminal.
22332 (x_display_info) <terminal>: Move member earlier in the struct.
22333 (deleting_tty): Remove old variable.
22334 (Fsuspend_tty): Call clear_tty_hooks.
22335 (Fresume_tty, init_tty): Call set_tty_hooks.
22336 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22337 errors on X frames.
22338 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22339 (handle_one_xevent): Initialize `f' to NULL.
22340 (x_delete_terminal, x_create_terminal): New functions.
22341 (XTset_terminal_modes, XTreset_terminal_modes)
22342 (XTread_socket, x_connection_closed, x_term_init)
22343 (x_term_init, x_delete_display): Add terminal parameter.
22344 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22345 X connections.
22346
22347 * frame.c: Include termchar.h.
22348 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22349 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22350 (Qdisplay_environment_variable): New vars.
22351 (Fframep): Deal with output_initial.
22352 (Fframe-live-p): Doc fix.
22353 (Fwindow-system): New function.
22354 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22355 (make_terminal_frame): Don't create frames on a terminal that is
22356 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22357 (store_frame_param): Check for found_for_frame before calling XFRAME.
22358 (Fmake_terminal_frame): Handle NULL tty names correctly.
22359 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22360 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22361 frames to refer to a deleted frame in their 'environment parameter.
22362 (Fframe_with_environment): New function.
22363 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22364 (get_future_frame_param): New function.
22365 (Fmake_terminal_frame): Use it.
22366 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22367
22368 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22369 * sysdep.c (reset_sys_modes): Update for renames.
22370
22371 * keyboard.c (tty_read_avail_input): New function.
22372 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22373 (syms_of_keyboard): Defsubr them.
22374 (Fset_input_meta_mode, Fset_quit_char): New functions.
22375 (Fset_input_mode): Split to above functions.
22376 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22377 parameter. Use it in call to `read_char'.
22378 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22379 Set wrong_kboard_jmpbuf correctly in recursive calls.
22380 Use current_kboard to access Vkeyboard_translate_table.
22381 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22382 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22383 Update longjmp invocations. Remember the original current_kboard,
22384 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22385 changes it. Comment out unnecessary calls to
22386 `record_single_kboard_state' and `any_kboard_state'.
22387 Update recursive calls.
22388 (wrong_kboard_jmpbuf): Remove global variable.
22389 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22390 Handle deleted interrupted_kboards correctly; that is a legal
22391 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22392 and read_char calls. Abort if interrupted_kboard died in read_char.
22393 (any_kboard_state, single_kboard_state)
22394 (push_frame_kboard): Remove function.
22395 (pop_kboard): Switch out of single_kboard mode if the kboard has
22396 been deleted. Remove unused variable. Help debugging by not
22397 changing current_kboard unnecessarily. Set current_kboard to the
22398 kboard of the selected frame when the stored kboard object has
22399 been deleted before pop_kboard.
22400 (temporarily_switch_to_single_kboard): Change first parameter to a
22401 frame pointer. Throw an error when caller wants to change kboards
22402 while in single_kboard mode. Don't push_kboard if we weren't in
22403 single kboard state. Don't pop_kboard if we popped into any
22404 kboard state.
22405 (restore_kboard_configuration): Abort if pop_kboard changed the
22406 kboard in single_kboard mode. Call pop_kboard only after setting
22407 up single_kboard mode.
22408 (Frecursive_edit): Switch to single_kboard mode only in nested
22409 command loops.
22410 (cmd_error, command_loop, command_loop_1, timer_check):
22411 Comment out unnecessary call to `any_kboard_state' and
22412 `record_single_kboard_state'.
22413 (delete_kboard): Exit single_kboard mode if we have just deleted
22414 that kboard. Use FRAME_KBOARD.
22415 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22416 `fatal_error_signal'.
22417 (record_single_kboard_state): Don't push_kboard if we weren't in
22418 single kboard state. Don't pop_kboard if we popped into any
22419 kboard state.
22420 (push_frame_kboard): Rename to push_kboard.
22421 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22422 (read_avail_input): Read input from all terminals.
22423 (mark_kboards): Also mark Vkeyboard_translate_table.
22424 (kbd_buffer_store_event_hold): Simplify condition.
22425 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22426 (Vkeyboard_translate_table): Move to struct kboard.
22427 (init_kboard): Initialize Vkeyboard_translate_table.
22428 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22429 Vkeyboard_translate_table. Update doc strings. Update docs of
22430 local-function-key-map and function-key-map.
22431
22432 * terminal.c: New file.
22433
22434 * term.c: Include errno.h.
22435 (Vring_bell_function, device_list, initial_device)
22436 (next_device_id, ring_bell, update_begin, update_end)
22437 (set_terminal_window, cursor_to, raw_cursor_to)
22438 (clear_to_end, clear_frame, clear_end_of_line)
22439 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22440 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22441 (syms_of_term): Move their initialization to terminal.c.
22442 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22443 (Ftty_display_color_cells)
22444 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22445 (clear_tty_hooks, set_tty_hooks)
22446 (init_tty, maybe_fatal): New functions.
22447 (Ftty_type): Return nil if terminal is not on a tty instead of
22448 throwing an error. Doc update.
22449 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22450 Doc update. Initialize new subrs and variables.
22451 (delete_tty): Use terminal->deleted.
22452 (tty_set_terminal_modes): Rename from set_terminal_modes.
22453 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22454 (set_scroll_region): Rename to `tty_set_scroll_region'.
22455 (turn_on_insert): Rename to `tty_turn_on_insert'.
22456 (turn_off_insert): Rename to `tty_turn_off_insert'.
22457 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22458 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22459 (toggle_highligh): Rename to `tty_toggle_highlight'.
22460 (background_highlight): Rename to `tty_background_highlight'.
22461 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22462 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22463 (tty_set_scroll_region, tty_background_highlight)
22464 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22465 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22466 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22467 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22468 Add static modifier.
22469 (tty_reset_terminal_modes, tty_set_terminal_window)
22470 (tty_set_scroll_region, tty_background_highlight)
22471 (tty_highlight_if_desired, tty_cursor_to)
22472 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22473 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22474 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22475 renames.
22476
224772007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22478
22479 * keyboard.c: Qrtl is new.
22480 (parse_tool_bar_item): Handle :rtl keyword.
22481 (syms_of_keyboard): Intern :rtl keyword.
22482
22483 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22484
22485 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22486 so no Lisp code is executed.
22487 (file_for_image, find_rtl_image): New functions.
22488 (xg_get_image_for_pixmap): Use file_for_image.
22489 (update_frame_tool_bar): If direction is RTL, use RTL image if
22490 defined. Use Gtk stock images if defined.
22491
224922007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22493
22494 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22495 for nonexistent or zero-width glyph in composition glyph.
22496
224972007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22498
22499 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22500
22501 * xdisp.c (Finvisible_p): New function.
22502 (syms_of_xdisp): defsubr it.
22503
225042007-08-24 Juanma Barranquero <lekktu@gmail.com>
22505
22506 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22507 Doc fixes.
22508
225092007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22510
22511 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22512
225132007-08-24 Martin Rudalics <rudalics@gmx.at>
22514
22515 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22516 whether decoding has modified buffer contents.
22517
225182007-08-24 Jason Rumney <jasonr@gnu.org>
22519
22520 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22521 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22522 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22523 (init_svg_functions) [HAVE_NTGUI]: New function.
22524 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22525 (svg_load_image): Use them.
22526 (svg_load_image) [HAVE_NTGUI]: Implement background.
22527
225282007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22529
22530 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22531 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22532 (LIBX): Remove @RSVG_LIBS@.
22533 (LIBES): Add $(RSVG_LIBS).
22534
22535 * image.c (svg_load_image): Blend with specified background if exists.
22536 Use IMAGE_BACKGROUND. Add Mac OS Support.
22537
22538 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22539 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22540 Remove macros.
22541 [MAC_OSX] (socket_callback): Do nothing.
22542 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22543 ReceiveNextEvent.
22544 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22545 socket_callback.
22546 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22547
225482007-08-22 Glenn Morris <rgm@gnu.org>
22549
22550 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22551
225522007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22553
22554 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22555
22556 * image.c: Add support for SVG images. Some additional comments
22557 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22558 (svg_image_p): New function to test for SVG image.
22559 (svg_load): New function to load SVG image.
22560 (svg_load_image): New function, helper for svg_load.
22561 (Qsvg): New Lisp_object.
22562 (svg_keyword_index): New enum.
22563 (svg_format): New static `image_keyword' struct.
22564 (svg_type): New static `image_type' struct.
22565 (librsvg/rsvg.h): Include it.
22566
225672007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22568
22569 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22570
225712007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22572
22573 * lread.c (Qold_style_backquotes): New var.
22574 (syms_of_lread): Init and staticpro it.
22575 (load_warn_old_style_backquotes): New fun.
22576 (Fload): Use them to warn about old style backquotes.
22577 (end_of_file_error, Fload): Remove unused vars.
22578
22579 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22580
22581 * lread.c (Vold_style_backquotes): New var.
22582 (syms_of_lread): Init and export it to Elisp.
22583 (read1): Set it when we find an old-style (back)quote.
22584
225852007-08-22 Jason Rumney <jasonr@gnu.org>
22586
22587 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22588
225892007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22590
22591 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22592
225932007-08-19 Richard Stallman <rms@gnu.org>
22594
22595 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22596
225972007-08-19 Andreas Schwab <schwab@suse.de>
22598
22599 * alloc.c (pure): Round PURESIZE up.
22600
226012007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22602
22603 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22604 active frame.
22605
226062007-08-16 Richard Stallman <rms@gnu.org>
22607
22608 * eval.c (Fcommandp): Add parens to clarify.
22609
22610 * minibuf.c (Fall_completions): Use enum for type of table.
22611
22612 * emacs.c (USAGE2): Improve text.
22613
226142007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22615
22616 * term.c (tty_default_color_capabilities): Declare static
22617 variables in file scope, to avoid HPUX compiler problem.
22618
226192007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22620
22621 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22622 to gtk_toolbar_insert.
22623
226242007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22625
22626 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22627
22628 * insdel.c (reset_var_on_error): New fun.
22629 (signal_before_change, signal_after_change):
22630 Use it to reset (after|before)-change-functions to nil in case of error.
22631 Bind inhibit-modification-hooks to t.
22632 Don't bind (after|before)-change-functions to nil while they run.
22633
226342007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22635
22636 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22637 filling pixmap with stippled background.
22638
226392007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22640
22641 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22642 Don't use invisible frame as parent window for repositioning.
22643
226442007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22645
22646 * print.c (new_backquote_output): Rename from old_backquote_output.
22647 (print): Inverse its logic (according to its name) so as to match the
22648 behavior of new_backquote_flag in lread.c.
22649
226502007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22651
22652 * gmalloc.c (posix_memalign): New function.
22653
22654 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22655 ActivateControl/DeactivateControl here.
22656 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22657 frame-notice-user-settings is non-nil.
22658 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22659 for kEventParamFMFontStyle.
22660 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22661 mac_pass_command_to_system and mac_pass_control_to_system here.
22662 (XTread_socket): Call ActivateControl/DeactivateControl here.
22663 (XTread_socket) [TARGET_API_MAC_CARBON]:
22664 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22665 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22666 for window repositioning.
22667
226682007-08-08 Glenn Morris <rgm@gnu.org>
22669
22670 * Replace `iff' in doc-strings and comments.
22671
226722007-08-07 Chong Yidong <cyd@stupidchicken.com>
22673
22674 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22675
226762007-08-07 Martin Rudalics <rudalics@gmx.at>
22677
22678 * fileio.c (Finsert_file_contents): Run format-decode and
22679 after_insert_file_functions on entire buffer when REPLACE is
22680 non-nil and inhibit modification_hooks and point_motion_hooks.
22681 For consistency, run after_insert_file_functions iff something
22682 got inserted. Move signal_after_change and update_compositions
22683 after code running after_insert_file_functions. Make sure that
22684 undo_list doesn't record intermediate steps of the decoding process.
22685
226862007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22687
22688 * emacs.c (main)
22689 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22690 Call malloc_enable_thread on interactive startup.
22691
22692 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22693 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22694 [USE_PTHREAD]: Conditionalize with it.
22695 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22696 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22697 New functions.
22698
226992007-08-06 Chong Yidong <cyd@stupidchicken.com>
22700
22701 * xdisp.c (redisplay_window): When restoring original buffer
22702 position, make sure it is still valid.
22703
22704 * image.c (png_load): Ignore png-supplied background color.
22705
227062007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22707
22708 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22709 Use kCFAbsoluteTimeIntervalSince1970.
22710
22711 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22712 New variable.
22713 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22714 event loop should be quit.
22715 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22716 Quit dialog event loop if quit_dialog_event_loop is set.
22717
22718 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22719 (Selection): New typedef. Use instead of ScrapRef.
22720 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22721 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22722 (mac_clear_selection): Rename from clear_scrap.
22723 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22724 scrap_has_target_type. All uses changed.
22725 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22726 (mac_selection_has_target_p): New functions.
22727 (mac_put_selection_value): Rename from put_scrap_string.
22728 (mac_get_selection_value): Rename from get_scrap_string.
22729 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22730 (put_scrap_private_timestamp, scrap_has_target_type)
22731 (get_scrap_private_timestamp): Remove functions.
22732 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22733 (x_own_selection, x_get_local_selection):
22734 Use mac_valid_selection_value_p.
22735 (x_own_selection): Don't use put_scrap_private_timestamp.
22736 Record OWNERSHIP-INFO into Vselection_alist instead.
22737 (x_get_local_selection): Don't check type if request is local.
22738 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22739 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22740
227412007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22742
22743 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22744 add comment explaining why.
22745
227462007-08-03 Richard Stallman <rms@gnu.org>
22747
22748 * fileio.c (Fvisited_file_modtime): Use make_time.
22749
227502007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22751
22752 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22753 build.
22754
227552007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22756
22757 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22758
227592007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22760
22761 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22762
227632007-07-30 Richard Stallman <rms@gnu.org>
22764
22765 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22766
227672007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22768
22769 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22770
227712007-07-28 Nick Roberts <nickrob@snap.net.nz>
22772
22773 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22774 remote default-directory.
22775
22776 * buffer.c (mode-line-format): Update doc string.
22777
227782007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22779
22780 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22781 scroll bar gap.
22782 (x_scroll_bar_create): Set bar->fringe_extended_p.
22783 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22784 on frame edge. Check fringe background extension. Don't clear
22785 extended fringe background area.
22786
22787 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22788 (w32_fill_area): Enclose multiple statements with do ... while (0).
22789
22790 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22791 Extend fringe background to scroll bar gap.
22792 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22793 Set bar->fringe_extended_p.
22794 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22795 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22796 background extension. Don't clear extended fringe background area.
22797
22798 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22799 New member fringe_extended_p.
22800
228012007-07-25 Glenn Morris <rgm@gnu.org>
22802
22803 * Relicense all FSF files to GPLv3 or later.
22804
22805 * COPYING: Switch to GPLv3.
22806
228072007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22808
22809 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22810
22811 * data.c (Finteractive_form): Check for the presence of an
22812 `interactive-form' symbol property more thoroughly.
22813
22814 * data.c (Finteractive_form): Use an `interactive-form' property if
22815 present, analogous to the function-documentation property.
22816
228172007-07-24 Jason Rumney <jasonr@gnu.org>
22818
22819 * w32fns.c (x_real_positions): Get real position from OS instead of
22820 calculating it.
22821
228222007-07-23 Jason Rumney <jasonr@gnu.org>
22823
22824 * filelock.c (current_lock_owner): Allow for @ sign in username.
22825
228262007-07-22 Nick Roberts <nickrob@snap.net.nz>
22827
22828 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22829 remote default-directory.
22830
22831 * buffer.c (mode-line-format): Describe above case in doc string.
22832
228332007-07-20 Eli Zaretskii <eliz@gnu.org>
22834
22835 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22836 Define if not defined.
22837
228382007-07-18 Jason Rumney <jasonr@gnu.org>
22839
22840 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22841
228422007-07-18 Richard Stallman <rms@gnu.org>
22843
22844 * data.c (Fsetq_default): Doc fix.
22845
22846 * eval.c (Fsetq): Doc fix.
22847
228482007-07-18 Juanma Barranquero <lekktu@gmail.com>
22849
22850 * coding.c (Ffind_operation_coding_system):
22851 * eval.c (For, Fand): Doc fixes.
22852 Reported by Johan Bockgård.
22853
228542007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22855
22856 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22857
22858 * xterm.h: Declare x_ewmh_activate_frame.
22859
22860 * xterm.c (x_ewmh_activate_frame): New function.
22861 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22862
228632007-07-17 Martin Rudalics <rudalics@gmx.at>
22864
22865 * window.c (Fdisplay_buffer): If largest or LRU window is the
22866 only window, split it even if it is not eligible for splitting.
22867 This restores the original behavior broken by the 2007-07-15
22868 change.
22869
228702007-07-17 Glenn Morris <rgm@gnu.org>
22871
22872 * abbrev.c (abbrev_check_chars): New function.
22873 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22874 Call abbrev_check_chars to check abbrev characters are word
22875 constituents. Doc fix.
22876
228772007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22878
22879 * process.c (Fstart_process, Fmake_network_process)
22880 (read_process_output): Fix up last changes.
22881
228822007-07-16 Eli Zaretskii <eliz@gnu.org>
22883
22884 * makefile.w32-in (clean): Don't delete *~.
22885
228862007-07-16 Andreas Schwab <schwab@suse.de>
22887
22888 * window.c (Fdisplay_buffer): Use NILP.
22889 (Fset_window_scroll_bars): Likewise.
22890
228912007-07-15 Martin Rudalics <rudalics@gmx.at>
22892
22893 * window.c (window_min_size_2): New function.
22894 (window_min_size_1, size_window, Fdisplay_buffer)
22895 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22896 windows without mode- or header-lines when window-min-height is
22897 too small.
22898 (size_window): Reset nodelete_p after testing it, following an
22899 earlier note by Kim F. Storm.
22900 (display_buffer): Do not set split_height_threshold to twice the
22901 value of window_min_height to avoid changing the value of a
22902 customizable variable. Rather explicitly check whether the
22903 height of the window that shall be splitted is at least as large
22904 as split_height_threshold.
22905 (Fwindow_full_width_p): New defun.
22906 (syms_of_window): Defsubr it.
22907
22908 * window.h: Add EXFUN for Fwindow_full_width_p.
22909
229102007-07-14 Jason Rumney <jasonr@gnu.org>
22911
22912 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22913
229142007-07-14 Richard Stallman <rms@gnu.org>
22915
22916 * eval.c (maybe_call_debugger): New function.
22917 (find_handler_clause): Use maybe_call_debugger.
22918 Call it when the handler says `debug'.
22919 Eliminate DEBUGGER_VALUE_PTR.
22920 (Fsignal): Eliminate debugger_value.
22921 (Qdebug): New variable.
22922 (syms_of_eval): Initialize it.
22923
229242007-07-14 Juanma Barranquero <lekktu@gmail.com>
22925
22926 * eval.c (Fprogn):
22927 * keyboard.c (Ftrack_mouse):
22928 * print.c (Fwith_output_to_temp_buffer):
22929 * window.c (Fsave_window_excursion): Doc fix.
22930
229312007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22932
22933 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22934
229352007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22936
22937 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22938 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22939 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22940 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22941 Remove unused encoding_carryover.
22942 * process.c: Adjust all functions accordingly.
22943
229442007-07-12 Richard Stallman <rms@gnu.org>
22945
22946 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22947
229482007-07-11 Jason Rumney <jasonr@gnu.org>
22949
22950 * makefile.w32-in (LIBS): Include OLE32.
22951
22952 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22953 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22954
229552007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22956
22957 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22958 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22959 from a Lisp_Object into a bare pointer.
22960 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22961 Adjust the code correspondingly.
22962
22963 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22964
22965 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22966 (term_show_mouse_face): Remove unused var `j'.
22967 (handle_one_term_event): Remove unused vars `i' and `j'.
22968 Don't cast return value of ttyname since it's not necessary.
22969
229702007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22971
22972 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22973 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22974
22975 * fns.c (map_char_table): Use an array of int for `indices' rather than
22976 an array of Lisp_Objects (which are only ever integers anyway).
22977 (Fmap_char_table): Update caller.
22978 * lisp.h: Update prototype.
22979 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22980 * fontset.c (Ffontset_info):
22981 * casetab.c (set_case_table): Update callers.
22982
22983 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22984
22985 * keymap.c (struct accessible_keymaps_data)
22986 (struct where_is_internal_data): New structures.
22987 (accessible_keymaps_1, where_is_internal_1): Use them to change
22988 interface to adhere to the one used by map_keymap.
22989 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22990 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22991
22992 * keymap.h (map_keymap_function_t): More informative prototype.
22993
229942007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22995
22996 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22997 (looking_at_1): Don't change search_regs and last_thing_searched
22998 if `inhibit-changing-match-data' is non-nil.
22999 (string_match_1, search_buffer, set_search_regs): Likewise.
23000 (syms_of_search): Add Lisp level definition for
23001 `inhibit-changing-match-data' and set it to nil.
23002 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23003 start and end of the match, instead of using values in search_regs.
23004
230052007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23006
23007 * minibuf.c (Fcompleting_read): New value `confirm-only'
23008 for `require-match'.
23009
230102007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23011
23012 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23013 part of the 2007-06-27 change to syms_of_fileio.
23014
230152007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23016
23017 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23018 Check WINDOWP before using XWINDOW. Consolidate return statements.
23019
230202007-06-27 Richard Stallman <rms@gnu.org>
23021
23022 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23023
230242007-06-27 Juanma Barranquero <lekktu@gmail.com>
23025
23026 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23027
230282007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23029
23030 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23031 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23032 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23033 (_free_internal, memalign): Use them.
23034 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23035 Initialize to PTHREAD_MUTEX_INITIALIZER.
23036 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23037 (morecore_nolock): Rename from morecore. All uses changed.
23038 Use only nolock versions of internal allocation functions.
23039 (_malloc_internal_nolock, _realloc_internal_nolock)
23040 (_free_internal_nolock): New functions created from
23041 _malloc_internal, _realloc_internal, and _free_internal.
23042 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23043 Copy hook value to automatic variable before its use.
23044 (memalign): Copy hook value to automatic variable before its use.
23045
230462007-06-26 Kenichi Handa <handa@m17n.org>
23047
23048 * coding.c (Ffind_operation_coding_system): Docstring improved.
23049 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23050
230512007-06-25 David Kastrup <dak@gnu.org>
23052
23053 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23054 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23055 cater for additional parameter.
23056
23057 * keymap.h: Adjust number of parameters to `current-active-maps'.
23058
23059 * doc.c (Fsubstitute_command_keys): Adjust call of
23060 `current-active-maps'.
23061
230622007-06-25 David Kastrup <dak@gnu.org>
23063
23064 * callint.c (Fcall_interactively): Make the parsing of interactive
23065 specs somewhat more readable.
23066
230672007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23068
23069 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23070 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23071 if extended background has already been filled.
23072
230732007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23074
23075 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23076 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23077
23078 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23079 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23080 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23081 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23082 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23083 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23084 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23085 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23086 Run timers during dialog popup.
23087 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23088
230892007-06-21 Jason Rumney <jasonr@gnu.org>
23090
23091 * image.c (convert_mono_to_color_image): Swap fore and background.
23092
230932007-06-20 Jason Rumney <jasonr@gnu.org>
23094
23095 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23096 (w32_free_bdf_font): Unmap memory not handle.
23097
230982007-06-20 Sam Steingold <sds@gnu.org>
23099
23100 * gmalloc.c (__morecore): Fix the declaration to comply with the
23101 definition.
23102
231032007-06-20 Juanma Barranquero <lekktu@gmail.com>
23104
23105 * w32term.c (w32_delete_display): Remove leftover declaration.
23106 (w32_define_cursor, w32_initialize): Make static.
23107
23108 * w32.c (_wsa_errlist): Fix typo in error message.
23109 (init_environment): Ignore any environment variable from the
23110 registry having a null value.
23111
231122007-06-20 Glenn Morris <rgm@gnu.org>
23113
23114 * Makefile.in (LIBGIF): Default to -lgif.
23115
231162007-06-17 Jason Rumney <jasonr@gnu.org>
23117
23118 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23119 unicode strings.
23120
231212007-06-16 Juanma Barranquero <lekktu@gmail.com>
23122
23123 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23124 Fix typo in docstring.
23125
231262007-06-16 Eli Zaretskii <eliz@gnu.org>
23127
23128 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23129 and their keybindings.
23130
231312007-06-15 Chong Yidong <cyd@stupidchicken.com>
23132
23133 * composite.c (update_compositions): Fix last fix.
23134
231352007-06-14 Jason Rumney <jasonr@gnu.org>
23136
23137 * w32.c (get_process_times_fn): New function pointer.
23138 (globals_of_w32): Intialize it if present in kernel32.dll.
23139 (w32_get_internal_run_time): New function.
23140
23141 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23142
231432007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23144
23145 * composite.c (update_compositions): Check the validness of
23146 compositions.
23147
231482007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23149
23150 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23151 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23152
23153 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23154 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23155
23156 * macgui.h (USE_MAC_TOOLBAR): New define.
23157
23158 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23159 Return immediately unless popup is activated.
23160
23161 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23162 background to scroll bar gap.
23163 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23164 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23165 scroll bars on frame edge. Check fringe background extension.
23166 Don't clear extended fringe background area.
23167 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23168 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23169 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23170 [USE_MAC_TOOLBAR]: New macros.
23171 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23172 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23173 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23174 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23175 [USE_MAC_TOOLBAR]: New functions.
23176 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23177 manually if previous repositioning has failed.
23178 (mac_handle_keyboard_event): Use precomputed event kind.
23179 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23180 as tool bar item click. Handle mouse movement over tool bar items.
23181
23182 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23183 toolbar_win_gravity.
23184 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23185 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23186 Add externs.
23187
23188 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23189 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23190
231912007-06-14 Chong Yidong <cyd@stupidchicken.com>
23192
23193 * image.c (search_image_cache): Remove unused variable.
23194
231952007-06-13 Chong Yidong <cyd@stupidchicken.com>
23196
23197 * xfns.c, xmenu.c: Link to xaw3d if available.
23198
231992007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23200
23201 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23202 frame_foreground and frame_background.
23203
23204 * image.c (lookup_image): Save frame foreground and background colors.
23205 (search_image_cache): Check if saved and current frame colors match.
23206
232072007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23208
23209 * regex.c (regex_compile): Remove the `regnum' counter.
23210 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23211
232122007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23213
23214 * term.c: Include intervals.h to declare Fget_text_property.
23215
232162007-06-10 Jason Rumney <jasonr@gnu.org>
23217
23218 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23219
232202007-06-08 Juanma Barranquero <lekktu@gmail.com>
23221
23222 * callint.c (Fcall_interactively):
23223 * editfns.c (Fdelete_and_extract_region):
23224 * fileio.c (Fread_file_name):
23225 * fns.c (Fmapconcat):
23226 * keyboard.c (cmd_error_internal):
23227 * keymap.c (Fkey_description):
23228 * lread.c (openp):
23229 * minibuf.c (read_minibuf):
23230 * search.c (wordify):
23231 * sunfns.c (sel_read):
23232 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23233 * xfns.c (x_default_scroll_bar_color_parameter):
23234 * xmenu.c (menu_help_callback):
23235 * xselect.c (Fx_get_atom_name):
23236 * xterm.c (x_term_init): Use empty_unibyte_string.
23237
232382007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23239
23240 * alloc.c (init_strings): Initialize canonical empty strings.
23241 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23242 canonical empty string when the requested size is 0.
23243
23244 * emacs.c (empty_unibyte_string): Rename from empty_string.
23245 (empty_multibyte_string): New canonical empty string.
23246 (syms_of_emacs): Don't initialize empty_string.
23247
23248 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23249 string, if appropriate.
23250 (empty_unibyte_string, empty_multibyte_string): New externs.
23251 (empty_string): Remove extern.
23252
23253 * lread.c (syms_of_lread): Use empty_unibyte_string.
23254
232552007-06-07 Jason Rumney <jasonr@gnu.org>
23256
23257 * s/ms-w32.h: Don't define HAVE_TZNAME.
23258
23259 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23260
232612007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23262
23263 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23264
23265 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23266 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23267
23268 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23269 Don't call next handler.
23270 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23271 Remove argument. Install handler to application.
23272 (set_frame_menubar): Don't change deep_p.
23273 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23274 FRAME_OUTER_TO_INNER_DIFF_Y.
23275 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23276 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23277 [HAVE_DIALOGS]: New macros.
23278 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23279 Use them.
23280 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23281
23282 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23283 init_service_handler. All callers changed. Return OSStatus value.
23284
23285 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23286 All callers changed so as not to call SetPortWindowPort.
23287 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23288 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23289 mac_draw_string_common.
23290 (mac_draw_image_string_qd): Likewise.
23291 (mac_draw_string_common): Use them. Add INLINE.
23292 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23293 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23294 GetGlobalMouse.
23295 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23296 and FRAME_OUTER_TO_INNER_DIFF_Y.
23297 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23298 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23299 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23300 repositioning window to mac_handle_window_event.
23301 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23302 saving window location to mac_handle_window_event
23303 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23304 (install_menu_target_item_handler): Remove argument in extern.
23305 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23306 Also accept command events.
23307 (do_keystroke): New function created from XTread_socket.
23308 (init_command_handler): Remove functions.
23309 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23310 and save window location by kEventWindowShowing and kEventWindowHiding
23311 handlers here. Don't call next handler for window state change and
23312 focus events.
23313 (mac_handle_application_event, mac_handle_keyboard_event)
23314 [TARGET_API_MAC_CARBON]: New functions.
23315 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23316 kEventWindowShowing and kEventWindowHiding events. Move installation
23317 of mouse, font, text input and menu target item handlers to
23318 install_application_handler.
23319 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23320 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23321 New function.
23322 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23323 Register it.
23324 (XTread_socket) [TARGET_API_MAC_CARBON]:
23325 Consolidate SendEventToEventTarget calls.
23326 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23327 Move application activation handler to mac_handle_application_event.
23328 Move keyboard handler to mac_handle_keyboard_event.
23329 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23330 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23331 init_command_handler. Call install_application_handler.
23332
23333 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23334 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23335
233362007-06-07 Glenn Morris <rgm@gnu.org>
23337
23338 * emacs.c (main): Use `emacs-copyright' in --version output.
23339
233402007-06-06 Chong Yidong <cyd@stupidchicken.com>
23341
23342 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23343
233442007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23345
23346 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23347
23348 * macgui.h: Replace WindowPtr with WindowRef.
23349
23350 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23351 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23352 Replace ControlHandle with ControlRef.
23353 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23354
23355 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23356 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23357 Replace ControlHandle with ControlRef.
23358 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23359 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23360
23361 * macterm.h (struct scroll_bar): Rename member control_handle_low
23362 and control_handle_high to control_ref_low and control_ref_high.
23363 All uses changed.
23364 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23365 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23366 respectively. All uses changed.
23367 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23368 (install_window_handler, remove_window_handler): Replace WindowPtr
23369 with WindowRef in externs.
23370
233712007-06-05 Juanma Barranquero <lekktu@gmail.com>
23372
23373 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23374
233752007-06-03 Nick Roberts <nickrob@snap.net.nz>
23376
23377 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23378
23379 * frame.c (Fmouse_position, Fmouse_pixel_position):
23380 Condition on HAVE_GPM too.
23381
23382 * term.c (term_mouse_highlight): Remove unused variables.
23383 (Fterm_open_connection): Set gpm_zerobased to 1.
23384 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23385 Use zero based co-ordinates.
23386 (handle_one_term_event): Report a drag as mouse movement too.
23387
23388 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23389
233902007-06-03 Chong Yidong <cyd@stupidchicken.com>
23391
23392 * image.c (search_image_cache): New function. Require background
23393 color match if background color is unspecified in the image spec.
23394 (uncache_image, lookup_image): Use it.
23395
233962007-06-01 Juanma Barranquero <lekktu@gmail.com>
23397
23398 * window.c (Fshrink_window): Reflow docstring.
23399
234002007-06-02 Chong Yidong <cyd@stupidchicken.com>
23401
23402 * Version 22.1 released.
23403
234042007-06-01 Richard Stallman <rms@gnu.org>
23405
23406 * xfns.c (x_encode_text): Add GCPRO.
23407
234082007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23409
23410 * xfns.c (x_set_name_internal): Save encoded name before
23411 x_encode_text in case string data is relocated.
23412
234132007-05-31 Richard Stallman <rms@gnu.org>
23414
23415 * buffer.c (syms_of_buffer): Doc fix.
23416
234172007-05-30 Nick Roberts <nickrob@snap.net.nz>
23418
23419 * sysdep.c (init_sys_modes): Add rather than replace with
23420 O_NONBLOCK.
23421
23422 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23423 term_mouse_moveto.
23424
23425 * termhooks.h (term_mouse_moveto): New extern.
23426
23427 * term.c (mouse_face_window): Rename...
23428 (Qmouse_face_window): ...to this.
23429 (term_show_mouse_face, term_clear_mouse_face)
23430 (term_mouse_highlight): Use Qmouse_face_window.
23431 (term_mouse_moveto): New function.
23432 (term_mouse_position): Make it work.
23433 (syms_of_term): Uncomment assignment to mouse_position_hook.
23434 Staticpro Qmouse_face_window.
23435
234362007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23437
23438 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23439 around current_column call.
23440
234412007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23442
23443 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23444 * xdisp.c (next_element_from_buffer):
23445 * window.c (delete_window):
23446 * term.c (term_mouse_highlight):
23447 * msdos.c (getdefdir):
23448 * macterm.c (mac_create_bitmap_from_bitmap_data)
23449 (init_font_name_table):
23450 * fns.c (Fsxhash):
23451 * data.c (Fmake_local_variable):
23452 * ccl.c (ccl_driver): Likewise.
23453
234542007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23455
23456 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23457 Call mac_wakeup_from_rne on window size change.
23458
234592007-05-25 Chong Yidong <cyd@stupidchicken.com>
23460
23461 * image.c (uncache_image): Fix typo.
23462
234632007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23464
23465 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23466
234672007-05-22 Richard Stallman <rms@gnu.org>
23468
23469 * xterm.c (x_connection_closed): Remove NO_RETURN.
23470
234712007-05-22 Martin Rudalics <rudalics@gmx.at>
23472
23473 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23474
234752007-05-21 Chong Yidong <cyd@stupidchicken.com>
23476
23477 * image.c (uncache_image): New function.
23478 (Fimage_refresh): New function.
23479
234802007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23481
23482 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23483
234842007-05-20 Nick Roberts <nickrob@snap.net.nz>
23485
23486 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23487 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23488
234892007-05-20 Nick Roberts <nickrob@snap.net.nz>
23490
23491 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23492 conditional on [HAVE_GPM_H].
23493
234942007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23495
23496 * syntax.c (skip_chars): Update syntax-table only after we checked that
23497 the new location is valid.
23498
234992007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23500
23501 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23502 mac_get_window_bounds.
23503
235042007-05-20 Nick Roberts <nickrob@snap.net.nz>
23505
23506 * Makefile.in (LIBGPM): Allow it to be set from configure.
23507 If set then link Emacs with it.
23508
23509 * config.in: Regenerate.
23510
23511 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23512 New externs.
23513
23514 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23515 Include gpm.h.
23516 (handle_one_term_event, term_gpm): New externs.
23517
23518 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23519 and allow it to be interrupted by SIGIO.
23520
23521 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23522 (wait_reading_process_output): Wait on gpm_fd too.
23523 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23524 (add_gpm_wait_descriptor_called_flag): New variable.
23525 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23526
23527 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23528 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23529 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23530 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23531 (make_lispy_event): Add case GPM_CLICK_EVENT.
23532 (read_avail_input): Handle mouse input.
23533
23534 * term.c (write_glyphs_with_face): New function.
23535 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23536 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23537 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23538 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23539 (last_mouse_x, last_mouse_y): New variables.
23540 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23541 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23542 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23543 (Fterm_close_connection): New functions.
23544 (term_init): Initialise mouse_face_window.
23545
235462007-05-19 Chong Yidong <cyd@stupidchicken.com>
23547
23548 * xdisp.c (redisplay_window): If first window line is a
23549 continuation line, recompute the new window start instead of
23550 recentering.
23551
235522007-05-18 Glenn Morris <rgm@gnu.org>
23553
23554 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23555 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23556
235572007-05-17 Glenn Morris <rgm@gnu.org>
23558
23559 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23560
235612007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23562
23563 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23564 dead key repeat and up events.
23565
235662007-05-14 Chong Yidong <cyd@stupidchicken.com>
23567
23568 * image.c (pbm_load): Check image size for monochrome pbm.
23569
235702007-05-13 Chong Yidong <cyd@stupidchicken.com>
23571
23572 * xterm.c (XTread_socket): Revert last change.
23573
235742007-05-12 Chong Yidong <cyd@stupidchicken.com>
23575
23576 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23577
23578 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23579
235802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23581
23582 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23583 mixup (YAILOM).
23584
235852007-05-07 Andreas Schwab <schwab@suse.de>
23586
23587 * keymap.c (Flookup_key): Fix typo in last change.
23588
235892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23590
23591 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23592 mapping for unibyte strings.
23593
235942007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23595
23596 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23597 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23598
235992007-04-29 Richard Stallman <rms@gnu.org>
23600
23601 * insdel.c (replace_range): For undo, record insertion first.
23602
236032007-04-29 Andreas Schwab <schwab@suse.de>
23604
23605 * lisp.h (VECSIZE): Use OFFSETOF.
23606
236072007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23608
23609 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23610 disabled lines.
23611
236122007-04-28 Richard Stallman <rms@gnu.org>
23613
23614 * lread.c (read_escape): In a string, \s is always space.
23615
236162007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23617
23618 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23619
23620 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23621 submenu for menu bar items.
23622
23623See ChangeLog.10 for earlier changes.
23624
23625;; Local Variables:
23626;; coding: utf-8
23627;; add-log-time-zone-rule: t
aac0c6e3
MR
23628;; End:
23629
e3eb1dae 23630 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23631
23632 This file is part of GNU Emacs.
23633
23634 GNU Emacs is free software: you can redistribute it and/or modify
23635 it under the terms of the GNU General Public License as published by
23636 the Free Software Foundation, either version 3 of the License, or
23637 (at your option) any later version.
23638
23639 GNU Emacs is distributed in the hope that it will be useful,
23640 but WITHOUT ANY WARRANTY; without even the implied warranty of
23641 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23642 GNU General Public License for more details.
23643
23644 You should have received a copy of the GNU General Public License
23645 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23646
23647;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40