calc-aent.el (math-read-token, math-find-user-tokens):
[bpt/emacs.git] / src / ChangeLog
CommitLineData
02be533b
GM
12010-05-15 Glenn Morris <rgm@gnu.org>
2
1a82cca9
GM
3 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4 (really-lwlib, really-oldXMenu): Always define.
5 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6
3df7b338
GM
7 * Makefile.in: Simplify cpp conditional.
8
2b5f541b
GM
9 * Makefile.in (${ns_appdir}): Simplify using umask.
10
02be533b
GM
11 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
12
4e2db1fe
SM
132010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
14
15 * eval.c (specbind): Remove left-over duplicate test.
16 Disallow let-binding frame-local vars. Add comment.
17
4b292a22
EZ
182010-05-14 Eli Zaretskii <eliz@gnu.org>
19
2fe72643
EZ
20 Make the cache of bidi iterator states dynamically allocated.
21 (bidi_cache_shrink): New function.
22 (bidi_init_it): Call it.
23 (bidi_cache_iterator_state): Enlarge the cache if needed.
24
4e2db1fe 25 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
26 bidi_get_next_char_visually. All callers changed.
27
82ebc97b
KH
282010-05-14 Kenichi Handa <handa@m17n.org>
29
30 * dispextern.h (struct composition_it): New member reversed_p.
31
32 * composite.c (composition_compute_stop_pos): Search backward if
33 ENDPOS < CHARPOS.
34 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
35 Set CMP_IT->reversed_p.
b4b6e17e 36 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 37
4e2db1fe
SM
38 * xdisp.c (set_iterator_to_next):
39 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
40 scanning backward. Call composition_compute_stop_pos if scan
41 direction is changed.
42 (next_element_from_buffer): Call composition_compute_stop_pos with
43 negative ENDPOS if we are scanning backward.
44 (next_element_from_composition): Pay attention to
45 IT->cmp_it.reversed_p.
46
0e5d7800
KH
472010-05-14 Kenichi Handa <handa@m17n.org>
48
49 * font.c (font_range): Return the range for the font found at
50 first.
51
cb027b32
GM
522010-05-14 Glenn Morris <rgm@gnu.org>
53
177b0288
GM
54 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
55
fbc00890
GM
56 * Makefile.in (mktime, X11, register): Move undefs to configure.
57
f14d1dfd
GM
58 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
59 (MSDOS_X_OBJ): New variable.
60 (MSDOS_SUPPORT_REAL): New constant.
61 (MSDOS_SUPPORT): Set as a variable, not with cpp.
62 (obj): Use MSDOS_X_OBJ.
63 (lisp): Use MSDOS_SUPPORT as a variable.
64
11842bd8
GM
65 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
66 (GPM_MOUSE_SUPPORT): Now it's a constant.
67 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
68 not cpp.
69
489d31a4 70 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 71 (ns_appresdir): Remove, unused.
e20f1f07 72
489d31a4
GM
73 * Makefile.in (SHELL): Move outside cpp section.
74
cb027b32
GM
75 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
76
5a903aa9
GM
772010-05-13 Glenn Morris <rgm@gnu.org>
78
3369c79f
GM
79 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
80 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
81
d5e982a6
GM
82 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
83 HAVE_WINDOW_SYSTEM must be too.
84
6192e163
GM
85 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
86 (lisp): Remove WINNT_SUPPORT.
87
472c5d6b
GM
88 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
89 Let configure set these variables (to empty) in this case as well.
90
0116466b
GM
91 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
92 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
93
5a903aa9
GM
94 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
95 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
96 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
97 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
98 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 99 the values output by configure.
5a903aa9
GM
100 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
101
1a0d7c06
GM
1022010-05-12 Glenn Morris <rgm@gnu.org>
103
b5457f14
GM
104 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
105 (LINKER_WAS_SPECIFIED): Remove.
106
1a0d7c06
GM
107 * Makefile.in (LIB_GCC): Set using configure, not cpp.
108 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
109 * m/arm.h (LIB_GCC) [GNU_LINUX]:
110 * s/cygwin.h (LIB_GCC):
111 * s/freebsd.h (LIB_GCC):
112 * s/gnu-linux.h (LIB_GCC):
113 * s/msdos.h (LIB_GCC):
114 * s/netbsd.h (LIB_GCC):
115 Move to configure.
116
3ffd4615 1172010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
118
119 * ftfont.c: Fix incorrect parentheses of #if condition for
120 definining M17N_FLT_USE_NEW_FEATURE.
121
acddf8ae
GM
1222010-05-11 Glenn Morris <rgm@gnu.org>
123
124 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
125 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
126
ae5e04fa
EZ
1272010-05-10 Eli Zaretskii <eliz@gnu.org>
128
129 * xdisp.c (init_iterator): Don't turn on bidi reordering in
130 unibyte buffers. See
131 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
132
7490175b
GM
1332010-05-10 Glenn Morris <rgm@gnu.org>
134
97efb629
GM
135 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
136 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
137 (LIBES): Use LIBS_SYSTEM as a variable.
138 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
139 * s/aix4-2.h (LIBS_SYSTEM):
140 * s/freebsd.h (LIBS_SYSTEM):
141 * s/hpux10-20.h (LIBS_SYSTEM):
142 * s/sol2-6.h (LIBS_SYSTEM):
143 * s/unixware.h (LIBS_SYSTEM):
144 Move to configure.
145
7490175b
GM
146 * s/aix4-2.h (MAIL_USE_LOCKF):
147 * s/bsd-common.h (MAIL_USE_FLOCK):
148 * s/darwin.h (MAIL_USE_FLOCK):
149 * s/gnu-linux.h (MAIL_USE_FLOCK):
150 * s/irix6-5.h (MAIL_USE_FLOCK):
151 * s/template.h (MAIL_USE_FLOCK):
152 Move to configure.
153
0235128c 1542010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
155
156 * Version 23.2 released.
157
0235128c 1582010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
159
160 * composite.c (autocmp_chars): Save point as marker before calling
161 auto-composition-function (Bug#5984).
162
163 * lisp.h (restore_point_unwind): Add prototype.
164
165 * fileio.c (restore_point_unwind): Remove static attribute.
166
0235128c 1672010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
168
169 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
170 new feature of libotf and m17n-flt.
0235128c
SM
171 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
172 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
173 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
174 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
175 that OUT is NULL. Use OTF_drive_gsub_with_log and
176 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
177 OTF_drive_gpos.
178 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
179 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
180 Setup mflt_enable_new_feature and mflt_try_otf.
181
4721152c
J
1822010-05-08 Jan Djärv <jan.h.d@swipnet.se>
183
184 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
185
186 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
187 box and toolbar (Bug #6139).
188 (xg_create_tool_bar): Remove comment (Bug #6139).
189 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
190 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
191
ee0a16cf
JB
1922010-05-08 Juanma Barranquero <lekktu@gmail.com>
193
194 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
195 Update dependencies.
196
96d79611
EZ
1972010-05-08 Eli Zaretskii <eliz@gnu.org>
198
199 * fringe.c (update_window_fringes): Set up truncation bitmaps for
200 R2L lines.
201
40c17879
GM
2022010-05-08 Glenn Morris <rgm@gnu.org>
203
7b42b29f
GM
204 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
205
40c17879
GM
206 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
207 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
208 (termcapobj): Replace with TERMCAP_OBJ.
209 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
210 (LIBES): Use LIBS_TERMCAP as a variable.
211
212 * s/freebsd.h (osreldate.h): No longer include, since this file
213 does not use __FreeBSD_version any more.
214
215 * s/aix4-2.h (TERMINFO):
216 * s/cygwin.h (TERMINFO):
217 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
218 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
219 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
220 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
221 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
222 * s/irix6-5.h (TERMINFO):
223 * s/netbsd.h (LIBS_TERMCAP):
224 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
225 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
226 * s/usg5-4.h (TERMINFO):
227 Move to configure.
228
94b612ad
SM
2292010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
230
231 * eval.c (unbind_to): Don't unbind a local binding into the global
232 binding when the local binding disappeared. Inversely, don't unbind
233 a global binding into a newly created local binding.
234 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
235 can specify the frame to use, when applicable. Adjust callers.
236
15e12598
VB
2372010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
238 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
241
f724825e
EZ
2422010-05-07 Eli Zaretskii <eliz@gnu.org>
243
5cba3209
EZ
244 * w32fns.c: Include w32.h.
245 (Fw32_shell_execute): Decode the error message before passing it
246 to `error'. (Bug#6126)
247
d16bdfc3
EZ
248 * msdos.c (dos_set_window_size):
249 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
250 instead of `XSYMBOL (foo)->value'.
251
59d93e87
EZ
2522010-05-07 Eli Zaretskii <eliz@gnu.org>
253
9fdec8bc
EZ
254 Fix the MS-DOS build, broken by autoconfiscation.
255
256 * Makefile.in: Don't use Make-style comments past the "start of
257 cpp stuff" line.
258 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
259
260 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
261 edited directly by msdos/sed1v2.inp).
f724825e 262
2f86b22b
GM
2632010-05-07 Glenn Morris <rgm@gnu.org>
264
265 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
266 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
267 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
268 move out of cpp section.
269 * s/freebsd.h (LD_SWITCH_SYSTEM):
270 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
271 * s/netbsd.h (LD_SWITCH_SYSTEM):
272 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
273
49ebbd65
DN
2742010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
275
276 Define LIB_STANDARD and START_FILES using autoconf.
277 * s/usg5-4.h (LIB_STANDARD):
278 * s/netbsd.h (START_FILES):
279 * s/irix6-5.h (LIB_STANDARD):
280 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
281 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
282 * s/freebsd.h (START_FILES):
283 * s/darwin.h (START_FILES):
284 * s/cygwin.h (START_FILES):
285 * s/aix4-2.h (LIB_STANDARD):
286 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
287 * Makefile.in (STARTFILES): Rename to START_FILES, define using
288 autoconf, not cpp.
289
d43c06d6
DN
2902010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
291
28823648
DN
292 Remove NEED_BSDTTY and NEED_UNISTD_H.
293 * s/hpux10-20.h (NEED_BSDTTY): Remove.
294 * s/aix4-2.h (NEED_UNISTD_H): Remove.
295 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
296 <sys/ptyio.h> and <unistd.h>.
297
aca00430
DN
298 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
299
d43c06d6
DN
300 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
301 * s/gnu.h (START_FILES): Remove empty definition.
302
3e56b11d
JD
3032010-05-06 Jan Djärv <jan.h.d@swipnet.se>
304
305 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
306
e3cf0cde
GM
3072010-05-06 Glenn Morris <rgm@gnu.org>
308
309 * Makefile.in (CPP, LN_S): Remove unused variables.
310
774b9a60
SM
3112010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
312
313 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
314
4ab92842
LM
3152010-05-05 Lawrence Mitchell <wence@gmx.li>
316
317 * m/sparc.h: Fix typo in earlier change.
318
178f2507
SM
3192010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
320
321 Misc tweaks.
322 * eval.c (Fdefvaralias): Remove unintended nested if.
323 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
324
80f00217 3252010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
326
327 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
328
ef03a4e6
DN
3292010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
330
58eb6cf0
DN
331 Remove BSD_PGRPS.
332 * s/bsd-common.h (BSD_PGRPS): Remove undef.
333 * s/gnu-linux.h (BSD_PGRPS): Remove.
334 * term.c (dissociate_if_controlling_tty):
335 * sysdep.c (narrow_foreground_group, widen_foreground_group)
336 (init_sys_modes, reset_sys_modes):
337 * emacs.c (main):
338 * callproc.c (Fcall_process, child_setup): Remove code depending
339 on BSD_PGRPS.
340
ef03a4e6
DN
341 Remove POSIX_SIGNALS.
342 * s/usg5-4.h (POSIX_SIGNALS):
343 * s/netbsd.h (POSIX_SIGNALS):
344 * s/msdos.h (POSIX_SIGNALS):
345 * s/ms-w32.h (POSIX_SIGNALS):
346 * s/hpux11.h (POSIX_SIGNALS):
347 * s/gnu.h (POSIX_SIGNALS):
348 * s/gnu-linux.h (POSIX_SIGNALS):
349 * s/freebsd.h (POSIX_SIGNALS):
350 * s/darwin.h (POSIX_SIGNALS):
351 * s/cygwin.h (POSIX_SIGNALS):
352 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
353 * s/unixware.h:
354 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
355 * process.c (create_process):
356 * syssignal.h:
357 * sysdep.c (wait_for_termination, init_signals):
358 * process.c (create_process):
359 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
360 remove all code that assumes the contrary.
361
49628785
GM
3622010-05-04 Glenn Morris <rgm@gnu.org>
363
27a2cdfc
GM
364 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
365 variable.
366 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
367 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
368 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
369 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
370 LD_SWITCH_SYSTEM_tmp.
371 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
372 New variables, set by configure.
373
eb21eab5
GM
374 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
375 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
376 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
377 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
378 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
379
49628785
GM
380 * s/aix4-2.h (C_SWITCH_SYSTEM):
381 * m/alpha.h (C_SWITCH_MACHINE):
382 Move to configure.in.
383 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
384 New variables, set by configure.
385 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
386 $c_switch_machine and $c_switch_system.
387
7dff330b
DN
3882010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
389
390 * s/hpux10-20.h (LIB_STANDARD): New definition.
391 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
392 on it, not used anymore.
393
53967e09
CY
3942010-05-03 Chong Yidong <cyd@stupidchicken.com>
395
396 * eval.c (internal_condition_case_n): Rename from
397 internal_condition_case_2.
398 (internal_condition_case_2): New function.
399
400 * xdisp.c (safe_call): Use internal_condition_case_n.
401
402 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
403 (internal_delete_file, Frename_file): Callers changed.
404
405 * buffer.c (Fkill_buffer):
406 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
407
408 * lisp.h: Update prototypes.
409
3dee6fdb
GM
4102010-05-03 Glenn Morris <rgm@gnu.org>
411
412 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
413 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
414 (LIBXT): Set with configure, not cpp.
415 (LIBX): Remove.
416 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
417
a101e0fb
DN
4182010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
419
420 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
421 The FreeBSD is not needed, the default works, Solaris version is
422 not needed, and the remaining case is not supported by configure.
423
f63d0028
JD
4242010-05-02 Jan Djärv <jan.h.d@swipnet.se>
425
426 * xsmfns.c (CHDIR_OPT): New define.
427 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
428 restarting emacs.
429
430 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
431 shut_down_emacs.
432
433 * emacs.c (USAGE1): Mention --chdir.
434 (main): Handle --chdir.
435 (standard_args): Add --chdir.
436 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
437 #5552).
438
e4814a9f
DN
4392010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
440
cd03c74a
DN
441 Remove LD_SWITCH_MACHINE.
442 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
443 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
444
c3a398a1
DN
445 Clean up IRIX code.
446 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
447 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
448
87e7285c
DN
449 Clean up AIX code.
450 * m/ibmrs6000.inp: Remove file, unused.
451 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
452 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
453 definition ...
454 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
455
80f00217
JB
456 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
457 unused.
e4814a9f 458
59ca28de
EZ
4592010-05-01 Eli Zaretskii <eliz@gnu.org>
460
197daef4
EZ
461 Emulate POSIX_SIGNALS on MS-Windows.
462
463 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
464 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
465
466 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
467 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
468 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
469
80f00217
JB
470 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
471 New stubs.
197daef4 472
af7c7572
EZ
473 Miscellaneous fixes of bidi display.
474
59ca28de
EZ
475 * xdisp.c (find_row_end): New function, refactored from display_line.
476 (display_line): Use it.
017ea819
EZ
477 (extend_face_to_end_of_line): In almost-filled rows, extend only
478 if the row is R2L and not continued.
166e930d 479 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 480 Preserve overlay and string info in row->end.
166e930d
EZ
481 (insert_left_trunc_glyphs): Support addition of left truncation
482 glyphs to R2L rows.
b47e0dcf 483 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
484 glyph between adjacent windows. Fix a crash when a display string
485 is continued to the next line. Don't return zero if cursor was
486 found by `cursor' property of a display string.
b47e0dcf
EZ
487 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
488 test for that explicitly.
59ca28de 489
7acac9f4
GM
4902010-05-01 Glenn Morris <rgm@gnu.org>
491
492 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
493 for clarity.
494 (OTHER_OBJ): Remove.
495 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
496 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
497
45841e65
KK
4982010-05-01 Karel Klíč <kklic@redhat.com>
499
500 * fileio.c (Ffile_selinux_context): Context functions may return null.
501
afc61943
DN
5022010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
503
80f00217 504 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 505
5a1bb006
GM
5062010-04-30 Glenn Morris <rgm@gnu.org>
507
508 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
509 (OTHER_OBJ): Define as a separate variable, for clarity.
510
210af043
J
5112010-04-30 Jan Djärv <jan.h.d@swipnet.se>
512
513 * xsettings.c: include limits.h and update file comment.
514
0a7df391
GM
5152010-04-30 Glenn Morris <rgm@gnu.org>
516
d5096f16
GM
517 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
518 Set with configure, not cpp.
519 (LIBW): Remove, replace with $TOOLKIT_LIBW.
520
7eb1ac33
GM
521 * Makefile.in (mallocobj): Remove.
522 (otherobj): Simplify using @OTHER_OBJ@.
523
517d086b
GM
524 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
525 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
526 Don't bother making nsgui.h dependency platform-specific.
527
0a7df391
GM
528 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
529
d6d23852
SM
5302010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
531
d2630aef
SM
532 * process.c (read_process_output, exec_sentinel): Don't burp if the
533 sentinel/filter kills the current buffer (bug#6060).
534
f9dddf52 535 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
536 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
537 Remove unused var `args'.
538 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
539 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
540 * doc.c (store_function_docstring): Use XSETCAR.
541
f1e3642a
GM
5422010-04-28 Glenn Morris <rgm@gnu.org>
543
faf535f8
GM
544 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
545 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
546
c40f9449
GM
547 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
548
658f86ca
GM
549 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
550 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
551
bc0b5f61
GM
552 * Makefile.in (FONT_OBJ): New, set by configure.
553 (FONT_DRIVERS): Use $FONT_OBJ.
554
294c50a0
GM
555 * Makefile.in (LIBXMU): Set with configure, not cpp.
556 * s/aix4-2.h (LIBXMU):
557 * s/hpux10-20.h (LIBXMU):
558 Remove definition, now set in configure.
559
e6ec4e99
GM
560 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
561
f1e3642a
GM
562 * m/amdx86-64.h [i386]: Move this test to configure.in.
563
c6ea2936
GM
5642010-04-27 Glenn Morris <rgm@gnu.org>
565
8fdac2c3
GM
566 * Makefile.in (LIBXTR6): Set with configure, not cpp.
567 * s/unixware.h (NEED_LIBW): Remove definition.
568
986fb647
GM
569 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
570 (TOOLKIT_LIBW): New, set by configure.
571 (@X_TOOLKIT_TYPE@): No longer define it.
572
c6ea2936
GM
573 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
574 (MOTIF_LIBW): Set with configure, not cpp.
575 * s/aix4-2.h (LIB_MOTIF):
576 * s/gnu-linux.h (LIB_MOTIF):
577 * s/unixware.h (LIB_MOTIF): Move to configure.in.
578
aaa36002
DN
5792010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
580
581 Reduce CPP usage.
582 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
583 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
584 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
585 definitions and undefs. Inline definitions in the only user.
586 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 587
b678dd8b
GM
5882010-04-27 Glenn Morris <rgm@gnu.org>
589
76cda504
GM
590 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
591 since the defaults (set by the system file) are fine in most cases.
592 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
593 * m/ibms390x.h (START_FILES, LIB_STANDARD):
594 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
595 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
596 Remove definitions, since they are set correctly in s/gnu-linux.h.
597 * s/freebsd.h (START_FILES, LIB_STANDARD):
598 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
599 * s/hpux10-20.h (START_FILES):
600 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
601 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
602
b678dd8b
GM
603 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
604 (MOTIF_LIBW): Use $LIBXP.
605 (otherobj): Use $WIDGET_OBJ.
606
9452ded1
DN
6072010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
608
7e10844c
DN
609 * Makefile.in (LIBS_MACHINE): Remove, unused.
610
9452ded1
DN
611 Use autoconf instead of cpp for LIB_MATH.
612 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
613 * s/cygwin.h (LIB_MATH): Likewise.
614 * Makefile.in (LIB_MATH): Do not define with cpp.
615 (LIBES): Use autoconf for LIB_MATH.
616
fcebfc6a
KH
6172010-04-26 Kenichi Handa <handa@m17n.org>
618
619 * composite.c (Ffind_composition_internal): Fix the return value
620 for an automatic composition.
621
39e2ad1b
DN
6222010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
623
624 Remove all NO_ARG_ARRAY uses.
625 * fns.c (concat2, concat3, nconc2):
626 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
627 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
628 * m/xtensa.h (NO_ARG_ARRAY):
629 * m/template.h (NO_ARG_ARRAY):
630 * m/sparc.h (NO_ARG_ARRAY):
631 * m/sh3.h (NO_ARG_ARRAY):
632 * m/mips.h (NO_ARG_ARRAY):
633 * m/macppc.h (NO_ARG_ARRAY):
634 * m/iris4d.h (NO_ARG_ARRAY):
635 * m/intel386.h (NO_ARG_ARRAY):
636 * m/ibms390x.h (NO_ARG_ARRAY):
637 * m/ibms390.h (NO_ARG_ARRAY):
638 * m/ibmrs6000.h (NO_ARG_ARRAY):
639 * m/ia64.h (NO_ARG_ARRAY):
640 * m/hp800.h (NO_ARG_ARRAY):
641 * m/arm.h (NO_ARG_ARRAY):
642 * m/amdx86-64.h (NO_ARG_ARRAY):
643 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
644
adf4f59c
EZ
6452010-04-25 Eli Zaretskii <eliz@gnu.org>
646
6bdf5d65
EZ
647 * xdisp.c (display_line): Don't assume 2nd call to
648 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
649 (iterate_out_of_display_property): New function, body from pop_it.
650 (pop_it): Use it.
adf4f59c 651
dfbbda83
GM
6522010-04-24 Glenn Morris <rgm@gnu.org>
653
654 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
655 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
656 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
657 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
658
2d4018aa
EZ
6592010-04-24 Eli Zaretskii <eliz@gnu.org>
660
a49884a6
EZ
661 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
662 use `get_next_display_element' and `set_iterator_to_next' to
663 advance to the next character, when looking for the character that
664 begins the next row.
665
76db6fcc 666 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
667 definition of "struct Lisp_Symbol".
668
70eab5c1
GM
6692010-04-24 Glenn Morris <rgm@gnu.org>
670
671 * Makefile.in (CRT_DIR): New variable, set by configure.
672 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
673 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
674
1ad4cc3d
DN
6752010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
676
e769f484
DN
677 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
678
4196ff33
DN
679 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
680
879b0ee4
DN
681 Remove redundant flags.
682 * s/freebsd.h (C_SWITCH_SYSTEM):
683 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
684 * s/netbsd.h (C_SWITCH_SYSTEM):
685 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
686 of these.
687
03cbbcb8
DN
688 Simplify m/intel386.h.
689 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
690 user: ecrt0.c.
691 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
692 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
693 the only user: s/unixware.h.
694 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
695 from m/intel386.h.
696 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
697 moved here from m/intel386.h.
698
1ad4cc3d
DN
699 * m/mips.h: Remove #if 0 code.
700
8785b888
EZ
7012010-04-23 Eli Zaretskii <eliz@gnu.org>
702
728588cc
EZ
703 Fix display of composed characters from L2R scripts in bidi buffers.
704 * xdisp.c (set_iterator_to_next, next_element_from_composition):
705 After advancing IT past the composition, resync the bidi iterator
706 with IT's position. (Bug#5977)
707
a63f80b4
DN
7082010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
709
710 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
711 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
712
ff5dec5c
SM
7132010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
714
715 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
716
8785b888
EZ
7172010-04-23 Eli Zaretskii <eliz@gnu.org>
718
58ccf243 719 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
720 * xdisp.c (pop_it): When the stack is popped after displaying
721 from a string, bidi-iterate to exit from the text portion covered
722 by the `display' property or overlay. (Bug#5988, bug#5920)
723
feeb1604
DN
7242010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
725
8e324eb6
DN
726 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
727 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
728
809fcaba
DN
729 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
730 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
731
ed710380
DN
732 Simplify STARTFILES definition.
733 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
734 relying on Makefile.in to define it.
735 * s/cygwin.h (START_FILES): Likewise.
736 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
737
feeb1604
DN
738 Clean up Solaris code.
739 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
740 (LIB_MOTIF): Remove, configure takes care of this.
741 (NOT_USING_MOTIF): Remove, unused.
742 * xrdb.c: Remove #if 0-ed #include.
743 (SYSV): Remove conditional for old SysV.
744 * sysdep.c (closedir): Remove conditional code for Solaris,
745 Solaris has closedir.
746
a0d0b563
JD
7472010-04-22 Jan Djärv <jan.h.d@swipnet.se>
748
749 * xsettings.c (read_and_apply_settings): Check if current_font is
750 NULL before strcmp (Bug#6001).
751
56bae7c7
DN
7522010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
753
754 Clean up HP-UX files.
755 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
756 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
757 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
758 * s/hpux10-20.h: ... to the only user, here.
759
372b7a95
EZ
7602010-04-21 Eli Zaretskii <eliz@gnu.org>
761
762 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
763 use buffer-local values of paragraph-start and paragraph-separate.
764 <paragraph_start_re, paragraph_separate_re>: Rename from
765 fallback_paragraph_start_re and fallback_paragraph_separate_re.
766 (Bug#5992)
767
f904c0f9
JD
7682010-04-21 Jan Djärv <jan.h.d@swipnet.se>
769
770 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
771 current_tool_bar_style are new.
772 (store_config_changed_event): Rename from store_font_changed_event.
773 (XSETTINGS_TOOL_BAR_STYLE): New define.
774 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
775 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
776 HAVE_XFT.
777 (something_changedCB): store_font_changed_event is now
778 store_config_changed_event
779 (parse_settings): Rename from parse_xft_settings. Read
780 non-xft xsettings outside #ifdef HAVE_XFT.
781 (read_settings): Renamed from read_xft_settings.
782 (apply_xft_settings): Take current settings as parameter. Do not
783 call read_(xft)_settings.
784 (read_and_apply_settings): New function.
785 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
786 read_and_apply_settings if there are settings to be read.
787 (init_xsettings): Renamed from init_xfd_settings.
788 Call read_and_apply_settings unconditionally.
789 (xsettings_initialize): Call init_xsettings.
790 (Ftool_bar_get_system_style): New function.
791 (syms_of_xsettings): Define Qmonospace_font_name and
792 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 793 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 794 dynamic-setting.
31a01b90 795 Move misplaced HAVE_GCONF
f904c0f9
JD
796
797 * xsettings.h (Ftool_bar_get_system_style): Declare.
798
799 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
800 Qtext, Qboth, Qboth_horiz are new.
801 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
802 Vtool_bar_style, tool_bar_max_label_size.
803
804 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
805
806 * keyboard.c: QClabel is new.
807 (parse_tool_bar_item): Take out QClabel from tool bar items.
808 Try to construct a label if ther is no QClabel.
809 (syms_of_keyboard): Intern :label as QClabel.
810
811 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
812 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
813 New.
814
815 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
816 dynamic-setting.el.
817
818 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
819 (xg_make_tool_item, xg_show_toolbar_item): New function.
820 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
821 Call xg_make_tool_item to make a tool bar item.
822 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
823
824 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
825 into account for toolbars.
826
c632dfda
JD
8272010-04-21 Jan Djärv <jan.h.d@swipnet.se>
828
829 * data.c (make_blv): Declarations before code (Bug#5993).
830
10efe302
GM
8312010-04-21 Glenn Morris <rgm@gnu.org>
832
833 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
834 Define using autoconf, not cpp.
835 (LIBXSM): New variable, set by autoconf.
836 (LIBXT): Use $LIBXSM.
837
4285ac5a
DN
8382010-04-21 Dan Nicolaescu <local_user@dannlt>
839
3ec759e7
DN
840 Remove NOMULTIPLEJOBS, unused.
841 * s/template.h (NOMULTIPLEJOBS):
842 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
843
4285ac5a
DN
844 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
845 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
846 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
847 detects -znocombreloc and passes it to the linker
848 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
849
2807228d
GM
8502010-04-21 Glenn Morris <rgm@gnu.org>
851
852 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
853
574c05e2
KK
8542010-04-21 Karel Klíč <kklic@redhat.com>
855
856 * Makefile.in (LIBSELINUX_LIBS): New.
857 (LIBES): Add $LIBSELINUX_LIBS.
858 * eval.c, lisp.h (call7): New function.
859 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
860 (Ffile_selinux_context, Fset_file_selinux_context):
861 New functions.
862 (Fcopy_file): New parameter preserve-selinux-context.
863 (Frename_file): Preserve selinux context when renaming by copy-file.
864
91eac4bb 8652010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 866 Eli Zaretskii <eliz@gnu.org>
91eac4bb 867
50426a04
JB
868 Don't depend on cm.c or termcap.c on Windows, use stubs.
869 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
870 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
871 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
872 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
873 (sys_tputs, sys_tgetstr): New stubs.
874 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
875 (tputs, tgetstr): New; define to sys_*.
91eac4bb 876
938efb77
JB
8772010-04-20 Juanma Barranquero <lekktu@gmail.com>
878
879 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
880
b4bf28b7
SM
8812010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
882
8b1e1112
SM
883 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
884 Just signal a warning rather than an error when inside a let.
885 (Fmake_variable_frame_local): Add the same test.
886
933ac235
SM
887 * font.c (syms_of_font): Make the style table vars read-only.
888
b4bf28b7
SM
889 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
890 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
891
892 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
893
93d68d0c
EZ
8942010-04-20 Eli Zaretskii <eliz@gnu.org>
895
896 Fix R2L paragraph display on TTY.
897
898 * xdisp.c (unproduce_glyphs): New function.
899 (display_line): Use it when produced glyphs are discarded from R2L
900 glyph rows.
901 (append_composite_glyph): In R2L rows, prepend the glyph rather
902 than appending it.
903
904 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
905 rather than append it. Set up the resolved_level and bidi_type
906 attributes of the appended glyph.
283ccc18
EZ
907 (produce_special_glyphs): Mirror the backslash continuation
908 character in R2L lines.
93d68d0c 909
283ccc18 910 Implement display of R2L paragraphs in GUI sessions.
26cdf528 911
283ccc18
EZ
912 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
913 append_stretch_glyph.
914 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
915 off-by-one error in computing x at end of text in the row.
916 (append_stretch_glyph): In reversed row, prepend the glyph rather
917 than append it. Set resolved_level and bidi_type of the glyph.
918 (extend_face_to_end_of_line): If the row is reversed, prepend a
919 stretch glyph whose width is such that the rightmost glyph will be
920 drawn at the right margin of the window. Fix off-by-one error on
921 TTY frames in testing whether a line needs face extension. Fix
922 face extension at ZV. If this is the last glyph row, use
923 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
924 region face.
925 (set_cursor_from_row, display_line): Use
26cdf528
EZ
926 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
927 row->continuation_lines_width.
283ccc18
EZ
928 (next_element_from_buffer): Don't call bidi_paragraph_init if we
929 are at ZV. Fixes a crash when reseated to ZV by
930 try_window_reusing_current_matrix.
45903529
EZ
931 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
932 which happens with R2L glyph rows. Fixes a crash when inserting a
933 character at end of an R2L line.
283ccc18
EZ
934 (set_cursor_from_row): Don't be fooled by truncated rows: don't
935 treat them as having zero-width characters. Improve comments.
936 Don't reverse pos_before and pos_after for reversed glyph rows.
937 Set cursor.x to negative value when the cursor might be on the
938 left fringe.
939 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
940 left fringe, not the right one.
f951a506
EZ
941 (notice_overwritten_cursor, draw_phys_cursor_glyph)
942 (erase_phys_cursor): For reversed cursor_row, support cursor on
943 the left fringe.
944
283ccc18
EZ
945 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
946 of continuation indicators on the fringes.
947 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
948 left fringe.
949
f951a506
EZ
950 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
951 draw cursor on the left fringe.
952
953 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
954 cursor on the left fringe.
955
f951a506
EZ
956 * dispnew.c (update_text_area): Handle reversed desired rows when
957 the cursor is on the left fringe.
958 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
959 below, not by 0, for when the cursor is on the left fringe.
960
3bb49aaf
JD
9612010-04-20 Jan Djärv <jan.h.d@swipnet.se>
962
963 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
964 widget is a scrollbar.
965
c0be27fd
KH
9662010-04-20 Kenichi Handa <handa@m17n.org>
967
968 * charset.c (char_charset): Consider Vcharset_non_preferred_head
969 only when the arg CHARSET_LIST is nil.
970
ce5b453a
SM
9712010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
972
973 Make variable forwarding explicit rather the using special values.
974 Basically, this makes the structure of buffer-local values and object
975 forwarding explicit in the type of Lisp_Symbols rather than use
976 special Lisp_Objects for that. This tends to lead to slightly more
977 verbose code, but is more C-like, simpler, and makes it easier to make
978 sure we handled all cases, among other things by letting the compiler
979 help us check it.
980 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
981 Removing forwarding objects.
982 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
983 (struct Lisp_Symbol): Make the various forms of variable-forwarding
984 explicit rather than hiding them inside Lisp_Object "values".
985 (XFWDTYPE): New macro.
986 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
987 (XBUFFER_LOCAL_VALUE): Remove.
988 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
989 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
990 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
991 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
992 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
993 Remove the Lisp_Misc_* header.
994 (struct Lisp_Buffer_Local_Value): Redefine.
995 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
996 (struct Lisp_Misc_Any): Add filler to get the right size.
997 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
998 Lisp_Intfwd.
999 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1000 (DEFVAR_KBOARD): Allocate a forwarding object.
1001 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1002 (let_shadows_global_binding_p): New function.
1003 (union Lisp_Val_Fwd): New type.
1004 (make_blv): New function.
1005 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1006 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1007 (swap_in_symval_forwarding, find_symbol_value, Fset)
1008 (let_shadows_buffer_binding_p, set_internal, default_value)
1009 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1010 (Fkill_local_variable, Fmake_variable_frame_local)
1011 (Flocal_variable_p, Flocal_variable_if_set_p)
1012 (Fvariable_binding_locus):
1013 * xdisp.c (select_frame_for_redisplay):
1014 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1015 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1016 * frame.c (store_frame_param):
1017 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1018 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1019 value structure.
1020 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1021 (clone_per_buffer_values): Only adjust markers into the current buffer.
1022 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1023 (Fbuffer_local_value, set_buffer_internal_1)
1024 (swap_out_buffer_local_variables):
1025 Adapt to the new symbol value structure.
1026 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1027 (defvar_per_buffer): Take a new arg for the fwd object.
1028 (buffer_lisp_local_variables): Return a proper alist (different fix
1029 for bug#4138).
1030 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1031 (Fgarbage_collect): Don't handle buffer_defaults specially.
1032 (mark_object): Handle new symbol value structure rather than the old
1033 special Lisp_Misc_* objects.
1034 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1035 * term.c (set_tty_color_mode):
1036 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1037 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1038 a buffer_local_flags.
1039 * print.c (print_object): Get rid of impossible forwarding objects.
1040
fd3998ff
EZ
10412010-04-19 Eli Zaretskii <eliz@gnu.org>
1042
1043 * bidi.c (bidi_get_type, bidi_get_category)
1044 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1045 (bidi_type_of_next_char, bidi_level_of_next_char):
1046 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1047
e42cd1a7
JB
10482010-04-19 Juanma Barranquero <lekktu@gmail.com>
1049
1050 * dired.c (Ffile_attributes): Fix typo in docstring.
1051
6e104790 10522010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1053
1054 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1055 NSInteger (Bug#5811).
1056
6e104790 10572010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1058
1059 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1060 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1061
6e104790 10622010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1063
1064 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1065
6e104790
SM
10662010-04-19 Chong Yidong <cyd@stupidchicken.com>
1067
1068 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1069 terminal frames (Bug#5837).
1070
37dcfea0
EZ
10712010-04-19 Eli Zaretskii <eliz@gnu.org>
1072
d1da276f
EZ
1073 * .gdbinit (xsubchartable): New command.
1074
37dcfea0
EZ
10752010-04-19 Eli Zaretskii <eliz@gnu.org>
1076
1077 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1078 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1079 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1080 and
1081 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1082
e9515805
SM
10832010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1084
1085 * alloc.c (Fpurecopy): Hash-cons if requested.
1086 (syms_of_alloc): Update purify-flag docstring.
1087
22aa44a8
JD
10882010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1089
1090 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1091 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1092
ebb5722e
EZ
10932010-04-17 Eli Zaretskii <eliz@gnu.org>
1094
1095 Fix a crash when an NSM character is inserted at BEGV.
1096
1097 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1098 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1099 NEUTRAL_B or UNKNOWN_BT.
1100
0f4442ef
EZ
11012010-04-16 Eli Zaretskii <eliz@gnu.org>
1102
1103 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1104 other rows with cursor unless they are different from this row and
1105 this row is part of a continued line. (Bug#5943)
1106
7d4e45f8
DN
11072010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1108
1109 * s/freebsd.h: Restore osreldate.h include.
1110 Suggested by Naohiro Aota.
1111
5ba5ec85
J
11122010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1113
1114 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1115
20af301d
CY
11162010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1117
1118 * s/cygwin.h: Avoid linking against static libgcc.
1119
a4b000fb
JL
11202010-04-15 Juri Linkov <juri@jurta.org>
1121
1122 * window.c: Add Qscroll_command.
1123 Remove Vscroll_preserve_screen_position_commands.
1124 (window_scroll_pixel_based, window_scroll_line_based): Check the
1125 `scroll-command' property on the last command instead of searching
1126 the last command in Vscroll_preserve_screen_position_commands.
1127 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1128 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1129 (scroll-preserve-screen-position): Doc fix.
1130 (Vscroll_preserve_screen_position_commands): Remove variable.
1131
bc319ba4
DN
11322010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1133
6bb24457
DN
1134 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1135
19d4c244
DN
11362010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1137
1138 Reduce cpp use in Makefile.in.
1139 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1140 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1141 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1142 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1143 (CRT0_COMPILE): Remove, inline it in the only user.
1144
32129746
JL
11452010-04-14 Juri Linkov <juri@jurta.org>
1146
1147 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1148 `scroll-up-command' and `M-v' from `scroll-down' to
1149 `scroll-down-command'.
1150
9013a7f8
JL
11512010-04-14 Juri Linkov <juri@jurta.org>
1152
1153 * window.c (Vscroll_preserve_screen_position_commands): New variable
1154 with the default value as the list of Qscroll_down and Qscroll_up.
1155 (window_scroll_pixel_based, window_scroll_line_based): Search the
1156 last command in the list Vscroll_preserve_screen_position_commands
1157 instead of comparing with Qscroll_up and Qscroll_down.
1158
4bef8d26
JD
11592010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1160
92848133
JD
1161 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1162 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1163 does that.
1164
4bef8d26
JD
1165 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1166 to zero.
1167
58b963f7
SM
11682010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1169
84164a0d
SM
1170 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1171
2b0a91e7
SM
1172 Try to solve the problem of spurious EOF chars in long lines of text
1173 sent to interactive subprocesses.
1174 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1175 (system_process_attributes): Remove unused var `ttotal'.
1176 * process.c (send_process): Don't bother breaking long line with EOF
1177 chars when talking to ttys any more.
1178 (wait_reading_process_output): Output a warning when called in such
1179 a way that it could block without being interruptible.
1180
58b963f7
SM
1181 Try to detect file modification within the same second.
1182 * buffer.h (struct buffer): New field modtime_size.
1183 * buffer.c (reset_buffer): Initialize it.
1184 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1185 (Fverify_visited_file_modtime): Check it.
1186 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1187 (Fset_visited_file_modtime): Set (or clear) it.
1188
01f5787b
SM
11892010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1190
1191 * process.c (status_notify): Remove unused var `ro'.
1192
83725342
JD
11932010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1194
1195 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1196 more than one visual (Bug#5938).
1197
b9465836
DN
11982010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1199
50426a04
JB
1200 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1201 Undefine.
b9465836 1202
8d9c8ece
DN
12032010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1204
b1f52161
DN
1205 Remove C_SWITCH_SYSTEM_TEMACS.
1206 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1207 (malloc, realloc, free): Use emacs, not temacs for conditional
1208 definition.
1209
1210 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1211 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1212
8d9c8ece
DN
1213 Use autoconf, not cpp for some variables.
1214 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1215 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1216 (ALL_CFLAGS): Use them as make variables.
1217 (really-lwlib, really-oldXMenu): Do not pass them.
1218
1ecb2d3f
JD
12192010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1220
1221 * xmenu.c (apply_systemfont_to_dialog): New.
1222 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1223
3a4fa2f2
SM
12242010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1225
97e53006
SM
1226 * process.c (exec_sentinel): Preserve current-buffer.
1227
3a4fa2f2
SM
1228 * process.c (read_process_output): Move the save-current-buffer to
1229 apply to both the filter and the non-filter branches.
1230
88df7221
DN
12312010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1232
1233 * s/msdos.h (UNEXEC): New definition.
1234
5634ff85
YM
12352010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1236
6eff5c3d
YM
1237 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1238 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1239
1240 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1241 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1242 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1243 TRY_WINDOW_CHECK_MARGINS.
1244
1245 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1246 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1247 width only when it is for padding.
5634ff85 1248
b13aef54
J
12492010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1250
1251 * xfns.c (Fx_show_tip): Call try_window in a loop until
1252 fonts_changed_p is zero (Bug#2423).
1253
21d28484
EZ
12542010-04-08 Eli Zaretskii <eliz@gnu.org>
1255
1256 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1257 the end of TEXT_AREA. (Bug#5856)
1258
0269ef77
JD
12592010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1260
1261 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1262 HAVE_GCONF.
1263
5930fe97
EZ
12642010-04-08 Eli Zaretskii <eliz@gnu.org>
1265
1266 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1267 prev.orig_type, for resolving type of NSM. (Bug#5858)
1268
99852628
JD
12692010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1270
1271 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1272 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1273 in current_font.
1274 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1275 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1276 New functions.
1277 (syms_of_xsettings): Initialize current_font.
1278 defsubr Sfont_get_system_normal_font.
99852628
JD
1279
1280 * xsettings.h (Ffont_get_system_normal_font,
1281 xsettings_get_system_normal_font): Declare.
1282
1283 * xfns.c (extern xlwmenu_default_font): Remove.
1284 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1285 to xlwmenu.c.
1286
1287 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1288 menu items in UTF-8.
1289
1290 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1291 (apply_systemfont_to_menu): New function.
1292 (set_frame_menubar, create_and_show_popup_menu): Call
1293 apply_systemfont_to_menu.
1294
7fc874c4
J
12952010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1296
1297 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1298 FRAME_LINE_TO_PIXEL_Y.
1299
1300 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1301 pixelwidth/height.
1302
863bf481
DN
13032010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1304
5e5a3b92
DN
1305 Simplify code for HP machines.
1306 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1307 for GNU_LINUX, not needed.
1308 (UNEXEC, NEED_BSDTTY): Move definitions...
1309 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1310
863bf481
DN
1311 * m/iris4d.h (UNEXEC): Move definition ...
1312 * s/irix6-5.h (UNEXEC): ... here.
1313
3e6bec3b
JD
13142010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1315
1316 * xfns.c (set_machine_and_pid_properties): New function.
1317 (Fx_create_frame): Call set_machine_and_pid_properties.
1318
2912322b
SM
13192010-04-03 Eli Zaretskii <eliz@gnu.org>
1320
1502b819
EZ
1321 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1322 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1323 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1324
2912322b
SM
1325 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1326 in this function. (Bug#5703)
1327
13282010-04-03 Chong Yidong <cyd@stupidchicken.com>
1329
1330 * nsterm.h: Fix last change.
1331
c435b432
DN
13322010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1333
a568f507
DN
1334 * m/intel386.h (NO_REMAP): Move definition ...
1335 * s/msdos.h (NO_REMAP): ... here.
1336
4cd9f6c2
DN
1337 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1338
c435b432
DN
1339 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1340 used on those platforms.
1341
42a2c622
DN
13422010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1343
1344 Remove extern errno declarations.
1345 * xterm.c:
1346 * xrdb.c:
1347 * w32term.c:
1348 * unexec.c:
1349 * unexaix.c:
1350 * sysdep.c:
1351 * process.c:
1352 * lread.c:
1353 * keyboard.c:
1354 * floatfns.c:
1355 * filelock.c:
1356 * fileio.c:
1357 * emacs.c (main):
1358 * ecrt0.c:
1359 * dispnew.c:
1360 * callproc.c:
1361 * buffer.c: Remove errno extern declarations.
1362 * s/netbsd.h (NEED_ERRNO): Remove.
1363
8224f93d
DN
13642010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1365
1366 Remove all uses of LIBX11_SYSTEM.
1367 * Makefile.in (LIBX11_SYSTEM): Remove.
1368 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1369 instead.
1370
814062c7
EZ
13712010-04-01 Eli Zaretskii <eliz@gnu.org>
1372
ed68db4d
EZ
1373 Remove support for DJGPP v1.x (bug#5813).
1374
1375 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1376 * s/msdos.h:
1377 * unexec.c (make_hdr, copy_text_and_data):
1378 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1379 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1380 (IT_set_terminal_modes, __write, _rename, gethostname)
1381 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1382 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1383 the value of __DJGPP__.
ed68db4d
EZ
1384 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1385 compatibility code.
8224f93d
DN
1386 * lread.c:
1387 * gmalloc.c (memalign):
1388 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1389 * emacs.c (main):
1390 * dosfns.c (init_dosfns):
ed68db4d
EZ
1391 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1392
52f4d8d5
EZ
13932010-04-01 Eli Zaretskii <eliz@gnu.org>
1394
814062c7
EZ
1395 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1396 string with `cursor' property comes from an `after-string'
1397 overlay. (Bug#5816)
1398
0dc2e11d
GM
13992010-04-01 Glenn Morris <rgm@gnu.org>
1400
1401 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1402 Define as Makefile variables.
1403 (LIBX): Use above variables rather than directly using autoconf.
1404
1d29df59
DN
14052010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1406
1407 Clean up BSD_SYSTEM use.
1408 * xterm.c:
1409 * process.c:
1410 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1411 for including <sys/ioctl.h>.
1412 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1413 code is only used for MSDOS.
1414
1546c559
JL
14152010-03-31 Juri Linkov <juri@jurta.org>
1416
1417 * image.c: Add `Qextension_data'.
1418 (syms_of_image): Initialize and staticpro `Qextension_data'.
1419 (Fimage_metadata): Rename from `Fimage_extension_data'.
1420 (gif_load): Put GIF extension data to the property
1421 `Qextension_data'.
1422
b8a1d5a1
CY
14232010-04-05 Chong Yidong <cyd@stupidchicken.com>
1424
1425 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1426 terminal frames (Bug#5837).
1427
6521c534
CY
14282010-03-31 Chong Yidong <cyd@stupidchicken.com>
1429
1430 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1431 * nsterm.h: Fix prototype.
1432
52c30783
EZ
14332010-03-31 Eli Zaretskii <eliz@gnu.org>
1434
1435 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1436 trailing whitespace in right-to-left rows.
1437
855a0da7
SM
14382010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1439
1440 Get rid of the direct_output optimizations.
1441 * keyboard.c (nonundocount): Remove extern declaration.
1442 (command_loop_1): Remove brittle optimisation for cheap and
1443 common operations.
1444 * xdisp.c (redisplay_internal): Don't bother checking
1445 redisplay_performed_directly_p any more.
1446 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1447 any more.
1448 * dispnew.c (redisplay_performed_directly_p)
1449 (direct_output_for_insert, direct_output_forward_char):
1450 * dispextern.h (redisplay_performed_directly_p)
1451 (direct_output_for_insert, direct_output_forward_char): Remove.
1452 * cmds.c (nonundocount): Make it static.
1453
85738751 14542010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1455
1456 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1457
85738751 14582010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1459
1460 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1461 invisible (Bug#5766).
1462
85738751 14632010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1464
855a0da7
SM
1465 * xdisp.c (x_consider_frame_title, update_window_cursor):
1466 Remove HAVE_NS conditionals.
194d44e7 1467 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1468
1469 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1470 filename for the title.
1471 (ns_set_doc_edited): Do nothing if the selected window is a
1472 minibuffer window.
1473
1474 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1475 ns_set_doc_edited.
1476
1477 * nsterm.m: Remove unneeded prototype.
1478
85738751 14792010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1480
1481 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1482 in the DOC file. (Bug#5336)
1483
85738751 14842010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1485
1486 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1487
75d1428c
SM
14882010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1489
1490 * window.c (keys_of_window): Remove redundant/overridden bindings.
1491
82043cfb
EZ
14922010-03-30 Eli Zaretskii <eliz@gnu.org>
1493
1494 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1495 Restore original behavior when the iterator is not bidi_p.
1496
b5dd0ae7
DN
14972010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1498
1499 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1500
bd924a5d
EZ
15012010-03-30 Eli Zaretskii <eliz@gnu.org>
1502
1503 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1504 are outside the range of cached character positions.
1505
3580374b
JB
15062010-03-30 Juanma Barranquero <lekktu@gmail.com>
1507
1508 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1509
a7b02820
EZ
15102010-03-30 Eli Zaretskii <eliz@gnu.org>
1511
1512 Initial support for bidirectional editing.
1513
1514 * Makefile.in (obj): Include bidi.o.
1515 (bidi.o): New target.
1516
1517 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1518 ($(BLD)/bidi.$(O)): New target.
1519
1520 * bidi.c: New file.
1521
1522 * buffer.h (struct buffer): New members bidi_display_reordering
1523 and bidi_paragraph_direction.
1524
1525 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1526 and bidi_paragraph_direction.
1527 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1528 and bidi-paragraph-direction.
1529 (Fbuffer_swap_text): Swap the values of
1530 bidi_display_reordering and bidi_paragraph_direction.
1531
1532 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1533 (bidi_type_t, bidi_dir_t): New types.
1534 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1535 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1536 prev_stop, base_level_stop, and eol_pos.
1537 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1538 (IT_STACK_SIZE): Enlarge to 5.
1539 (struct glyph_row): New member reversed_p.
1540 <string_buffer_position>: Update prototype.
1541 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1542 glyph_row if bidi_it.paragraph_dir == R2L.
1543 (struct glyph): New members resolved_level and bidi_type.
1544
1545 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1546 processing or buffer's direction is right-to-left.
1547 (prepare_desired_row): Preserve the reversed_p flag.
1548 (row_equal_p): Compare the reversed_p attributes as well.
1549
1550 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1551 bidi_init_it and set it->paragraph_embedding from the current
1552 buffer's value of bidi_paragraph_direction.
1553 (reseat_1): Initialize bidi_it.first_elt.
1554 (set_iterator_to_next, next_element_from_buffer): Use the value of
1555 paragraph_embedding to determine the paragraph direction.
1556 (set_iterator_to_next): Under bidi reordering, call
1557 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1558 new_paragraph flag is set in the bidi iterator.
1559 (next_element_from_buffer): If bidi_it.first_elt is set,
1560 initialize paragraph direction and find the first character to
1561 display in the visual order. If reseated to a middle of a line,
1562 prime the bidi iterator starting at the line's beginning. Handle
1563 the situation where we overstepped stop_charpos due to
1564 non-linearity of the bidi iteration. Likewise for when we back up
1565 beyond the previous stop_charpos. When moving across stop_charpos,
1566 record it in prev_stop.
1567 (display_line): Set row->end and it->start for the next row to the
1568 next character in logical order. Always extend reversed_p rows to
1569 the end of line, even if they end at ZV. Copy the reversed_p flag
1570 to the next glyph row. Keep calling set_cursor_from_row for
1571 bidi-reordered rows even if we already have a possible candidate
1572 for cursor position. Set row_end after all the row's glyphs have
1573 been produced, by looping over the glyphs. Record the position
1574 after EOL in it->eol_pos, and use it to set end_pos of the last
1575 row produced for a continued line.
1576 <Qright_to_left, Qleft_to_right>: New variables.
1577 (syms_of_xdisp): Initialize and staticpro them.
1578 (string_buffer_position_lim): New function.
1579 (string_buffer_position): Most of code moved to
1580 string_buffer_position_lim. Last argument and return value are
1581 now EMACS_INT; all callers changed.
1582 (set_cursor_from_row): Rewritten to support bidirectional text and
1583 reversed glyph rows.
1584 (text_outside_line_unchanged_p, try_window_id): Disable
1585 optimizations if we are reordering bidirectional text and the
1586 paragraph direction can be affected by the change.
1587 (append_glyph, append_composite_glyph)
1588 (produce_image_glyph, append_stretch_glyph): Set the
1589 resolved_level and bidi_type members of each glyph.
1590 (append_glyph): If the glyph row is reversed, prepend the glyph
1591 rather than appending it.
1592 (handle_stop_backwards): New function.
1593 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1594 (reseat): call handle_stop_backwards to recompute prev_stop and
1595 base_level_stop for the new position.
1596 (handle_invisible_prop): Under bidi iteration, skip invisible text
1597 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1598 paragraph direction. Update IT->prev_stop after skipping
1599 invisible text.
1600 (move_it_in_display_line_to): New variables prev_method
1601 and prev_pos. Compare for strict equality in
1602 BUFFER_POS_REACHED_P.
1603 (try_cursor_movement): Examine all the candidate rows that occlude
1604 point, to return the best match. If rows are bidi-reordered
1605 and point moved backwards, back up to the row that is not a
1606 continuation line, and start looking for a suitable row from
1607 there.
1608
1609 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1610 rather than appending, if the glyph_row's reversed_p flag is set.
1611 Set the resolved_level and bidi_type members of each glyph.
1612
1613 * .gdbinit (pbiditype): New command.
1614 (pgx): Use it to display bidi level and type of the glyph.
1615 (pitx): Display some bidi information about the iterator.
1616 (prowlims, pmtxrows): New commands.
1617
32a8894e
DN
16182010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1619
1620 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1621 * s/usg5-4.h (LIBS_DEBUG):
1622 * s/irix6-5.h (C_DEBUG_SWITCH):
1623 * s/gnu-linux.h (LIBS_DEBUG):
1624 * s/darwin.h (LIBS_DEBUG):
1625 * s/bsd-common.h (LIBS_DEBUG):
1626 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1627 * m/iris4d.h (LIBS_DEBUG):
1628 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1629
1630 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1631 (LIBS_DEBUG): Remove definition.
1632
649dbf36
CY
16332010-03-27 Chong Yidong <cyd@stupidchicken.com>
1634
1635 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1636 Windows.
1637
cad4261f
YM
16382010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1639
1640 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1641 `connect' (Bug#5723).
1642
cd591dbc
HE
16432010-03-25 Helmut Eller <eller.helmut@gmail.com>
1644
1645 * process.c (Fmake_network_process): Call `select' for interrupted
1646 `connect' rather than creating new socket (Bug#5173).
1647
e867cb5d 16482010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1649
1650 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1651
1652 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1653
1654 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1655
e867cb5d 16562010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1657
1658 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1659 XLoadQueryFont.
1660
e867cb5d 16612010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1662
1663 * coding.c (decode_coding_ccl): Fix previous change for the
1664 multibyte case.
fb608df3
KH
1665 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1666 case that the output buffer is fullfilled.
1667 (encode_coding): Setup ccl program here.
fbdc1721 1668
e867cb5d 16692010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1670
1671 * editfns.c (Fformat): Account for string precision when computing
1672 field width (Bug#5710).
1673
5845f0ed
DN
16742010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1675
814fb708
DN
1676 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1677
5845f0ed
DN
1678 Simplify LIBS_MACHINE definitions.
1679 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1680 * m/iris4d.h (LIBS_MACHINE): Likewise.
1681 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1682 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1683 * s/netbsd.h: Remove commented out code.
5845f0ed 1684
b7064064
DN
16852010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1686
df7734b2
DN
1687 Remove dead code dealing with POSIX_SIGNALS.
1688 * atimer.c (set_alarm): Remove dead code, all USG systems define
1689 POSIX_SIGNALS.
1690 * data.c (arith_error): Likewise.
1691 * keyboard.c (input_available_signal, handle_user_signal)
1692 (interrupt_signal): Likewise.
1693 * process.c (sigchld_handler): Likewise.
1694 (create_process): Remove if 0 code. Remove HPUX conditional when
1695 !defined (POSIX_SIGNALS), it cannot be true.
1696 * syssignal.h: Remove USG5_4 and USG conditionals when
1697 !POSIX_SIGNALS, they cannot be true.
1698
b7064064
DN
1699 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1700 NO_SOCK_SIGIO, not used anymore.
1701
55da5ee3
DN
17022010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1703
0be96e3a
DN
1704 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1705 support vax on BSDs.
1706
55da5ee3
DN
1707 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1708 * s/aix4-2.h (ORDINARY_LINK): ... here.
1709
c0282183
AS
17102010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1711
82c3d67a
AS
1712 * Makefile.in (abs_builddir): Define.
1713 (bootstrap_exe): Use it.
1714 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1715
3613edce
SM
17162010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1717
1718 * Makefile.in (bootstrap_exe): Use an absolute name.
1719
7f110ddc
DN
17202010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1721
22e87574
DN
1722 Remove support for old GNU/Linux using libc version 5.
1723 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1724 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1725
05a670e6
DN
1726 Consolidate redundant definitions in s/bsd-common.h.
1727 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1728 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1729 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1730 doing it in all files that include this one.
1731 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1732 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1733 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1734 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1735 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1736 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1737 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1738 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1739 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1740
2968f561
DN
1741 Consolidate redundant definitions.
1742 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1743 it's undefined in all files that include this one.
1744 (POSIX_SIGNALS): Define here instead of doing it in all files that
1745 include this one.
1746 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1747 (POSIX_SIGNALS): Do not define.
1748 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1749 (POSIX_SIGNALS): Do not define.
1750 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1751 (POSIX_SIGNALS): Do not define.
1752
15d25dc0
DN
1753 Remove support for old UNIX System V systems.
1754 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1755 * s/usg-5-4-2.h: Remove.
1756
07e339e4
DN
1757 Remove support for Solaris on PPC and for old versions.
1758 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1759 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1760 that cancel each other.
1761 * s/sol2-3.h:
1762 * s/sol2-4.h:
1763 * s/sol2-5.h: Remove.
1764 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1765 (NO_REMAP): Remove, unused.
1766 (UNEXEC): Move definition ...
1767 * s/aix4-2.h (UNEXEC): ... here.
1768
7f110ddc
DN
1769 * s/openbsd.h: Remove support for non-ELF and for systems that do
1770 not support shared libraries.
1771 * s/netbsd.h:
1772 * s/freebsd.h: Likewise.
1773
605f35cd
DN
17742010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1775
1776 Remove non-working support for lynxos 3.0.
1777 * s/lynxos.h: Remove file.
1778
1779 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1780 COFF_BSD_SYMBOLS, nothing defines it anymore.
1781
aed71cf4
DN
17822010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1783
1784 Remove obsolete uses of HAVE_SHM.
1785 * emacs.c (standard_args):
1786 (Fdump_emacs):
1787 (syms_of_emacs): Remove code depending on HAVE_SHM.
1788
1789 * alloc.c: Remove HAVE_SHM dependent definition.
1790
1791 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1792
aded53ff
GM
17932010-03-18 Glenn Morris <rgm@gnu.org>
1794
17284745
GM
1795 * emacs.c (USAGE4): Hard-code bug address.
1796 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1797 (bug_reporting_address): Remove.
1798 (main): Don't call bug_reporting_address.
1799
aded53ff
GM
1800 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1801 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1802
303500aa
CY
18032010-03-15 Chong Yidong <cyd@stupidchicken.com>
1804
1805 * xfns.c (Fx_create_frame):
1806 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1807 on left.
1808
cef3058f
CY
18092010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1810
1811 * editfns.c (Fformat): Account for string precision when computing
1812 field width (Bug#5710).
1813
a647d59d
CY
18142010-03-12 Chong Yidong <cyd@stupidchicken.com>
1815
4fa42018
CY
1816 * xfns.c (Fx_create_frame): Set default to Qright.
1817
a647d59d
CY
1818 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1819 all window systems.
1820
6da23aaa
EZ
18212010-03-12 Eli Zaretskii <eliz@gnu.org>
1822
a96f6398 1823 These changes remove termcap.c from the build on Posix platforms.
83d02def 1824 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1825 (MSDOS_OBJ): ...to here.
1826 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1827 now identical to when LIBS_TERMCAP is defined.
1828
1829 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1830
1831 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1832
a96f6398 1833 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1834
288f9fc0
CY
18352010-03-10 Chong Yidong <cyd@stupidchicken.com>
1836
1837 * Branch for 23.2.
1838
d48cd3f4
SM
18392010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1840
1841 Cleanup setup of gl_state in various parts of the code.
1842 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1843 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1844 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1845 (skip_chars):
1846 * regex.c (regex_compile): Use it.
1847 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1848 it's now set in regex_compile when/if we need it.
1849
618db430
SM
18502010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1851
c0335e02
SM
1852 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1853 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1854 (QUIT): Use it to consolidate code and remove redundancy.
1855 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1856
254c06a8
SM
1857 * regex.c (regex_compile): Setup gl_state as well.
1858
618db430
SM
1859 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1860 (in_classes): Use CONSP before XCAR/XCDR.
1861
233f0c9f
CY
18622010-03-03 Chong Yidong <cyd@stupidchicken.com>
1863
1864 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1865 definitions, so that keyboard macros are correctly handled
1866 (Bug#5481).
1867
75f80e63
EZ
18682010-03-02 Eli Zaretskii <eliz@gnu.org>
1869
1870 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1871 text that could be relocated inside the call to emacs_mule_char.
1872 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1873 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1874
dcfb9bc4
KH
18752010-03-02 Kenichi Handa <handa@m17n.org>
1876
fc9a17bc
KH
1877 * character.c (parse_str_as_multibyte): Fix handling of the
1878 multibyte form of raw-bytes.
1879 (str_as_multibyte): Likewise.
1880
dcfb9bc4
KH
1881 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1882 form of raw-bytes.
1883
412c01b6
CY
18842010-02-28 Chong Yidong <cyd@stupidchicken.com>
1885
1886 * charset.c (load_charset_map_from_file)
1887 (load_charset_map_from_vector): Zero out allocated
1888 charset_map_entries before using them.
1889
df7e1ea0
AS
18902010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1891
1892 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1893
fe69a722
CY
18942010-02-27 Chong Yidong <cyd@stupidchicken.com>
1895
4ed28cf4
CY
1896 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1897 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1898
7379cfce
KH
18992010-02-26 Kenichi Handa <handa@m17n.org>
1900
f88cc4d6
KH
1901 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1902
7379cfce
KH
1903 * xdisp.c (reseat_to_string): Fix previous change.
1904
cf2fdcfb
CY
19052010-02-26 David Reitter <david.reitter@gmail.com>
1906
1907 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1908 Lisp_Object (Bug#4736).
1909
cc6c7c75
KH
19102010-02-25 Kenichi Handa <handa@m17n.org>
1911
1912 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1913
32e737d7
JD
19142010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1915
1916 * xterm.c (XTflash): Move declarations before statements.
1917
1918 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1919 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1920 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1921 (xg_create_tool_bar): Remove unused variables.
1922 (x_wm_set_size_hint): Move declarations before statements.
1923 (xg_create_frame_widgets): Remove variable grav,
1924
676cae9f
CY
19252010-02-21 Chong Yidong <cyd@stupidchicken.com>
1926
1927 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1928
886cc2b8
SM
19292010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1930
1931 * term.c (fatal): Add a final \n if needed (bug#5596).
1932
ddb2d8e2
CY
19332010-02-18 Chong Yidong <cyd@stupidchicken.com>
1934
1935 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1936
2a4f8d3d
GM
19372010-02-18 Glenn Morris <rgm@gnu.org>
1938
1939 * callint.c (Finteractive): Doc fix.
1940
ebaf11b6
KH
19412010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1942
886cc2b8
SM
1943 * coding.c (record_conversion_result):
1944 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1945 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1946 memory allocation error.
1947
d0396581
KH
19482010-02-17 Kenichi Handa <handa@m17n.org>
1949
886cc2b8
SM
1950 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1951 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1952 (decode_coding): Setup ccl program here. Keep looping when the
1953 decoder stopped because the output buffer is
1954 fullfilled (bug#5534).
1955
1956 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1957
98599f74
JD
19582010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1959
471e4f04 1960 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1961 bug #5571.
886cc2b8 1962 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1963 overdrawn.
98599f74 1964
182659ae
JD
19652010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1966
1967 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1968 doing_interact here.
1969 (ice_connection_closed): New function.
1970 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1971 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1972 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1973 returns I/O error.
1974 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1975 bug #5512.
1976
9be32c4e 19772010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1978
1979 * nsfont.m (nsfont_open): The system's value for the font descent
1980 is negative, so round it down to avoid clipping.
1981
a2f3eb19
CY
19822010-02-06 Chong Yidong <cyd@stupidchicken.com>
1983
1984 * charset.c (load_charset_map_from_file)
1985 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1986 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1987
3088147c
CY
19882010-02-05 Chong Yidong <cyd@stupidchicken.com>
1989
1990 * charset.c (load_charset_map_from_file): Allocate large
1991 charset_map_entries structure on the heap rather than the stack.
1992 (Bug#5526).
1993
b57d9029
KH
19942010-01-31 Kenichi Handa <handa@m17n.org>
1995
1996 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1997 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1998
c67d885b
CY
19992010-01-31 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2002 <deactivated@gmail.com> (Bug#3605).
2003
8fab2362
CY
20042010-01-31 David De La Harpe Golden <david@harpegolden.net>
2005
2006 * fileio.c (Frename_file): Correctly rename symlinks to
2007 directories (Bug#5496).
2008
cb2a62f2
CY
20092010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2010
2011 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2012
944c7a26
AS
20132010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2014
2015 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2016
c024ac08
CY
20172010-01-29 Chong Yidong <cyd@stupidchicken.com>
2018
2019 * frame.c (DEFAULT_ROWS): Change default to 35.
2020
2021 * xfns.c (x_default_font_parameter): Change default XFT font to
2022 monospace-10 (Bug#3643).
2023
af93af83
EZ
20242010-01-29 Eli Zaretskii <eliz@gnu.org>
2025
2026 * w32inevt.c (key_event): Remove unnecessary comparison of
2027 event->uChar.AsciiChar with 128.
2028
ca0eb708
CY
20292010-01-28 Chong Yidong <cyd@stupidchicken.com>
2030
b242dbfc
CY
2031 * fileio.c (Frename_file): Fix last change (Bug#5487).
2032
ca0eb708
CY
2033 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2034
2035 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2036
45d45af5
JD
20372010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2038
2039 * xfns.c (Fx_create_frame): Remove window size matching code from
2040 2010-01-15.
2041 (x_get_current_desktop, x_get_desktop_workarea): Remove
2042
7e233730
JR
20432010-01-27 Jason Rumney <jasonr@gnu.org>
2044
2045 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2046 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2047
86e893e3
KH
20482010-01-27 Kenichi Handa <handa@m17n.org>
2049
2050 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2051 pattern string (Bug#4209).
86e893e3 2052
8719abec
CY
20532010-01-27 David De La Harpe Golden <david@harpegolden.net>
2054
2055 * fileio.c (Frename_file): Call copy-directory and
2056 delete-directory for directories, in order to handle cross-device
2057 renaming (Bug#3353).
2058
844794c8
JD
20592010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2060
aa3e13b5 2061 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2062 sizes 24 and 10. Bug #3643.
844794c8 2063
bd4b5750
SM
20642010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2065
8dc1adf6 2066 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2067 * keymap.c (shadow_lookup): Add `remap' arg.
2068 (describe_map, describe_vector): Update calls to shadow_lookup.
2069 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2070 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2071 perform remapping during shadow_lookup check of remapped_sequences.
2072
285d07e2
CY
20732010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2074
2075 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2076 png_check_sig, which has been removed in libpng 1.4.
2077
c6d09b8d
CY
20782010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2079
2080 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2081 lacks this header file).
2082
3d782998
YM
20832010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2084
2085 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2086 as in Emacs 22.
2087
2aff7c53
YM
20882010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2089
2090 * lisp.h (make_pure_string): String pointer arg now points to const.
2091
2092 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2093 args now point to const.
2094
74327f7a
EZ
20952010-01-22 Eli Zaretskii <eliz@gnu.org>
2096
2097 * lread.c (Fload): Don't treat files without .elc extension as
2098 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2099 them. (bug#5303)
2100
4d1e6632
KH
21012010-01-20 Kenichi Handa <handa@m17n.org>
2102
2103 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2104 treat the source as actual byte sequence.
2105
1fdede8f
AM
21062010-01-19 Alan Mackenzie <acm@muc.de>
2107
2108 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2109 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2110 `signal_after_change_p' to `coherent_change_p', and make the
2111 invocation of `modify_region' conditional on it.
2112
67477f30
JD
21132010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2114
2115 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2116 for debug purpose.
2117 (syms_of_xsettings): Declare xft-settings.
2118
244b023e
CY
21192010-01-18 Chong Yidong <cyd@stupidchicken.com>
2120
2121 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2122
617364fe
CY
21232010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2124
2125 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2126
4fe22cdf
CY
21272010-01-16 Chong Yidong <cyd@stupidchicken.com>
2128
2129 * emacs.c (standard_args): Adjust arg priorities to reflect how
2130 they are processed in startup.el.
2131
e118d2be
AS
21322010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2133
2134 * Makefile.in (lisp, shortlisp): Update.
2135
523ae620
SM
21362010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2137
2138 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2139 code, link the new kboard into all_kboard before running Lisp code,
2140 and protect the new terminal with GCPRO (Bug#5365).
2141 (x_term_init): Remove unused var `atom'.
2142 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2143
f0d13888
JD
21442010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2145
2146 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2147 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2148 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2149 this. Bug #3643.
f0d13888 2150
cc320f07
KH
21512010-01-15 Kenichi Handa <handa@m17n.org>
2152
2153 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2154
7ffdf101
CY
21552010-01-15 Chong Yidong <cyd@stupidchicken.com>
2156
2157 * nsterm.m (Qnone): Define.
2158
2159 * nsfns.m (Qnone): Move definition to nsterm.m.
2160
d12bd917
KH
21612010-01-14 Kenichi Handa <handa@m17n.org>
2162
2163 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2164 systems.
2165
d9a7c140
KH
21662010-01-14 Kenichi Handa <handa@m17n.org>
2167
2168 Make auto-composition work on all buffers even if they are
2169 fundamental mode.
2170
2171 * composite.c (Vauto_composition_mode): New variable.
2172 (composition_compute_stop_pos): Check Vauto_composition_mode
2173 instead of Vauto_composition_function.
2174 (composition_adjust_point, Ffind_composition_internal): Likewise.
2175 (syms_of_composite): Declare Lisp variable
2176 "auto-composition-mode" here.
2177
63286bb2
CY
21782010-01-13 Chong Yidong <cyd@stupidchicken.com>
2179
2180 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2181 during call to vendor-specific-keysyms (Bug#5365).
2182
c2623ee7
YM
21832010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2184
2185 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2186 Call SIGNAL_THREAD_CHECK (Bug#5333).
2187
2188 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2189 Call SIGNAL_THREAD_CHECK.
2190
0b5397c2
SM
21912010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2192
2193 Try to fix bug#5314. This is probably not the final word, tho.
2194 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2195 recent-auto-save-p as a side-effect.
2196 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2197 * buffer.c (Fkill_buffer, reset_buffer):
2198 * editfns.c (Fsubst_char_in_region):
2199 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2200 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2201
dc954cb2
KH
22022010-01-13 Kenichi Handa <handa@m17n.org>
2203
2204 Display buffer name, etc. in mode line by composing correctly.
2205
2206 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2207 STRING is not nil.
0b5397c2 2208 (display_mode_element): Adjust for the change of
dc954cb2
KH
2209 decode_mode_spec and display_line.
2210 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2211 (display_string): Handle the case that STRING is non-null and
2212 LISP_STRING is not nil.
2213
0b5397c2
SM
2214 * xterm.c (x_draw_composite_glyph_string_foreground):
2215 Pay attention to s->face->overstrike.
dc954cb2
KH
2216
2217 * composite.c (composition_reseat_it): Don't check PT if STRING is
2218 non nil.
2219
4a00eaca
YM
22202010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2221
2222 * keyboard.c (read_char): Don't apply previous change when current
2223 buffer is unchanged by command execution.
2224
60abb287
JD
22252010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2226
2227 * keyboard.c (read_char): Return after executing from special map.
2228
893db5bc
GM
22292010-01-12 Glenn Morris <rgm@gnu.org>
2230
2231 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2232 bug-gnu-emacs rather than emacs-pretest-bug.
2233
4d03ece0
CY
22342010-01-11 Chong Yidong <cyd@stupidchicken.com>
2235
2236 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2237 initializing the Lisp variables that depend on them.
2238
1df47e38
YM
22392010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2240
2241 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2242 Clear areas that will not be updated after change of menu bar lines.
2243 Clear the menu bar window's current matrix when the window gets empty.
2244
2f1c6384
CY
22452010-01-09 Chong Yidong <cyd@stupidchicken.com>
2246
e398c61c
CY
2247 * intervals.h, textprop.c (extend_property_ranges): Return value
2248 and args changed. Discard properties that begin at or after the
2249 new end (Bug#5306).
2250
2251 * editfns.c (Fformat): Caller changed.
2252
e5a29a10
CY
2253 * nsterm.m (ns_set_default_prefs): Delete function.
2254 (syms_of_nsterm): Initialize ns_command_modifier,
2255 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2256 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2257
2f1c6384
CY
2258 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2259 position (Bug#4040).
2260
d427a9fa
EZ
22612010-01-09 Eli Zaretskii <eliz@gnu.org>
2262
2263 * editfns.c (Ffloat_time): Doc fix.
2264
21b9df2f
JD
22652010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2266
2267 * xfns.c (Fx_create_frame): Don't create frame larger than display
2268 by default bug#3643.
2269
4b00d3b1
YM
22702010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2271
2272 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2273 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2274 windows above internal border.
2275
2276 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2277 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2278 windows above internal border.
2279
2280 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2281 tool bar windows specially.
2282
2283 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2284
2285 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2286 specially.
2287 (XTflash): Take account of menu bar height.
2288
2289 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2290 specially.
2291
5075d853
JD
22922010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2293
ac146f82 2294 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2295 also be true before we can return early (bug #5339).
2296
474217c8
CY
22972010-01-06 David Reitter <david.reitter@gmail.com>
2298
2299 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2300 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2301 (Bug#3233).
2302
c0e6d47d
JD
23032010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2304
d0cf45b7
JD
2305 * font.c (font_open_entity): Enable chache and call cached_font_ok
2306 for the driver if defined.
2307 (QCuser_spec): New symbol.
2308 (font_spec_from_name): Save name as user-spec.
2309 (font_load_for_lface): Keep user-spec instead of name.
2310 (font_open_by_name): Save name as user-spec.
2311 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2312 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2313
2314 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2315 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2316 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2317
2318 * font.h (struct font_driver): Add cached_font_ok.
2319
c0e6d47d
JD
2320 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2321
7c583cd8
JD
23222010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2323
2324 * xterm.c (x_new_font): Move code for setting rows/cols before
2325 resizing ...
ac146f82 2326 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2327
2328 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2329 (xg_frame_resized, xg_frame_set_char_size):
2330 Call xg_clear_under_internal_border.
7c583cd8 2331 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2332
03f77f0a
CY
23332010-01-05 Chong Yidong <cyd@stupidchicken.com>
2334
2335 * keyboard.c (read_key_sequence): Catch keyboard switch after
2336 making a new tty frame (Bug#5095).
2337
2a1ef5be
KH
23382010-01-05 Kenichi Handa <handa@m17n.org>
2339
2340 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2341
e3eb1dae
SM
23422010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2343
2344 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2345 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2346 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2347
777013f2
MA
23482010-01-03 Michael Albinus <michael.albinus@gmx.de>
2349
2350 * dbusbind.c (xd_add_watch): Improve debug message.
2351 (xd_remove_watch): Improve debug message. If DATA is the session
2352 bus, unset D-Bus session environment.
2353 (Fdbus_init_bus): Pass the bus as argument to
2354 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2355
8932b1c2
CY
23562010-01-01 Chong Yidong <cyd@stupidchicken.com>
2357
87231e2c
CY
2358 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2359
4801c5fa
CY
2360 * lread.c (syms_of_lread): Make it clearer that these are the
2361 names of loaded files (Bug#5068).
2362
8932b1c2
CY
2363 * eval.c (run_hook_with_args): Handle the case where the global
2364 value has the obsolete single-function form (Bug#5026).
2365
11e3c684
CY
23662009-12-27 Chong Yidong <cyd@stupidchicken.com>
2367
2368 * minibuf.c (Fall_completions): Minor optimization.
2369
5b28ce35
EZ
23702009-12-26 Eli Zaretskii <eliz@gnu.org>
2371
5ce6e4f4
JB
2372 * .gdbinit (pgx): Fix display of composite glyphs.
2373 Display cmp.from and cmp.to as well.
2374 (pitx): Fix last change.
5b28ce35 2375
bcffff46
KH
23762009-12-25 Kenichi Handa <handa@m17n.org>
2377
2378 * composite.h (composition_adjust_point): Update prototype.
2379
2380 * composite.c (composition_reseat_it): Don't make a composition
2381 spanning over point.
2382 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2383 composable characters.
2384 (composition_adjust_point): New arg NEW_PT. Callers changed.
2385
2386 * keyboard.c (command_loop_1): Force redisplay if the last point
2387 was within a composition.
2388 (adjust_point_for_property): Don't adjust point for automatic
2389 composition when called after buffer modification.
2390
3f670e9a
EZ
23912009-12-19 Eli Zaretskii <eliz@gnu.org>
2392
5ce6e4f4
JB
2393 * .gdbinit (pitx): Don't use enum names, use their values.
2394 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2395 (pgx): Don't use enum names, use their values.
2396 (pitmethod): New helper command.
2397 (pitx): Use it to display iteration method.
2398 (pgrowit): New command.
2399
ad903955
EZ
2400 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2401
3f670e9a
EZ
2402 Update dependencies in Makefile.in.
2403
2404 * Makefile.in (alloc.o): Depend on termhooks.h.
2405 (atimer.o): Depend on blockinput.h.
2406 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2407 and frame.h.
2408 (callint.o): Depend on systime.h, coding.h, and composite.h.
2409 (callproc.o): Depend on buffer.h.
2410 (casefiddle.o): Don't depend on charset.h.
2411 (casetab.o): Depend on character.h.
2412 (ccl.o): Depend on composite.h.
2413 (chartab.o): Depend on ccl.h.
2414 (cm.o): Depend on dispextern.h.
2415 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2416 (coding.o): Don't depend on $(INTERVALS_H).
2417 (composite.o): Don't depend on dispextern.h explicitly (it's in
2418 $(INTERVALS_H)). Depend on ccl.h.
2419 (data.o): Depend on systime.h, coding.h, composite.h,
2420 dispextern.h, font.h, and ccl.h.
2421 (dired.o): Depend on composite.h.
2422 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2423 composite.h (it's in $(INTERVALS_H)).
2424 (doc.o): Depend on systime.h, coding.h, and composite.h.
2425 (editfns.o): Don't depend explicitly on dispextern.h.
2426 (emacs.o): Depend on frame.h and coding.h.
2427 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2428 (fileio.o): Depend on frame.h and commands.h. Don't depend
2429 explicitly on dispextern.h.
2430 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2431 composite.h.
2432 (fns.o): Don't depend on termhooks.h.
2433 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2434 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2435 coding.h, $(INTERVALS_H), window.h, xterm.h.
2436 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2437 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2438 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2439 fontset.h, ccl.h, and ftfont.h.
2440 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2441 (gtkutil.o): Depend on dispextern.h and composite.h.
2442 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2443 termhooks.h, and ccl.h.
2444 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2445 (intervals.o): Depend on systime.h and coding.h.
2446 (keyboard.o): Depend on composite.h and coding.h.
2447 (keymap.o): Depend on coding.h and frame.h.
2448 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2449 (macros.o): Depend on systime.h, coding.h, and composite.h.
2450 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2451 and atimer.h.
2452 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2453 dispextern.h explicitly.
0b5397c2
SM
2454 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2455 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2456 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2457 (regex.o): Don't depend on charset.h.
2458 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2459 (search.o): Don't depend explicitly on composite.h.
2460 (sound.o): Depend on atimer.h and systime.h.
2461 (syntax.o): Don't depend explicitly on composite.h.
2462 (sysdep.o): Depend on coding.h and composite.h.
2463 (term.o): Depend on xterm.h and buffer.h.
2464 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2465 (textprop.o): Don't depend on dispextern.h explicitly.
2466 (undo.o): Depend on dispextern.h.
2467 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2468 dispextern.h and composite.h explicitly.
2469 (xdisp.o): Depend on ccl.h.
2470 (xfaces.o): Depend on coding.h and ccl.h.
2471 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2472 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2473 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2474 ftfont.h.
2475 (xgselect.o): New dependency.
2476 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2477 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2478 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2479 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2480 (xsmfns.o): Depend on frame.h and dispextern.h.
2481 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2482 sysselect.h.
2483
7a6f7fea
AS
24842009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2485
2486 * font.c (Fclear_font_cache): Pass correct cache argument to
2487 font_clear_cache.
2488
f4c21026
AS
24892009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2490
2491 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2492 twice.
2493
f7ab0997
CY
24942009-12-15 Chong Yidong <cyd@stupidchicken.com>
2495
2496 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2497 calling file-remote-p. Reported by Jim Meyering.
2498
fa8e045a
MA
24992009-12-15 Michael Albinus <michael.albinus@gmx.de>
2500
2501 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2502 avoid compiler warnings. (Bug #5217)
fa8e045a 2503
a63dba42
KH
25042009-12-14 Kenichi Handa <handa@m17n.org>
2505
2506 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2507 in 8-bit encoding.
2508
5ce6e4f4 25092009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2510
2511 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2512 tooltip windows.
2513
223e5fc6
JD
25142009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2515
36acb2a7
JD
2516 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2517 Xatom_net_window_type.
2518
2519 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2520 Xatom_net_window_type.
2521
b8f00677
JD
2522 * xterm.c (my_log_handler): New function.
2523 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2524 so we can filter out buggy messages. (Bug #5120).
b8f00677 2525
e5f0bc9a
JD
2526 * xterm.c (xg_scroll_callback): Parameter list changed,
2527 use parameter GtkScrollType to determine scroll/line/page.
2528 Only allow dragging if a button < 4 is grabbed (bug #5177).
2529 (xg_end_scroll_callback): New function.
2530 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2531 xg_create_scroll_bar.
2532
2533 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2534 (scroll_end_callback): Remove.
2535 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2536 button-release-event. Replace value-changed event with change-value,
2537 bug #5177,
2538 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2539 bug #5177.
2540
2541 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2542 (xg_create_scroll_bar): Add GCallback end_callback.
2543
223e5fc6
JD
2544 * xftfont.c (QClcdfilter): New variable.
2545 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2546 (syms_of_xftfont): Initialize QClcdfilter.
2547
3c055b77
JD
25482009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2549
2550 * xsettings.c (struct xsettings): Add member seen.
2551 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2552 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2553 (apply_xft_settings): Only update Xft settings with what member seen
2554 indicates as new.
2555
05fe33ff
EZ
25562009-12-12 Eli Zaretskii <eliz@gnu.org>
2557
2558 * dispextern.h (struct text_pos): Use EMACS_INT;
2559 (struct glyph): Use EMACS_INT for charpos.
2560 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2561 region_beg_charpos, region_end_charpos,
2562 redisplay_end_trigger_charpos, and also for
2563 iterator_stack_entry.end_charpos and
2564 iterator_stack_entry.stop_charpos.
2565
e8d7886a
JD
25662009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2567
5ce6e4f4 2568 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2569 (xg_create_scroll_bar): Call scroll_end_callback on button release
2570 event (bug #5177).
2571 (xg_event_is_for_scrollbar): != replaced with ==.
2572
d0db2ec8
KH
25732009-12-12 Kenichi Handa <handa@m17n.org>
2574
2575 * ftfont.c (struct ftfont_info): New member matrix.
2576 (ftfont_open): Setup xftfont_info->matrix.
2577 (MFLTFontFT): New member matrix.
2578 (FLOOR, CEIL, ROUND): New macros.
2579 (ftfont_get_metrics): Handle matrix transformation.
2580 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2581
2582 * xftfont.c (struct xftfont_info): New member matrix.
2583 (xftfont_open): Setup xftfont_info->matrix.
2584
25852009-12-10 Kenichi Handa <handa@m17n.org>
2586
2587 * xdisp.c (append_space_for_newline): Consider face-remapping.
2588
2cc7b62f
AS
25892009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2590
b87dd913
AS
2591 * xsettings.c: Include "keyboard.h".
2592
eba5eb94
AS
2593 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2594
2cc7b62f
AS
2595 Fix implicit function declarations.
2596 * cmds.c: Include "frame.h".
2597 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2598 * frame.h: Move declaration of delete_frame outside of
2599 HAVE_WINDOW_SYSTEM.
2600
a4ef73c8
CY
26012009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2602
2603 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2604
2605 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2606 GTK builds.
2607
944a300c
AS
26082009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2609
2610 * unexelf.c (unexec): Don't search for .data twice.
2611
022eef62
CY
26122009-12-05 Chong Yidong <cyd@stupidchicken.com>
2613
426ac949
CY
2614 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2615 if push failed.
2616 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2617 of push_display_prop (Bug#5000).
2618
022eef62
CY
2619 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2620 value of font_list_entities (Bug#5085).
2621
be95bee9
JB
26222009-12-04 Juanma Barranquero <lekktu@gmail.com>
2623
2624 Fix `string-to-number' to deal consistently with integers and floats.
2625 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2626 trailing characters, not just whitespace.
2627 (read1): Pass new arg 0 to keep old behavior.
2628 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2629 trailing chars, as it is already done for integers. Doc fixes.
2630 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2631
24c2d7ce
EZ
26322009-12-04 Eli Zaretskii <eliz@gnu.org>
2633
0b5397c2
SM
2634 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2635 Delete unused enumeration value.
24c2d7ce 2636
7e694795
EZ
26372009-12-03 Eli Zaretskii <eliz@gnu.org>
2638
2639 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2640
84b31826
SM
26412009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2642
2643 * process.c (Fmake_network_process): Fix up the tests for
2644 "connectionless socket", so they DTRT for seqpacket sockets as well.
2645
f00c449b
SM
26462009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2647
2648 * process.c (Qseqpacket): New symbol.
2649 (HAVE_SEQPACKET): New macro.
2650 (Fmake_network_process): Accept new :type `seqpacket'.
2651 (init_process): Add `seqpacket' feature when applicable.
2652 (syms_of_process): Initialize Qseqpacket.
2653
8096a0ff
YM
26542009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2655
2656 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2657 if entity is Qnil.
2658
3e0de07f
SM
26592009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2660
2661 * print.c (print_preprocess): Preprocess the key_and_value table of
2662 hashtables, even tho they're "hidden" (bug#5082).
2663
abeafb2a
JD
26642009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2665
2666 * frame.c (frame_make_pointer_invisible)
2667 (frame_make_pointer_visible): Declare f before statements.
2668
4bf47195
EZ
26692009-11-28 Eli Zaretskii <eliz@gnu.org>
2670
2671 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2672 omitted dependencies on lisp.h.
2673
c525b3f2
JD
26742009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2675
ece2d4ed
JD
2676 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2677 is NULL.
2678
2679 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2680
2681 * frame.c (frame_make_pointer_invisible)
3e0de07f 2682 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2683 frame.
2684
c525b3f2
JD
2685 * search.c (simple_search): Remove warning by making *p const.
2686
2f00e299
DN
26872009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2688
2689 * xdisp.c (power_letter): Remove duplicate const.
2690
084b049b
JD
26912009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2692
a1fadc6f
JD
2693 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2694
5ce6e4f4 2695 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2696 defaults (bug #5025).
2697
28259cac
SM
26982009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2699
2700 * insdel.c (adjust_markers_for_delete): Move it in the
2701 right direction! (bug#4803)
2702
e8e14166
YM
27032009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2704
2705 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2706
2707 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2708
86677b58
GM
27092009-11-24 Glenn Morris <rgm@gnu.org>
2710
2711 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2712
581e51e8
JD
27132009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2714
cfc86c7a
JD
2715 * Makefile.in: Must create deps for ecrt0.o in its rule.
2716
581e51e8
JD
2717 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2718 because that is what Gtk+ font dialog understands.
2719
2720 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2721 of Fcopy_sequence.
2722 (font_open_by_name): Put name given into QCname for font-object returned.
2723
2724 * frame.c (x_set_font): Save original font name as frame parameter
2725 font-parameter.
2726
2727 * xsettings.c (set_default_xft_settings): New function.
2728 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2729 is found.
2730
8b264ecb
AS
27312009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2732
2733 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2734 searching backwards through multibyte buffer.
2735
872870b2
JD
27362009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2737
2738 * xterm.c: #include xgselect.h.
2739 (x_initialize): Call xgselect_initialize.
2740
2741 * xsettings.c (something_changedCB): C++ comments => C comments.
2742 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2743 does that now.
2744
2745 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2746 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2747 (scroll_bar_button_cb): Remove.
5ce6e4f4 2748 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2749 event.
2750 (xg_create_scroll_bar): Don't bind button-press-event and
2751 button-release-event.
2752
2753 * process.c: Include xgselect.h if defined (USE_GTK) ||
2754 defined (HAVE_GCONF).
2755 (wait_reading_process_output): Call xg_select for the same condition.
2756
2757 * xgselect.c (xg_select): New function to better integrate with
2758 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2759
2760 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2761
2762 * Makefile.in (XOBJ): Add xgselect.o.
2763
62a6e103
AS
27642009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2765
0b5397c2
SM
2766 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2767 Remove ignored second argument. All callers changed.
62a6e103
AS
2768 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2769 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2770 * xdisp.c (string_char_and_length): Likewise.
2771
b0ca0f33
DN
27722009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2773
2774 * xterm.c (x_new_font):
2775 * print.c (print_object):
2776 * cmds.c (Fself_insert_command): Move declarations before statements.
2777
dd5a6279
CY
27782009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2779
2780 * s/cygwin.h: Remove unneeded linker flags.
2781
4a8e097d
JD
27822009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2783
0d1d0d26
JD
2784 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2785
2786 * xsettings.h: Declare xsettings_get_system_font.
2787
2788 * xsettings.c (xsettings_get_system_font): New function.
2789 (init_gconf): No use initiating gconf unless we have Xft also.
2790 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2791 HAVE_GCONF.
2792
4a8e097d
JD
2793 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2794 add a blank entry so it doesn't collapse into nothing.
2795
8ab1650e
SM
27962009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2797
2798 * lread.c (Funintern): Comment out last change.
2799
82c602f0
RS
28002009-11-19 Richard Stallman <rms@gnu.org>
2801
2802 * lread.c (Funintern): Error if symbol is t or nil.
2803
87e32266
SM
28042009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2805
2806 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2807 representation of Lisp integers.
2808 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2809
1b9ac145
AS
28102009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2811
2812 * lisp.h: Remove declaration of Ffont_get_system_font.
2813 * xfns.c: Move include of "xsettings.h".
2814 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2815
dfb3c4c6
JD
28162009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2817
87e32266
SM
2818 * xsettings.c (something_changedCB, Ffont_get_system_font):
2819 Check use_system_font.
dfb3c4c6
JD
2820 (syms_of_xsettings): DEFVAR font-use-system-font.
2821
9370c1d8
AS
28222009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2823
25fe851a
AS
2824 * xfns.c (x_default_font_parameter): Remove dead assignment.
2825
9370c1d8
AS
2826 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2827
637fa988
JD
28282009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2829
87e32266 2830 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2831 not have FC_LCD_*. #define them if not there.
a6eb20d8 2832
87e32266 2833 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2834
637fa988
JD
2835 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2836
2837 * xterm.c (handle_one_xevent): Call xft_settings_event for
2838 ClientMessage, PropertyNotify and DestroyNotify.
2839 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2840 Call xsettings_initialize.
2841
2842 * xftfont.c (xftfont_fix_match): New function.
2843 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2844 Call xftfont_fix_match after XftFontMatch.
2845
2846 * xfont.c (xfont_driver): Initialize all members.
2847
87e32266
SM
2848 * xfns.c (x_default_font_parameter):
2849 Try font from Ffont_get_system_font.
637fa988
JD
2850 Do not get font from x_default_parameter if we got one from
2851 Ffont_get_system_font.
87e32266 2852 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2853
2854 * w32font.c (w32font_driver): Initialize all members.
2855
2856 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2857
2858 * lisp.h: Declare syms_of_xsettings.
2859
87e32266
SM
2860 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2861 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2862
2863 * ftfont.c (ftfont_filter_properties): New function.
2864
2865 * frame.c (x_set_font): Remove unused variable lval.
2866
87e32266 2867 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2868
2869 * font.c (font_put_extra): Don't return if val is nil, it means
2870 boolean option is off.
2871 (font_parse_fcname): Collect all extra properties in extra_props
2872 and call filter_properties for all drivers with extra_props and
2873 font as parameter.
87e32266
SM
2874 (font_open_entity): Do not use cache, it does not pick up new
2875 fontconfig settings like hinting.
637fa988
JD
2876 (font_load_for_lface): If spec had a name in it, store it in entity.
2877
2878 * emacs.c (main): Call syms_of_xsettings
2879
2880 * config.in: HAVE_GCONF is new.
2881
2882 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2883 xsettings.o is new.
2884
5a942932
KH
28852009-11-17 Kenichi Handa <handa@m17n.org>
2886
2887 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2888 back to the default font in case that no suitable font is found.
2889
b7c7a4d1
SM
28902009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2891
2892 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2893 Suggested by Chad Brown <yandros@mit.edu>.
2894 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2895
072f1e39
JD
28962009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2897
2898 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2899
5d1e70a2
AS
29002009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2901
87e32266 2902 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2903
a53cfbe5
JD
29042009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2905
473a99b7
JD
2906 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2907 has a parent.
2908
a53cfbe5 2909 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2910 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2911
2912 * config.in: Generated (AUTO_DEPEND).
2913
f04bb9b2
MA
29142009-11-13 Michael Albinus <michael.albinus@gmx.de>
2915
b7c7a4d1 2916 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2917 Vdbus_registered_functions_table, because it contains also
2918 properties. Fix docstring.
b7c7a4d1 2919 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2920
8f11f7ec
SM
29212009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2922
2923 * alloc.c (mark_object): Don't reprocess marked strings.
2924 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2925 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2926
8a605fe8
KH
29272009-11-13 Kenichi Handa <handa@m17n.org>
2928
8f11f7ec 2929 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2930 semantics of Vword_combining_categories.
2931 (Vword_combining_categories): Describe the slight change of the
2932 semantics.
2933
241c4680
EZ
29342009-11-13 Eli Zaretskii <eliz@gnu.org>
2935
2936 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2937
2938 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2939
5d58e44c
SM
29402009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2941
2942 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2943
5e13f9d3
JB
29442009-11-12 Juanma Barranquero <lekktu@gmail.com>
2945
2946 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2947
cf54c754
DR
29482009-11-11 David Reitter <david.reitter@gmail.com>
2949
2950 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2951 variables to fix 2009-11-09 change.
2952
a4ada374
DN
29532009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2954
91433552
DN
2955 * process.c (ifflag_def): Make flag_sym constant.
2956 (Fnetwork_interface_info): Use a constant pointer.
2957 (ifflag_table):
2958 * xfns.c (cursor_bits):
2959 * xdisp.c (power_letter):
2960 * termcap.c (speeds, esctab):
2961 * sysdep.c (baud_convert):
2962 * keyboard.c (lispy_accent_codes, modifier_names):
2963 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2964 (jpeg_format, tiff_format, gif_format, svg_format)
2965 (interlace_start, interlace_increment, gs_format):
2966 * gtkutil.c (separator_names):
2967 * fringe.c (swap_nibble):
2968 * fns.c (base64_value_to_char, base64_char_to_value):
2969 * fileio.c (make_temp_name_tbl):
2970 * coding.c (suffixes): Make constant.
2971
f4265f6c
DN
2972 * frame.c (make_initial_frame):
2973 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2974 build_string.
2975 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2976
04420943
DN
2977 * s/freebsd.h:
2978 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2979
0a5d24ae
DN
2980 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2981 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2982
a4ada374
DN
2983 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2984 * xterm.c (syms_of_xterm):
2985 * xfaces.c (syms_of_xfaces):
2986 * xdisp.c (syms_of_xdisp):
2987 * lread.c (syms_of_lread):
2988 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2989 build_string.
91433552 2990
a4ada374
DN
2991 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2992
af98fc7f
SM
29932009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2994
8ab1650e 2995 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2996
e90292a9
JD
29972009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2998
2999 * keyboard.h: Declare timer_check.
3000
3001 * keyboard.c (timer_check_2): New function that does what the old
3002 timer_check did.
3003 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3004 returned, i.e. don't return -1 with timers pending.
3005
3006 * process.c: Remove extern declaration of timer_check.
3007
3008 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3009 even if timer_check returned -1.
3010
af98fc7f
SM
3011 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3012 xg_dialog_data.
e90292a9
JD
3013 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3014 the event loop.
3015 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3016 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3017 Destroy the dialog after xg_dialog_run.
3018
045b83c0
SM
30192009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3020
3021 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3022
1fb99a3a
JD
30232009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3024
3025 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3026
04e452cb
JB
30272009-11-09 Juanma Barranquero <lekktu@gmail.com>
3028
3029 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3030
ef7417fd
SM
30312009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3032
3033 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3034 w32menu.c, and nsmenu.m.
3035 Simplify the obsolete case where position is nil.
3036 (cleanup_popup_menu): New function, moved from nsmenu.m.
3037 (struct skp): Remove slot `notreal'.
3038 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3039 adjust callers.
3040 (single_menu_item): Adjust call to parse_menu_item.
3041 (syms_of_menu): Defsubr x-popup-menu.
3042 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3043 (keymap_panes): Don't export any more.
3044 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3045 (xmenu_show): Declare.
3046 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3047 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3048 * keyboard.h (parse_menu_item): Update declaration.
3049 * xmenu.c (Fx_popup_menu): Remove.
3050 (syms_of_xmenu): Don't defsubr x-popup-menu.
3051 * w32menu.c (Fx_popup_menu): Remove.
3052 (syms_of_w32menu): Don't defsubr x-popup-menu.
3053 * nsmenu.m (cleanup_popup_menu): Remove.
3054 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3055 moved to menu.c's Fx_popup_menu.
3056 (Fx_popup_menu): Remove.
3057 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3058 menu_items (it's done in menu.c already).
3059
424d6179
SM
30602009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3061
3062 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3063 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3064
c0df13a6 30652009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3066
3067 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3068 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3069 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3070 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3071
2de9f71c
SM
30722009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3073
3074 Let integers use up 2 tags to give them one extra bit and thus double
3075 their range.
3076 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3077 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3078 New macros.
3079 (enum Lisp_Type): Use them. Give explicit values.
3080 (Lisp_Type_Limit): Remove.
3081 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3082 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3083 Pay attention to USE_2_TAGS_FOR_INTS.
3084 (INTEGERP): Use LISP_INT_TAG_P.
3085 * fns.c (internal_equal): Simplify the default case.
3086 (sxhash): Use case_Lisp_Int.
3087 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3088 any more.
3089 (Ftype_of): Use case_Lisp_Int.
3090 (store_symval_forwarding): Take into account the fact that Ints can
3091 now have more than one tag.
3092 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3093 buffer_slot_type_mismatch):
3094 * xfaces.c (face_attr_equal_p):
3095 * print.c (print_object):
3096 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3097 Use case_Lisp_Int.
3098
323637a2
EZ
30992009-11-06 Eli Zaretskii <eliz@gnu.org>
3100
7ac65b38
EZ
3101 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3102
323637a2
EZ
3103 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3104 warning.
3105
e511451f
JD
31062009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3107
3108 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3109
3110 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3111
3112 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3113 ButtonPressRelease and MotionNotify (bug#4870).
3114
5e2327cf
DN
31152009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3116
5adc433e
DN
3117 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3118
d67b4f80
DN
3119 * xterm.c (syms_of_xterm):
3120 * xselect.c (syms_of_xselect):
3121 * xmenu.c (syms_of_xmenu):
3122 * xfns.c (syms_of_xfns):
3123 * xfaces.c (syms_of_xfaces):
3124 * xdisp.c (syms_of_xdisp):
3125 * window.c (syms_of_window):
3126 * w32fns.c (syms_of_w32fns):
3127 * undo.c (syms_of_undo):
3128 * textprop.c (syms_of_textprop):
3129 * terminal.c (syms_of_terminal):
3130 * syntax.c (syms_of_syntax):
3131 * sound.c (syms_of_sound):
3132 * search.c (syms_of_search):
3133 * print.c (syms_of_print):
3134 * minibuf.c (syms_of_minibuf):
3135 * macros.c (syms_of_macros):
3136 * keymap.c (syms_of_keymap, initial_define_key)
3137 (initial_define_lispy_key):
3138 * keyboard.c (syms_of_keyboard):
3139 * insdel.c (syms_of_insdel):
3140 * image.c (syms_of_image):
3141 * fringe.c (syms_of_fringe):
3142 * frame.c (syms_of_frame):
3143 * fontset.c (syms_of_fontset):
3144 * fns.c (syms_of_fns):
3145 * fns.c (syms_of_fns):
3146 * fileio.c (syms_of_fileio):
3147 * fileio.c (syms_of_fileio):
3148 * eval.c (syms_of_eval):
3149 * doc.c (syms_of_doc):
3150 * dispnew.c (syms_of_display):
3151 * dired.c (syms_of_dired):
3152 * dbusbind.c (syms_of_dbusbind):
3153 * data.c (syms_of_data):
3154 * composite.c (syms_of_composite):
3155 * coding.c (syms_of_coding):
3156 * cmds.c (syms_of_cmds):
3157 * charset.c (define_charset_internal, syms_of_character):
3158 * ccl.c (syms_of_ccl):
3159 * category.c (syms_of_category, init_category_once):
3160 * casetab.c (syms_of_casetab):
3161 * casefiddle.c (syms_of_casefiddle):
3162 * callint.c (syms_of_callint):
3163 * bytecode.c (syms_of_bytecode):
3164 * buffer.c (keys_of_buffer, syms_of_buffer):
3165 * alloc.c (syms_of_alloc):
3166 * process.c (syms_of_process, init_process):
3167 * lread.c (syms_of_lread, init_obarray):
3168 * font.c (build_style_table):
3169 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3170 intern_c_string, calls to make_pure_string with
3171 make_pure_c_string. Use pure_cons instead of Fcons.
3172
5e2327cf
DN
3173 * process.c (socket_options): Make it const.
3174 (set_socket_option, init_process): Use a const pointer.
3175
3176 * lread.c (intern_c_string): New function.
3177 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3178 (defvar_int): Uset it. Make the name const char*.
3179
3180 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3181 (defvar_int): Update prototypes.
3182 (DEFUN, EXFUN): Support for prototypes is now required.
3183 (intern_c_string): New prototype.
3184 (struct Lisp_Subr): Make symbol_name constant.
3185
3186 * font.c (struct table_entry): Remove unused member. Make NAMES
3187 constant.
3188 (weight_table, slant_table, width_table): Make constant.
3189
3190 * emacs.c (struct standard_args): Make name and longname constant.
3191
3192 * character.h (DEFSYM): Use intern_c_string.
3193
a56eaaef
DN
31942009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3195
3196 * alloc.c (make_pure_c_string): New function.
3197
3198 * eval.c (Fautoload): Purecopy all arguments.
3199
f6a07420
KH
32002009-11-05 Kenichi Handa <handa@m17n.org>
3201
3202 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3203 the buffer in case of replace.
3204
5d28d4b1
DN
32052009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3206
3207 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3208
b349d111
SM
32092009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3210
d528b1ce
SM
3211 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3212 when applicable (bug#4851).
3213
b349d111
SM
3214 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3215 (P_): Support for prototypes is now required.
3216
c38eb027
CY
32172009-10-31 Chong Yidong <cyd@stupidchicken.com>
3218
3219 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3220 (Bug#4827).
3221
0405f8d9
EZ
32222009-10-30 Eli Zaretskii <eliz@gnu.org>
3223
d528b1ce 3224 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3225
ca0a881a
DN
32262009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3227
3228 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3229
d528b1ce
SM
3230 * lread.c (Fload): Purecopy the file name when building
3231 Vpreloaded_file_list.
ca0a881a 3232
47e0e0e4
JR
32332009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3234
3235 * w32fns.c (syms_of_w32fns): Change default value of
3236 w32-scroll-lock-modifier to nil. (Bug#2827)
3237
057bce6f
JB
32382009-10-26 Juanma Barranquero <lekktu@gmail.com>
3239
782a943e 3240 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3241
242bc74c
AS
32422009-10-26 Andreas Schwab <schwab@redhat.com>
3243
3244 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3245
522d013a
JB
32462009-10-26 Juanma Barranquero <lekktu@gmail.com>
3247
3248 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3249 For delta < 0, skip check that only makes sense when the mini-window
3250 is going to be enlarged. (Bug#4534)
3251
18060980
CY
32522009-10-25 Chong Yidong <cyd@stupidchicken.com>
3253
3254 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3255 string in menu maps (Bug#4471).
3256
fec8f0fe
CY
32572009-10-24 Chong Yidong <cyd@stupidchicken.com>
3258
3259 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3260 FRAME_NS_VIEW on terminal frames (Bug#4765).
3261
10d66ec0
AS
32622009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3263
1cae01f7
AS
3264 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3265 DBUS_TYPE_UINTnn separately to get proper sign extension.
3266
58a12889
AS
3267 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3268 can properly handle unsigned types.
d528b1ce 3269 (make_uid, make_gid): Remove.
58a12889 3270
987c9327
AS
3271 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3272 types again.
3273
522d013a 3274 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3275 (system_process_attributes): Likewise.
3276
905a9ed3
DN
32772009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3278
3279 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3280
3281 * eval.c (Fautoload): Purecopy the filename. Simplify.
3282
3283 * category.c (Fdefine_category): Purecopy docstring.
3284
a599b3e8
AS
32852009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3286
7b792fc9
AS
3287 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3288
a599b3e8
AS
3289 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3290
b35ac83e
CY
32912009-10-23 Chong Yidong <cyd@stupidchicken.com>
3292
3293 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3294 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3295 (Bug#4775).
3296
e8903e00
SM
32972009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3298
3299 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3300 (init_fileio_once):
3301 * lisp.h (init_fileio_once): Remove.
3302 * emacs.c (main): Don't call init_fileio_once.
3303
8f43cbf3
DN
33042009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3305
3306 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3307
26898943
AS
33082009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3309
3310 * doprnt.c (doprnt): Fix overflow check.
3311
5c646d5a
JD
33122009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3313
3132a7ea
JD
3314 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3315
5c646d5a
JD
3316 * xterm.h (x_wait_for_event): Declare it.
3317
3318 * xterm.c (pending_event_wait): New variable.
3319 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3320 see pending_event_wait.eventtype.
3321 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3322 (x_new_font): Call change_frame_size with new rows/columns before we
3323 try to resize the frame.
5c646d5a 3324 (x_wait_for_event): New function.
d528b1ce
SM
3325 (x_set_window_size_1): Don't change gravity unless change_gravity
3326 is set.
5c646d5a
JD
3327 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3328 don't change frame size, instead wait for the ConfigureNotify.
3329 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3330 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3331 (x_initialize): Initialize pending_event_wait.
3332
3333 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3334 size.
3335
3336 * widget.c (EmacsFrameSetValues): Add comment.
3337 (EmacsFrameSetCharSize): Just call x_set_window_size.
3338
3339 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3340 x_wait_for_event.
d528b1ce 3341 (flush_and_sync): Remove again.
5c646d5a
JD
3342 (xg_get_font_name): Suggest monospace if no previous font is known.
3343
e9c1637d
SM
33442009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3345
3346 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3347 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3348
5a72cccb
YM
33492009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3350
3351 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3352 processing pending events when event is filtered for input method.
ab04798f 3353 (Bug#3681)
5a72cccb 3354
2629aa37
JB
33552009-10-20 Juanma Barranquero <lekktu@gmail.com>
3356
3357 * fns.c: Add #endif accidentally removed in previous change.
3358
c3417a74
DN
33592009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3360
3361 * fns.c: Remove code for unsupported system: MAC_OS.
3362 * image.c: Likewise. Include setjmp.h.
3363
9685cef2
JD
33642009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3365
3366 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3367 pixel -1 (bug #4742).
3368
d7306fe6
DN
33692009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3370
019d2c4c
DN
3371 * process.c (create_pty): Remove conditionals for no longer
3372 supported systems: UNIPLUS and RTU.
3373
ee6bacd4
DN
3374 * xterm.c:
3375 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3376
d7306fe6
DN
3377 * alloc.c: Do not define struct catchtag.
3378 * eval.c: Move struct catchtag definition ...
3379 * lisp.h: ... here.
3380
3381 * image.c: Move png.h #include earlier to avoid warnings.
3382
3383 * xterm.c:
3384 * xsmfns.c:
3385 * xselect.c:
3386 * xrdb.c:
3387 * xmenu.c:
3388 * xftfont.c:
3389 * xfont.c:
3390 * xfns.c:
3391 * xfaces.c:
3392 * xdisp.c:
3393 * window.c:
3394 * widget.c:
3395 * w32xfns.c:
3396 * w32uniscribe.c:
3397 * w32term.c:
3398 * w32select.c:
3399 * w32reg.c:
3400 * w32proc.c:
3401 * w32menu.c:
3402 * w32inevt.c:
3403 * w32heap.c:
3404 * w32font.c:
3405 * w32fns.c:
3406 * w32console.c:
3407 * w32.c:
3408 * w16select.c:
3409 * vm-limit.c:
3410 * unexsol.c:
3411 * unexec.c:
3412 * unexcw.c:
3413 * unexaix.c:
3414 * undo.c:
3415 * tparam.c:
3416 * textprop.c:
3417 * terminfo.c:
3418 * terminal.c:
3419 * termcap.c:
3420 * term.c:
3421 * syntax.c:
3422 * sound.c:
3423 * sheap.c:
3424 * search.c:
3425 * scroll.c:
3426 * region-cache.c:
3427 * regex.c:
3428 * ralloc.c:
3429 * process.c:
3430 * print.c:
b024548b
DN
3431 * nsterm.m:
3432 * nsselect.m:
3433 * nsmenu.m:
3434 * nsimage.m:
3435 * nsfont.m:
3436 * nsfns.m:
d7306fe6
DN
3437 * msdos.c:
3438 * minibuf.c:
3439 * menu.c:
3440 * marker.c:
3441 * macros.c:
3442 * keymap.c:
3443 * keyboard.c:
3444 * intervals.c:
3445 * insdel.c:
3446 * indent.c:
3447 * gtkutil.c:
3448 * ftxfont.c:
3449 * ftfont.c:
3450 * fringe.c:
3451 * frame.c:
3452 * fontset.c:
3453 * font.c:
3454 * fns.c:
3455 * floatfns.c:
3456 * filelock.c:
3457 * fileio.c:
3458 * emacs.c:
3459 * editfns.c:
3460 * dosfns.c:
3461 * doprnt.c:
3462 * doc.c:
3463 * dispnew.c:
3464 * dired.c:
3465 * dbusbind.c:
3466 * data.c:
3467 * composite.c:
3468 * coding.c:
3469 * cmds.c:
3470 * cm.c:
3471 * chartab.c:
3472 * charset.c:
3473 * character.c:
3474 * ccl.c:
3475 * category.c:
3476 * casetab.c:
3477 * casefiddle.c:
3478 * callproc.c:
3479 * callint.c:
3480 * bytecode.c:
3481 * buffer.c:
3482 * atimer.c: Include setjmp.h. (Bug#4643)
3483
fd5f21e6
SM
34842009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3485
4c0354d7
SM
3486 Remove leftover table unibyte_to_multibyte_table.
3487 * character.c (unibyte_to_multibyte_table): Remove.
3488 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3489 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3490 * character.h (UNIBYTE_TO_CHAR): New macro.
3491 (MAKE_CHAR_MULTIBYTE): Use it.
3492 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3493 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3494 (message_dolog, set_message_1):
3495 * search.c (Freplace_match):
3496 * editfns.c (Fcompare_buffer_substrings):
3497 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3498 (concat):
3499 * insdel.c (copy_text, count_size_as_multibyte):
3500 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3501 * term.c (produce_glyphs):
3502 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3503 * regex.c (RE_CHAR_TO_MULTIBYTE):
3504 * cmds.c (internal_self_insert):
3505 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3506
fd5f21e6
SM
3507 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3508
4418646e
DN
35092009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3510
3511 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3512
35f5c1d2
JB
35132009-10-16 Juanma Barranquero <lekktu@gmail.com>
3514
3515 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3516
a0cd8f6b
AR
35172009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3518
3519 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3520 still needed under Tiger.
3521
3522 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3523
3524 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3525 __Apple__.
3526
3527 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3528
01a8d3fa
KH
35292009-10-15 Kenichi Handa <handa@m17n.org>
3530
3531 * print.c (print_object): Escape a symbol like "2E10" too.
3532
bf6c75c9 35332009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3534
3535 Cleanups and changes for 64-bit compile under Snow Leopard.
3536 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3537
3538 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3539
c5959062 3540 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3541 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3542 cast argument.
3543 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3544 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3545
3546 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3547
3548 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3549 where appropriate.
3550
3551 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3552 where appropriate.
6e4780c5
JB
3553 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3554 Use stringWithUTF8String.
bf6c75c9
AR
3555 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3556
6e4780c5
JB
3557 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3558 Add formal protocol mention to inheritance.
bf6c75c9
AR
3559 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3560
6e4780c5
JB
3561 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3562 Fix printf format.
bf6c75c9
AR
3563 (ns_query_color): Use CGFloat where appropriate.
3564 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3565 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3566 argument.
3567
3d87f118
AR
3568 * config.in (NS_HAVE_NSINTEGER): Drop.
3569
a95c8102
AR
3570 * dbusbind.c (dbus-method-return-internal)
3571 (dbus-method-error-internal): Use long format in printf, and cast
3572 argument.
3573
3574 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3575 in printf, and cast argument.
3576
6873acca 3577 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3578 cast argument.
3579
9ec6f100
GM
35802009-10-11 Glenn Morris <rgm@gnu.org>
3581
3582 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3583
5be883cd
JD
35842009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3585
3586 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3587 menu bar with a small width so it doesn't enlarge the frame.
3588
d7a39b51
JB
35892009-10-08 Juanma Barranquero <lekktu@gmail.com>
3590
3591 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3592
0c2b6f8e
GM
35932009-10-06 Glenn Morris <rgm@gnu.org>
3594
3595 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3596 SOME_MACHINE_LISP (this enters indirectly via DOC).
3597
e02131a2
EZ
35982009-10-05 Eli Zaretskii <eliz@gnu.org>
3599
3600 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3601
b4744254
EZ
36022009-10-04 Eli Zaretskii <eliz@gnu.org>
3603
3604 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3605 Doc fix.
3606
dbf64827
JB
36072009-10-03 Martin Rudalics <rudalics@gmx.at>
3608
3609 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3610
e9a0aef8
MA
36112009-10-02 Michael Albinus <michael.albinus@gmx.de>
3612
d528b1ce 3613 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3614 used anymore outside fileio.c.
3615
3616 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3617
64eb2b56
JB
36182009-10-01 Juanma Barranquero <lekktu@gmail.com>
3619
3620 * lisp.h (Qdelete_directory_internal):
3621 Declare, instead of Qdelete_directory.
3622
3623 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3624
9d28c33e
SM
36252009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3626
3627 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3628
9d8f3bd9
MA
36292009-10-01 Michael Albinus <michael.albinus@gmx.de>
3630
9d28c33e 3631 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3632 Fdelete_directory. It is not a command anymore. It has no file
3633 name handler.
3634
9694740b
SM
36352009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3636
3637 * xdisp.c (get_next_display_element): Use an enum in last change.
3638
748e162f
KH
36392009-09-28 Kenichi Handa <handa@m17n.org>
3640
9694740b 3641 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3642 unibyte_display_via_language_environment in handling
3643 Vnobreak_char_display.
3644
17efd58d
AR
36452009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3646
3647 * nsterm.h (ns_app_name): New extern variable.
3648
3649 * nsterm.m (ns_app_name): New variable.
3650 (ns_term_init): Set and use it.
3651 (ns_term_shutdown): Use it.
3652
3653 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3654 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3655
3656 * nsfns.m (ns_set_name_iconic, ns_set_name)
3657 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3658 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3659
9694740b
SM
3660 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3661 Remove double-casting in client_data comparison.
31c2d412 3662
3208cb35
YM
36632009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3664
3665 * keyboard.c (make_lispy_event): Remember last wheel direction.
3666 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3667
b7d552d6
GM
36682009-09-26 Glenn Morris <rgm@gnu.org>
3669
3670 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3671 internal.elc. Add term/pc-win.elc.
3672 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3673 term/x-win.elc.
3674 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3675 term/w32-win.elc.
3676 (NS_SUPPORT): New.
3677 (lisp): Add NS_SUPPORT.
3678 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3679
4ff670a8
DR
36802009-09-25 David Reitter <david.reitter@gmail.com>
3681
3682 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3683 on Mac OS X 10.6+ (bug#4513).
3684
feabfb6c
JB
36852009-09-24 Juanma Barranquero <lekktu@gmail.com>
3686
3687 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3688 some parts of Emacs code (like font selection) don't grok them.
3689 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3690
de59072a
AS
36912009-09-24 Andreas Schwab <schwab@redhat.com>
3692
3693 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3694
a489517b
JB
36952009-09-24 Juanma Barranquero <lekktu@gmail.com>
3696
3697 * dired.c (Fdirectory_files): Fix typo in docstring.
3698
0592970c
AR
36992009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3700
3701 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3702 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3703 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3704 under GNUstep.
3705 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3706
3707 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3708 glyph advancement.
3709
48e8a88b
AR
37102009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3711
3712 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3713 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3714
3715 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3716 deleted (bug #4492).
3717
e14f0a78
AR
3718 * nsfont.m (Vns_reg_to_script): New lisp variable.
3719 (syms_of_nsfont): Declare it.
3720 (ns_registry_to_script): New function.
3721 (ns_get_req_script): Call it.
3722 (ns_findfonts): Don't give up on non-unicode registry.
3723
3724 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3725
5b650faa
SM
37262009-09-20 Tom Tromey <tromey@redhat.com>
3727
3728 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3729 batch mode (bug#4228).
3730
a489517b 37312009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3732
3733 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3734 carefully. (Bug #4339)
0bae4e09 3735
fcfe06f3
CY
37362009-09-18 Chong Yidong <cyd@stupidchicken.com>
3737
d798ba87 3738 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3739
31642728
AR
37402009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3741
3742 * emacs.c (inhibit_x_resources): Update doc string for NS.
3743 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3744 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3745
3746 * nsterm.h (ns_no_defaults): Remove.
3747
3748 * nsterm.m (ns_no_defaults): Remove.
3749 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3750 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3751 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3752 don't update the NSWindow itself.
3753 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3754 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3755
3756 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3757 ns_use_qd_smoothing.
3758
3759 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3760 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3761 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3762 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3763
8686ac71
JB
37642009-09-17 Juanma Barranquero <lekktu@gmail.com>
3765
3766 * emacs.c (inhibit_x_resources): New variable.
3767 (main) [HAVE_NS]: Don't process --quick command line option.
3768 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3769
3770 * lisp.h (inhibit_x_resources): Declare it extern.
3771
3772 * w32reg.c (x_get_string_resource):
3773 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3774
e227ba05
EZ
37752009-09-17 Eli Zaretskii <eliz@gnu.org>
3776
362654a6
JB
3777 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3778 Add lisp/term/internal.elc.
e227ba05 3779
742d40e8
SM
37802009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3781
3782 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3783 (bug#4461).
3784
005bd5a2
DN
37852009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3786
3787 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3788
3789 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3790 (OBJECTS_MACHINE): Remove, unused.
3791
f9af9719
SM
37922009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3793
3794 * frame.c (x_get_resource_string): Remove unused.
3795
0307c7d2
JD
37962009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3797
3798 * xterm.c (x_new_font): Call change_frame_size before calling
3799 x_set_window_size, in case frame size won't change.
3800
3801 * frame.c (x_set_font): Remove dead code.
3802
428b13d6
SM
38032009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3804
3805 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3806
5766c380
SM
38072009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3808
3809 * lread.c (Fload): Don't output a message after loading an obsolete
3810 package any more (done in Lisp now).
3811
2fd0161b
CY
38122009-09-12 Chong Yidong <cyd@stupidchicken.com>
3813
3814 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3815
bc5e75b6
SM
38162009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3817
3818 * keymap.c (Fwhere_is_internal): Use nconc2.
3819
c31c985e
AM
38202009-09-11 Alan Mackenzie <acm@muc.de>
3821
3822 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3823 batch mode.
3824
78012bd2
AS
38252009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3826
3827 * xdisp.c (display_mode_element): Detect cycles.
3828
9d889332
SM
38292009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3830
3831 * keymap.c (where_is_internal): Don't erroneously return nil right after
3832 filling the cache.
3833 (where_is_internal_1): Fix up typo.
3834
7ab5d780
GM
38352009-09-11 Glenn Morris <rgm@gnu.org>
3836
3837 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3838 share a common doc-string.
3839
5238a749
SM
38402009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3841
66d77eda
SM
3842 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3843 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3844
5238a749
SM
3845 * keymap.c (QCadvertised_binding): New constant.
3846 (syms_of_keymap): Initialize it.
3847 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3848 if applicable.
3849
19f48442
SM
38502009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3851
50d4ba39
SM
3852 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3853 (parse_menu_item): Streamline since bindings are recomputed all the
3854 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3855 more and don't support lmenu's menu-alias any more either.
3856
a88a5372
SM
3857 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3858 (where_is_internal): Strip it down to only traverse the keymaps.
3859 Move the cache handling from Fwhere_is_internal to here.
3860 (Fwhere_is_internal): Move the handling of remapping and the choice of
3861 the best binding from where_is_internal to here.
3862 Unify the cached/noncached paths, so remapping is also handled
3863 correctly when the cache is used, and so the cache can be used to
3864 speed up remap-handling when applicable.
3865 Give preference to non-remapped bindings.
3866 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3867 non-remapped bindings.
3868 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3869 command remapping.
3870
19f48442
SM
3871 * xdisp.c (display_mode_element): Move list length limit from 50 to
3872 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3873
599498c3 38742009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3875
3876 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3877
f9b7b5ac
SM
38782009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3879
a53af587
JB
3880 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3881 (Bug#4334)
3882
f9b7b5ac
SM
3883 * keymap.c (where_is_internal): Filter out shadowed remappings.
3884 Assume that where_is_internal returns unshadowed bindings to simplify
3885 the code and get rid of the gotos. Use ASIZE.
3886
04f4b72d
JD
38872009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3888
4da146f2
JD
3889 * xterm.c (x_focus_changed): If we get a focusout and pointer
3890 is invisible, make it visible.
3891
04f4b72d
JD
3892 * xterm.h: Remove condition for declaration of
3893 x_*_window_to_frame.
3894
7cef7ce3
SM
38952009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3896
3897 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3898 initial terminal as well.
3899
a54fa5b7
JD
39002009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3901
3902 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3903 x_menubar_window_to_frame.
a54fa5b7 3904
50426a04 3905 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3906 (XTmouse_position): Do not return valid positions
3907 for clicks in the menubar and the toolbar for Gtk+.
3908
3909 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3910 if the widget for the event has the same top level as a frame,
3911 return the frame.
3912 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3913 internal windows, bug #4122.
3914 (x_non_menubar_window_to_frame): Remove.
3915
5a021dd0
GM
39162009-09-02 Glenn Morris <rgm@gnu.org>
3917
3918 * buffer.c (default-major-mode): Move most of the doc from here...
3919 (major-mode): ... to here.
3920
548fe2f3
NR
39212009-08-30 Nick Roberts <nickrob@snap.net.nz>
3922
3923 * process.c (wait_reading_process_output): Keep the descriptor
3924 when pty is used by a non-child process, e.g., in I/O buffer of
3925 GDB this allows inferior to be restarted.
3926
e0840eef
EZ
39272009-08-29 Eli Zaretskii <eliz@gnu.org>
3928
3929 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3930 both branches into one.
3931
82e98df4
SM
39322009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3933
3934 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3935 (main): Use enable-multibyte-characters rather than
3936 default-enable-multibyte-characters. Output a warning message when
3937 running a unibyte session.
3938
890617cb
YM
39392009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3940
3941 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3942 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3943 (copy_data_segment): Also copy __program_vars section.
3944 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3945 (dump_it) [LC_DYLD_INFO]: Use it.
3946
3947 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3948
e7adeadc
EZ
39492009-08-28 Eli Zaretskii <eliz@gnu.org>
3950
3951 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3952 $(SRC)/buildobj.h.
3953 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3954 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3955 $(SRC)/buildobj.h.
3956 (clean): Add buildobj.h.
3957
3ed8bbdc
TZ
39582009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3959
3960 * print.c (print_object): Set escapeflag to 1 when printing
3961 hashtable keys and values.
3962
155a6764
SM
39632009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3964
3965 * lread.c (read_integer): Use doubles (and potentially return a float
3966 number) as we do in string-to-number.
3967 (read1): Use strtol to read integers, signal errors on strtol's
3968 overflow and use floats if strtol's output is too large for
3969 Elisp integers.
3970
877610de
EZ
39712009-08-27 Eli Zaretskii <eliz@gnu.org>
3972
3973 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3974 (make-buildobj-SH): Fix last change.
3975 (SRC): Move to before where it's first used.
3976
ef73e7be
KH
39772009-08-27 Kenichi Handa <handa@m17n.org>
3978
550c8289
KH
3979 * process.c (send_process): Use encode_coding_object instead of
3980 encode_coding_string to perform eol-conversion even if the string
3981 is unibyte.
3982
60afa08d
KH
3983 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3984 character.
3985
ef73e7be 3986 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3987 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3988
7b3a82d7
DN
39892009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3990
5654bf63
DN
3991 * callproc.c (Fcall_process): Remove always true #if.
3992
7b3a82d7
DN
3993 * lisp.h: Replace #if 0 code for checking with text pointing to
3994 the --enable-checking configure flag.
3995
3996 * emacs.c (main): Mention the --enable-profiling configure flag
3997 instead of using CFLAGS.
3998
878bde49
KR
39992009-08-26 Ken Raeburn <raeburn@raeburn.org>
4000
4001 * Makefile.in (buildobj.h): New target.
4002 (doc.o): Depend on it.
4003 (temacs${EXEEXT}): Don't generate buildobj.lst.
4004 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4005 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4006 ($(BLD)/doc.$(O)): Depend on it.
4007 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4008 provided by Eli Zaretskii.)
4009 ($(TEMACS)): Don't generate buildobj.lst.
4010 * doc.c: Include buildobj.h.
4011 (buildobj): New static variable.
4012 (Fsnarf_documentation): Use it, instead of opening and reading
4013 buildobj.lst.
4014
1574224c
MA
40152009-08-25 Michael Albinus <michael.albinus@gmx.de>
4016
4017 * dbusbind.c (Fdbus_call_method)
4018 (Fdbus_call_method_asynchronously): Use English numeric format for
4019 timeout values in doc string.
4020
d9da2f45
KH
40212009-08-25 Kenichi Handa <handa@m17n.org>
4022
ef73e7be
KH
4023 * alloc.c (mark_char_table): New function.
4024 (mark_object): Use mark_char_table for a char-table.
4025
d9da2f45
KH
4026 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4027 (CHAR_TABLE_REF): Use it.
4028
c8edcc01
KR
40292009-08-23 Ken Raeburn <raeburn@raeburn.org>
4030
4031 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4032 before invoking the newly build emacs to check for load-path
4033 shadowing.
4034
7763401b
GM
40352009-08-22 Glenn Morris <rgm@gnu.org>
4036
4037 * Makefile.in (bootstrap_exe): New variable.
4038 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4039 Use ${bootstrap_exe}.
4040
729eadda
EZ
40412009-08-22 Eli Zaretskii <eliz@gnu.org>
4042
4043 * coding.h (encode_coding_string): Don't encode unibyte strings.
4044 (Bug#4047)
4045
eb4c6ace
MA
40462009-08-22 Michael Albinus <michael.albinus@gmx.de>
4047
4048 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4049
4050 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4051 intended as hotfix only.
4052 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4053
36e34d1b
AR
40542009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4055
4056 * nsterm.m (ns_get_color): Update documentation properly for last
4057 change, and clean up loose ends in the code left by it. Fix
4058 longstanding bug with 16-bit hex parsing, and add support for
4059 yet another X11 format (rgb:r/g/b) for compatibility.
4060 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4061 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4062
f983eb8a
SM
40632009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4064
4065 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4066
3f56d3c6
MA
40672009-08-20 Michael Albinus <michael.albinus@gmx.de>
4068
4069 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4070 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4071 (xd_initialize, xd_pending_messages): Check, whether
4072 $DBUS_SESSION_BUS_ADDRESS is set.
4073
fb641d68
YM
40742009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4075
4076 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4077
4078 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4079
cf59a374
GM
40802009-08-20 Glenn Morris <rgm@gnu.org>
4081
4082 * emacs.c (system-type): Doc fix.
4083
1373f3be
SM
40842009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4085
4086 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4087 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4088
058ed861
MA
40892009-08-18 Michael Albinus <michael.albinus@gmx.de>
4090
1373f3be
SM
4091 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4092 New functions.
058ed861
MA
4093 (xd_initialize): Revert change from 2009-08-16.
4094
563a866e 40952009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4096
4097 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4098 font-group vector, return nil.
5fc05db0 4099
e42bdf01
CY
41002009-08-17 Chong Yidong <cyd@stupidchicken.com>
4101
4102 * process.c (status_notify): Don't perform redisplay.
4103 (Fdelete_process, list_processes_1, process_send_signal):
4104 Expliticly perform redisplay.
4105 (wait_reading_process_output): Always check process status, but
4106 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4107
4230ab74
KR
41082009-08-17 Ken Raeburn <raeburn@raeburn.org>
4109
1373f3be 4110 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4111 (XFLOAT_INIT): New macro for storing a float value.
4112 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4113 * fns.c (sxhash): Copy out the value of a float in order to
4114 examine its bytes.
4115 * dbusbind.c (xd_append_arg): Likewise.
4116
4230ab74
KR
4117 * emacs.c (main): Don't call syms_of_data twice.
4118
a0645cdd
MA
41192009-08-16 Michael Albinus <michael.albinus@gmx.de>
4120
4121 * dbusbind.c (xd_initialize): Add connection file descriptor to
4122 input_wait_mask, in order to let select() detect, whether a new
4123 message has been arrived.
ca4f31ea 4124 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4125
485db0ba
MA
41262009-08-15 Michael Albinus <michael.albinus@gmx.de>
4127
1373f3be
SM
4128 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4129 New functions.
485db0ba
MA
4130
4131 * lisp.h (xd_pending_messages): Declare.
4132
4133 * keyboard.c (readable_events): Call xd_pending_messages.
4134
b5b98ff4
CY
41352009-08-15 Chong Yidong <cyd@stupidchicken.com>
4136
1373f3be 4137 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4138
f8354c6e
CY
4139 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4140
b5b98ff4
CY
4141 * buffer.c (set_buffer_internal_1)
4142 (swap_out_buffer_local_variables): Check for unbound local
4143 variables (Bug#4138).
4144
8b9fc636
EZ
41452009-08-14 Eli Zaretskii <eliz@gnu.org>
4146
4147 * process.c (create_pty): Fix last change.
4148
ce959360
CY
41492009-08-13 Chong Yidong <cyd@stupidchicken.com>
4150
4151 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4152 (xbm_load_image): Caller changed.
64b807c9 4153 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4154
c7baf7e9
NR
41552009-08-13 Nick Roberts <nickrob@snap.net.nz>
4156
4157 * process.c (create_pty): New function.
4158 (Fstart_process): Use it to allow Emacs to just associate a pty
4159 with the buffer. See associated change in gdb-mi.el.
4160 (list_processes_1): Deal with no program name.
4161 (start_process_unwind): Use pid == -2 to mean no process.
4162
1ac9108a
SM
41632009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4164
4165 * cmds.c (nonundocount): New global variable.
4166 (keys_of_cmds): Initialize it.
4167 (Fself_insert_command): Use it to combine upto 20 sequential chars
4168 into a single undo entry, just like the Qself_insert_command code in
4169 keyboard.c does.
4170 Call frame_make_pointer_invisible, also like the Qself_insert_command
4171 code in keyboard.c does.
4172 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4173 than its own local replacement for it.
4174
e267324c
KR
41752009-08-10 Ken Raeburn <raeburn@raeburn.org>
4176
1ac9108a 4177 * fns.c (concat): Don't re-set string length to its current value.
77437343 4178
1ac9108a
SM
4179 * coding.h (decode_coding_string, encode_coding_string):
4180 Use SBYTES macro.
f0bed503 4181
1ac9108a 4182 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4183 (doprnt): Merge with doprnt1, discarding lispstrings code.
4184 * lisp.h (doprnt_lisp): Don't declare.
4185
416e006d
JL
41862009-08-07 Juri Linkov <juri@jurta.org>
4187
4188 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4189
6f7d5780
DN
41902009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4191
4192 * print.c (syms_of_print): Undo previous change.
4193
f19a0f5b
TZ
41942009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4195
4196 * lread.c (read1, syms_of_lread): Read hashtables back from the
4197 readable format.
4198
4199 * print.c (print_preprocess, print_object): Print hashtables fully
4200 and readably.
4201 (syms_of_print): Provide 'hashtable-print-readable.
4202
b9173dc2
AR
42032009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4204
4205 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4206 no family set.
4207 (nsfont_open): Handle case when entity has no family.
4208
1586503c
AR
42092009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4210
4211 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4212 element, not a list, for match case.
4213
087048cd
KH
42142009-07-28 Kenichi Handa <handa@m17n.org>
4215
4216 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4217 rigidly.
4218
4219 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4220 font_parse_xlfd. Check font properties more rigidly.
4221
780c2506
DN
42222009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4223
31fd7c5c
JB
4224 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4225 bsd-common.h.
780c2506 4226
a8c0cc18
KH
42272009-07-27 Kenichi Handa <handa@m17n.org>
4228
4229 * xfaces.c (face_with_height): Call font_clear_prop.
4230
4fbe2306
CY
42312009-07-26 Chong Yidong <cyd@stupidchicken.com>
4232
111d9af3
CY
4233 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4234
4235 * xterm.c (x_term_init): Use Qx.
4236
4fbe2306
CY
4237 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4238
1ac9108a 4239 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4240 (ns_get_color): Revert 2009-07-16 change.
4241
beb0b7f9
EZ
42422009-07-25 Eli Zaretskii <eliz@gnu.org>
4243
4244 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4245 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4246
2baf5e76
KR
42472009-07-25 Ken Raeburn <raeburn@raeburn.org>
4248
1ac9108a
SM
4249 * coding.h (decode_coding_string, encode_coding_string):
4250 Use SCHARS macro.
8890e5f5 4251
2baf5e76 4252 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4253 (load_depth): Delete.
2baf5e76
KR
4254 (Qload_in_progress): New variable.
4255 (load_unwind): Don't reference load_depth or load_in_progress.
4256 (Fload): Likewise; specbind Qload_in_progress instead.
4257 (init_lread): Don't initialize load_depth.
4258 (syms_of_lread): Initialize and protect Qload_in_progress.
4259
1395c6f5
AR
42602009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4261
4262 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4263
4e2f36cf
AR
42642009-07-23 Yavor Doganov <yavor@gnu.org>
4265
4266 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4267
5dd9a6f7
AR
42682009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4269
4270 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4271 Bugs 3792, 3720, 2402.
4272 (ns_lookup_indexed_color): Check for bad index.
4273 (ns_index_color): Init unused slot to 0.
4274 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4275 Bug 3714, possibly 3082.
5dd9a6f7 4276
c902b920
JR
42772009-07-22 Jason Rumney <jasonr@gnu.org>
4278
1ac9108a
SM
4279 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4280 Position IME window at cursor (Bug#2570).
c902b920
JR
4281 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4282 (globals_of_w32fns): Dynamically load functions required above.
4283
4284 * w32term.c (w32_draw_window_cursor): Send message to reposition
4285 any IME window.
4286
090101cf
CY
42872009-07-21 Chong Yidong <cyd@stupidchicken.com>
4288
4289 * fileio.c: Revert 2009-07-16 changes.
4290 (Vauto_save_include_big_deletions): New variable.
4291 (Fdo_auto_save): Disable auto-save only if
4292 auto-save-include-big-deletions is nil.
4293
e6583e3d
CY
42942009-07-21 Chong Yidong <cyd@stupidchicken.com>
4295
4296 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4297 the overflowed pixels into account (Bug#3879).
4298
ece435a5
KR
42992009-07-21 Ken Raeburn <raeburn@raeburn.org>
4300
4301 * lread.c (load_depth): New variable.
4302 (Fload, load_unwind, init_lread): Set it to the load recursion
4303 depth; set load_in_progress as a simple boolean based on the
4304 current load_depth. (Bug#3892)
4305
40b2d973
AR
43062009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4307
4308 * nsfont.m (ns_has_attribute): Remove.
4309 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4310
10be7e0d
JL
43112009-07-18 Juri Linkov <juri@jurta.org>
4312
4313 * process.c (Fset_process_query_on_exit_flag): Mention killing
4314 a buffer in docstring.
4315
fa055055
KH
43162009-07-17 Kenichi Handa <handa@m17n.org>
4317
4318 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4319
042f7b69
YM
43202009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4321
4322 * nsfns.m (Fns_set_alpha): Remove function.
4323 (syms_of_nsfns): Don't defsubr it.
4324
4325 * nsterm.m (ns_get_color): Remove incompatible color formats.
4326 (ns_color_to_lisp): Generate #rrggbb color format string.
4327
4be941e3
RS
43282009-07-16 Richard Stallman <rms@gnu.org>
4329
4330 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4331 (Fset_buffer_auto_saved): Handle save_length = -2.
4332
4e6b227d
CY
43332009-07-16 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * xterm.c (Qx_gtk_map_stock): New var.
4336
4337 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4338 of calling intern each time.
4339
a1856973
YM
43402009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4341
4342 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4343 does tiling.
4344
4345 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4346
497e54d8
KH
43472009-07-14 Kenichi Handa <handa@m17n.org>
4348
72d36834
KH
4349 * font.c (font_vconcat_entity_vectors): New function.
4350 (struct font_sort_data): New member font_driver_preference.
4351 (font_compare): Check font_driver_preference.
4352 (font_sort_entities): The format of the first argument changed.
4353 (font_delete_unmatched): Likewise.
4354 (font_list_entities): The return type changed.
4355 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4356 (font_find_for_lface): Adjuste for the above changes.
4357 Don't suppress the checking of C even if the repertory supports it.
4358 (Flist_fonts): Adjust for the above changes.
72d36834 4359
1ac9108a
SM
4360 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4361 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4362 Reject a font who has adstyle property that is different from a
4363 langname derived from registry property.
1ac9108a 4364 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4365
b6046155
EZ
43662009-07-13 Eli Zaretskii <eliz@gnu.org>
4367
4368 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4369 local copy of dirfilename.
4370
fb6b6049
KH
43712009-07-13 Kenichi Handa <handa@m17n.org>
4372
e2402a5e
KH
4373 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4374 against max_char.
4375
fb6b6049
KH
4376 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4377 calling XSYMBOL (sym).
4378
65156807
EZ
43792009-07-11 Eli Zaretskii <eliz@gnu.org>
4380
1ac9108a
SM
4381 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4382 New function.
4383 (directory_files_internal) [WINDOWSNT]:
4384 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4385 the filesystem of the directory is fast or slow.
4386
4387 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4388 file name.
4389 (is_slow_fs): New function.
4390 (stat): Use it to determine whether to issue more system calls to
4391 get accurate file attributes, when w32-get-true-file-attributes is
4392 `local'.
4393
e0ab5fcf
JD
43942009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4395
4396 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4397 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4398 parameter font-parameter as default to the font dialog.
4399
784ceded
KH
44002009-07-10 Kenichi Handa <handa@m17n.org>
4401
4402 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4403
fb8edc0b
EZ
44042009-07-09 Eli Zaretskii <eliz@gnu.org>
4405
1ac9108a 4406 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4407
fb8edc0b
EZ
4408 * w32.c (stat): Treat UNC file names as residing on remote
4409 drives. (Bug#3542)
4410
635c75b1
KH
44112009-07-09 Kenichi Handa <handa@m17n.org>
4412
4413 * fontset.c (fontset_find_font): Fix previous change.
4414
c1d5ce94
MA
44152009-07-08 Michael Albinus <michael.albinus@gmx.de>
4416
4417 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4418 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4419 error flag.
4420
edb61b39
KH
44212009-07-08 Kenichi Handa <handa@m17n.org>
4422
374bf7e4
KH
4423 * fontset.c (fontset_find_font): Fix the logic of handling
4424 charset_matched.
4425 (font_for_char): Delete unused var.
4426 (generate_ascii_font_name): Delete it.
4427
edb61b39
KH
4428 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4429
4430 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4431 (encode_coding_sjis): Fix the code range check.
4432
0f3f018c
CY
44332009-07-07 Chong Yidong <cyd@stupidchicken.com>
4434
4435 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4436 (Fexpand_file_name): Copy string data properly (Bug#3772).
4437
fcaf6f3a
JD
44382009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4439
4440 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4441 first MapNotify.
4442
6809ca75
KH
44432009-07-07 Kenichi Handa <handa@m17n.org>
4444
4445 * character.h (unibyte_has_multibyte_table): Delete extern.
4446 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4447
4448 * charset.c (Fset_charset_priority): Update charset_unibyte.
4449 (syms_of_charset): Initialize charset_unibyte.
4450
4451 * character.c (unibyte_has_multibyte_table): Delete it.
4452 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4453 charset_unibyte.
4454 (multibyte_char_to_unibyte_safe): Likewise.
4455 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4456
1ac9108a 4457 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4458 (x_produce_glyphs): Likewise.
4459
4460 * .gdbinit (xcharset): Fix the treating $arg0.
4461
ad9e2d54
EZ
44622009-07-04 Eli Zaretskii <eliz@gnu.org>
4463
4464 Emulation of `getloadavg' on MS-Windows.
50426a04 4465 * w32.c: Include float.h.
ad9e2d54
EZ
4466 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4467 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4468 (get_native_system_info, get_system_times): New functions.
4469 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4470 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4471 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4472 g_b_init_get_system_times, and num_of_processors.
4473
0a3472c7
JR
44742009-07-03 Jason Rumney <jasonr@gnu.org>
4475
4476 * w32term.c (w32_initialize): Use standard types.
4477
80904120
EZ
44782009-07-03 Eli Zaretskii <eliz@gnu.org>
4479
4480 * dired.c (Ffile_attributes): Decode user and group names by the
4481 locale's encoding. (Bug#3443)
4482
6978862d
DN
44832009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4484
f8d23104
DN
4485 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4486 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4487
4488 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4489
4490 * term.c (init_tty): Remove spurious #ifdef.
4491
6978862d
DN
4492 * m/mips.h: Mention this file is also used for netbsd.
4493 * m/pmax.h: Remove file.
4494
e044e4fc
JD
44952009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4496
4497 * xterm.h (struct x_display_info): Add invisible_cursor.
4498 (struct x_output): Add current_cursor.
4499
4500 * xterm.c (XTtoggle_invisible_pointer): New function.
4501 (x_define_frame_cursor): Don't define cursor if invisible or the
4502 same as before. Set current_cursor.
4503 (x_create_terminal): Set toggle_invisible_pointer_hook.
4504
4505 * xfns.c (make_invisible_cursor): New function.
4506 (x_set_mouse_color): Call make_invisible_cursor.
4507 Set current_cursor.
4508 (x_window): Set current_cursor.
4509
4510 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4511
4512 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4513 inserting a character.
4514 (read_avail_input): Call frame_make_pointer_visible.
4515
4516 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4517 (frame_make_pointer_invisible, frame_make_pointer_visible):
4518 New functions.
e044e4fc
JD
4519 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4520
4521 * frame.h: Declare frame_make_pointer_invisible and
4522 frame_make_pointer_visible.
4523 (struct frame): Add pointer_invisible.
4524
574c8efa
JD
45252009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4526
7b507248
JD
4527 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4528 frame isn't visible.
4529 (xg_frame_resized): If width/height is -1, get size of window
4530 from X server.
4531
4532 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4533 for MapNotify.
4534
835bdaa7 4535 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4536 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4537 (flush_and_sync): Reintroduce.
574c8efa 4538
3f1c6666 45392009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4540
31fd7c5c 4541 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4542
4543 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4544 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4545
4546 * frame.h: Declare Qsticky.
4547
cad9ef74
JD
4548 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4549
4550 * nsfns.m (ns_frame_parm_handlers): Ditto.
4551
4552 * frame.c: Declare Qsticky.
4553 (frame_parms): Add sticky.
4554
4555 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4556
4557 * xterm.h: Declare x_set_sticky.
4558
4559 * xterm.c (x_set_sticky): New function.
4560
69b16610
JD
4561 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4562 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4563 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4564
4565 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4566
4567 * frame.c: Qmaximized is new.
4568 (x_set_frame_parameters): Do not handle fullscreen specially.
4569 Only set width and height if explicitly set.
4570 (x_set_fullscreen): Handle Qmaximized.
4571 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4572 (syms_of_frame): Initialize Qmaximized.
4573
1ac9108a
SM
4574 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4575 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4576
4577 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4578 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4579 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4580 set gravity to NorthWestGravity when USE_GTK.
4581 (set_wm_state): New function.
31fd7c5c 4582 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4583 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4584 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4585 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4586 to x_real_positions and x_fullscreen_adjust.
4587
4588 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4589 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4590 flush_and_sync.
4591 (xg_height_changed): New function.
4592 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4593 and gtk_window_set_policy. Set frame gravity after parsing the
4594 geometry string.
3f1c6666
JD
4595 (xg_update_frame_menubar, free_frame_menubar)
4596 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4597 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4598 Remove calls to xg_frame_set_char_size.
4599
fd503d99
KH
46002009-07-01 Kenichi Handa <handa@m17n.org>
4601
4602 * keyboard.c (decode_keyboard_code): New function.
4603 (tty_read_avail_input): Decode the input bytes if necessary.
4604
1ac9108a
SM
4605 * coding.c (setup_coding_system):
4606 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4607 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4608 use Qno_conversion.
4609
24ed93fb
YM
46102009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4611
4612 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4613
99061dfc
CY
46142009-06-30 Chong Yidong <cyd@stupidchicken.com>
4615
1ac9108a 4616 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4617
ff90fbde
JR
46182009-06-30 Jason Rumney <jasonr@gnu.org>
4619
4620 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4621 is already loaded.
4622 Set user model ID if supported (bug#1849).
4623
5f445726
JM
46242009-06-29 Jim Meyering <meyering@redhat.com>
4625
4626 Remove useless if-before-xfree test.
4627 * nsfont.m (nsfont_close): Remove useless test.
4628 * term.c (delete_tty): Likewise.
4629 * w32.c (system_process_attributes): Likewise.
4630 * w32font.c (w32font_close): Likewise.
4631 * xfaces.c (x_free_gc): Likewise.
4632 * xselect.c (buffer): Likewise.
4633
b9607587
AS
46342009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4635
4636 * process.c (send_process): Keep decoded string in a local
4637 variable and protect it from GC. (Bug#3521)
4638
89ba96f4
EZ
46392009-06-28 Eli Zaretskii <eliz@gnu.org>
4640
4641 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4642 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4643
098a1589
CY
46442009-06-28 Chong Yidong <cyd@stupidchicken.com>
4645
485422be
CY
4646 * xdisp.c (start_display, handle_face_prop)
4647 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4648 (redisplay_window, try_window_id, produce_image_glyph):
4649 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4650
098a1589
CY
4651 * xterm.c (x_update_window_begin, x_new_focus_frame)
4652 (x_scroll_bar_handle_click, handle_one_xevent)
4653 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4654 (x_make_frame_visible, x_make_frame_invisible)
4655 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4656 code chunks that are now obsolete.
4657
78c38319
MA
46582009-06-28 Michael Albinus <michael.albinus@gmx.de>
4659
4660 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4661 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4662 for hours, when optimzation is enabled.
4663 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4664 (xd_read_message): Make them static.
4665
4189ed40
CY
46662009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4667
4668 * term.c (turn_on_face): Allow simultaneously bold and dim
4669 terminal faces (Bug#3530).
4670
cd9b5e16
CY
46712009-06-27 Chong Yidong <cyd@stupidchicken.com>
4672
4e23bedb
CY
4673 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4674
cd9b5e16
CY
4675 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4676 truncation glyphs (Bug#3686).
4677
07cc3c35
GM
46782009-06-27 Glenn Morris <rgm@gnu.org>
4679
4680 * m/pmax.h: Restore file, with only netbsd portions.
4681
31fd7c5c 46822009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4683
cd9b5e16 4684 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4685
42d4a64f
KH
46862009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4687
4688 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4689 the arg FORCE_SYMBOL.
4690
930fe55b 46912009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4692
4693 * fontset.c (fontset_find_font): When a usable rfont_def is found
4694 in a fallback font-group, make it the first element of the group.
4695
57ebc3fd
CY
46962009-06-24 Chong Yidong <cyd@stupidchicken.com>
4697
4698 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4699
f084f942
KH
47002009-06-24 Kenichi Handa <handa@m17n.org>
4701
4702 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4703 set for C.
4704 (fontset_font): Record the availability of a font for C both in
4705 the realized fontsets of the current one and the default one.
4706
2f686c87
DN
47072009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4708
4709 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4710 conditional, it is always defined on AIX.
4711
666e158e
MB
47122009-06-23 Miles Bader <miles@gnu.org>
4713
4714 * window.c (Vrecenter_redisplay): New variable.
4715 (syms_of_window): Initialize it.
4716 (Qtty): New extern declaration.
4717 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4718
c6da7cd2
JM
47192009-06-23 Jim Meyering <meyering@redhat.com>
4720
1ac9108a
SM
4721 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4722 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4723 pointer dereferences are guaranteed to be valid.
c6da7cd2 4724
678dca3d
KH
47252009-06-23 Kenichi Handa <handa@m17n.org>
4726
74d75424
KH
4727 * emacs.c (main): Call init_font ().
4728
4729 * font.h (Vfont_log): Extern it.
4730 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4731
4732 * font.c (font_sort_entities, font_list_entities)
4733 (font_matching_entity, font_open_entity)
4734 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4735 (Vfont_log): Delete static.
4736 (font_log_env_checked): Delete this variable.
4737 (font_add_log): Don't check font_log_env_checked.
4738 (font_deferred_log): Check Vfont_log.
4739 (init_font): New function.
4740
678dca3d
KH
4741 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4742
4743 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4744
4745 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4746
4747 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4748
4749 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4750 (face_for_char): Don't call font_deferred_log here.
4751 (font_for_char): Likewise.
4752
8a668709
CY
47532009-06-22 Chong Yidong <cyd@stupidchicken.com>
4754
9a01ee33
CY
4755 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4756 rather than its background_width for drawing the overline and
4757 underline (Bug#489).
4758
4759 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4760 rather than its background_width for drawing the overline and
4761 underline (Bug#489).
ec7c9926
CY
4762 (xg_default_icon_file): New variable.
4763 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4764 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4765
8a668709
CY
4766 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4767 (load_overlay_strings): Remove externs.
4768 (fast_find_position): Function deleted.
4769 (mouse_face_from_buffer_pos): New function, based on
4770 fast_find_position. Correctly handle before-strings,
4771 display-strings, and after-strings (Bug#1220).
4772 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4773
4d4c02d8
CY
47742009-06-21 Chong Yidong <cyd@stupidchicken.com>
4775
1ac9108a 4776 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4777 (move_it_in_display_line_to, move_it_in_display_line_to)
4778 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4779
70243478
CY
47802009-06-21 Chong Yidong <cyd@stupidchicken.com>
4781
4782 * Branch for 23.1.
4783
13087e59
JR
47842009-06-21 Jason Rumney <jasonr@gnu.org>
4785
4786 * w32term.c (keyboard_codepage): New static variable.
4787 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4788 (w32_read_socket) [WM_CHAR]: Use it to decode character
4789 input (bug#3237).
4790 (w32_initialize): Initialize it.
4791 (codepage_for_locale): New function.
4792
4735b74e
KR
47932009-06-20 Ken Raeburn <raeburn@raeburn.org>
4794
4795 * process.c (status_message): Pass Faset index argument as a lisp
4796 object, so as to work with USE_LISP_UNION_TYPE.
4797
0e727afa
YM
47982009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4799
4800 * coding.c (Ffind_coding_systems_region_internal):
4801 Cache checked characters.
4802
cf299835
KH
48032009-06-18 Kenichi Handa <handa@m17n.org>
4804
1ac9108a 4805 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4806
90f20d94
AS
48072009-06-18 Andreas Schwab <aschwab@redhat.com>
4808
4809 * xdisp.c (redisplay_internal): Check that the frame is still
4810 live after redisplay of its windows.
4811 (redisplay_windows): Check that the window is still live.
4812
7f1faf1c
KH
48132009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4814
4815 * coding.c (detect_coding_utf_16): Fix previous change.
4816
cc13543e
KH
48172009-06-16 Kenichi Handa <handa@m17n.org>
4818
4819 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4820 UTF-16 by checking the dispersion of Eth and Oth bytes.
4821
977b85f4
AS
48222009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4823
4824 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4825
66bd43d1
KH
48262009-06-15 Kenichi Handa <handa@m17n.org>
4827
4828 * process.c (status_message): Fix previous change. Be sure to
4829 decode a localized string.
4830
cb5ca9c5
YM
48312009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4832
4833 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4834 add comment explaining why.
4835
ec7709ba 48362009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4837
ec7709ba 4838 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4839
4b7f335c
AR
48402009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4841
4842 * nsfont.m (ns_attribute_value): Remove.
4843 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4844 (ns_has_attribute): Shrink the normal range.
4845 (ns_findfonts): Don't worry about requested spec in determining
4846 need for synthItal.
e41820ee 4847 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4848
73b26103
SZ
48492009-06-14 Seiji Zenitani <zenitani@mac.com>
4850
4851 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4852
5753e4da
KH
48532009-06-11 Kenichi Handa <handa@m17n.org>
4854
4855 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4856 overhang for the static composition case.
4857
3561b671
KH
48582009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4859
5753e4da
KH
4860 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4861 overhang for the automatic composition case.
4862
3561b671
KH
4863 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4864 composition case.
4865
852bbd41
CY
48662009-06-10 Chong Yidong <cyd@stupidchicken.com>
4867
4868 * xdisp.c (get_next_display_element): When handling wrap-prefix
4869 and line-prefix, treat \n as a control character (bug#3502).
4870
9903d1e6
KH
48712009-06-10 Kenichi Handa <handa@m17n.org>
4872
4873 * font.c (font_parse_family_registry): Fix for one-char foundry.
4874 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4875
0bcbaaaa
CY
48762009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4877
4878 * process.c (status_message): Fix handling of multibyte signal
4879 string (Bug#3499).
4880
40aa3f13
JM
48812009-06-09 Jim Meyering <meyering@redhat.com>
4882
1f80c7e2
CY
4883 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4884 color name is missing.
40aa3f13 4885
72d51285
KH
48862009-06-09 Kenichi Handa <handa@m17n.org>
4887
4888 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4889 FROM-CODE and TO-CODE are codepoints of CHARSET.
4890
c1d04d84
AR
48912009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4892
4893 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4894
48952009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4896
4897 Changes to support :script/:lang/:otf in NS font driver.
4898 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4899 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4900 indicate not part of font driver interface, and change callers.
4901 (ns_get_family): Remove pointless null check.
4902 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4903 ns_spec_to_descriptor, ns_descriptor_to_entity.
4904 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4905 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4906 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4907 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4908 (ns_get_req_script, ns_accumulate_script_ranges)
4909 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4910 New functions.
4911 (nsfont_list, nsfont_match): Use ns_findfonts.
4912 (nsfont_open): Use font descriptor instead of traits.
4913 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4914 (dump_glyphstring): Rename to ns_dump_glyphstring.
4915
c7eb9816
AR
4916 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4917
c1d04d84
AR
4918 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4919
4920 * fontset.c (fontset_from_font): Remove NS-specific code.
4921
ec7709ba 49222009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4923
4924 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4925 nonactive windows.
4926
31fd7c5c 49272009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4928
1ac9108a 4929 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4930
68852c13 49312009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4932
4933 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4934
6756cd1d
CY
49352009-06-07 Chong Yidong <cyd@stupidchicken.com>
4936
4937 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4938 account for the overflowing of newlines into the last glyph on the
4939 display line (Bug#3482).
4940
28bf482a
DR
49412009-06-05 David Reitter <david.reitter@gmail.com>
4942
ec7709ba
JB
4943 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4944 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4945 Fns_selection_exists_p, Fns_selection_owner_p.
4946
fdb55376
JR
49472009-06-03 Jason Rumney <jasonr@gnu.org>
4948
4949 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4950 available. (Bug#3379)
4951
05129fbe
KH
49522009-05-29 Kenichi Handa <handa@m17n.org>
4953
1ac9108a
SM
4954 * coding.c (get_translation_table):
4955 Check Venable_character_translation.
05129fbe 4956
ec7709ba 49572009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4958
ec7709ba
JB
4959 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4960 (x_make_frame_visible): Move frame to front rather than calling
15891144 4961 ns_raise_frame().
ec7709ba 4962 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4963 isn't key window.
ec7709ba 4964 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4965 drawRect may be called by NSView even if the frame is hidden.
4966
ec7709ba
JB
4967 * nsfns.m (Fx_create_frame): Follow other ports in
4968 determining visibility; default to t. Ensure async_visible is set.
15891144 4969
21f73755
EZ
49702009-05-23 Eli Zaretskii <eliz@gnu.org>
4971
4972 * dired.c (Ffile_attributes): Doc fix.
4973
34001e41
CY
49742009-05-22 Chong Yidong <cyd@stupidchicken.com>
4975
4976 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4977
46306a17
SM
49782009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4979
4980 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4981 and xfont_scratch_props.
4982 (syms_of_xfont): Do it here instead.
4983 (xfont_find_ccl_program): Delete, unused.
4984 (xfont_open): Delete unused var `i'.
4985
ef6e0694
KH
49862009-05-21 Kenichi Handa <handa@m17n.org>
4987
4988 * fontset.c (Qlatin): Don't make it static.
4989
46306a17
SM
4990 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4991 New functions.
ef6e0694
KH
4992 (xfont_scripts_cache, xfont_scratch_props): New variables.
4993 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4994 (xfont_list_pattern): Argument changed. Callers changed.
4995 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4996 (xfont_list): Don't reject a font spec with :script property.
4997 (xfont_has_char): Fix setting of encoding.
4998 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4999 xfont_scratch_props.
5000
50012009-05-19 Kenichi Handa <handa@m17n.org>
5002
46306a17 5003 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5004 Callers changed.
5005
50062009-05-18 Kenichi Handa <handa@m17n.org>
5007
5008 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5009
ac71ced7
SM
50102009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5011
5012 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5013 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5014
1c6d1051
YM
50152009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5016
5017 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5018 (x_delete_terminal): Dissociate resource database from display and
5019 then call XrmDestroyDatabase before closing display.
5020
9b9b779c
AR
50212009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5022
5023 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5024 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5025 whether selected frame is viable before raising it (based on patch
5026 by David Reitter), and improve commentary.
5027 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5028
cccd42d5
KH
50292009-05-15 Kenichi Handa <handa@m17n.org>
5030
5031 * font.c (Ffont_spec): Check arguments.
5032
337fbd17
CY
50332009-05-14 Chong Yidong <cyd@stupidchicken.com>
5034
5035 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5036 weight when testing attributes (Bug#3282).
5037
47a6002f
JD
50382009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5039
5040 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5041 what we expect to get in the next ConfigureNotify event.
5042
9cb363db
YM
5043 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5044 before Xft one (Bug#1696).
5045
b9126609
CY
50462009-05-07 David Reitter <david.reitter@gmail.com>
5047
5048 * nsfns.m (Fx_display_planes): Compute bitplanes using
5049 NSBitsPerPixelFromDepth (Bug#3207).
5050
27a69fd9
CY
50512009-05-10 Chong Yidong <cyd@stupidchicken.com>
5052
5053 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5054
00f37552
TTN
50552009-05-10 Ulrich Mueller <ulm@gentoo.org>
5056
5057 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5058
2d82a920
DR
50592009-05-07 David Reitter <david.reitter@gmail.com>
5060
ec7709ba
JB
5061 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5062 Respect mouse face background.
2d82a920 5063
46b0d52d
DR
50642009-05-07 David Reitter <david.reitter@gmail.com>
5065
ec7709ba
JB
5066 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5067 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5068 in ns_update_begin and ns_update_end.
5069
ce1b23bb
SM
50702009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5071
5996e1b7
SM
5072 * nsfns.m (ns_get_screen): Rewrite.
5073 Don't presume selected-frame is of type `ns'.
5074
ba98e3a0
SM
5075 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5076 all drivers.
5077
ce1b23bb
SM
5078 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5079
bcda200f
YM
50802009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5081
5082 * keyboard.h (add_user_signal): Fix typo in extern.
5083
5084 * lisp.h (add_user_signal): Remove extern.
5085
5086 * unexelf.c (unexec): Consider a section to precede the .bss section
5087 if its addresses overlap that of .bss.
5088 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5089 instead of dumping process.
5090
864660a2
SM
50912009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5092
5093 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5094
50da4e56
SM
50952009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5096
5097 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5098
51520a1a
DN
50992009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5100
5101 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5102 any statements.
5103
409ea3a1
AS
51042009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5105
59c4c60f
AS
5106 * process.c (read_process_output): Make sure the current buffer is
5107 always restored.
5108
409ea3a1
AS
5109 * coding.c (record_conversion_result): Don't modify
5110 Vlast_code_conversion_error for successful result.
5111 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5112
56f00ed2
KH
51132009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5114
5115 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5116 (load_charset_map): Remove unnecessary code.
56f00ed2 5117
4491c9d2
DR
51182009-04-30 David Reitter <david.reitter@gmail.com>
5119
35f5b128 5120 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5121 through f24.
5122
6970f632
CY
51232009-04-30 Chong Yidong <cyd@stupidchicken.com>
5124
5125 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5126
5127 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5128 face_at_buffer_position.
5129 (face_before_or_after_it_pos, get_next_display_element)
5130 (note_mouse_highlight): Update face_at_buffer_position call.
5131
5132 * term.c (term_mouse_highlight):
5133 * msdos.c (IT_note_mouse_highlight):
5134 * fontset.c (Finternal_char_font):
35f5b128 5135 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5136
5137 * dispextern.h (face_at_buffer_position): Update prototype.
5138
0c616f63
KH
51392009-04-30 Kenichi Handa <handa@m17n.org>
5140
35f5b128 5141 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5142
ad3aaf33
AS
51432009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5144
5145 * callproc.c (Fcall_process): Fix GC protection. Make sure
5146 current buffer is always restored.
5147
c3c963a0
YM
51482009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5149
5150 * atimer.c (init_atimer): Also clear stopped_atimers.
5151
5152 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5153
7e3386cb
YM
5154 * process.c (create_process): Clean up merger residues of
5155 2008-07-17 change.
5156
91f68422
CY
51572009-04-29 Ulrich Mueller <ulm@gentoo.org>
5158
5159 * lread.c (Vread_circle): New variable.
5160 (read1): Disable recursive read if Vread_circle is nil.
5161
24b34550
KH
51622009-04-29 Kenichi Handa <handa@m17n.org>
5163
5164 * fontset.h (set_default_ascii_font): Delete extern.
5165
5166 * fontset.c (set_default_ascii_font): Delete this unused function.
5167
5168 * frame.c (x_set_font): When ARG is a font-object, check if the
5169 font-object matches with the ASCII font-spec of the frame's
9c358bda 5170 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5171
77bf07e1
AS
51722009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5173
5174 * fns.c (Flocale_info): Protect vector from GC during decoding.
5175
5176 * process.c (Fstart_process): Protect argv strings from GC during
5177 encoding.
5178
2c55aacf
AS
51792009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5180
5181 * sysdep.c: Include <ctype.h>.
5182
b892d3c9
DR
51832009-04-27 David Reitter <david.reitter@gmail.com>
5184
35f5b128 5185 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5186 Remove commented-out code.
5187
9d0644c4
JB
51882009-04-26 Johan Bockgård <bojohan@gnu.org>
5189
5190 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5191
b7053016
JR
51922009-04-25 Jason Rumney <jasonr@gnu.org>
5193
5194 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5195
4e8231f3
YM
51962009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5197
5198 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5199 Swap bytes in short integer if fringe bitmap width > 8.
5200
493dcf2c
KH
52012009-04-23 Kenichi Handa <handa@m17n.org>
5202
5203 * xfaces.c (Fx_list_fonts): If a font size is specified in
5204 PATTERN, set it in returned scalable fonts.
5205
401e9e57
CY
52062009-04-22 Chong Yidong <cyd@stupidchicken.com>
5207
708e05dc
CY
5208 * keyboard.c (Fset_input_meta_mode): Doc fix.
5209
5210 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5211
1ac9108a 5212 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5213
5214 * coding.c (Fterminal_coding_system): Doc fix.
5215
5216 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5217 (Fx_display_pixel_height, Fx_display_planes)
5218 (Fx_display_color_cells, Fx_server_max_request_size)
5219 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5220 (Fx_display_mm_height, Fx_display_mm_width)
5221 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5222 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5223 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5224 (check_x_display_info): Handle terminal objects instead of
5225 terminal ids.
5226
401e9e57
CY
5227 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5228 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5229 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5230 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5231
df80c7f0
KH
52322009-04-21 Kenichi Handa <handa@m17n.org>
5233
5a8f12af 5234 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5235 (font_score): Check AVGWIDTH too.
908567ef 5236
df80c7f0
KH
5237 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5238 worst case.
1ac9108a
SM
5239 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5240 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5241
705af33f
JR
52422009-04-19 Jason Rumney <jasonr@gnu.org>
5243
5244 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5245 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5246
5247 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5248 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5249 get_phys_cursor_geometry.
5250
b71ac3dd 5251 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5252 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5253 using get_phys_cursor_geometry.
5254
5255 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5256 correctly calculated.
5257
dc2933eb
JD
52582009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5259
1ac9108a
SM
5260 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5261 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5262 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5263 is deprecated.
5264
973e7849
AS
52652009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5266
5267 * font.c (font_put_frame_data): Use xfree instead of free.
5268
314d66f4
JB
52692009-04-17 Juanma Barranquero <lekktu@gmail.com>
5270
5271 * w32font.c (Qja, Qko): Remove declarations.
5272 (syms_of_w32font): Don't DEFSYM them.
5273
cf702558
CY
52742009-04-17 Chong Yidong <cyd@stupidchicken.com>
5275
5276 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5277
5278 * font.h (Qja, Qko): Extern them.
5279
5280 * ftfont.c (Qja, Qko): Remove declarations.
5281
5282 * xfont.c (Qja, Qko): Remove declarations.
5283
b50504f5
KH
52842009-04-17 Kenichi Handa <handa@m17n.org>
5285
bde25748
KH
5286 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5287 string from a vector to handle Latin-1 characters correctly.
5288
b50504f5
KH
5289 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5290 entity even if the cache hits.
5291
f4646fff
AS
52922009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5293
5294 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5295 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5296
e7deaab0
AS
5297 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5298 * lisp.h: Adjust prototypes.
5299
0a0e7d49
CY
53002009-04-16 Chong Yidong <cyd@stupidchicken.com>
5301
5302 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5303 change (Bug#3003).
5304
3c908a57
KH
53052009-04-16 Kenichi Handa <handa@m17n.org>
5306
1ac9108a 5307 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5308
5309 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5310 adstyle.
5311
5312 * ftfont.c (Qja, Qko): Don't make them static.
5313 (enum ftfont_cache_for): New enum.
5314 (fc_charset_table): Undo the previous change.
5315 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5316 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5317 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5318 non-scarable font, try to get AVERAGE_WIDTH.
5319 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5320 Change ft_face_cache from a list of a hash-table. Don't check
5321 `ja' and `ko' adstyle here.
5322 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5323 FTFONT_CACHE_FOR_CHARET.
5324 (ftfont_get_charset): Undo the previous change.
1ac9108a 5325 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5326 (ftfont_close): Likewise.
5327 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5328
5329 * font.c (font_sort_entites): Change the meaning of the arg
5330 BEST-ONLY. Don't optimize for VEC of lenght 1.
5331 (font_select_entity): Just return the value of font_sort_entites.
5332
5333 * xfaces.c (merge_face_vectors): Reflect font properties in
5334 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5335 font_clear_prop if a face attribute doesn't change.
5336
3c908a57
KH
5337 * charset.h (charset_ksc5601): Extern it.
5338
5339 * charset.c (charset_ksc5601): New variable.
5340 (Fdefine_charset_internal): Set charset_ksc5601.
5341 (init_charset_once): Initialize charset_ksc5601 to -1.
5342
d65859c3
DN
53432009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5344
5345 * fileio.c (history_delete_duplicates): Remove unused declaration.
5346
5347 * callint.c (history_delete_duplicates): New declaration.
5348 (Fcall_interactively): Remove command history duplicates when
5349 history_delete_duplicates is true.
5350
3ba010e5
EZ
53512009-04-14 Eli Zaretskii <eliz@gnu.org>
5352
5353 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5354
06f19b91
KH
53552009-04-14 Kenichi Handa <handa@m17n.org>
5356
5357 * font.c (Ffont_info): Fix docstring. Fix the second element of
5358 the returned value (bug#2949).
5359
2cce8bfc
CY
53602009-04-14 Chong Yidong <cyd@stupidchicken.com>
5361
5362 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5363
d156542d
KH
53642009-04-14 Kenichi Handa <handa@m17n.org>
5365
5366 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5367 encoding charset is ascii_compatible.
5368
5369 * charset.c (Fdefine_charset_internal): Make charset
5370 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5371 code_offset is 0, and covers all ASCII characters.
5372
86fa089e
SM
53732009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5374
5375 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5376 (ns_string_to_pasteboard_internal):
5377 * nsmenu.m (process_dialog):
5378 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5379 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5380 * lisp.h (Fx_load_color_file): Declare.
5381
a8a3728b
KH
53822009-04-13 Kenichi Handa <handa@m17n.org>
5383
1ac9108a 5384 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5385 (font_select_entity): Suppress the code to optimize for the same
5386 kind of fonts.
5387 (font_load_for_lface): Get a font that supports at least ASCII
5388 characters.
5389
5390 * ftfont.c (Qja, Qko): New variables.
5391 (fc_charset_table): Delete uniquifier data for iso8859-1.
5392 (ftfont_get_latin1_charset): New function.
5393 (get_adstyle_property): New function.
5394 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5395 bitmap fonts.
5396 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5397 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5398 `ko' or `ja'.
5399 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5400 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5401 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5402 property.
5403 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5404 (syms_of_ftfont): DEFSYM Qja and Qko.
5405
483670b5
KH
54062009-04-09 Kenichi Handa <handa@m17n.org>
5407
12b55765
KH
5408 * charset.c (map_charset_chars): For a charset of `superset'
5409 method, fix calculation of code range.
5410
483670b5
KH
5411 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5412 from the list of extra properties.
5413 (font_clear_prop): Be sure to delete `:name' font property.
5414
57d3b93b
KH
54152009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5416
b4b2c2ca
YM
5417 * dispnew.c (redraw_overlapping_rows): Fix detection of
5418 overlapping for topmost and bottommost rows.
5419
1ac9108a 5420 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5421
472c3609
JR
54222009-04-06 Jason Rumney <jasonr@gnu.org>
5423
5424 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5425
ab193662
KH
54262009-04-06 Kenichi Handa <handa@m17n.org>
5427
5428 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5429
5430 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5431
0c26f026
KH
54322009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5433
5434 * ftfont.c (ftfont_open): Fix checking of the return value of
5435 FT_Load_Char. Fix setting font->underline_thickness.
5436
e173bbce
CY
54372009-04-04 Chong Yidong <cyd@stupidchicken.com>
5438
5439 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5440 (Fterminal_parameters, Fterminal_parameter)
5441 (Fset_terminal_parameter): In doc string, refer to terminal
5442 objects rather than terminal ids.
5443
693a2698
EZ
54442009-04-04 Eli Zaretskii <eliz@gnu.org>
5445
5446 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5447 ret_lim_data. (Bug#2867)
5448
d5221487
CY
54492009-04-03 Chong Yidong <cyd@stupidchicken.com>
5450
5451 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5452 so they don't get wider than the window, matching 2006-01-23
5453 change to the partner function in xdisp.c (Bug#2800).
5454
223509a3
KH
54552009-04-03 Kenichi Handa <handa@m17n.org>
5456
5457 * print.c (print_object): Make each lowest sub_char_table start a
5458 new line (Bug#2866).
5459
74fcd0b1
KH
54602009-04-02 Kenichi Handa <handa@m17n.org>
5461
5462 * fontset.c (fontset_font): Record no-font when a fontset
5463 explicitly tells not to try another font-specs.
5464
c542407d
SM
54652009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5466
5467 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5468
e3869731
KH
54692009-03-30 Kenichi Handa <handa@m17n.org>
5470
d8d2f142
KH
5471 * fontset.c (fontset_from_font): Specify only registry in a
5472 font-spec for all characters supported by that registry.
5473
e3869731
KH
5474 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5475 even if HAVE_M17N_FLT is not defined.
5476
5da5f805
CY
54772009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5478
5479 * ftfont.c: Conditionalize prototyping and use of
5480 ftfont_variation_glyphs.
5481
ab226c50
SM
54822009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5483
9628fed7
SM
5484 * frame.c (delete_frame): Work around compiler bug.
5485
5486 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5487 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5488 Some more EMACS_INT.
5489 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5490
5491 * xdisp.c (dump_glyph): Fix typo.
5492
ae19ba7c
SM
5493 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5494 (adjust_markers_gap_motion, adjust_markers_for_delete)
5495 (adjust_markers_for_insert, adjust_point)
5496 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5497 (make_gap, copy_text, count_size_as_multibyte, insert)
5498 (insert_and_inherit, insert_before_markers)
5499 (insert_before_markers_and_inherit, insert_1)
5500 (count_combining_before, count_combining_after, insert_1_both)
5501 (insert_from_string, insert_from_string_before_markers)
5502 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5503 (insert_from_buffer_1, adjust_after_replace)
5504 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5505 (replace_range_2, del_range, del_range_1, del_range_byte)
5506 (del_range_both, del_range_2, modify_region)
5507 (prepare_to_modify_buffer, signal_before_change)
5508 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5509 for buffer positions and sizes.
5510 * lisp.h: Adjust prototypes accordingly.
5511
5512 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5513 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5514 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5515
ab226c50
SM
5516 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5517
46dfb8fb
JD
55182009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5519
5520 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5521 lines and columns so we keep the same pixel height and width.
5522
5523 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5524 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5525 (x_handle_net_wm_state): New function to update frame parameter
5526 fullscreen.
5527 (x_term_init): Initialize atoms for _NET_WM_STATE.
5528
5529 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5530
d347e494
SM
55312009-03-27 Kevin Ryde <user42@zip.com.au>
5532
5533 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5534 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5535 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5536 (Fgpm_mouse_stop): Pass that new parameter.
5537 * termhooks.h (close_gpm): Adjust prototype.
5538
84db11d6
SM
55392009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5540
c95a5008
SM
5541 * lisp.h (Fx_focus_frame): Declare.
5542
84db11d6
SM
5543 * callint.c (Fcall_interactively): For '^' just delegate the work to
5544 handle-shift-selection.
5545 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5546
0a1958d6
CY
55472009-03-24 Chong Yidong <cyd@stupidchicken.com>
5548
0bfdff23
CY
5549 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5550
0a1958d6
CY
5551 * data.c (Qinteractive_form): New variable.
5552 (Finteractive_form): Use it.
5553
5554 * eval.c (Fcommandp): Use Qinteractive_form.
5555
58aec0d6
JR
55562009-03-24 Jason Rumney <jasonr@gnu.org>
5557
5558 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5559 Calculate total size precisely. Decode environment variables
5560 before substituting. (Bug#38)
5561
553dd618
KH
55622009-03-24 Kenichi Handa <handa@m17n.org>
5563
5564 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5565 encoding (Bug#2722).
553dd618 5566
c39ea606
JD
55672009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5568
5569 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5570 that gdpy is set.
5571
bc9b2b5e
AM
55722009-03-22 Alan Mackenzie <acm@muc.de>
5573
5574 * callint.c (Finteractive): Clarify the doc string - even
5575 promptless elements need \n separators.
5576
9f995a76
JR
55772009-03-22 Jason Rumney <jasonr@gnu.org>
5578
5579 * w32term.c (syms_of_w32term): Doc fix for
5580 x-use-underline-position-properties.
5581
22749e9a
EZ
55822009-03-21 Eli Zaretskii <eliz@gnu.org>
5583
5584 * w32.c (getpwuid): Change argument type to unsigned.
5585 (struct w32_id): Change type of `rid' member to unsigned.
5586 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5587 argument ID to unsigned. All callers changed.
5588 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5589
e00553bf
EZ
55902009-03-20 Eli Zaretskii <eliz@gnu.org>
5591
5592 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5593 negative, produce a float value.
5594
5595 * dired.c (make_uid, make_gid): New functions.
5596 (Ffile_attributes): Use them to avoid negative UID and GID.
5597
f761d6b6
JB
55982009-03-20 Juanma Barranquero <lekktu@gmail.com>
5599
5600 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5601 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5602 Fix typos in docstrings.
5603
d507f8d7
KH
56042009-03-19 Kenichi Handa <handa@m17n.org>
5605
5606 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5607 changed, use font_load_for_lface to get a new font object.
5608 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5609
5610 * frame.c (x_set_font): Handle the case that ARG is a cons.
5611
c68845e0
GM
56122009-03-19 Glenn Morris <rgm@gnu.org>
5613
5614 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5615
bfa49dd1
CY
56162009-03-19 Chong Yidong <cyd@stupidchicken.com>
5617
5618 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5619
8458d4c1
KH
56202009-03-19 Kenichi Handa <handa@m17n.org>
5621
5622 * charset.c (load_charset_map_from_file): When a mapfile can't be
5623 loaded, signal an error.
5624
78e7d1fe
EZ
56252009-03-18 Eli Zaretskii <eliz@gnu.org>
5626
5627 * dired.c (Ffile_attributes): Make sure UID and GID are always
5628 positive, even if the value is too large for a positive EMACS_INT.
5629 Doc fix.
5630
5631 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5632
5da9fdfa
YM
56332009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5634
5635 * xmenu.c (xdialog_show): Move Fredisplay call ...
5636 (Fx_popup_dialog): ... here.
5637
7519c40d
SM
56382009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5639
5640 * dired.c (file_name_completion): Disable the first optimization just
5641 installed, since it is not implemented correctly.
5642
2cd298e2
SM
56432009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5644
5645 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5646 only if the entry can affect bestmatch.
2cd298e2
SM
5647 Stop the search early, as Ftry_completion already does.
5648
48d37adf
CY
56492009-03-17 Chong Yidong <cyd@stupidchicken.com>
5650
e10c9c93 5651 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5652
9286b16a
CY
56532009-03-15 Chong Yidong <cyd@stupidchicken.com>
5654
5655 * keyboard.c (parse_menu_item): Don't display remappings as menu
5656 equivalent bindings (Bug#788).
5657
f7b146dc
JR
56582009-03-15 Jason Rumney <jasonr@gnu.org>
5659
5660 * w32term.h (WM_EMACS_PAINT): New message.
5661 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5662 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5663 before passing to lisp thread. (Bug#950)
5664
f761d6b6 56652009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5666
d93f9575
CY
5667 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5668 variable as it was never reset.
5669 (ns_term_init): Remove initialization of Lisp-settable defaults
5670 and ns_expand_space.
5671 (-setPanelFromDefaultValues): Remove ns_expand_space.
5672 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5673 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5674 i.e. no additional spacing, similar to Carbon port.
5675
d93f9575
CY
5676 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5677 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5678
305018ec
JD
56792009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5680
5681 * sound.c (alsa_configure): Remove call to deprecated
5682 snd_pcm_sw_params_set_xfer_align.
5683
f761d6b6 56842009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5685
5686 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5687 after clicking in a detached tool bar.
5688 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5689
46e722a9
SM
56902009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5691
348db3dd
SM
5692 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5693 int/Lisp_Object mixup).
46e722a9 5694
a3d16f39
KH
56952009-03-13 Kenichi Handa <handa@m17n.org>
5696
5697 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5698 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5699 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5700 (set_fontset_font): Change ARG to a vector. Handle range_list in
5701 ARG correctly.
5702 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5703 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5704 the above change.
5705 (fontset_from_font): Fix previous change.
fe24f56a 5706 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5707 entry. If FONTSET is the default fontset, don't set the extra
5708 slot of the returning char-table.
5709
b066e6b6
JB
57102009-03-12 Juanma Barranquero <lekktu@gmail.com>
5711
5712 * nsfns.m (Fx_close_connection): Doc fix.
5713 (Fns_do_applescript): Reflow docstring.
5714 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5715 (Fx_display_pixel_width, Fx_display_pixel_height)
5716 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5717 Fix typos in docstrings.
5718 (Fns_set_alpha): Fix typos in error messages.
5719
d472514e 57202009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5721
d472514e 5722 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5723 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5724 were used for such events.
5725
d472514e
JB
5726 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5727 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5728
d472514e 5729 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5730 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5731
fb930676
KH
57322009-03-11 Kenichi Handa <handa@m17n.org>
5733
ff85581a
KH
5734 * font.h (font_open_by_spec): Extern it.
5735
c50b7e98
KH
5736 * font.c (font_open_by_spec): New function.
5737 (font_open_by_name): Use font_open_by_spec.
5738
fb930676
KH
5739 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5740 fontset of the frame.
5741
5742 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5743 modify the default font of frames that use this fontset.
5744 (num_auto_fontsets): New variable.
5745 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5746 name. Be sure to set FONTSET_ASCII to the correct font name.
5747 (update_auto_fontset_alist): New function.
5748
df4e8455
JB
57492009-03-11 Juanma Barranquero <lekktu@gmail.com>
5750
5751 * makefile.w32-in: Update dependencies.
5752
0a375797
AR
57532009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5754
5755 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5756
61313fa3
SM
57572009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5758
5759 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5760
b55103fb
CY
57612009-03-10 Chong Yidong <cyd@stupidchicken.com>
5762
5763 * lread.c (Feval_buffer): Doc fix.
5764
dde2559c
KH
57652009-03-09 Kenichi Handa <handa@m17n.org>
5766
5767 * charset.c (Qfile_name_handler_alist): Extern it.
5768 (load_charset_map_from_file): Temporarily bind
5769 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5770
df4e8455 57712009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5772
47f588bb
GM
5773 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5774 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5775
4ddf94bd
AR
57762009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5777
4c9bdfc2
AR
5778 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5779 (x_set_window_size): Change back to calculated method of setting
5780 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5781 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5782 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5783
fe41ae9e
AR
5784 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5785
4c9bdfc2
AR
5786 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5787 accelerator in parens under GNUstep.
5788
825d0875
KH
57892009-03-06 Kenichi Handa <handa@m17n.org>
5790
5791 These changes are to detect incorrect composition sequence without
f3b3be74 5792 looking ahead the source. (Bug#2370)
825d0875
KH
5793
5794 * coding.h: Include "composite.h".
5795 (enum compisition_state): New enum.
5796 (struct compisition_status): New struct.
5797 (struct iso_2022_spec): New member cmp_status.
5798 (struct emacs_mule_spec): New struct.
5799 (struct coding_system): New members ctext_extended_segment_len and
5800 embedded_utf_8. Change the union member
5801 spec.emacs_mule_full_support to spec.emacs_mule.
5802
5803 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5804 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5805 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5806 (ADD_COMPOSITION_DATA): New arg nbytes.
5807 (emacs_mule_char): New arg cmp_status.
5808 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5809 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5810 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5811 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5812 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5813 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5814 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5815 (EMACS_MULE_COMPOSITION_END): New macro.
5816 (emacs_mule_finish_composition): New function.
5817 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5818 (decode_coding_emacs_mule): Avoid long looking ahead while
5819 handling composition.
5820 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5821 (ENCODE_COMPOSITION_RULE): New macro.
5822 (finish_composition): New function.
5823 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5824 (DECODE_COMPOSITION_START): New implementation.
5825 (DECODE_COMPOSITION_END): Likewise.
5826 (STORE_COMPOSITION_RULE): New macro.
5827 (decode_coding_iso_2022): Avoid long looking ahead while handling
5828 composition, CTEXT extended segment, and embedded UTF-8.
5829 (setup_coding_system): For a coding of type iso-2022, reset
5830 CODING_ISO_EXTSEGMENT_LEN (coding) and
5831 CODING_ISO_EMBEDDED_UTF_8 (coding).
5832 (get_translation): Delete arguments last_block, from_nchars,
5833 to_nchars. Callers changed.
5834 (produce_chars): Don't modify charbuf. Adjusted for the change of
5835 get_translation.
98a326f7 5836 (produce_composition): Adjust for the new annotation sequence.
825d0875 5837 (handle_composition_annotation): Likewise.
98a326f7 5838 (consume_chars): Adjust for the change of get_translation.
825d0875 5839
ccbc4452
AR
58402009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5841
4ddf94bd 5842 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5843
988a7ddb
KH
58442009-03-05 Kenichi Handa <handa@m17n.org>
5845
5846 * font.c (font_select_entity): New function.
5847 (font_find_for_lface): Use font_select_entity to select a font.
5848
5849 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5850 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5851 font with C restriction.
5852
98a326f7 58532009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5854
be1bce46 5855 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5856
10ea2b82
JR
58572009-03-04 Jason Rumney <jasonr@gnu.org>
5858
2c93b248 5859 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5860 characters that have already been read. (Bug#2569)
2c93b248 5861
10ea2b82
JR
5862 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5863 Log an error message if check_image_size failed.
5864 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5865 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5866
71a0c011
EZ
58672009-03-02 Eli Zaretskii <eliz@gnu.org>
5868
5869 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5870 when decoding process output.
5871
2f63bba8
RS
58722009-03-01 Richard M Stallman <rms@gnu.org>
5873
5874 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5875
5876 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5877
0a9564cb
EZ
58782009-02-28 Eli Zaretskii <eliz@gnu.org>
5879
5880 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5881 (decode_coding_emacs_mule, decode_coding_iso_2022)
5882 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5883 (decode_coding_raw_text, decode_coding_charset)
5884 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5885 Honor inhibit-eol-conversion. (Bug #2186)
5886
449148b3
JR
58872009-02-28 Jason Rumney <jasonr@gnu.org>
5888
5889 * coding.c (detect_coding_charset): If not checking latin extra,
5890 fail on characters between 0x80 and 0xA0. (Bug#2354)
5891
a4aee864
EZ
58922009-02-28 Eli Zaretskii <eliz@gnu.org>
5893
5894 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5895 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5896
d88bee5a
GM
58972009-02-27 Glenn Morris <rgm@gnu.org>
5898
5899 * callint.c (Finteractive): Doc fix.
5900
a808f22d
KH
59012009-02-27 Kenichi Handa <handa@m17n.org>
5902
5903 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5904
caf8d60c
CY
59052009-02-27 Chong Yidong <cyd@stupidchicken.com>
5906
5907 * font.c (font_style_to_value): Set value for unknown symbols to
5908 100 instead of 255.
b61137ea
CY
5909 (weight_table, slant_table, width_table): Treat "unspecified" as
5910 the default value.
caf8d60c 5911
1a0de25c
JB
59122009-02-26 Juanma Barranquero <lekktu@gmail.com>
5913
5914 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5915
8fc45744
JB
59162009-02-25 Juanma Barranquero <lekktu@gmail.com>
5917
107bd7d1
JB
5918 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5919 error as soon as a recursive load is detected.
8fc45744 5920
f097e223
AR
59212009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5922
5923 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5924 before caching.
5925
8810a12f
KH
59262009-02-24 Kenichi Handa <handa@m17n.org>
5927
5928 * fontset.c (fontset_find_font): Fix the condition for checking
5929 unavailable font.
5930
2c7d1565
GM
59312009-02-24 Glenn Morris <rgm@gnu.org>
5932
5933 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5934 whitespace that confuses documentation.
5935
a20878b6
MB
59362009-02-23 Miles Bader <miles@gnu.org>
5937
5938 * process.c (Flist_system_processes, Fprocess_attributes)
5939 (syms_of_process): Rename `system-process-attributes' to
5940 `process-attributes'.
5941
b3b58c01
AS
59422009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5943
1b3b981b
AS
5944 * coding.h (struct coding_system): Make safe_charsets a pointer to
5945 unsigned char.
5946 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5947 being 255.
5948 (SAFE_CHARSET_P): Likewise.
5949 (setup_iso_safe_charsets): Properly setup safe_charsets.
5950 (Fdefine_coding_system_internal): Likewise.
5951 (setup_coding_system): Likewise. Remove unneeded casts.
5952 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5953 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5954 unneeded casts.
5955
b3b58c01
AS
5956 * insdel.c (del_range_2): Don't modify gap contents when called
5957 from decode_coding_object. (Bug#1809)
5958
0b6f228c
CY
59592009-02-21 Chong Yidong <cyd@stupidchicken.com>
5960
5961 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5962 Qfont_object.
5963 (Ftype_of): Recognize font objects.
5964
5965 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5966
5967 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5968 moved to data.c.
5969
52f8870b
AR
59702009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5971
5972 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5973 async_iconified. Based on a patch by Christian Lynbech
5974 <christian.lynbech@tieto.com>.
5975 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5976
7087d5e9
GM
59772009-02-20 Glenn Morris <rgm@gnu.org>
5978
5979 * syntax.c (Fskip_chars_forward): Fix doc typo.
5980
41d2ceef
CY
59812009-02-20 Chong Yidong <cyd@stupidchicken.com>
5982
5983 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5984
1a3b7ca6
CY
59852009-02-19 Chong Yidong <cyd@stupidchicken.com>
5986
5987 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5988
73cce38d
KH
59892009-02-19 Kenichi Handa <handa@m17n.org>
5990
5991 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5992 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5993
a51092ee
DN
59942009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5995
5996 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5997
c423ecca
KH
59982009-02-18 Kenichi Handa <handa@m17n.org>
5999
6000 * font.c (font_check_otf_features): Fix handling of `nil' element.
6001 (Ffont_spec): Describe :lang and :otf in the docstring.
6002
4c1958f4
AS
60032009-02-16 Andreas Schwab <schwab@suse.de>
6004
6005 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6006 string.
6007
5704f39a
KH
60082009-02-16 Kenichi Handa <handa@m17n.org>
6009
6010 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6011 (Bug#1723)
5704f39a 6012
8f0085aa
CY
60132009-02-14 Chong Yidong <cyd@stupidchicken.com>
6014
a057d86a 6015 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6016
6017 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6018 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6019
aff01dd9
EZ
60202009-02-14 Eli Zaretskii <eliz@gnu.org>
6021
6022 * msdos.c (MAX_SCREEN_BUF): New macro.
6023 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6024 Encode the entire run of glyphs sharing the same face, instead of
6025 doing that one glyph at a time (fixes a bug with displaying
6026 double-size characters).
6027
ba301db3
AR
60282009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6029
6030 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6031
6032 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6033 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6034 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6035
6036 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6037 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6038
51d861de
SM
60392009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6040
ac146f82 6041 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6042 invisible areas.
6043
7fed8996
JR
60442009-02-12 Jason Rumney <jasonr@gnu.org>
6045
631ea4fb
JR
6046 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6047 (add_font_entity_to_list): Call check_face_name even when family
6048 is unspecified.
6049
cb4a3e42
JR
6050 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6051 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6052 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6053
7fed8996 6054 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6055 raster fonts. (Bug#2219)
7fed8996 6056
895416e3
KH
60572009-02-12 Kenichi Handa <handa@m17n.org>
6058
6059 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6060 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6061 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6062 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6063 (find_automatic_composition): While looking forward and backward,
6064 check static composition. Fix where to stop looking forward.
6065 (composition_adjust_point): Fix checking of static composition.
6066 (Fcomposition_get_gstring): Pay attention to
1dacf998 6067 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6068
6069 * lisp.h (fast_looking_at): Extern it.
6070
6071 * search.c (fast_looking_at): New function.
6072
51d861de 6073 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6074 <struct glyph>.u.cmp.to.
6075 (append_composite_glyph): Likewise.
6076
51d861de 6077 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6078 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6079 composition.
51d861de 6080 (append_composite_glyph): Adjust for the change of
895416e3
KH
6081 <strcut glyph>.u.cmp.to.
6082
8510724d
JB
60832009-02-11 Juanma Barranquero <lekktu@gmail.com>
6084
6085 * casetab.c (init_casetab_once):
6086 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6087 * font.c (font_update_lface):
6088 * fontset.c (Fnew_fontset):
6089 * ftfont.c (ftfont_drive_otf):
6090 * xfont.c (xfont_open):
6091 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6092
294fa707
SM
60932009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6094
6095 * fileio.c (Fwrite_region): !NILP -> CONSP.
6096
b5bfebec
AS
60972009-02-10 Andreas Schwab <schwab@suse.de>
6098
6099 * process.c (send_process): Properly relocate pointer into data
adab88bd 6100 when using encoded data. (Bug#2272)
b5bfebec 6101
cb84a2be
KH
61022009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6103
6104 * coding.c (detect_coding_charset): Fix previous change.
6105
89e09428
JR
61062009-02-08 Jason Rumney <jasonr@gnu.org>
6107
6108 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6109 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6110
4470a277
AS
61112009-02-07 Andreas Schwab <schwab@suse.de>
6112
6113 * unexelf.c (unexec): Fix error message.
6114
3175b12a
AR
61152009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6116
6117 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6118 when modal window is active. (Bug #2152)
3175b12a
AR
6119 (applicationShouldTerminate:): Remove now-unneeded while loop
6120 around NSRunAlertPanel.
6121
6122 * nsmenu.m (popupSession): New file-global variable.
6123 (pop_down_menu): End the popupSession before closing dialog.
6124 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6125 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6126 don't query NSApp for events (just sleep instead).
6127
8434d0b8
EZ
61282009-02-07 Eli Zaretskii <eliz@gnu.org>
6129
51d861de
SM
6130 * coding.c (syms_of_coding) <translation-table-for-input>:
6131 Modify doc string to discourage use for character code unification.
8434d0b8 6132
aa82edfd
CY
61332009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6134
6135 * atimer.c (run_timers): Update pending_atimers.
6136
2d283c7c
CY
61372009-02-06 Chong Yidong <cyd@stupidchicken.com>
6138
eb306cab
CY
6139 * image.c (svg_load_image): Fix last change.
6140
2d283c7c
CY
6141 * xfns.c (Fx_create_frame): Signal an error if no font is
6142 found (Bug#2147).
6143
4d8e170e
JB
61442009-02-05 Juanma Barranquero <lekktu@gmail.com>
6145
6146 * character.c (syms_of_character) <script-representative-chars>:
6147 Fix typo in docstring.
6148
c96169a0
AR
61492009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6150
6151 * nsmenu.m (pop_down_menu): New function.
6152 (ns_popup_dialog): Call it on unwind.
6153 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6154 call timer_check() (Bug#2154).
6155 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6156 handling_signal is set.
6157 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6158
31fd7c5c 6159 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6160
6161 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6162
6163 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6164
51d861de
SM
6165 * keyboard.c (poll_for_input_1, handle_async_input):
6166 Set handling_signal under HAVE_NS.
c96169a0 6167
aacd8ba1
GM
61682009-02-04 Glenn Morris <rgm@gnu.org>
6169
6170 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6171
4cb75c4b
KH
61722009-02-04 Kenichi Handa <handa@m17n.org>
6173
6174 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6175
6176 * charset.c (Fchar_charset): New optional arg restriction.
6177
6178 * coding.h (coding_system_charset_list): Extern it.
6179
6180 * coding.c (coding_system_charset_list): New function.
6181
6182 * composite.c: Include coding.h and termhooks.h.
6183 (composition_gstring_p): Fix for the terminal case.
6184 (composition_gstring_width): Likewise.
6185 (fill_gstring_body): Likewise.
6186 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6187 the frame.
6188 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6189 is within a composition.
867d4bb3 6190 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6191
6192 * term.c (encode_terminal_code): Fix handling of composition.
6193 (produce_composite_glyph): For static composition, get pixel_width
6194 from struct composition.
6195
826ba17e
AS
61962009-02-02 Andreas Schwab <schwab@suse.de>
6197
6198 * unexelf.c (unexec): Handle unaligned bss offset.
6199
8ad093db
AR
62002009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6201
6202 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6203 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6204
8ad093db
AR
6205 * keyboard.c (handle_interrupt): Don't call
6206 quit_throw_to_read_char() under NS.
d0a76a6e 6207
8ad093db
AR
6208 * blockinput.h: Remove NS-specific code.
6209
4d18a7a2
DN
62102009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6211
db878925
DN
6212 * dispnew.c (window_change_signal): Don't try to get the size of a
6213 suspended tty frame.
6214 * term.c (Fresume_tty): Resize if the size has changed while the
6215 tty was suspended.
6216
4d18a7a2
DN
6217 * alloc.c (mark_stack): Properly conditionalize previous change.
6218
8984df7c
JB
62192009-01-30 Juanma Barranquero <lekktu@gmail.com>
6220
6221 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6222 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6223 Remove; this code is not used on Windows.
6224
75f4f1ac
EZ
62252009-01-30 Eli Zaretskii <eliz@gnu.org>
6226
6227 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6228 EOLs that also has stray ^M characters.
6229
07a1e794
JB
62302009-01-30 Juanma Barranquero <lekktu@gmail.com>
6231
6232 * atimer.c (run_timers, alarm_signal_handler):
6233 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6234 * w32inevt.c (w32_console_read_socket):
6235 * w32term.c (w32_read_socket):
6236 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6237
a8b11cc9
CY
62382009-01-30 Chong Yidong <cyd@stupidchicken.com>
6239
6240 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6241 Initialize it as a relative filename pattern.
6242 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6243 (Fcall_process_region): Simplify temp file creation using
6244 temporary-file-directory.
6245
c279587b
EZ
62462009-01-29 Eli Zaretskii <eliz@gnu.org>
6247
6248 * msdos.c: Rename pending_signals to msdos_pending_signals.
6249 (sig_suspender, sigprocmask): Adjust.
6250
a8fe3242
CY
62512009-01-29 Chong Yidong <cyd@stupidchicken.com>
6252
6253 * keyboard.c (pending_signals): New var.
6254 (poll_for_input, input_available_signal, init_keyboard): Set it.
6255 (process_pending_signals): New function.
6256
6257 * lisp.h (QUIT): Check pending_signals instead of
6258 interrupt_input_pending. Use process_pending_signals.
6259
51d861de 6260 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6261
51d861de 6262 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6263
6264 * sysdep.c (emacs_write): Use process_pending_signals.
6265
6266 * xterm.c (XTread_socket): Update pending_signals.
6267
6268 * w32term.c (w32_read_socket): Update pending_signals.
6269
6270 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6271
6570a1c4
KH
62722009-01-29 Kenichi Handa <handa@m17n.org>
6273
6274 * xftfont.c (xftfont_has_char): New function.
6275 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6276
d72a4afa
AR
62772009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6278
6279 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6280 under GNUstep.
6281 (ns_query_color): New declaration.
6282
6283 * nsterm.m (ns_confirm_quit): New variable.
6284 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6285 (EmacsApp-applicationShouldTerminate:): Use it.
6286 (EmacsPrefsController): Let user set it.
6287 (ns_query_color): New function.
6288 (ns_defined_color): Use it.
6289 (ns_initialize): Drop.
6290 (ns_term_init): Add two lines from ns_initialize(), and set
6291 input_interrupt_mode to nil.
6292
6293 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6294 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6295
9fe78804
KH
62962009-01-28 Kenichi Handa <handa@m17n.org>
6297
6298 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6299 (fontset_get_font_group): Remember that no font-group is specified
6300 for C.
9fe78804 6301
fa57de36
CY
63022009-01-27 Chong Yidong <cyd@stupidchicken.com>
6303
930600e9
CY
6304 * fns.c (concat): Check for string overflow (bug#1787).
6305
fa57de36
CY
6306 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6307 Quadruple undo limits (bug#1501).
6308
7179ce7b
KH
63092009-01-27 Kenichi Handa <handa@m17n.org>
6310
6311 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6312 directly use GT_Get_Char_index.
6313
6314 * xftfont.c (struct xftfont_info): New member `index'.
6315
6316 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6317 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6318
5be8fcc0
CY
63192009-01-26 Kenichi Handa <handa@m17n.org>
6320
6321 * fontset.c (fontset_find_font): Fix handling of non-cons return
6322 value of fontset_get_font_group.
6323 (fontset_font): Revert last change.
6324
19ae3e61
JR
63252009-01-26 Jason Rumney <jasonr@gnu.org>
6326
6327 * w32font.c (w32font_list_internal): Return quickly if registry is
6328 unknown. Simplify final return.
6329 (add_font_entity_to_list): Break complex logic down into more
6330 manageable chunks. Move unknown registry check to
6331 w32font_list_internal.
6332
8612b71a
AR
63332009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6334
6335 Changes to remove Feval calls from GUI under NS.
6336
d8038940
JB
6337 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6338 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6339 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6340
6341 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6342 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6343 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6344 instead of NON_ASCII_KEYSTROKE_EVENT.
6345 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6346 (EmacsApp-applicationShouldTerminate:): Query user.
6347 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6348 instead of Feval.
6349
6350 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6351
6352 * keyboard.c (kbd_buffer_get_event): Check for it.
6353 (keys_of_keyboard): Define lispy keys for
6354 ns-put/unput-working-text.
6355
6356 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6357 versions.
6358 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6359
6288ae55
CY
63602009-01-25 Chong Yidong <cyd@stupidchicken.com>
6361
6362 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6363 setting current_buffer directly. (Bug#2044)
6288ae55 6364
289e7f8f
CY
63652009-01-24 Chong Yidong <cyd@stupidchicken.com>
6366
5ce87308 6367 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6368 any work. (Bug#1952, bug#1990).
5ce87308 6369
64cc3cf6 6370 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6371
b3243e6f
AR
63722009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6373
6374 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6375 (ns_no_defaults): New declaration.
6376 (main): Use it.
e0d2e69a 6377
d900b2af 6378 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6379
d900b2af 6380 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6381
d900b2af
AR
6382 * nsterm.m (ns_no_defaults): New variable.
6383 (ns_initialize): Don't read defaults when ns_no_defaults.
6384 (EmacsView-readSelectionFromPasteboard:)
6385 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6386 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6387 (ns_dumpglyphs_stretch): New function.
6388 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6389 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6390
e0d2e69a
AR
6391 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6392
3ac71f5d
CY
63932009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6394
6395 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6396 call for Sparc64.
6397
3fe53a83
AR
63982009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6399
6400 * nsfns.m:
6401 * nsgui.h:
6402 * nsmenu.m:
6403 * nsselect.m:
6404 * nsterm.h:
6405 * nsterm.m: Remove '23' comments that indicated code added during
6406 update from emacs-20 -> emacs-23.
6407
10f87c6f 64082009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6409
6410 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6411 ns_alternate_modifier. (Bug#1217)
a3b53a85 6412
c7cef62d
AR
6413 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6414 Display all shortcuts, including those w/o super modifier.
6415
575fb8bd
AR
6416 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6417
918b848b
CY
64182009-01-22 Chong Yidong <cyd@stupidchicken.com>
6419
6420 * fileio.c (Vwrite_region_post_annotation_function)
6421 (Vwrite_region_annotation_buffers): New vars.
6422 (build_annotations_unwind): Just reset
6423 Vwrite_region_annotation_buffers.
6424 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6425 Call write-region-post-annotation-function.
6426 (build_annotations): Add to Vwrite_region_annotation_buffers if
6427 buffer changes.
6428
a39e2539
AR
64292009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6430
6431 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6432 Tiger.
51d861de
SM
6433 * nsfns.m (ns_do_applescript):
6434 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6435
35ed44db
AR
64362009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6437
6438 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6439
cbe0b5bf
AR
64402009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6441
6442 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6443
6049d3a0
AR
6444 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6445
6446 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6447 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6448 handle Ctrl-tab. (Bug#1841)
6449 (ns_get_color): Use unsigned long long for scanned hex string value.
6450 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6451 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6452 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6453 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6454 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6455 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6456 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6457
d3810c21 6458 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6459 DPI. (Bug#1316)
d3810c21
AR
6460 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6461 values in onTiger section.
4c7077c3 6462
e301e634
CY
64632009-01-19 Chong Yidong <cyd@stupidchicken.com>
6464
7f82490b
CY
6465 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6466 Check return value of font_spec_from_name.
64cc3cf6 6467 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6468
6469 * font.c (font_spec_from_name): Return Qnil if font name could not
6470 be parsed.
6471 (font_parse_name): Treat a `?' character as part of an XLFD.
6472
e301e634
CY
6473 * fns.c (Fsubstring): Doc fix.
6474
1c0db158
KH
64752009-01-19 Kenichi Handa <handa@m17n.org>
6476
51d861de 6477 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6478 (ftfont_list): Likewise.
6479
acf20901
JB
64802009-01-18 Juanma Barranquero <lekktu@gmail.com>
6481
fff4e459
JB
6482 * dbusbind.c (Fdbus_register_signal):
6483 * process.c (conv_sockaddr_to_lisp):
6484 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6485
acf20901
JB
6486 * callproc.c (Fgetenv_internal): Doc fix.
6487
e7abcdfb
CY
64882009-01-16 Chong Yidong <cyd@stupidchicken.com>
6489
6490 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6491 it is not even used.
6492
b60861e6
GM
64932009-01-16 Glenn Morris <rgm@gnu.org>
6494
6495 * font.c (Ffont_variation_glyphs): Silence compiler.
6496
8db52afe
JB
64972009-01-15 Juanma Barranquero <lekktu@gmail.com>
6498
6499 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6500 Reported by David Robinow <drobinow@gmail.com>.
6501
4cddb209
KH
65022009-01-15 Kenichi Handa <handa@m17n.org>
6503
51d861de 6504 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6505
f247f67b
JR
65062009-01-14 Jason Rumney <jasonr@gnu.org>
6507
6508 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6509 never a fontset. (Bug#1562)
f247f67b 6510
f56a4450
KH
65112009-01-14 Kenichi Handa <handa@m17n.org>
6512
6513 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6514 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6515
4e99855e
CY
65162009-01-13 Chong Yidong <cyd@stupidchicken.com>
6517
6518 * font.c (font_clear_prop): If clearing the family, clear the font
6519 width index too.
6520
fff4e459 6521 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6522
24f01470
JB
65232009-01-12 Juanma Barranquero <lekktu@gmail.com>
6524
6525 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6526 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6527 functions, use sizeof.
6528
a41240a3
MR
65292009-01-12 Martin Rudalics <rudalics@gmx.at>
6530
6531 * keyboard.c (read_char): Fix case where last_nonmenu_event
6532 returned a bad value with submenus. (Bug#447)
6533
944636b8
CY
65342009-01-12 Chong Yidong <cyd@stupidchicken.com>
6535
6536 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6537 family, clear the font width index too.
6538
0dad7c6f
JR
65392009-01-11 Jason Rumney <jasonr@gnu.org>
6540
6541 * keyboard.c (cmd_error_internal): Exit when errors occur before
6542 frame creation and not in daemon mode. (Bug#1836)
6543
7c2363af
CY
65442009-01-10 Chong Yidong <cyd@stupidchicken.com>
6545
6546 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6547 of a display vector, backtrack.
6548 (try_window_reusing_current_matrix): Check glyph type before
6549 referencing charpos member.
6550
97b1b294
EZ
65512009-01-10 Eli Zaretskii <eliz@gnu.org>
6552
6553 Fix Bug #876:
6554
6555 * coding.c (inhibit_null_byte_detection): New variable.
6556 (detect_coding, detect_coding_system): Don't pay attention to null
6557 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6558 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6559 <inhibit-iso-escape-detection>: Doc fix.
6560
4624b6e3
JR
65612009-01-09 Jason Rumney <jasonr@gnu.org>
6562
6563 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6564 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6565 Only report Unicode Plane 2 fonts as unicode-sip.
6566
323b840c
CY
65672009-01-09 Chong Yidong <cyd@stupidchicken.com>
6568
51d861de
SM
6569 * xfaces.c (Fx_font_family_list): Delete function.
6570 Move compatibility version to faces.el.
323b840c 6571
51d861de 6572 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6573
eba7400d
MR
65742009-01-09 Martin Rudalics <rudalics@gmx.at>
6575
6576 * frame.c (x_set_frame_parameters): Remember requested value for
6577 fullscreen before it's reset by the parameter handler.
6578
4b09796d
GM
65792009-01-09 Glenn Morris <rgm@gnu.org>
6580
6581 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6582 (last_command_event): ... and update all users.
4b09796d
GM
6583 (last_input_char): For clarity, rename to...
6584 (last_input_event): ... and update all users.
6585 (last-command-char, last-input-char): Move to subr.el as aliases.
6586 * cmds.c, commands.h: Update for last_command_char rename.
6587
14ccea62
CY
65882009-01-08 Chong Yidong <cyd@stupidchicken.com>
6589
51d861de 6590 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6591
5f004711
JR
65922009-01-08 Jason Rumney <jasonr@gnu.org>
6593
6594 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6595 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6596 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6597 Don't declare.
fff4e459 6598 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6599 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6600
b71f6f73
KH
66012009-01-07 Kenichi Handa <handa@m17n.org>
6602
50b06221 6603 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6604 remember the coding system used for decoding in
50b06221
KH
6605 coding_system (Bug#1039).
6606
b71f6f73 6607 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6608 breaking the loop. (Bug#870)
b71f6f73
KH
6609 (decode_coding_utf_16, decode_coding_emacs_mule)
6610 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6611 (decode_coding_charset): Likewise.
6612
56f668f7
MR
66132009-01-05 Martin Rudalics <rudalics@gmx.at>
6614
6615 * frame.c (x_set_frame_parameters): Make sure height (width) get
6616 applied when fullwidth (fullheight) is set. (Bug#1522)
6617
5da9424d
JB
66182009-01-04 Juanma Barranquero <lekktu@gmail.com>
6619
6620 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6621 (utc_base): Declare as ULONGLONG, not long double.
6622 (convert_time_raw): Delete.
6623 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6624 (initialize_utc_base): New function.
6625 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6626 (convert_from_time_t): Use initialize_utc_base; compute result with
6627 64-bit arithmetic.
6628 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6629
c4605e09
EZ
66302009-01-03 Eli Zaretskii <eliz@gnu.org>
6631
9acef61c 6632 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6633 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6634 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6635 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6636 [!subprocesses]: Define.
6637 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6638 (Flist_system_processes, Fsystem_process_attributes)
6639 [!subprocesses]: Call list_system_processes and
6640 system_process_attributes instead of returning Qnil.
6641
9acef61c
JB
6642 * dosfns.c (system_process_attributes, list_system_processes):
6643 New functions.
c4605e09
EZ
6644
6645 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6646
6647 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6648 Don't use the default (no-op) implementation.
6649
8b7d0a16
JR
66502009-01-03 Jason Rumney <jasonr@gnu.org>
6651
a6d46bc1
JR
6652 * keyboard.c (parse_modifiers_uncached): Wheel events are
6653 clicks (bug#687).
6654
8b7d0a16
JR
6655 * w32term.c (x_query_colors, x_query_color): New functions.
6656
6657 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6658 (svg_load_image): Cast returned pointers from dynamically loaded
6659 functions. Eliminate W32 specific code.
6660
bfe11752
DN
66612009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6662
89e2438a
DN
6663 * nsfns.m (x_set_foreground_color, x_set_background_color)
6664 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6665 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6666 x_ prefix instead of ns_. Update references.
6667 (syms_of_nsfns): Add a FIXME comment.
6668
6669 * nsterm.m (x_set_cursor_type): New prototype.
6670 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6671
bfe11752
DN
6672 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6673 for Solaris instead of incorrectly providing Qutime and Qcutime.
6674
031da700
EZ
66752009-01-02 Eli Zaretskii <eliz@gnu.org>
6676
6677 * w32.c (process_times): Compute sum of utime and stime.
6678 (system_process_attributes): Add Qtime to the alist.
6679
6680 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6681 and add them to the alist.
6682
6683 * process.c (top level) <Qtime, Qctime>: New variables.
6684 (syms_of_process): staticpro them.
6685 (Fsystem_process_attributes): Add their documentation to the doc
6686 string.
6687
6688 * process.h: Declare Qtime and Qctime.
6689
df23bf08
JR
66902009-01-02 Jason Rumney <jasonr@gnu.org>
6691
9acef61c 6692 * image.c (Qgobject): New symbol.
df23bf08
JR
6693 (syms_of_image): Initialize it.
6694 (init_svg_functions): Load some functions from gobject library.
6695
5bbdf7aa
DN
66962009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6697
6698 * frame.c (make_terminal_frame): Remove redundant code and useless
6699 block.
6700
63136da6
AS
67012009-01-01 Andreas Schwab <schwab@suse.de>
6702
6703 * process.c (conv_sockaddr_to_lisp): Add workaround for
6704 getsockname bug on BSD.
6705
9ef69046
CY
67062009-01-01 Chong Yidong <cyd@stupidchicken.com>
6707
d6fafbe0
CY
6708 * xfns.c (x_create_tip_frame): Set border width of the X window.
6709
51d861de 6710 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6711
f9c34147
JR
67122009-01-01 Jason Rumney <jasonr@gnu.org>
6713
9acef61c 6714 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6715 Don't block input, as per earlier xterm.c changes.
6716
f5497e45
AR
67172008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6718
6719 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6720 (ns_appkit_version_int): New function.
6721 (x-server-version): Use ns_appkit_version_int and follow 21+
6722 convention of returning 3 integers.
6723
c19cab20
KH
67242008-12-30 Kenichi Handa <handa@m17n.org>
6725
6726 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6727 (CHAR_SURROGATE_PAIR_P): New macro.
6728
6729 * font.h (struct font_driver): New member get_variation_glyphs.
6730
9acef61c 6731 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6732 (Ffont_variation_glyphs): New function.
6733 (syms_of_font): Defsubr it.
6734
6735 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6736 ftfont_variation_glyphs.
6737 (setup_otf_gstring): New function.
6738 (ftfont_drive_otf): Use it.
6739 (ftfont_shape_by_flt): Handle variation selector.
6740 (ftfont_variation_glyphs): New function.
6741
28cd591f
MR
67422008-12-30 Martin Rudalics <rudalics@gmx.at>
6743
6744 * frame.c (Vemacs_iconified): Remove.
6745
7f714baf
JR
67462008-12-30 Jason Rumney <jasonr@gnu.org>
6747
6748 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6749 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6750
9d2d22ab
CY
67512008-12-30 Chong Yidong <cyd@stupidchicken.com>
6752
6753 * indent.c (Fvertical_motion): Don't advance iterator if we have
6754 reseated to the desired position.
6755
6756 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6757 checking for pos match.
6758
545312c2
KH
67592008-12-30 Kenichi Handa <handa@m17n.org>
6760
1ede3eb6
KH
6761 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6762 just get the low 8-bit of the code.
6763
545312c2
KH
6764 * font.c (font_intern_prop): Validate str as multibyte.
6765
bd7bbf29
DN
67662008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6767
31e0750e
DN
6768 * dispextern.h (struct face): Move lface and hash from the middle
6769 of bitfields.
6770
bd7bbf29
DN
6771 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6772
b5672e7c
DN
67732008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6774
6775 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6776 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6777 instead of intervals.h.
6778
d704470f
AS
67792008-12-26 Andreas Schwab <schwab@suse.de>
6780
6781 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6782 cons.
6783
54b33868
MR
67842008-12-26 Martin Rudalics <rudalics@gmx.at>
6785
6786 * textprop.c (Qminibuffer_prompt): New variable.
6787 (syms_of_textprop): Initialize it.
6788 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6789 in minibuffer-prompt face. (Bug#1662)
6790
40b615d6
JR
67912008-12-25 Jason Rumney <jasonr@gnu.org>
6792
6793 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6794
baae5c2d
JR
67952008-12-24 Jason Rumney <jasonr@gnu.org>
6796
6797 * ralloc.c (r_alloc_reset_variable): New function.
6798
6799 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6800 record of what points where. (Bug#716)
baae5c2d 6801
a9051c88
DN
68022008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6803
6804 * minibuf.c (read_minibuf): Follow the non-interactive case when
6805 running as a daemon, before detaching.
6806
8b146312
AS
68072008-12-22 Andreas Schwab <schwab@suse.de>
6808
6809 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6810 * gtkutil.c (free_widget_value): Use xfree instead of free.
6811
56f2de10
MR
68122008-12-22 Martin Rudalics <rudalics@gmx.at>
6813
6814 * frame.c (delete_frame): New function derived from
6815 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6816 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6817 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6818 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6819 * frame.h: Extern delete_frame.
6820 * window.c (window_loop):
6821 * terminal.c (delete_terminal):
6822 * xterm.c (x_connection_closed):
6823 * xfns.c (Fx_hide_tip):
9acef61c 6824 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6825
1fc200d6
JR
68262008-12-21 Jason Rumney <jasonr@gnu.org>
6827
6828 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6829 when character maps to .notdef character.
6830
5e252df2
SM
68312008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6832
6833 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6834
99b72cc4
JR
68352008-12-20 Jason Rumney <jasonr@gnu.org>
6836
6837 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6838 a graphical frame on Windows. (Bug#1325)
99b72cc4 6839
acc49a52
JD
68402008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6841
6842 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6843
6ea15123
CY
68442008-12-20 Chong Yidong <cyd@stupidchicken.com>
6845
6846 * minibuf.c (Fread_buffer): Doc fix.
6847
b2dab6c8
JR
68482008-12-20 Jason Rumney <jasonr@gnu.org>
6849
54ea0c87 6850 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6851 server name in UNC paths. (Bug#719)
54ea0c87 6852
b2dab6c8 6853 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6854 charbuf. (Bug#1035)
b2dab6c8 6855
6d1921be
DN
68562008-12-19 Daniel Engeler <engeler@gmail.com>
6857
6858 * sysdep.c (serial_configure): Fix typo.
6859
53934c98
DN
68602008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6861
6862 * sysdep.c: Include alloca.h.
f4f634e8
DN
6863 (system_process_attributes): Add implementation for Solaris.
6864
6865 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6866
06e111a6
DN
68672008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6868
6869 Reorganize implementation of Flist_system_processes and
6870 Fsystem_process_attributes. No functional changes.
6871 * process.c: Don't #include pwd.h, grp.h and limits.h.
6872 (Flist_system_processes): Just call list_system_processes.
6873 (Fsystem_process_attributes): Just call system_process_attributes.
6874 (procfs_list_system_processes, time_from_jiffies)
6875 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6876 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6877
6878 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6879 (list_system_processes): Rename from
6880 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6881 Provide a do nothing implementation.
6882 (system_process_attributes): Rename from
6883 procfs_list_system_processes.
6884 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6885 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6886
6887 * w32.c (list_system_processes): Rename from
6888 w32_list_system_processes.
6889 (system_process_attributes): Rename from
6890 w32_system_process_attributes.
6891
6892 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6893
6894 * process.h (w32_list_system_processes)
6895 (w32_system_process_attributes): Remove.
362654a6
JB
6896 (list_system_processes, system_process_attributes):
6897 New prototypes.
06e111a6 6898
6a705b23
KH
68992008-12-19 Kenichi Handa <handa@m17n.org>
6900
6901 * xfont.c (xfont_decode_coding_xlfd): New function.
6902 (xfont_encode_coding_xlfd): New function.
6903 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6904 (xfont_list): Decode and encode XLFD by iso-8859-1.
6905 (xfont_match): Likewise.
6906 (xfont_list_family): Likewise.
6907 (xfont_open): Likewise.
6908
d66c0241 6909 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6910 names are utf-8.
6911
d66c0241 6912 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6913 names are utf-8.
6914
5a130941
JD
69152008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6916
6917 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6918 changed.
bfd20325
JD
6919 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6920 clicked on a detached tool bar button.
5a130941 6921
fd95644b
DN
69222008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6923
6924 * emacs.c (main): Print and error and exit when no data is read
6925 from the pipe.
6926
e6eee6ae
JR
69272008-12-17 Jason Rumney <jasonr@gnu.org>
6928
6929 * w32font.c (w32font_has_char): Always return -1.
6930
a35dd56b
KH
69312008-12-16 Kenichi Handa <handa@m17n.org>
6932
6933 * font.c (font_open_entity): Fix previous change.
6934
0e3635c2
DN
69352008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6936
6937 * process.c: Include <limits.h>.
6938
d4835507 69392008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6940
6941 * font.c (font_update_drivers): Fix mistake in reconstructing the
6942 driver list.
6943
69442008-12-16 Chong Yidong <cyd@stupidchicken.com>
6945
6946 * font.c (font_clear_cache): Fix format of font cache data.
6947
e2cbc401
CY
69482008-12-15 Chong Yidong <cyd@stupidchicken.com>
6949
6950 * xftfont.c (xftfont_open): Free Xft font pattern if
6951 XftFontOpenPattern fails.
6952
6953 * xterm.c (x_free_frame_resources): Remove extraneous call to
6954 free_frame_faces.
6955
b131d535
CY
69562008-12-13 Chong Yidong <cyd@stupidchicken.com>
6957
6958 * xterm.c (x_delete_display): Move xim_close_dpy call to
6959 x_delete_terminal.
6960 (x_delete_terminal): Call xim_close_dpy.
6961
e6df5336
JR
69622008-12-13 Jason Rumney <jasonr@gnu.org>
6963
6964 * w32font.c (intern_font_name): New function.
6965 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6966 (w32font_open_internal, Fx_select_font): Decode font name.
6967 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6968
6969 * w32font.h (intern_font_name): Declare new function.
6970
6971 * w32uniscribe.c (add_opentype_font_name_to_list):
6972 Use intern_font_name.
6973
20d68145
CY
69742008-12-13 Chong Yidong <cyd@stupidchicken.com>
6975
9f2554de
CY
6976 * frame.c (Fdelete_frame): Call free_font_driver_list.
6977
3d9bec9a
CY
6978 * font.c (free_font_driver_list): Implement missing function.
6979
20d68145
CY
6980 * w32term.c (w32_term_init): Don't initialize the image cache
6981 here; it will be done in init_frame_faces.
6982
6983 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6984 (struct x_display_info): Remove unused member null_pixel. New
6985 member xim_callback_data.
6986
6987 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6988 (xim_initialize): Save pointer to callback function data.
6989 (xim_close_dpy): Free callback function data. Call XCloseIM,
6990 reverting 2008-11-04 change by David Smith.
6991 (x_term_init): Don't initialize the image cache here; it will be
6992 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6993 (x_delete_display): Free x_dnd_atoms member.
6994
96f9306b
KH
69952008-12-13 Kenichi Handa <handa@m17n.org>
6996
6dec9044
JB
6997 * font.c (font_rescale_ratio): Moved from xfaces.c.
6998 Argument type changed. Handle a font-spec too.
96f9306b 6999 (font_score): Check Vface_font_rescale_alist.
6dec9044 7000 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7001
7002 * xfaces.c (font_rescale_ratio): Moved to font.c.
7003
8d5b4964
CY
70042008-12-13 Chong Yidong <cyd@stupidchicken.com>
7005
7006 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7007
e6df5336
JR
70082008-12-12 Jason Rumney <jasonr@gnu.org>
7009
7010 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7011 Vwindow_system_version to the real w32 major version.
7012
97c6058a
DN
70132008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7014
7015 * term.c (init_tty): Move setting the terminal name before the
7016 potential user: maybe_fatal.
7017
ec4e88d7
CY
70182008-12-11 Chong Yidong <cyd@stupidchicken.com>
7019
d4835507
JB
7020 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7021 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7022
b4233ec9
JR
70232008-12-11 Jason Rumney <jasonr@gnu.org>
7024
8ec71e23 7025 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7026 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7027
b4233ec9 7028 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7029 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7030
011a0143
JB
70312008-12-11 Juanma Barranquero <lekktu@gmail.com>
7032
7033 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7034
3c309f34
JB
70352008-12-11 Juanma Barranquero <lekktu@gmail.com>
7036
7037 * process.c (Fsystem_process_attributes, syms_of_process):
7038 Fix typo in name of Ssystem_process_attributes.
7039 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7040
fedc6ab5
JB
70412008-12-11 Juanma Barranquero <lekktu@gmail.com>
7042
7043 * syntax.c (Fmodify_syntax_entry): Doc fix.
7044
ba3de0e8
JB
70452008-12-10 Juanma Barranquero <lekktu@gmail.com>
7046
7047 * font.c (Ffont_spec): Move usage to end of docstring.
7048
174f1c74
JR
70492008-12-10 Jason Rumney <jasonr@gnu.org>
7050
7051 * w32font.c (Qcham): New symbol.
7052 (font_supported_scripts): Add cham, and comments for other new
7053 scripts in bitfield from OpenType spec.
9d32f818
JR
7054 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7055 contain characters beyond the bmp.
174f1c74 7056
7b649478
KH
70572008-12-10 Kenichi Handa <handa@m17n.org>
7058
7059 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7060 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7061 Qunicode_sip.
7062
2133e2d1
JB
70632008-12-10 Juanma Barranquero <lekktu@gmail.com>
7064
7065 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7066 (Fcoding_system_put): Use QCdefault_char.
7067 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7068
9af886ee
CY
70692008-12-09 Chong Yidong <cyd@stupidchicken.com>
7070
74d819eb
CY
7071 * xftfont.c (syms_of_xftfont): Fix typo.
7072
4ccfa1c0 7073 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7074
7c19d3ae
DN
70752008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7076
7077 * emacs.c (main): Close daemon_pipe on exec.
7078
567826bb
CY
70792008-12-08 Chong Yidong <cyd@stupidchicken.com>
7080
7081 * termchar.h (struct tty): New members termcap_term_buffer and
7082 termcap_strings_buffer.
7083
7084 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7085 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7086 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7087 All callers changed.
7088 (init_tty): Store termcap data and string buffers in new struct
7089 tty members termcap_term_buffer and termcap_strings_buffer.
7090 (delete_tty): Free them.
4ccfa1c0 7091 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7092
aa96c42b
SZ
70932008-12-07 Seiji Zenitani <zenitani@mac.com>
7094
7095 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7096 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7097
b7e1d896
CY
70982008-12-06 Chong Yidong <cyd@stupidchicken.com>
7099
7100 * coding.c (make_conversion_work_buffer): Disable buffer
7101 modification hooks in the work buffer.
7102
b5ec91a5
EZ
71032008-12-05 Eli Zaretskii <eliz@gnu.org>
7104
7105 * process.c (procfs_system_process_attributes): If `nread' has a
7106 negative value, assign zero to it.
7107
a5d2a52b
CY
71082008-12-05 Chong Yidong <cyd@stupidchicken.com>
7109
68c5540b 7110 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7111
7bf1bb21
KH
71122008-12-05 Kenichi Handa <handa@m17n.org>
7113
7114 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7115 second character is a combining character.
7116
2fdc7d00
EZ
71172008-12-05 Eli Zaretskii <eliz@gnu.org>
7118
7119 * process.c (procfs_system_process_attributes): Don't use cmd,
7120 cmdsize, and q without initializing them first.
7121
bf6bfba8
JR
71222008-12-04 Jason Rumney <jasonr@gnu.org>
7123
7124 * w32font.c (w32font_draw): Initialize orig_clip before getting
7125 it, and delete it when finished.
7126
a3b1a468
DN
71272008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7128
7129 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7130 case when running as a daemon before detaching.
7131
8b8be8eb
JB
71322008-12-03 Juanma Barranquero <lekktu@gmail.com>
7133
805f2638 7134 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7135
b1bde622
KH
71362008-12-03 Kenichi Handa <handa@m17n.org>
7137
e500c47d
KH
7138 * font.c (font_at): Set `multibyte' at first.
7139
ca516334
KH
7140 * coding.c (decode_coding_charset): Check type of an element of
7141 vector VALIDS.
7bf1bb21 7142 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7143
4ccfa1c0 7144 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7145 (font_for_char): Likewise.
7146
1e5ecd37
CY
71472008-12-03 Chong Yidong <cyd@stupidchicken.com>
7148
d5b01609 7149 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7150 (font_update_lface): Handle fonts with corrupted size specs,
7151 i.e. non-int and non-float.
d5b01609 7152
11e3a6e4 7153 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7154 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7155 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7156
ab06788b
CY
7157 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7158
1e5ecd37 7159 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7160 underline_minimum_offset for underline position.
1e5ecd37 7161
63c125ab
DN
71622008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7163
7164 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7165
7166 * character.c (c_string_width): Specify the type for LEN.
7167
3a8406e1
KH
71682008-12-03 Kenichi Handa <handa@m17n.org>
7169
4ccfa1c0 7170 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7171 (decode_coding_utf_8): Likewise.
4ccfa1c0 7172 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7173 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7174
651df7d9
CY
71752008-12-02 Chong Yidong <cyd@stupidchicken.com>
7176
7177 * keyboard.c (make_lispy_position): Only use PT if the selected
7178 window is current.
7179
1f625c6c
AS
71802008-12-02 Andreas Schwab <schwab@suse.de>
7181
f7741ce9
AS
7182 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7183
1f625c6c
AS
7184 * doprnt.c (doprnt1): Fix size of charbuf.
7185
92bc2678
CY
71862008-12-02 Chong Yidong <cyd@stupidchicken.com>
7187
7188 * keyboard.c (timer_check): Revert last change.
7189
93b9e8cc
JB
71902008-12-02 Juanma Barranquero <lekktu@gmail.com>
7191
7192 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7193
fd7a37d5
JB
71942008-12-01 Juanma Barranquero <lekktu@gmail.com>
7195
7196 * makefile.w32-in: Update dependencies.
7197 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7198
c115043b
AS
71992008-12-01 Andreas Schwab <schwab@suse.de>
7200
7201 * font.c (register_font_driver): Use xmalloc.
7202 (font_put_frame_data): Likewise.
7203
f5668d2a
CY
72042008-12-01 Chong Yidong <cyd@stupidchicken.com>
7205
860d96be
CY
7206 * xfaces.c (realize_x_face): Make abort condition clearer.
7207
f5668d2a
CY
7208 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7209
379c17e7
CY
72102008-11-30 Chong Yidong <cyd@stupidchicken.com>
7211
7212 * keyboard.c (timer_check): After a timer runs, ensure that the
7213 selected window's buffer is current.
7214
35f36d65
JB
72152008-11-30 Juanma Barranquero <lekktu@gmail.com>
7216
f952c61c
JB
7217 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7218 It was accidentally restored by the Unicode merge.
7219
35f36d65
JB
7220 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7221
b23077df
JB
72222008-11-29 Juanma Barranquero <lekktu@gmail.com>
7223
7224 * w32proc.c: Include "coding.h".
7225 (Fw32_short_file_name): Encode filename passed to Windows API.
7226 (Fw32_long_file_name): Encode filename passed to Windows API and
7227 decode back the result. (Bug#1433)
7228
b8ebe9dd
KH
72292008-11-29 Kenichi Handa <handa@m17n.org>
7230
8cc53f96
KH
7231 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7232 not before accessing it.
7233
b8ebe9dd
KH
7234 * charset.c (Fdefine_charset_internal): After calculating
7235 min_char, max_char, and fastmap, copy the charset structure again.
7236 (encode_char): Fix the previous change.
7237
59bc82c0
SZ
72382008-11-28 Seiji Zenitani <zenitani@mac.com>
7239
7240 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7241
7242 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7243
7244 * nsterm.m (x_set_frame_alpha): New function.
7245
32247e3d
EZ
72462008-11-27 Eli Zaretskii <eliz@gnu.org>
7247
7248 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7249
b003e5ff
JB
72502008-11-27 Juanma Barranquero <lekktu@gmail.com>
7251
7252 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7253 pointer to check_face_name.
7254
708550f5
KH
72552008-11-27 Kenichi Handa <handa@m17n.org>
7256
7257 * category.h (SET_CATEGORY_SET): Call set_category_set.
7258 (set_category_set): Extern it.
7259
7260 * category.c (hash_get_category_set): New function.
7261 (Fmodify_category_entry): Adjusted for the change of
7262 char_table_ref_and_range. Call hash_get_category_set to get a
7263 category set to store in the table.
7264
7265 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7266 Funify_charset.
7267
2ae37cf0 7268 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7269 (DECODE_CHAR): Check if the decoder vector is ready.
7270 (ENCODE_CHAR): Check if the encoder char-table is ready.
7271 (maybe_unify_char): Extern it.
7272
7273 * charset.c (Vchar_unified_charset_table): Delete it.
7274 (inhibit_load_charset_map): New variable.
7275 (temp_charset_work): New variable.
7276 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7277 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7278 New macros.
7279 (load_charset_map): Meaning of control_flag changed. If
7280 inhibit_load_charset_map is nonzero, setup a table in
7281 temp_charset_work.
7282 (load_charset): New argument control_flag.
7283 (map_charset_for_dump): New function.
7284 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7285 map_charset_for_dump.
7286 (Fdefine_charset_internal): If the charset method is MAP, load
7287 mapping tables by calling load_charset.
7288 (Funify_charset): Don't load a mapping table but directly set
7289 Vchar_unify_table.
7290 (maybe_unify_char): New function.
7291 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7292 Handle the case of inhibit_load_charset_map being nonzero.
7293 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7294 Handle the case of inhibit_load_charset_map being nonzero.
7295 (Fclear_charset_maps): Just free temp_charset_work.
7296 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7297 variable.
7298
7299 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7300 change of char_table_ref_and_range.
7301 (char_table_ref_and_range): Change the meaning of argument FROM
7302 and TO. Now the caller must provide initial values for *FROM
7303 and *TO.
7304
7305 * fontset.c (fontset_add): Adjusted for the change of
7306 char_table_ref_and_range.
7307 (fontset_get_font_group): Likewise.
7308 (Ffontset_info): Likewise.
7309
7310 * keymap.c (describe_vector): Adjusted for the change of
7311 char_table_ref_and_range. For char-table, put boundary between
7312 non-ASCII and 8-bit characters.
7313
7314 * print.c (print_object): For bool-vector, delete unnecessary
7315 check of ASCII_BYTE_P.
7316
9196133b
JR
73172008-11-26 Jason Rumney <jasonr@gnu.org>
7318
7319 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7320 leading in font height. (Bug#879)
9196133b 7321
9f688acf
GM
73222008-11-26 Glenn Morris <rgm@gnu.org>
7323
7324 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7325 redefinition with ifdef. (Bug#1383)
7326
90d19aff
AR
73272008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7328
7329 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7330
4ccfa1c0 73312008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7332
7333 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7334 New EmacsView methods.
7335 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7336 Fixes bug #1048,1357,1414.
7337
73382008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7339
7340 Fix bug #1362.
7341 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7342 is not an indexed color.
7343 * nsterm.m (free_indexed_color): Add argument checking.
7344 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7345
e7d5ecb3
CY
73462008-11-24 Chong Yidong <cyd@stupidchicken.com>
7347
7348 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7349 Document confirm-after-completion value for
7350 minibuffer-completion-confirm.
7351
c285743c
JR
73522008-11-24 Jason Rumney <jasonr@gnu.org>
7353
7354 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7355 warning.
7356
b0857706
JR
73572008-11-23 Jason Rumney <jasonr@gnu.org>
7358
7359 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7360 restored before returning.
7361
7362 * w32font.c (check_face_name): New function.
7363 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7364 fonts. (Bug#642)
b0857706 7365
ee50ff07
MR
73662008-11-22 Martin Rudalics <rudalics@gmx.at>
7367
7368 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7369 confirm-nonexistent-file-or-buffer in doc-string.
7370
b8ff72fa
SM
73712008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7372
7373 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7374 Fix copy/paste typo. Add checks.
7375
cee53ed4
KH
73762008-11-21 Kenichi Handa <handa@m17n.org>
7377
7378 * coding.c (detect_coding_iso_2022): Reject invalid composition
7379 sequence.
7380 (DECODE_COMPOSITION_START): If the current source is the last
7381 block, and the current composition doesn't end, regard this
7382 sequence as invalid.
7383 (decode_coding_iso_2022): Handle invalid composition sequence.
7384
f6ef1e65
MR
73852008-11-20 Martin Rudalics <rudalics@gmx.at>
7386
7387 * window.c (coordinates_in_window): Don't return
7388 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7389 line when the window is not the rightmost one. (Bug#1372)
7390
e08b1705
MR
73912008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7392
7393 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7394
ad98e89f
EZ
73952008-11-15 Eli Zaretskii <eliz@gnu.org>
7396
7397 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7398 and bright_bg if noninteractive is non-zero.
7399
fb098a4b
CY
74002008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7401
7402 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7403 x_draw_glyph_string_background.
7404
7405 * w32term.c (x_draw_glyph_string): Likewise.
7406
ce952b6e
CY
74072008-11-15 Chong Yidong <cyd@stupidchicken.com>
7408
7409 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7410 the next glyph string once past the overhang width.
7411
7412 * nsterm.m (ns_draw_glyph_string): Likewise.
7413
7414 * w32term.c (x_draw_glyph_string): Likewise.
7415
26ea7079
CY
74162008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7417
7418 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7419 double file close.
7420
1c33c906
MR
74212008-11-14 Martin Rudalics <rudalics@gmx.at>
7422
7423 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7424 dedicated status of window before attempting to display another
7425 buffer in it.
7426
8fc29035
JB
74272008-11-14 Juanma Barranquero <lekktu@gmail.com>
7428
7429 * msdos.c (Fmsdos_long_file_names):
7430 (syms_of_msdos) <dos-unsupported-char-glyph>:
7431 * dosfns.c (Fint86): Fix typos in docstrings.
7432
55fb4286
EZ
74332008-11-14 Eli Zaretskii <eliz@gnu.org>
7434
7435 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7436
3fda0315
KY
74372008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7438
7439 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7440
7e849c17
CY
74412008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7442
7443 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7444
7445 * frame.h: Negative alpha means "don't touch".
7446
7447 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7448
7449 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7450
b9fd67bd
DN
74512008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7452
7453 * hftctl.c:
7454 * chpdef.h:
7455 * acldef.h: Remove files used only for systems no longer supported.
7456
7457 * Makefile.in: Fix .o alphabetical ordering.
7458 (hftctl.o): Remove dependency, file removed.
7459 (keymap.o, print.o): Depend on charset.h.
7460
d5998e03
KH
74612008-11-10 Kenichi Handa <handa@m17n.org>
7462
2ae37cf0 7463 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7464
be70e183
CY
74652008-11-08 Chong Yidong <cyd@stupidchicken.com>
7466
7467 * dired.c (file_name_completion): If completion_ignore_case is
7468 enabled, ignore case when checking completion-regexp-list.
7469
7cf94eac
EZ
74702008-11-08 Eli Zaretskii <eliz@gnu.org>
7471
7472 * vm-limit.c (get_lim_data): Fix last change.
7473
ee107a89
KH
74742008-11-08 Kenichi Handa <handa@m17n.org>
7475
7476 * character.c (Fget_byte): New function.
7477 (syms_of_character): Defsubr Fget_byte.
7478
5fd15622
CY
74792008-11-07 Chong Yidong <cyd@stupidchicken.com>
7480
7481 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7482 cursor position is valid after scrolling.
7483
13d62fad
JB
74842008-11-06 Juanma Barranquero <lekktu@gmail.com>
7485
7486 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7487
a1dd2936
GM
74882008-11-06 Glenn Morris <rgm@gnu.org>
7489
7490 * xterm.c (handle_one_xevent): Don't let popup menus cause
7491 mouse-autoselect-window related window switching. (Bug#1261)
7492
860cd236
CY
74932008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7494
7495 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7496
653a3150
AS
74972008-11-04 Andreas Schwab <schwab@suse.de>
7498
7499 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7500
870f5cac
CY
75012008-11-03 Chong Yidong <cyd@stupidchicken.com>
7502
7503 * xfns.c (Fx_wm_set_size_hint): New function.
7504
1e02f3cb
MR
75052008-11-03 Martin Rudalics <rudalics@gmx.at>
7506
7507 * textprop.c (Fprevious_single_char_property_change): Return 0
7508 when there's no change in a string. (Bug#1301)
7509
e630dfc6
MR
75102008-11-02 Martin Rudalics <rudalics@gmx.at>
7511
7512 * frame.c (do_switch_frame): New argument NORECORD passed to
7513 Fselect_window.
7514 (Fselect_frame): New argument NORECORD passed to
7515 do_switch_frame.
7516 (Fset_frame_selected_window): New argument NORECORD passed to
7517 Fselect_frame.
7518 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7519 in call of do_switch_frame.
7520 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7521 Handle NORECORD argument in call of Fselect_frame.
7522 * lisp.h (do_switch_frame, Fselect_frame)
7523 (Fset_frame_selected_window): Adjust declarations.
7524 * window.c (select_frame_norecord): New function.
7525 (run_window_configuration_change_hook): Use it and call
7526 Fselect_frame with NORECORD set.
7527 (Fselect_window): Pass NORECORD to Fselect_frame.
7528 (Fset_window_configuration): Handle NORECORD argument in call of
7529 do_switch_frame.
7530 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7531 Fset_frame_selected_window.
7532 * keyboard.c (command_loop_1): Handle NORECORD in call of
7533 Fselect_frame (currently ifdefd).
7534
9020b223
GM
75352008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7536
7537 * emacs.c (USAGE2): Untabify.
7538
793ffee8
SM
75392008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7540
7541 * composite.c (fill_gstring_header): Fix copy/paste typo.
7542
ab6d1131
MR
75432008-10-31 Martin Rudalics <rudalics@gmx.at>
7544
7545 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7546 (Fother_window): Rename argument and rewrite doc-string.
7547 (select_window_norecord): Fix return value. (Bug#1276)
7548
601a9cf1
JB
75492008-10-30 Juanma Barranquero <lekktu@gmail.com>
7550
7551 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7552 new frames overriding foreground for tooltips. Based on similar patch
7553 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7554
813b0652
CY
75552008-10-29 Chong Yidong <cyd@stupidchicken.com>
7556
7557 * emacs.c (Fdaemon_initialized): Initialize nfd.
7558
4414f58f
MR
75592008-10-29 Martin Rudalics <rudalics@gmx.at>
7560
7561 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7562 (Fwindow_text_height): Clarify doc-strings.
7563 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7564 doc-string of window-scroll-functions.
7565
ecdcaa09
RS
75662008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7567
7568 * category.c (syms_of_category): Fix typo in docstring.
7569
23fe745a
JB
75702008-10-28 Juanma Barranquero <lekktu@gmail.com>
7571
7572 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7573 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7574 Fix typos in docstrings.
7575
ff808935
DN
75762008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7577
7578 * emacs.c (daemon_pipe): Make non-static.
7579 (IS_DAEMON): Move definition ...
7580 * lisp.h (IS_DAEMON): ... here.
7581 (daemon_pipe): Declare.
7582 (is_daemon): Remove.
7583 * dispnew.c (init_display): Use IS_DAEMON.
7584
fc012771
SM
75852008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7586
7587 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7588 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7589
7590 * emacs.c (is_daemon): Remove.
7591 (main): Don't set is_daemon.
7592 (IS_DAEMON): New macro.
7593 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7594 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7595 parent exits.
7596 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7597
d8bdbe6f
CY
75982008-10-27 Chong Yidong <cyd@stupidchicken.com>
7599
d1a072bf
CY
7600 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7601 over-sized glyph, draw it with the default glyph width.
7602
e2e325aa
CY
7603 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7604 glyph, draw it with the default glyph width.
7605
7606 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7607 glyph, draw it with the default glyph width.
7608
d8bdbe6f
CY
7609 * xdisp.c (try_scrolling): When computing the distance from the
7610 scroll margin to PT, try moving some distance past the window
7611 bottom before giving up.
7612
7bfac547
MR
76132008-10-27 Martin Rudalics <rudalics@gmx.at>
7614
7615 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7616 (Fset_window_buffer): Explain in doc-string that a window can be
7617 "strongly" dedicated to its buffer.
7618
4ff029f6
DN
76192008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7620
7621 * emacs.c (daemon_name): New variable.
7622 (main): Deal with --daemon=SERVER_NAME.
7623 (Fdaemonp): Return a name if one was passed to --daemon.
7624
5790ef40
DN
76252008-10-26 Romain Francoise <romain@orebokech.com>
7626
f9bd0df9 7627 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7628 (main): Create a pipe before forking, make the parent exit only after
7629 the child has closed its end of the pipe. Move closing the
7630 descriptors ...
7631 (Fdaemon_initialized): ... here. New function.
7632
f5385255
SM
76332008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7634
4d632321
SM
7635 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7636 the previous unoptimized table.
7637
f5385255
SM
7638 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7639 the distinction between non-nil and non-t value of `dedicated'.
7640
6c56a0f3
CY
76412008-10-25 Chong Yidong <cyd@stupidchicken.com>
7642
7643 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7644 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7645
fec89261
MR
76462008-10-25 Martin Rudalics <rudalics@gmx.at>
7647
7648 * window.c (Fget_buffer_window, Fdelete_windows_on)
7649 (Freplace_buffer_in_windows): Make buffer argument optional and
7650 rename to buffer_or_name.
7651
34fcddd0
CY
76522008-10-24 Chong Yidong <cyd@stupidchicken.com>
7653
f5385255
SM
7654 * xdisp.c (handle_single_display_spec, handle_display_prop):
7655 Undo 2005-05-16 change.
34fcddd0
CY
7656 (handle_stop): Pop iterator if it's loaded with an empty string.
7657 (get_overlay_strings_1): Don't save iterator if it's loaded with
7658 an empty string (bug#1201).
7659
064766f2
KH
76602008-10-24 Kenichi Handa <handa@m17n.org>
7661
7662 * ftfont.c (ftfont_otf_features): Fix previous change.
7663 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7664 calling ftfont_otf_features.
7665
f9bd0df9 76662008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7667
7668 * font.c (font_match_p): Fix for the case that a vector of
7669 characters is in script-representative-chars.
7670
1dae9197
MA
76712008-10-24 Michael Albinus <michael.albinus@gmx.de>
7672
7673 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7674 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7675 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7676 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7677 macro. (Bug#1186)
1dae9197 7678
f9bd0df9 76792008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7680
7681 * s/sol2-10.h: New file.
7682
878a4584
JB
76832008-10-23 Juanma Barranquero <lekktu@gmail.com>
7684
7685 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7686 poor beast has survived 9+ years and the jump from xterm.c!).
7687
cd265ca6
MR
76882008-10-23 Martin Rudalics <rudalics@gmx.at>
7689
7690 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7691 Reword doc-string.
f5385255 7692 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7693
472a4dc9
JB
76942008-10-23 Juanma Barranquero <lekktu@gmail.com>
7695
7696 * character.c (syms_of_character) <script-representative-chars>:
7697 <unicode-category-table>: Doc fixes.
7698
159bd5a2
NF
76992008-10-23 Noah Friedman <friedman@splode.com>
7700
7701 * coding.c (make_conversion_work_buffer): Check that
7702 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7703 Fget_buffer_create.
7704
49f9c344
KH
77052008-10-23 Kenichi Handa <handa@m17n.org>
7706
7707 * font.c (font_add_log): Check the values of extra properties.
7708
12bb3111
MR
77092008-10-22 Martin Rudalics <rudalics@gmx.at>
7710
7711 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7712 Reword doc-string.
7713 (Fset_window_parameter): Use NILP.
7714 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7715 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7716
bbeb4e99
JB
77172008-10-22 Juanma Barranquero <lekktu@gmail.com>
7718
7719 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7720
77212008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7722
7723 * nsfns.m (ns_appkit_version): New function.
7724 (x-server-version): Use it.
7725 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7726 (x-server-vendor): Don't check_ns().
7727
7728 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7729
a9b555d3
JB
77302008-10-22 Juanma Barranquero <lekktu@gmail.com>
7731
7732 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7733 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7734
4626499f
KH
77352008-10-22 Kenichi Handa <handa@m17n.org>
7736
e3681952
KH
7737 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7738 scripts.
7739
4626499f
KH
7740 * category.c (word_boundary_p): Check scripts instead of charset.
7741 Handle nil value in word-separating-categories and
7742 word-combining-categories.
7743 (syms_of_category): Fix docstrings of word-separating-categories
7744 and word-combining-categories.
7745
1560f91a
EZ
77462008-10-21 Eli Zaretskii <eliz@gnu.org>
7747
7748 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7749 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7750
f4668441
MR
77512008-10-21 Martin Rudalics <rudalics@gmx.at>
7752
7753 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7754 Rename arg "buffer" to "buffer_or_name".
7755 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7756 it optional.
7757 (no_switch_window): Remove since the return value is not used.
a9b555d3 7758 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7759 Consider window as dedicated when Fwindow_dedicated_p returns a
7760 non-nil value.
7761 * lisp.h: Remove prototype for no_switch_window.
7762
fd75ddb2
JD
77632008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7764
7765 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7766 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7767
07295713
KH
77682008-10-21 Kenichi Handa <handa@m17n.org>
7769
7770 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7771 check Vlatin_extra_code_table.
7772
712adc82
EZ
77732008-10-20 Eli Zaretskii <eliz@gnu.org>
7774
7775 * fileio.c (Fset_file_modes): Doc fix.
7776
f549eb0b
MA
77772008-10-19 Michael Albinus <michael.albinus@gmx.de>
7778
7779 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7780 in arrays.
7781
aac0c6e3
MR
77822008-10-19 Martin Rudalics <rudalics@gmx.at>
7783
7784 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7785 Mention kill-buffer in doc-string.
7786 (Fset_window_buffer): Reinsert tem check removed in last commit.
7787 (Fenlarge_window, Fshrink_window): Have argument names and
7788 doc-string follow Elisp manual more closely.
7789
77902008-10-18 Eli Zaretskii <eliz@gnu.org>
7791
7792 * fileio.c (Fset_file_modes): Doc fix.
7793
77942008-10-18 Martin Rudalics <rudalics@gmx.at>
7795
7796 * window.c (Fwindow_width, Fset_window_start)
7797 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7798 (Fdelete_windows_on, Freplace_buffer_in_windows):
7799 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7800 (Fwindow_dedicated_p): Make window argument optional.
7801 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7802 (Fset_window_buffer): Respect any non-nil dedicated value for
7803 window. Rename "buffer" argument to "buffer_or_name".
7804
78052008-10-18 Ulrich Mueller <ulm@gentoo.org>
7806
7807 * m/sh3.h: New file, machine description for SuperH.
7808
78092008-10-17 Martin Rudalics <rudalics@gmx.at>
7810
7811 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7812
78132008-10-17 Kenichi Handa <handa@m17n.org>
7814
7815 * ftfont.c (ftfont_otf_features): Fix indexing
7816 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7817
78182008-10-16 Magnus Henoch <mange@freemail.hu>
7819
7820 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7821 (Fdbus_call_method_asynchronously): Ditto.
7822 This change makes C-h f display the argument list.
7823
78242008-10-16 Chong Yidong <cyd@stupidchicken.com>
7825
7826 * fileio.c (Fexpand_file_name): Doc fix.
7827
7828 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7829 of :foreground and :background equivalent to unspecified (20.x
7830 compatibility).
7831
78322008-10-15 Eli Zaretskii <eliz@gnu.org>
7833
7834 * buffer.c (syms_of_buffer): Doc fix.
7835
78362008-10-14 Kenichi Handa <handa@m17n.org>
7837
7838 * font.c (font_clear_prop): When clearing font width, clear the
7839 average width field too.
7840
78412008-10-12 Andreas Schwab <schwab@suse.de>
7842
7843 * ftfont.c (ftfont_shape_by_flt): Make static.
7844 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7845
7846 * font.c: Don't include <m17n-flt.h>.
7847
78482008-10-10 Eli Zaretskii <eliz@gnu.org>
7849
7850 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7851
78522008-10-09 Eli Zaretskii <eliz@gnu.org>
7853
7854 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7855 away code.
7856
78572008-10-09 Chong Yidong <cyd@stupidchicken.com>
7858
7859 * dispnew.c (update_text_area): Avoid looping due to large glyph
7860 overhangs (bug#1070).
7861
78622008-10-09 Kenichi Handa <handa@m17n.org>
7863
7864 * fontset.c (face_for_char): If face->fontset is negative, just
7865 return ascii_face.
7866
f5385255
SM
7867 * font.c (font_delete_unmatched): Fix previous change.
7868 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7869
78702008-10-09 Martin Rudalics <rudalics@gmx.at>
7871
7872 * frame.c (Fraise_frame): On text-only terminals select frame in
7873 order to make it visible. (Bug#1061)
7874
78752008-10-08 Chong Yidong <cyd@stupidchicken.com>
7876
7877 * fontset.c (fontset_find_font): Check frame validity.
7878
78792008-10-07 Chong Yidong <cyd@stupidchicken.com>
7880
a9b555d3 7881 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7882 (xg_display_close): Allow Emacs to close all displays (bug#985).
7883
78842008-10-06 Andreas Schwab <schwab@suse.de>
7885
f5385255 7886 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7887
78882008-10-06 Chong Yidong <cyd@stupidchicken.com>
7889
f5385255 7890 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7891
a9b555d3 7892 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7893
7894 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7895 during initialization.
7896
78972008-10-04 Eli Zaretskii <eliz@gnu.org>
7898
7899 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7900 whole thing on MSDOS frames as well as on a TTY.
7901
7902 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7903 well as for TTY.
7904 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7905 well as on a TTY.
7906
7907 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7908 as well as for TTY.
7909
7910 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7911
7912 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7913 MSDOS frames as well.
7914
79152008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7916
7917 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7918 correct arguments.
b71ac3dd 7919 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7920
79212008-10-03 Glenn Morris <rgm@gnu.org>
7922
7923 * emacs.c (USAGE1): Add --daemon.
7924
79252008-10-02 Eli Zaretskii <eliz@gnu.org>
7926
7927 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7928 100, so it's in percents as advertised.
7929
79302008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7931
7932 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7933 (ns_output.current_cursor, ns_output.desired_cursor)
7934 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7935 (FRAME_NEW_CURSOR_COLOR): Remove.
7936
7937 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7938 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7939 enumeration (HOLLOW_BOX_CURSOR, etc.).
7940
7941 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7942 (draw_window_cursor): Simplify code.
f5385255
SM
7943 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7944 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7945 updates manually.
a9b555d3
JB
7946 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7947 Use core Emacs cursor types.
aac0c6e3 7948
b8ff72fa 7949 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7950
79512008-10-02 Martin Rudalics <rudalics@gmx.at>
7952
7953 * process.c (Faccept_process_output): Fix doc-string.
7954
79552008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7956
7957 * gmalloc.c (__sbrk): Also define for uClibc.
7958
7959 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7960 for uClibc.
7961
79622008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7963
7964 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7965 styles.
7966 (nsfont_open): Reenable the cache.
7967
79682008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7969
7970 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7971 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7972
79732008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7974
7975 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7976 a suspended terminal.
7977
79782008-09-30 Michael Albinus <michael.albinus@gmx.de>
7979
7980 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7981
79822008-09-30 Eli Zaretskii <eliz@gnu.org>
7983
7984 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7985
79862008-09-30 Chong Yidong <cyd@stupidchicken.com>
7987
7988 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7989 in a continued line coincides with a line beginning.
7990
79912008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7992
7993 * nsfont.m (nsfont_trait_distance): Fix bug.
7994 (nsfont_list): Return a list rather than a vector (syncs with Handa
7995 changes of 2008-05-14).
7996 (nsfont_open): Improve logging.
7997
79982008-09-29 Andreas Schwab <schwab@suse.de>
7999
8000 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8001
80022008-09-28 Martin Rudalics <rudalics@gmx.at>
8003
8004 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8005 name as char-resolve-modifiers.
8006 Reported by: Markus Triska <markus.triska@gmx.at>
8007
80082008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8009
8010 * dispnew.c (init_display): Return earlier when running as a daemon.
8011
80122008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8013
8014 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8015
80162008-09-27 Eli Zaretskii <eliz@gnu.org>
8017
8018 * composite.c (Fcomposition_get_gstring)
8019 (Fcompose_region_internal, Fcompose_string_internal)
8020 (Ffind_composition_internal): Doc fix.
8021 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8022 (syms_of_composite) <auto-composition-function>: Doc fix.
8023 (syms_of_composite) <composition-function-table>: Doc fix.
8024
80252008-09-25 Chong Yidong <cyd@stupidchicken.com>
8026
8027 * search.c (wordify): New argument for lax word-ends.
8028 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8029
80302008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8031
8032 * lisp.h (is_daemon): Declare.
8033 * dispnew.c (init_display): Do not try to initialize the terminal
8034 when running as a daemon.
8035
80362008-09-22 Chong Yidong <cyd@stupidchicken.com>
8037
8038 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8039 x_display_pixel_height.
8040
80412008-09-22 Martin Rudalics <rudalics@gmx.at>
8042
8043 * undo.c (record_point): Don't call Fundo_boundary for first
8044 change. (Bug#731)
8045
80462008-09-22 Juanma Barranquero <lekktu@gmail.com>
8047
8048 * emacs.c (Fdaemonp): Doc fix.
8049
80502008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8051
8052 * emacs.c (main): Place #ifdef in the proper place.
8053
80542008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8055
8056 * emacs.c (standard_args): Add --daemon.
8057 (main): Disconnect from the terminal when --daemon is passed.
8058 (is_daemon): New variable.
8059 (Fdaemonp): New function.
8060 (syms_of_emacs): Defsubr it.
8061
80622008-09-20 Chong Yidong <cyd@stupidchicken.com>
8063
8064 * xdisp.c (get_next_display_element): Handle string display
8065 correctly when checking for the end of a box run.
8066
80672008-09-20 Glenn Morris <rgm@gnu.org>
8068
8069 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8070 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8071 (Frename_file): Avoid copying to trash if a rename involves
8072 a delete. (Bug#964).
8073
80742008-09-20 Eli Zaretskii <eliz@gnu.org>
8075
8076 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8077 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8078 frames as well as termcap frames.
8079 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8080 get_named_tty.
8081
80822008-09-19 Eli Zaretskii <eliz@gnu.org>
8083
8084 * process.c (procfs_system_process_attributes): Fix cmdline in
8085 case /proc/PID/cmdline is empty.
8086
8087 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8088 x_display_pixel_height.
8089
80902008-09-19 Juanma Barranquero <lekktu@gmail.com>
8091
8092 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8093
8094 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8095 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8096
80972008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8098
8099 * dispextern.h (struct it): Move line_wrap away from the middle of
8100 bitfields. Move voffset in struct iterator_stack_entry after the
8101 bitfields. Move tab_width near after another short.
8102
81032008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8104
8105 * frame.h (struct frame): Move alpha from the middle of bitfields.
8106
8107 * window.h (struct window): Move frozen_window_start_p after the
8108 rest of the bitfields to reduce padding.
8109
81102008-09-18 Chong Yidong <cyd@stupidchicken.com>
8111
8112 * xterm.h (x_display_info): Remove `height' and `width' members.
8113
8114 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8115
8116 * w32term.h (w32_display_info): Remove `height', `width',
8117 `height_in', and `width_in' members.
8118
b8ff72fa
SM
8119 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8120 New functions.
aac0c6e3
MR
8121 (x_calc_absolute_position): Use them.
8122 (x_term_init): Omit removed `height' and `width' members.
8123
b8ff72fa
SM
8124 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8125 New functions.
aac0c6e3
MR
8126 (w32_read_socket, x_calc_absolute_position): Use them.
8127 (w32_initialize_display_info, w32_term_init): Omit removed members
8128 of w32_display_info.
8129
b8ff72fa
SM
8130 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8131 New functions.
8132 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8133
b8ff72fa
SM
8134 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8135 New functions.
aac0c6e3
MR
8136 (x_calc_absolute_position): Use them.
8137 (x_term_init): Omit removed `height' and `width' members.
8138
8139 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8140 (compute_tip_xy):
8141 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8142 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8143 x_display_pixel_width.
8144
81452008-09-18 Kenichi Handa <handa@m17n.org>
8146
8147 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8148 (composition_compute_stop_pos): Fix handling of static composition.
8149 (Fcomposition_get_gstring): Check FROM and TO at first.
8150
81512008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8152
46e722a9 8153 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8154 mixup (YAILOM).
8155
81562008-09-17 Chong Yidong <cyd@stupidchicken.com>
8157
8158 * indent.c (Fvertical_motion): Use position reported by iterator
8159 instead of PT for determining screen motion (bug#943).
8160
81612008-09-17 Romain Francoise <romain@orebokech.com>
8162
8163 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8164
81652008-09-17 Kenichi Handa <handa@m17n.org>
8166
8167 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8168
8169 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8170 if necessary.
8171
81722008-09-16 Kenichi Handa <handa@m17n.org>
8173
8174 * coding.c (make_conversion_work_buffer): Avoid calling
8175 Fget_buffer_create if it is not necessary.
8176
81772008-09-15 Martin Rudalics <rudalics@gmx.at>
8178
8179 * window.c (Fselect_window): Don't update window_select_count and
8180 use_time when norecord is not nil.
8181
81822008-09-14 Kenichi Handa <handa@m17n.org>
8183
8184 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8185 specpdl_ptr.
8186
81872008-09-12 Kenichi Handa <handa@m17n.org>
8188
8189 * indent.c (scan_for_column): Don't handle automatic composition
8190 if the current buffer is not associated with a window.
8191
8192 * composite.c (composition_reseat_it): If the current buffer is
8193 not associated with a window, ignore the automatic composition.
8194 (find_automatic_composition): Likewise.
8195
81962008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8197
8198 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8199 (Fgpm_mouse_stop): Use it.
8200 * termhooks.h (close_gpm): Declare.
8201 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8202 connection if Gpm_GetEvent fails.
8203
8204 * window.c (set_window_buffer): Always preserve current-buffer.
8205
82062008-09-12 Glenn Morris <rgm@gnu.org>
8207
8208 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8209
82102008-09-11 Glenn Morris <rgm@gnu.org>
8211
8212 * charset.c (charset-map-path): Doc fix.
8213
82142008-09-10 Kenichi Handa <handa@m17n.org>
8215
8216 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8217
8218 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8219 compose a grapheme cluster with the preceding base glyph.
8220
8221 * composite.c (composition_compute_stop_pos): Fix previous change.
8222 Reset cmp_it->id to -1 at first.
8223
82242008-09-10 Glenn Morris <rgm@gnu.org>
8225
8226 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8227
82282008-09-09 Chong Yidong <cyd@stupidchicken.com>
8229
8230 * keyboard.c (read_key_sequence): Reapply translation maps when
8231 switching keyboards.
8232
82332008-09-09 Kenichi Handa <handa@m17n.org>
8234
8235 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8236 characters.
8237
8238 * composite.c (FORWARD_CHAR): Fix calculation
8239 of (POSITION).pos_byte.
8240 (composition_compute_stop_pos): Limit the search of composition to
8241 at most 500 characters ahead. If we reach the limit or find a
8242 newline, set cmp_it->ch to -2 and return 0.
8243 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8244
82452008-09-08 Kenichi Handa <handa@m17n.org>
8246
8247 * indent.c (Fvertical_motion): Be sure to set
8248 it_overshoot_expected if it.cmp_it.id is non-negative.
8249
82502008-09-07 Andreas Schwab <schwab@suse.de>
8251
8252 * callproc.c (Fcall_process): Don't hold references to string data
8253 across garbage collection. Move initialisation of new_argv down
8254 to avoid compiler bug.
8255
82562008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8257
8258 * process.c (Fsystem_process_attributes): Doc fix.
8259
82602008-09-07 Chong Yidong <cyd@stupidchicken.com>
8261
8262 * callproc.c (Fcall_process): Canonicalize current directory name.
8263
8264 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8265 iterator advances to the next line if the current line ends in a
8266 continued tab.
8267
82682008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8269
8270 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8271 member to point to cmp_from.
8272
8273 * xdisp.c: Doc fix for references to gidx data member.
8274
82752008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8276
8277 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8278
82792008-09-07 Kenichi Handa <handa@m17n.org>
8280
8281 * composite.c (FORWARD_CHAR): Check STOP after
8282 incrementing (POSITION).pos.
8283
82842008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8285
8286 * process.c (Fsystem_process_attributes): Doc fix.
8287
82882008-09-06 Chong Yidong <cyd@stupidchicken.com>
8289
8290 * keyboard.c (Ftop_level): Doc fix.
8291
82922008-09-06 Eli Zaretskii <eliz@gnu.org>
8293
8294 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8295 minibuffer, don't let lower part of menu invade the echo area.
8296
8297 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8298 "char *q" to access menu text and advance through it. Revert the
8299 change that displayed ">" instead of ASCII character 0x10.
8300
83012008-09-05 Eli Zaretskii <eliz@gnu.org>
8302
8303 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8304 toggle boxes and radio buttons on MS-DOS as well.
8305
83062008-09-05 Kenichi Handa <handa@m17n.org>
8307
8308 * composite.c (autocmp_chars): Check lookback count.
8309 (composition_compute_stop_pos): Set cmp_it->lookback.
8310 (composition_reseat_it): Check lookback count.
8311 (struct position_record): New struct.
8312 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8313 (find_automatic_composition): New function.
8314 (composition_adjust_point): Use find_automatic_composition.
8315
8316 * dispextern.h (struct composition_it): New member lookback.
8317
83182008-09-02 Chong Yidong <cyd@stupidchicken.com>
8319
8320 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8321 if moving by a single line.
8322
83232008-09-02 Andreas Schwab <schwab@suse.de>
8324
8325 * xterm.c (x_delete_display): Fix merge error.
8326
8327 * fileio.c (Fexpand_file_name): Remove unused variables.
8328
83292008-09-02 Eli Zaretskii <eliz@gnu.org>
8330
8331 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8332 storage on all platforms, not just on DOS_NT.
8333
83342008-09-02 Jason Rumney <jasonr@gnu.org>
8335
b8ff72fa
SM
8336 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8337 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8338
83392008-09-01 Chong Yidong <cyd@stupidchicken.com>
8340
8341 * xfaces.c (Finternal_set_alternative_font_family_alist)
8342 (Finternal_set_alternative_font_registry_alist): Properly copy
8343 entire alist structure.
8344
83452008-09-01 Kenichi Handa <handa@m17n.org>
8346
d66c0241 8347 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8348 representative chars of the script is a vector.
d66c0241
JB
8349 (ftfont_list): Handle the case where the representative chars of
8350 the script is a vector.
aac0c6e3
MR
8351
8352 * character.c (syms_of_character): Docstring of
8353 script-representative-chars fixed.
8354
83552008-08-31 Eli Zaretskii <eliz@gnu.org>
8356
8357 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8358 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8359 the menu. Allocate larger buffer for `text', to account for
8360 possible ^C characters.
8361
83622008-08-31 Martin Rudalics <rudalics@gmx.at>
8363
8364 * xdisp.c (prepare_menu_bars): Don't call
8365 Vwindow_size_change_functions with arg Qt.
8366
83672008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8368
8369 * font.h (font_range):
8370 * fileio.c (report_file_error):
46e722a9
SM
8371 * composite.c (composition_update_it): Yet another int/Lisp_Object
8372 mixup (YAILOM).
aac0c6e3
MR
8373
83742008-08-30 Glenn Morris <rgm@gnu.org>
8375
8376 * data.c (Fmake_variable_frame_local): Doc fix.
8377
8378 * frame.c (Fmodify_frame_parameters): Doc fix.
8379
83802008-08-30 Eli Zaretskii <eliz@gnu.org>
8381
8382 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8383 needed by GetTokenInformation.
8384 (w32_system_process_attributes): Check return values of all system
8385 APIs.
8386
8387 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8388 only when the state changes.
8389 (IT_update_begin, IT_update_end): Add termscript trace.
8390
8391 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8392 clipboard is unavailable. Set dst to NULL if it doesn't point to
8393 malloc'ed data.
8394 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8395 passing random values to xfree.
8396
8397 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8398 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8399
84002008-08-29 Jason Rumney <jasonr@gnu.org>
8401
8402 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8403
84042008-08-29 Eli Zaretskii <eliz@gnu.org>
8405
8406 * composite.c (fill_gstring_body): Avoid compiler warnings.
8407
8408 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8409 LGLYPH_SET_CODE to avoid compiler warnings.
8410
2ae37cf0 8411 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8412
8413 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8414
8415 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8416 LGLYPH_SET_CODE.
8417
84182008-08-29 Kenichi Handa <handa@m17n.org>
8419
8420 * fileio.c (report_file_error): Don't downcase the first character
8421 of errstring if it is still unibyte.
8422
84232008-08-29 Kenichi Handa <handa@m17n.org>
8424
8425 These changes are to re-implement the automatic composition so
8426 that it doesn't use text properties.
8427
8428 * Makefile.in (ftfont.o): Depend on composite.h.
8429 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8430
8431 * character.h (Vunicode_category_table): Extern it.
8432
8433 * character.c (Vunicode_category_table): New variable.
8434 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8435
8436 * chartab.c (optimize_sub_char_table): Perform more greedy
8437 optimization.
8438
b8ff72fa
SM
8439 * composite.h (enum composition_method):
8440 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8441 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8442 (Vcomposition_function_table): Extern it.
8443 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8444 (composition_gstring_put_cache, composition_gstring_from_id)
8445 (composition_gstring_p, composition_gstring_width)
8446 (composition_compute_stop_pos, composition_reseat_it)
8447 (composition_update_it, composition_adjust_point): Extern them.
8448 (Fcomposition_get_gstring): EXFUN it.
8449
d66c0241 8450 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8451 (Vcomposition_function_table)
8452 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8453 (gstring_hash_table, gstring_work, gstring_work_headers):
8454 New variables.
aac0c6e3
MR
8455 (gstring_lookup_cache, composition_gstring_put_cache)
8456 (composition_gstring_from_id, composition_gstring_p)
8457 (composition_gstring_width, fill_gstring_header)
8458 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8459 (composition_reseat_it, composition_update_it)
b8ff72fa 8460 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8461 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8462 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8463 Defsubr compostion_get_gstring.
8464
8465 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8466 cmp_id.
8467 (struct glyph_string): Delete the member gidx. New members
8468 cmp_id, cmp_from, and cmp_to.
8469 (enum it_method): Delete GET_FROM_COMPOSITION.
8470 (struct composition_it): New struct.
8471 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8472 Delete c, len, cmp_id, cmp_len in u.comp.
8473
8474 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8475 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8476 (enum lglyph_indices): Likewise.
b8ff72fa 8477 (font_range): Adjust extern.
aac0c6e3
MR
8478 (font_fill_lglyph_metrics): Extern it.
8479
8480 * font.c (QCf): New variable.
8481 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8482 (font_prepare_composition): Delete this function.
8483 (font_range): Type and arguments changed.
8484 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8485 (font_fill_lglyph_metrics): New function.
b8ff72fa 8486 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8487 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8488 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8489 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8490
8491 * fontset.h (font_for_char): Extern it.
8492
8493 * fontset.c (font_for_char): New function.
8494
8495 * ftfont.c: Include composite.h.
8496 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8497 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8498
8499 * indent.c: Include composite.h and dispextern.h.
8500 (check_composition): Delete this function.
8501 (scan_for_column): Handle composition by
8502 composition_compute_stop_pos, composition_reseat_it, and
8503 composition_update_it.
8504 (compute_motion): Likewise.
8505 (Fvertical_motion): Fix checking of composition.
8506
8507 * keyboard.c (adjust_point_for_property): Check composition by
8508 composition_adjust_point.
8509
b8ff72fa 8510 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8511 struct glyph_string.
8512
b8ff72fa
SM
8513 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8514 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8515 struct glyph.
8516 (produce_composite_glyph): Likewise.
8517
b8ff72fa
SM
8518 * w32term.c (x_draw_composite_glyph_string_foreground):
8519 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8520 (x_draw_glyph_string): Likewise.
8521
8522 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8523 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8524
8525 * xdisp.c: Include font.h.
8526 (it_props): Delete the entry for Qauto_composed.
8527 (init_iterator): Initialize it->cmp_it.id to -1.
8528 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8529 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8530 (handle_auto_composed_prop): Delete it.
8531 (handle_composition_prop): Handle only static composition.
8532 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8533 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8534 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8535 (pop_it): Likewise.
8536 (get_next_element): Delete next_element_from_composition.
8537 (CHAR_COMPOSED_P): New macro.
8538 (get_next_display_element): For automatic composition, get a face
8539 from the font in the glyph-string.
8540 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8541 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8542 (next_element_from_string): Check if the character at the current
8543 position is composed by CHAR_COMPOSED_P.
8544 (next_element_from_buffer): Likewise.
d66c0241
JB
8545 (next_element_from_composition): Adjust for the change of struct it.
8546 Update it->cmp_it.
b8ff72fa
SM
8547 (dump_glyph): Adjust for the change of struct glyph.
8548 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8549 it and struct glyph. Don't handle automatic composition here.
8550 (fill_gstring_glyph_string): New function.
8551 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8552 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8553 (BUILD_GSTRING_GLYPH_STRING): New macro.
8554 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8555 automatic composition.
b8ff72fa 8556 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8557 struct glyph.
b8ff72fa 8558 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8559
b8ff72fa 8560 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8561 the change of struct glyph_string.
8562 (x_draw_glyph_string): Likewise.
8563
85642008-08-29 Glenn Morris <rgm@gnu.org>
8565
8566 * buffer.c (word-wrap): Doc fix.
8567 * xdisp.c (truncate-partial-width-windows): Doc fix.
8568 Increase default to 50.
8569
85702008-08-29 Chong Yidong <cyd@stupidchicken.com>
8571
8572 * xdisp.c (update_tool_bar_unwind): New function.
8573 (update_tool_bar): Temporarily set selected frame before building
8574 tool-bar items.
8575
85762008-08-28 Michael Albinus <michael.albinus@gmx.de>
8577
8578 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8579 snprintf, respectively.
8580 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8581
85822008-08-28 Chong Yidong <cyd@stupidchicken.com>
8583
8584 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8585 LDFLAGS to GNUstep CC invocation.
8586
85872008-08-27 Chong Yidong <cyd@stupidchicken.com>
8588
8589 * indent.c (Fvertical_motion): Revert last change. Handle the
8590 general case where we are moving forward, and PT spans multiple
8591 screen lines.
8592
8593 * eval.c (find_handler_clause): Temporarily increase
8594 max-lisp-eval-depth while printing the backtrace buffer, to
8595 guarantee that help-mode code can run.
8596
85972008-08-27 Eli Zaretskii <eliz@gnu.org>
8598
8599 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8600 colors under -rv.
8601 (IT_set_frame_parameters): Don't swap foreground and background
8602 colors if `(reverse . t)' is present in the frame properties.
8603 (internal_terminal_init): Call init_frame_faces only for the
8604 initial frame.
8605
86062008-08-27 Andreas Schwab <schwab@suse.de>
8607
8608 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8609
86102008-08-27 Andreas Schwab <schwab@suse.de>
8611
8612 * search.c (search_buffer): Set char_base to zero only at the end.
8613
86142008-08-27 Kenichi Handa <handa@m17n.org>
8615
b8ff72fa 8616 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8617
86182008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8619
8620 * xterm.c (x_term_init): Temporarily hide the partially
8621 initialized terminal while calling vendor-specific-keysyms.
8622
86232008-08-26 Eli Zaretskii <eliz@gnu.org>
8624
8625 * msdos.c (internal_terminal_init): Most initializations done only
8626 once, especially initial_screen_colors[] and termscript open.
8627
86282008-08-26 Chong Yidong <cyd@stupidchicken.com>
8629
8630 * eval.c (Fcondition_case): Doc fix.
8631
8632 * widgetprv.h (EmacsFramePart): Change font member to the new font
8633 struct.
8634
8635 * widget.c: Include character.h and font.h for XSETFONT.
8636 (setup_frame_gcs): Compute X font id from font struct, just once.
8637
86382008-08-26 Eli Zaretskii <eliz@gnu.org>
8639
8640 * term.c (get_named_tty): Fix last change.
8641
86422008-08-26 Chong Yidong <cyd@stupidchicken.com>
8643
8644 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8645 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8646
86472008-08-25 Eli Zaretskii <eliz@gnu.org>
8648
8649 * frame.c (do_switch_frame): Mark previously displayed frame as
8650 obscured for FRAME_MSDOS_P frames as well.
8651
86522008-08-24 Eli Zaretskii <eliz@gnu.org>
8653
8654 * frame.c (make_terminal_frame): Initialize f->terminal,
8655 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8656 Set the top frame to newly created frame.
8657 (Fmake_terminal_frame): Reuse the_only_display_info.
8658
8659 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8660 estimating available memory.
8661
b97439ce 86622008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8663
8664 * nsterm.m (ns_draw_window_cursor): Don't call
8665 NSDisableScreenUpdates and NSEnableScreenUpdates on
8666 non-NS_IMPL_COCOA systems.
8667
86682008-08-23 Andreas Schwab <schwab@suse.de>
8669
8670 * process.c (procfs_system_process_attributes): Fix use of
8671 uninitialized variables.
8672
86732008-08-23 Eli Zaretskii <eliz@gnu.org>
8674
8675 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8676
8677 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8678 calling tty-set-up-initial-frame-faces.
8679
b8ff72fa
SM
8680 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8681 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8682
8683 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8684 addition to output_termcap.
8685
8686 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8687
8688 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8689 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8690 highlight.
8691
8692 * process.c [!subprocesses]: Define QCname.
8693 (syms_of_process): Intern and staticpro it.
8694
8695 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8696 Adjust for changes in encoding/decoding routines.
8697 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8698 encode_coding and decode_coding.
8699
b8ff72fa 8700 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8701
8702 * dosfns.c: Include frame.h before termhooks.h.
8703 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8704 variable termscript.
8705
8706 * s/msdos.h (USER_FULL_NAME): Define.
8707 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8708
8709 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8710 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8711 pw->pw_gecos.
8712
8713 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8714 SELECTED_FRAME as additional (1st) argument.
8715 (tty_read_avail_input): Handle output_msdos_raw in
8716 addition to output_termcap.
8717
8718 * msdos.c: Include frame.h before termhooks.h.
8719 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8720 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8721 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8722 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8723 (IT_set_terminal_modes, IT_reset_terminal_modes)
8724 (IT_set_frame_parameters): Use tty->termscript instead of a global
8725 variable termscript.
8726 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8727 global variable terminal_coding. Don't refer to
8728 Vnonascii_translation_table.
8729 (internal_terminal_init): Set Vwindow_system in current_kboard.
8730 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8731 Announce date and time of session start, if termscript is open.
8732 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8733 term.c:init_tty). Open termscript only of not already open.
8734 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8735 here instead of dos_ttraw. Don't initialize display if this is an
8736 initial tty. Don't set FRAME_FONT.
8737 (Vwindow_system_version): Bump to 23.
8738 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8739 is available, set up mouse_position_hook.
8740 (dos_ttraw, IT_set_terminal_modes): If called with initial
8741 terminal, do nothing.
8742 (IT_set_frame_parameters): Handle the Qtty_type frame
8743 parameter by calling internal_terminal_init.
8744 (dos_set_window_size, show_mouse_face)
8745 (clear_mouse_face, IT_note_mode_line_highlight)
8746 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8747 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8748 (initialize_msdos_display): New function.
8749 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8750 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8751 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8752 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8753 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8754 (request_sigio, unrequest_sigio): Don't define, now defined on
8755 sysdep.c.
8756 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8757
8758 * term.c [MSDOS]: Include msdos.h.
8759 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8760 conditional to DOS_NT. Allow only one call to this function in a
8761 session. Don't allocate a new struct tty_display_info; instead,
8762 reuse the_only_display_info. Call get_tty_size to get screen
8763 dimensions. Call init_baud_rate to set bad_rate.
8764 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8765 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8766 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8767 (get_tty_terminal, get_named_tty, Ftty_type)
8768 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8769 output_termcap.
b8ff72fa
SM
8770 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8771 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8772 only when subprocesses are supported.
aac0c6e3
MR
8773
8774 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8775 f->output_data.x.
8776 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8777 terminal devices.
8778
5582fbc7 8779 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8780 x_output.
8781 (FRAME_FONT): Use output_data.tty.
8782 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8783 (struct x_display_info): Rename from display_info. Update all users in
8784 msdos.c.
aac0c6e3 8785 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8786 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8787 (dos_ttraw): Update prototype.
8788
8789 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8790 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8791
87922008-08-23 Jason Rumney <jasonr@gnu.org>
8793
8794 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8795 (fn_TIFFSetDirectory): New library function used.
8796 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8797 (tiff_load): Use :index to select among multiple images. Set count
8798 property when multiple images exist.
8799 (gif_format): Use :index, not :image.
8800
88012008-08-23 Chong Yidong <cyd@stupidchicken.com>
8802
8803 * xdisp.c (try_scrolling): Check INT_MAX instead of
8804 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8805 to obtain INT_MAX.
8806
88072008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8808
8809 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8810
88112008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8812
8813 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8814 GNUstep library location.
8815
88162008-08-21 Chong Yidong <cyd@stupidchicken.com>
8817
8818 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8819 before using it.
8820
8821 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8822
88232008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8824
8825 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8826 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8827 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8828 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8829 (EmacsApp-cursor_blink_handler): Remove declaration.
8830 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8831 match 01 Feb 2008 changes in xterm.c.
8832 (ns_read_socket): Add cast to avoid warning.
8833 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8834 GNUstep.
8835
88362008-08-20 Chong Yidong <cyd@stupidchicken.com>
8837
8838 * xselect.c (x_get_foreign_selection): Return nil if desired
8839 selection could not be obtained, instead of signalling an error.
8840
88412008-08-20 David Reitter <david.reitter@gmail.com>
8842
8843 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8844 * nsterm.m: Remove ns-specific code for cursor blinking.
8845 (ns_draw_window_cursor): Clear cursor properly rather than
8846 redrawing the area. Respect width of bar cursors.
8847 These changes enable the use of generic blink-cursor-mode and
8848 generic cursor types in NS and support smooth cursor movements (do
8849 not blink off after command).
8850 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8851 Nextstep, too.
8852
88532008-08-19 Kenichi Handa <handa@m17n.org>
8854
8855 * font.c (Vfont_log_deferred): New variable.
8856 (font_add_log): Check Vfont_log_deferred.
8857 (font_deferred_log): New function.
8858
8859 * font.h (font_deferred_log): Extern it.
8860
8861 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8862 for sorting.
8863 (face_for_char): Use deferred log.
8864
88652008-08-18 Kenichi Handa <handa@m17n.org>
8866
8867 * fontset.c (face_for_char): Add font log.
8868
8869 * font.c (font_add_log): Add the font properties :script, :lang,
8870 and :otf in the log.
8871
88722008-08-17 Chong Yidong <cyd@stupidchicken.com>
8873
8874 * xdisp.c: Remove dead code.
8875 (handle_invisible_prop, next_overlay_string): Defer call to
8876 setup_for_ellipsis.
8877 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8878
88792008-08-15 Chong Yidong <cyd@stupidchicken.com>
8880
8881 * xfaces.c (lookup_derived_face): Properly handle possible zero
8882 return value of get_lface_attributes.
8883 (merge_faces): Don't tell lookup_derived_face to signal an error
8884 if face is not found.
8885
8886 * dired.c (Fdirectory_files): Doc fix.
8887
8888 * process.c (make_process): Initialize kill_without_query struct
8889 member.
8890
88912008-08-15 Eli Zaretskii <eliz@gnu.org>
8892
8893 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8894 Alternative calculation of totphys for Visual Studio 6.
8895
8896 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8897
8898 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8899 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8900 All users changed.
8901 (stat): Only root directory passed to GetDriveType. Allow RAM
8902 disk as well as local fixed disk when w32-get-true-file-attributes
8903 is set to `local'.
8904 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8905 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8906 (w32_cached_id, w32_add_to_cache): New functions.
8907 (get_name_and_id): Look account names in the cache before calling
8908 lookup_account_sid.
8909 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8910 New initialization flags.
8911 (globals_of_w32): Initialize them to zero.
8912 (w32_system_process_attributes): Use w32_cached_id and
8913 w32_add_to_cache.
8914
89152008-08-14 Lawrence Mitchell <wence@gmx.li>
8916
8917 * lread.c (Fread_char, Fread_char_exclusive): If no character
8918 event is read before timeout is reached, return nil, rather than
8919 converting to a number.
8920
89212008-08-14 Chong Yidong <cyd@stupidchicken.com>
8922
8923 * fns.c (use_dialog_box): Doc fix.
8924
8925 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8926 on OS X.
8927
89282008-08-13 Chong Yidong <cyd@stupidchicken.com>
8929
8930 * frame.c (Qns_parse_geometry): New var.
8931 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8932
89332008-08-11 Chong Yidong <cyd@stupidchicken.com>
8934
8935 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8936 space character in calculating tabs.
8937
89382008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8939
8940 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8941
89422008-08-10 Glenn Morris <rgm@gnu.org>
8943
8944 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8945 silence gcc "limited range of data type" warnings in some
8946 make_fixnum_or_float calls.
8947
89482008-08-09 Eli Zaretskii <eliz@gnu.org>
8949
8950 * w32.c (w32_system_process_attributes): If the process does not
8951 exist, return nil.
8952
8953 * w32.c: Include thelp32.h, psapi.h and coding.h.
8954 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8955 declarations.
8956 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8957 (Process32Next_Proc): New typedefs.
8958 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8959 (g_b_init_process32_next, g_b_init_open_thread_token)
8960 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8961 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8962 (g_b_init_get_process_working_set_size)
8963 (g_b_init_global_memory_status_ex): New static variables.
8964 (globals_of_w32): Initialize them.
8965 (create_toolhelp32_snapshot, process32_first, process32_next)
8966 (open_thread_token, impersonate_self, revert_to_self)
8967 (get_process_memory_info, get_process_working_set_size)
8968 (global_memory_status, global_memory_status_ex): New wrapper
8969 functions.
8970 (w32_list_system_processes, w32_system_process_attributes)
8971 (enable_privilege, restore_privilege, ltime, process_times):
8972 New functions.
8973 (convert_time_raw): New function.
8974 (convert_time): Remove conversion of FILETIME into time in 100
8975 nsec units, call convert_time_raw instead.
8976
8977 * process.h (w32_list_system_processes, w32_system_process_attributes):
8978 Add prototypes.
8979 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8980 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8981 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8982 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8983
8984 * process.c (Fsystem_process_attributes): Doc fix.
8985
89862008-08-08 Chong Yidong <cyd@stupidchicken.com>
8987
8988 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8989 a continued multi-char glyph; if so, advance to the actual glyph.
8990
89912008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8992
8993 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8994
8995 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8996 (.m.o): Use it.
8997 * config.in: Regenerate.
8998
89992008-08-07 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * xdisp.c (redisplay_window): Revert last change.
9002 (try_window): Check bottom scroll margin too.
9003
90042008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9005
9006 * config.in: Regenerate.
9007
9008 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9009 -list-load-path-shadows'.
9010 (nsgui.h): Reduce number of things depending on it.
9011
90122008-08-06 Chong Yidong <cyd@stupidchicken.com>
9013
9014 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9015 instead of window-end which does the wrong thing at eob.
9016 (try_cursor_movement): Minor optimization.
9017 (redisplay_window): If scroll margin is defined, don't assume
9018 window doesn't need scrolling.
9019
90202008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9021
9022 * config.in: Regenerate.
9023
9024 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9025 (mostlyclean): Don't delete *.d under NS.
9026
9027 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9028
90292008-08-06 Kenichi Handa <handa@m17n.org>
9030
9031 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9032
90332008-08-06 Andreas Schwab <schwab@suse.de>
9034
9035 * config.in: Regenerate.
9036
90372008-08-05 Chong Yidong <cyd@stupidchicken.com>
9038
9039 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9040 forcing a window start.
9041
9042 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9043 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9044
90452008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9046
9047 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9048 argument.
9049
90502008-08-05 Juanma Barranquero <lekktu@gmail.com>
9051
9052 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9053 <scroll-down-aggressively, before-change-functions>:
9054 <after-change-functions>: Reflow docstrings.
9055
90562008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9057 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9058
9059 Dock menu customization, based on a patch by Ken Raeburn, plus some
9060 other fixes.
9061 * nsmenu.m (dockMenu): New variable.
9062 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9063
9064 * nsterm.h (dockMenu): Declare.
9065
9066 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9067 (ns_term_init): Initialize dockMenu.
9068 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9069 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9070 left.
9071
9072 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9073
90742008-08-04 Chong Yidong <cyd@stupidchicken.com>
9075
9076 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9077
9078 * config.in: Regenerate.
9079
90802008-08-04 Seiji Zenitani <zenitani@mac.com>
9081
9082 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9083
90842008-08-04 Chong Yidong <cyd@stupidchicken.com>
9085
9086 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9087
90882008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9089
9090 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9091
9092 * keyboard.h: Comment an #endif.
9093
9094 * lisp.h (have_menus_p): Adjust comment.
9095
9096 * menu.c (find_and_return_menu_selection): Fix comparison with
9097 client_data.
9098
9099 * nsmenu.m (popup_activated_flag): New variable.
9100 (popup_activated): New function.
9101 (menu-or-popup-active-p): New exported lisp definition.
9102 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9103 when popup done.
9104 (ns_popup_dialog): Set popup_activated_flag.
9105
9106 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9107 version for GNUstep (handled by conditional typedef in nsterm.m).
9108 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9109 in rgb.txt).
9110
9111 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9112
9113 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9114
9115 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9116
9117 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9118 shortcircuit if popup_activated like GTK and X toolkit.
9119
9120 * m/inter386.h: Change DARWIN to DARWIN_OS.
9121
9122 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9123 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9124 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9125 comment on NO_SOCK_SIGIO.
9126
91272008-08-03 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * nsterm.m (windowDidResize): Remove stopModal call.
9130
91312008-08-03 Andreas Schwab <schwab@suse.de>
9132
9133 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9134 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9135
91362008-08-02 Chong Yidong <cyd@stupidchicken.com>
9137
9138 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9139 Don't use uninitialized pointer variable when using getrlimit.
9140
91412008-08-02 Jason Rumney <jasonr@gnu.org>
9142
9143 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9144
91452008-08-02 Eli Zaretskii <eliz@gnu.org>
9146
9147 * alloc.c (NSTATICS): Bump to 0x640.
9148
9149 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9150
9151 * lisp.h: Add prototype for directory_files_internal.
9152
9153 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9154 New functions.
9155 (syms_of_process): Defsubr them. Add initializations for various
9156 Q* symbols used in procfs_system_process_attributes.
9157 (procfs_list_system_processes, procfs_system_process_attributes)
9158 [HAVE_PROCFS]: New functions.
9159 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9160 (procfs_get_total_memory): New functions.
9161
91622008-08-01 Juanma Barranquero <lekktu@gmail.com>
9163
9164 * xfaces.c (Fx_load_color_file): Fix previous change;
9165 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9166
91672008-08-01 Michael Albinus <michael.albinus@gmx.de>
9168
9169 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9170
91712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9172
9173 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9174
91752008-08-01 Chong Yidong <cyd@stupidchicken.com>
9176
9177 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9178
9179 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9180 define NSApplicationDelegateReplySuccess.
9181 (EmacsView -converstationIdentifier): Use long instead of
9182 NSInteger for GNUstep, since it doesn't have NSInteger.
9183
9184 * xmenu.c: Revert last change.
9185
9186 * keyboard.h: Fix last change.
9187
91882008-08-01 Juanma Barranquero <lekktu@gmail.com>
9189
9190 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9191 on Windows.
9192
91932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9194
9195 Warning clearing and clean-up in NS port.
9196 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9197 Add prototypes.
9198 * nsgui.h (FACE_DEFAULT): Remove, unused.
9199 (XGCValues): Change colors to unsigned long.
9200 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9201 nsterm.m.
9202 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9203 (ns_list_fonts): Remove, unused.
9204 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9205 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9206 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9207 (nsfont_draw): Compare face colors to 0, not nil.
9208 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9209 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9210 (-addSubmenuWithTitle:): Use NSMenuItem class.
9211 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9212 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9213 (ns_clip_to_row): Make gc arg a BOOL.
9214 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9215 ns_clip_to_row() call.
9216 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9217 used). Cast FRAME_FONT assignments.
9218 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9219 (ns_string_to_lispmod): Change arg to const char.
9220 (ns_term_init): Use NSMenuItem class.
9221 (EmacsApp -openFile:): Move to different section of file.
9222 (EmacsApp -application:openFiles:): Don't return a value, call
9223 -replyToOpenOrPrint:.
9224 (EmacsView -keyDown:): Fix up cast.
9225 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9226 (EmacsView -menuDown:): Cast tag in call to
9227 find_and_call_menu_selection().
9228 (ns_list_fonts): Remove, unused.
9229 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9230 (ns_fontname_to_xlfd): Make static.
9231 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9232 Remove prototypes (now in keyboard.h).
9233 (next_menubar_widget_id): Remove, unused.
9234 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9235 Remove prototypes (now in keyboard.h).
9236 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9237
92382008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9239
9240 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9241 (floatfns.o): Depend on syssignal.h.
9242 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9243
9244 * systty.h: Fix previous change that removed BSD_TERMIOS.
9245 Add comments to #ifdefs.
9246
92472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9248
9249 * w32fns.c (w32-load-color-file): Remove.
9250 (x-open-connection): Use renamed Fx_load_color_file.
9251 * xfaces.c (x-load-color-file): Add.
9252 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9253 Emacs.clr.
9254 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9255
92562008-07-31 Michael Albinus <michael.albinus@gmx.de>
9257
9258 * dbusbind.c (Fdbus_call_method_asynchronously)
9259 (Fdbus_method_error_internal): New defuns.
9260 (xd_read_message): Handle also reply messages.
9261 (Vdbus_registered_functions_table): Extend docstring.
9262
92632008-07-31 Juanma Barranquero <lekktu@gmail.com>
9264
9265 * keyboard.c (gobble_input): Fix previous change.
9266
92672008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9268
9269 * bitmaps/README:
9270 * xfns.c:
9271 * termcap.c:
9272 * term.c:
9273 * syswait.h:
9274 * systty.h:
9275 * systime.h:
9276 * syssignal.h:
9277 * sysdep.c:
9278 * process.h:
9279 * process.c:
9280 * print.c:
9281 * ndir.h:
9282 * lread.c:
9283 * keyboard.c:
9284 * getpagesize.h:
9285 * floatfns.c:
9286 * fileio.c:
9287 * emacs.c:
9288 * doc.c:
9289 * dispnew.c:
9290 * dired.c:
9291 * data.c:
9292 * callproc.c:
9293 * buffer.c:
9294 * README:
9295 * Makefile.in:
9296 * s/template.h:
9297 * s/msdos.h:
9298 * m/vax.h: Remove VMS support.
9299 * s/vms.h:
9300 * vlimit.h:
9301 * uaf.h:
9302 * temacs.opt:
9303 * param.h:
9304 * ioctl.h: Remove file.
9305
93062008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9307
9308 * s/ms-w32.h (MULTI_KBOARD): Remove.
9309 * xterm.c:
9310 * xselect.c:
9311 * xfns.c:
9312 * window.c:
9313 * w32term.c:
9314 * w32fns.c:
9315 * terminal.c:
9316 * termhooks.h:
9317 * term.c:
9318 * sysdep.c:
9319 * keyboard.h:
9320 * keyboard.c:
9321 * frame.h:
9322 * frame.c:
9323 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9324 * config.in: Regenerate.
9325
93262008-07-30 Jason Rumney <jasonr@gnu.org>
9327
9328 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9329
9330 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9331 (w32font_open_internal): Get unicode version of textmetrics.
9332 Don't enable or disable glyph indices here.
9333 (w32font_open): Disable use of glyph indices.
9334
9335 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9336
93372008-07-30 Chong Yidong <cyd@stupidchicken.com>
9338
9339 * minibuf.c (Vread_buffer_function): Doc fix.
9340
93412008-07-30 John Paul Wallington <jpw@pobox.com>
9342
9343 * minibuf.c (read_buffer_completion_ignore_case): New var.
9344 (Fread_buffer): Use it.
9345
93462008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9347
9348 * systty.h (sensemode): Remove empty #if. Remove reference to
9349 BSD_TERMIOS, unused.
9350
9351 * sysdep.c: Remove reference to DGUX.
9352 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9353
9354 * config.in: Regenerate.
9355
93562008-07-30 Jason Rumney <jasonr@gnu.org>
9357
9358 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9359
93602008-07-29 Jason Rumney <jasonr@gnu.org>
9361
9362 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9363 is populated.
9364 (uniscribe_encode_char): Always use uniscribe.
9365 Avoid using context if cache is populated.
9366
93672008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9368
9369 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9370 open menu.
9371
9372 * gtkutil.c (menu_nav_ended): Remove.
9373 (create_menus): Remove signal connect for menu_nav_ended.
9374
93752008-07-28 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * xdisp.c (redisplay_window): Check return value of
9378 compute_window_start_on_continuation_line before forcing a window
9379 start.
9380
93812008-07-28 Jason Rumney <jasonr@gnu.org>
9382
9383 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9384
9385 * w32term.c (w32_enable_unicode_output, cleartype_active):
9386 Remove obsolete display options.
9387 (x_draw_glyph_string_background): Don't use old cleartype_active
9388 workaround.
9389 (w32_initialize): Remove cleartype_active initialization.
9390 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9391
93922008-07-28 Andreas Schwab <schwab@suse.de>
9393
9394 * lisp.h (init_weak_hash_tables, syms_of_font)
9395 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9396 (remove_hash_entry): Don't declare.
9397 * eval.c (maybe_call_debugger): Make static and move before use.
9398 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9399 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9400 * xterm.h (x_set_frame_alpha): Declare.
9401
94022008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9403
9404 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9405 (create_menus): Connect selection-done to menu_nav_ended.
9406
94072008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9408
9409 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9410 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9411 parameter with read of 'alpha' one.
9412 (Qns_frame_parameter): Remove.
5582fbc7 9413 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9414 (next-selection-coding-system, Vselection_coding_system)
9415 (Vnext_selection_coding_system): Drop.
9416
94172008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9418
9419 * nsfns.m (do-applescript, do_applescript): Rename to
9420 ns-do-applescript, ns_do_applescript, and move within file.
9421
94222008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9423
9424 Remove support for Mac Carbon.
9425 * mactoolbox.c:
9426 * macterm.h:
9427 * macterm.c:
9428 * macselect.c:
9429 * macmenu.c:
9430 * macgui.h:
9431 * macfns.c:
9432 * mac.c: Remove file.
9433 * s/darwin.h:
9434 * m/intel386.h:
9435 * xfaces.c:
9436 * xdisp.c:
9437 * window.c:
9438 * tparam.c:
9439 * termhooks.h:
9440 * termcap.c:
9441 * term.c:
9442 * syssignal.h:
9443 * sysselect.h:
9444 * sysdep.c:
9445 * process.c:
9446 * lread.c:
9447 * lisp.h:
9448 * keyboard.c:
9449 * image.c:
9450 * fringe.c:
9451 * frame.h:
9452 * frame.c:
9453 * fontset.c:
9454 * font.h:
9455 * font.c:
9456 * fns.c:
9457 * fileio.c:
9458 * emacs.c:
9459 * dispnew.c:
9460 * dispextern.h:
9461 * config.in:
9462 * atimer.c:
2ae37cf0 9463 * Makefile.in: Remove code for Carbon.
aac0c6e3 9464
f0131492 94652008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9466
9467 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9468
94692008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9470
9471 * macterm.h (kCGBitmapByteOrder32Host): New define for
9472 non-universal SDKs.
9473
9474 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9475 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9476
9477 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9478 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9479
94802008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9481
9482 * w32inevt.c: Include dispextern.h.
9483
94842008-07-26 Andreas Schwab <schwab@suse.de>
9485
9486 * print.c (print_object): Fix off-by-one in last change.
9487
94882008-07-25 Juanma Barranquero <lekktu@gmail.com>
9489
9490 * term.c (syms_of_term): Don't initialize default_orig_pair,
9491 default_set_foreground and default_set_background on Windows.
9492
94932008-07-25 Jason Rumney <jasonr@gnu.org>
9494
9495 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9496 ScriptItemize. Clean up return value checking. Remove unused
9497 variables.
9498 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9499 shaping engine.
9500
9501 * w32font.c (w32font_has_char): Handle the case where we can't
9502 determine the script for a character.
9503
95042008-07-25 Chong Yidong <cyd@stupidchicken.com>
9505
9506 * term.c (syms_of_term): Initialize default_orig_pair,
9507 default_set_foreground, and default_set_background.
9508
9509 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9510 clash (bug#86).
9511 (getloadavg): Callers changed.
9512
9513 * image.c (svg_load_image): Fix last change.
9514 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9515 image size is valid. Use g_object_unref instead of deprecated
9516 rsvg_handle_free to free rsvg handle.
9517 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9518
95192008-07-25 Jason Rumney <jasonr@gnu.org>
9520
9521 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9522 surrogates before looking up glyph index.
9523 (w32font_text_extents): Encode as surrogates if falling back to
9524 functions that need UTF-16 wide chars.
9525
9526 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9527 BMP as surrogates before looking up glyph index.
9528
95292008-07-25 Chong Yidong <cyd@stupidchicken.com>
9530
9531 * image.c (svg_load_image): Check for failure in return value of
9532 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9533
95342008-07-25 Jason Rumney <jasonr@gnu.org>
9535
9536 * w32font.c (Fx_select_font): Reverse sense of second arg.
9537
95382008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9539
9540 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9541 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9542
9543 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9544 (PURESIZE): Use it.
9545
95462008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9547
9548 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9549 * m/alpha.h (TEXT_END):
9550 * m/ibmrs6000.h (TEXT_END):
9551 * m/macppc.h (TEXT_END):
9552 * s/darwin.h (TEXT_END):
9553 * s/msdos.h (TEXT_END): Remove, unused.
9554 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9555 * s/cygwin.h: Remove comment.
9556
9557 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9558 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9559 * m/intel386.h (DOT_GLOBAL_START):
9560 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9561 (USG): Remove, file not used on USG platforms.
9562
9563 * Makefile.in (HAVE_X11): Remove empty #else.
9564
95652008-07-24 Andreas Schwab <schwab@suse.de>
9566
9567 * fileio.c (Finsert_file_contents): Properly adjust undo list
9568 after format conversion.
9569
95702008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9571
9572 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9573 (menu_nav_ended): Remove.
9574 (create_menus): Remove signal connect for menu_nav_ended.
9575 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9576 create_menus.
9577 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9578
95792008-07-23 Jason Rumney <jasonr@gnu.org>
9580
9581 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9582 with opened font.
9583 (w32font_open): Set font type to gdi.
9584
9585 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9586
95872008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9588
9589 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9590 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9591 defines it.
9592 * unexec.c (ADDR_CORRECT): Define unconditionally.
9593
9594 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9595
9596 * unexec.c: Remove code depending on !COFF and USG, the file is
9597 not used for such systems.
9598
9599 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9600 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9601 (LD_SWITCH_SYSTEM_1): Remove, update users.
9602
9603 * s/darwin.h (DATA_END):
9604 * m/intel386.h (DATA_END):
9605 * m/ibmrs6000.h (DATA_END):
9606 * m/alpha.h (DATA_END): Remove, unused.
9607
9608 * config.in: Regenerate.
9609 * s/ms-w32.h (subprocesses): Define unconditionally.
9610 * s/template.h (subprocesses): Update comment.
9611 * s/vms.h (subprocesses):
9612 * s/usg5-4.h (subprocesses):
9613 * s/hpux10-20.h (subprocesses):
9614 * s/gnu-linux.h (subprocesses):
9615 * s/cygwin.h (subprocesses):
9616 * s/bsd-common.h (subprocesses):
9617 * s/aix4-2.h (subprocesses):
9618 * s/darwin.h (subprocesses): Do not define, defined by default now.
9619
9620 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9621 Remove all references.
9622 (temacs): Add GNUstep specific ld flags.
9623
9624 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9625 similarly to what X does.
9626
96272008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9628
9629 * nsfns.m (x-list-fonts): Remove.
9630 (syms_of_nsfns): Drop the x-list-fonts declaration.
9631 * nsterm.m: Get rid of remaining "//" comments.
9632
96332008-07-22 Chong Yidong <cyd@stupidchicken.com>
9634
9635 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9636
9637 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9638 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9639 (Fns_own_selection_internal, Fx_disown_selection_internal)
9640 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9641
9642 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9643 ... */' style of docstrings. Doc fixes.
9644
96452008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9646
9647 * terminfo.c (UP, BC, PC): Undo previous change.
9648
9649 * nsfns.m: Rename ns prefixed functions/variables to the
9650 corresponding x versions. Update references.
9651
96522008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9653
9654 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9655
96562008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9657
9658 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9659 Remove forwarding functions.
9660 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9661 non-static.
9662 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9663 non-static.
9664 (ns_frame_parm_handlers): Use the new names.
9665 (syms_of_nsfns): Move to the end of file.
9666
9667 * nsterm.m (syms_of_nsterm): Move to the end of file.
9668
9669 * dispnew.c (init_display): Remove code for X10.
9670
96712008-07-22 Jason Rumney <jasonr@gnu.org>
9672
9673 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9674 bare drive.
9675
96762008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9677
9678 * nsterm.m (syms_of_nsterm): Remove debugging println.
9679
96802008-07-22 David Reitter <david.reitter@gmail.com>
9681
9682 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9683 Carbon implementation of the same functionality: execute arbitrary
9684 AppleScript code.
9685
96862008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9687
9688 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9689 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9690 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9691 (Fx_display_mm_height, Fx_display_mm_width)
9692 (Fx_display_backing_store, Fx_display_visual_class)
9693 (Fx_display_save_under, Fx_open_connection)
9694 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9695 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9696 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9697 (Fx_display_pixel_width, Fx_display_pixel_height)
9698 (Fx_display_usable_bounds, Fx_display_planes)
9699 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9700 ... */' style of docstrings.
9701
97022008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9703
9704 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9705 on this platform.
9706 (mips):
9707 * m/iris4d.h (mips): Do not define.
9708 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9709
9710 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9711
9712 * image.c:
9713 * nsfns.m:
9714 * nsselect.m:
9715 * nsterm.h:
9716 * nsterm.m: Rename ns prefixed functions/variables to the
9717 corresponding x versions. Update references.
9718
9719 * m/ibms390x.h (NO_REMAP): Do not undefine.
9720
9721 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9722
97232008-07-21 Chong Yidong <cyd@stupidchicken.com>
9724
9725 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9726 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9727 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9728 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9729 (Fns_display_mm_height, Fns_display_mm_width)
9730 (Fns_display_backing_store, Fns_display_visual_class)
9731 (Fns_display_save_under, Fns_open_connection)
9732 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9733 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9734 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9735 (Fns_display_pixel_width, Fns_display_pixel_height)
9736 (Fns_display_usable_bounds, Fx_display_planes)
9737 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9738
97392008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9740
9741 * print.c (print_object): Check print_depth before searching for
9742 circularities.
9743
97442008-07-21 Michael Albinus <michael.albinus@gmx.de>
9745
9746 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9747 only sprintf.
9748
97492008-07-21 Kenichi Handa <handa@m17n.org>
9750
9751 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9752
97532008-07-20 Andreas Schwab <schwab@suse.de>
9754
9755 * syntax.c (find_start_pos, find_start_value)
9756 (find_start_value_byte, find_start_begv, find_defun_start)
9757 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9758
97592008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9760
9761 * s/sol2-3.h: Insert contents of s/sol2.h.
9762 (LD_SWITCH_SYSTEM): Remove redundant definition.
9763 * s/sol2.h: Remove, unused.
9764
97652008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9766
9767 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9768
97692008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9770
9771 * Makefile.in (ns_appdir): Fix typo in find command.
9772
97732008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9774
9775 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9776
9777 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9778 added not supported anymore.
9779
9780 * s/usg5-4-2.h (LIBS_SYSTEM):
9781 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9782
9783 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9784 * s/lynxos.h (GETPGRP_NO_ARG):
9785 * s/hpux10-20.h (NO_SIOCTL_H):
9786 * s/gnu.h (GETPGRP_NO_ARG):
9787 * s/gnu-linux.h (NO_SIOCTL_H):
9788 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9789 * s/cygwin.h (GETPGRP_NO_ARG):
9790 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9791 (C_DEBUG_SWITCH): Remove duplicate definition.
9792
9793 * m/ibms390.h: Remove boilerplate comments.
9794
9795 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9796
9797 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9798 (wait_reading_process_output): Remove code for SunOS, platform not
9799 supported anymore. Use SOLARIS2 instead of sun.
9800
98012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9802
9803 * font.c (font_open_by_name): Under NS, default lface height to zero.
9804 (font_open_for_lface): Under NS, set size based on frame fontsize.
9805 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9806 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9807
98082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9809
9810 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9811 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9812 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9813 YES/NO.
9814 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9815 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9816 * Makefile.in (clean): Clear out build destination dir.
9817
98182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9819
9820 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9821 xterm, xselect.
9822 * lisp.h: Remove declaration of hash_remove.
9823 * nsgui.h: Remove redefinitions of hash_remove.
9824 * fns.c (hash_remove): Rename to hash_remove_from_table.
9825
98262008-07-19 Seiji Zenitani <zenitani@mac.com>
9827
9828 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9829 strdup() the family UTF8String before modifying it.
9830
98312008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9832
9833 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9834 NS_FACE_BACKGROUND with 0 instead of nil.
9835 * nsfont.m (nsfont_draw): Same.
9836
98372008-07-19 Chong Yidong <cyd@stupidchicken.com>
9838
9839 * nsfns.m (ns_set_background_color): Fix crash.
9840
98412008-07-18 Chong Yidong <cyd@stupidchicken.com>
9842
9843 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9844
98452008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9846
9847 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9848
98492008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9850
9851 * gtkutil.c: Include <config.h> instead of "config.h".
9852
9853 * lisp.h (Foverlay_buffer): Add EXFUN.
9854
9855 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9856 child process to complete child_setup. Undo 2005-09-21 change.
9857
9858 * s/darwin.h: Mention setsid after vfork.
9859
98602008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9861
9862 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9863 Depend on macgui.h.
9864
9865 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9866 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9867
9868 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9869 and f19.
9870 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9871
9872 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9873 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9874 Remove enumerators.
9875
9876 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9877 Check if FACE_FROM_ID returns NULL.
9878
98792008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9880
9881 * w32inevt.c (change_frame_size): Remove extern declaration.
9882 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9883 change_frame_size.
9884
98852008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9886
9887 * getloadavg.c: Revert last change (2008-07-15).
9888
98892008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9890
9891 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9892 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9893 from configure.
9894
98952008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9896
9897 * s/sol2.h:
9898 * s/sol2-4.h: Reorganize conditionals.
9899
9900 * ecrt0.c: Remove code depending on m68000, not used anymore.
9901
9902 * fns.c (hash_remove): Make static.
9903 * lisp.h (hash_remove): Don't prototype.
9904
9905 * m/ibmrs6000.h:
9906 * m/ibms390x.h:
9907 * m/macppc.h: Remove boilerplate comments.
9908
9909 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9910 Solaris, which does not need them.
9911
9912 * m/vax.h: Remove comments about unsupported systems.
9913
9914 * s/darwin.h: Reorganize ifdefs.
9915
99162008-07-17 Andreas Schwab <schwab@suse.de>
9917
9918 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9919
99202008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9921
9922 Use SDATA. Follow coding convention of placing operators at
9923 beginning of next line rather than end of previous line, and placing
9924 spaces around infix operators.
9925
9926 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9927 in case it was defined already.
9928 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9929 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9930 ns_default.
9931 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9932 Lisp_Objects.
9933 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9934 (ns_defined_color, ns_color_to_lisp): Declare.
9935 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9936 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9937 it's accepted even with USE_LISP_UNION_TYPE.
9938 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9939 (update_frame_tool_bar): Remove apparently obsolete tests for
9940 non-integerness of f->tool_bar_lines.
9941 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9942 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9943 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9944 (nsfont_open): Don't confuse NULL for Qnil.
9945 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9946 * menu.h (find_and_call_menu_selection):
9947 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9948 (find_and_return_menu_selection): Always return something.
9949 * frame.h: Include dispextern.h for Display_Info.
9950 (display_x_get_resource): Declare.
9951
99522008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9953
9954 * syntax.c: Remove stdio.h include accidentally introduced in
9955 Emacs.app commit.
9956 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9957 NS_IMPL_COCOA.
9958 * keyboard.c (handle_async_input, input_available_signal): Remove
9959 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9960
99612008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9962
9963 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9964 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9965 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9966 Use SDATA.
9967
9968 * keymap.c: Remove all NS-specific code.
9969 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9970 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9971 where_is_preferred_modifier, return a different value depending on how
9972 preferred is the binding.
9973 (where_is_internal): Adjust accordingly.
9974 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9975 Adjust to new preferred_sequence_p.
9976 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9977 * keyboard.c (parse_solitary_modifier): Not static any more.
9978 * keyboard.h (parse_solitary_modifier): Declare.
9979
99802008-07-16 Andreas Schwab <schwab@suse.de>
9981
9982 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9983 of easymenu.
9984
99852008-07-16 Chong Yidong <cyd@stupidchicken.com>
9986
9987 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9988 that we don't move off the line.
9989
99902008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9991
9992 * keyboard.c (Qsuper): Remove.
9993 (parse_menu_item): Don't call where_is_internal specially for NS.
9994
99952008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9996
9997 * s/gnu-linux.h: Remove boilerplate comments.
9998
9999 * m/alpha.h (__ELF__): Consolidate conditions.
10000
10001 * m/m68k.h (linux): Use GNU_LINUX instead.
10002 Remove boilerplate comments.
10003
10004 * m/intel386.h: Undo refactoring from previous change.
10005 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10006 too, remove dead code.
10007 (linux): Use GNU_LINUX instead.
10008
100092008-07-16 Jason Rumney <jasonr@gnu.org>
10010
10011 * w32gui.h: Repeat 26 June changes lost by last change.
10012
100132008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10014
10015 * systty.h: Remove code for Aix on 386, unsupported platform.
10016
10017 * s/ms-w32.h: Remove boilerplate comments.
10018 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10019
10020 * s/gnu-linux.h (TERM): Remove support.
10021 (HAVE_SYSVIPC): Remove, unused.
10022 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10023 for this system.
10024
10025 * process.c: Remove support for IRIS, unused.
10026 Remove support for TERM, not relevant anymore.
10027
10028 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10029 used with the definition.
10030
10031 * s/aix4-2.h (static): Do not undef.
10032
10033 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10034 only used on Aix.
10035 (HAVE_SYSVIPC): Remove, unused.
10036
10037 * m/hp800.h (CANNOT_DUMP): Do not undef.
10038
10039 * m/alpha.h: Fix comment.
10040
10041 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10042 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10043 used by this configuration.
10044 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10045 * unexec.c: Remove code depending on HPUX and
10046 USG_SHARED_LIBRARIES, not used with this file. Remove code
10047 depending on IRIS, unused. Remove if 0-ed code.
10048
10049 * s/template.h: Remove comments about static.
10050
10051 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10052 Remove if 0-ed code.
10053 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10054 were the same as the default.
10055 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10056 Remove boilerplate comments.
10057 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10058 (HAVE_SYSVIPC): Remove, unused.
10059 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10060
10061 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10062 Remove boilerplate comments.
10063 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10064 Remove boilerplate comments.
10065 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10066 Remove boilerplate comments.
10067 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10068
10069 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10070 USG systems which do not use DATA_SEG_BITS.
10071 Refactor code. Remove boilerplate comments.
10072
10073 * m/ibms390.h:
10074 * m/m68k.h:
10075 * s/bsd-common.h:
10076 * s/cygwin.h:
10077 * s/darwin.h:
10078 * s/freebsd.h:
10079 * s/gnu.h:
10080 * s/msdos.h: Remove boilerplate comments.
10081
10082 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10083 do not use this file.
aac0c6e3
MR
10084 (IRIS_4D): Remove, unused.
10085
10086 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10087 do not use this file.
aac0c6e3
MR
10088 (SIGN_EXTEND_CHAR):
10089 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10090 * unexmips.c: Remove file, unused.
10091
10092 * editfns.c (Fuser_full_name): Replace the only use of
10093 USER_FULL_NAME with its value.
10094 * config.in: Regenerate.
10095
100962008-07-16 David Reitter <david.reitter@gmail.com>
10097
10098 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10099 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10100
101012008-07-16 Glenn Morris <rgm@gnu.org>
10102
10103 * emacs.c (system-type): Doc fix.
10104
101052008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10106
10107 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10108 If the cache doesn't work, let's fix it, rather than work around it.
10109
101102008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10111
10112 * Makefile.in: Correct additions for nsfont.o in last commit.
10113 * nsfont.m: New file (forgot last commit).
10114
101152008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10116
10117 * callproc.c (set_initial_environment): Initialize
10118 Vprocess_environment under CANNOT_DUMP (fixes crash when
10119 batch-compiling for bootstrap).
10120
101212008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10122 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10123
10124 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10125 fix crash due to different init order.
10126
101272008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10128
10129 Changes and additions for NeXTstep windowing system (Cocoa and
10130 GNUstep) support.
10131
10132 * Makefile.in:
10133 * config.in: Support defines and build commands for NS port.
10134 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10135 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10136 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10137 windowing.
10138 (struct face): Add synth_ital field.
10139 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10140 (init_display): Initialize Vinitial_window_system to "ns" when so
10141 compiled.
10142 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10143 (display_arg): Use under NS.
10144 (main): Under NS, allocate autorelease pool and handle command line
10145 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10146 (standard_args): Add NS-specific args.
10147 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10148 * font.c (DEFAULT_ENCODING): New variable.
10149 (font_find_for_lface): Use it.
10150 (syms_of_font): Load syms_of_nsfont under NS.
10151 * font.h: Declare nsfont_driver when compiled under NS.
10152 * fontset.c: When compiling under NS, include nsterm.h.
10153 (fontset_from_font): Autoconstruct fontset under NS.
10154 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10155 symbol, document and use it.
10156 (do_switch_frame): When for_deletion under Cocoa, add
10157 Fraise_frame(Qnil).
10158 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10159 (x_get_arg): Allow "yes" and "no" as boolean values.
10160 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10161 Qright under Cocoa.
10162 (focus-follows-mouse): Default to 0 under NS.
10163 * frame.h (enum output_method): Add output_ns.
10164 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10165 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10166 (FRAME_WINDOW_P): NS-specific definition.
10167 * fringe.c (max_used_fringe_bitmap): Make public.
10168 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10169 (getloadavg): Use NeXT code under descendant OS's.
10170 * image.c (includes and header section, x_create_bitmap_from_data)
10171 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10172 (image_background_transparent, x_clear_image_1)
10173 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10174 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10175 (x_to_xcolors, x_from_xcolors, x_disable_image)
10176 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10177 other GUIs, including XPM support using code originally written for
10178 Carbon GUI.
10179 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10180 using NS API.
10181 (image_ascent): Use font metrics macros instead of direct struct field
10182 access.
10183 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10184 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10185 Also, handle NS as GTK for menu bar purposes.
10186 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10187 toolkit where they differ.
10188 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10189 use cachelist, still needed under NS.
10190 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10191 (struct widget_value): Define it here for menu.c.
10192 * keymap.c (includes): Include modifier internals.
10193 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10194 NS.
10195 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10196 support for preferring sequences using certain modifiers, specified by
10197 the FIRSTONLY argument.
10198 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10199 under NS GNUstep implementation.
10200 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10201 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10202 * menu.c: Include nsterm.h under NS.
10203 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10204 (free_menubar_widget_tree_value, update_submenu_strings)
10205 (find_and_call_menu_selection): Treat NS as X and NT.
10206 (find_and_return_menu_selection): New function, used for popup menus.
10207 * nsgui.h:
10208 * nsterm.h:
10209 * nsfns.m:
10210 * nsimage.m:
10211 * nsmenu.m:
10212 * nsselect.m:
10213 * nsterm.m: New files.
10214 * process.c (wait_reading_process_output): Under NS, call ns_select()
10215 instead of plain select().
10216 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10217 beginning of buffer.
10218 * sysselect.h (init_process): Rename when compiling under Cocoa to
10219 avoid name conflict.
10220 * termhooks.h (display_info): Add ns_display_info to union.
10221 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10222 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10223 COCOA environment.
10224 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10225 unexec() signature. (Note, this will dump, but the resulting file
10226 crashes; unexosx is used instead; keeping around for reference and
10227 possible aid in getting dump working under GNUstep.)
10228 * w32gui.h (button_type, widget_value): Remove definitions (now in
10229 keyboard.h).
10230 * window.c: Include nsterm.h when compiling under NS.
10231 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10232 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10233 other GUI windowing systems.
10234 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10235 GTK.
10236 (x_consider_frame_title): Under NS, set icon type and frame
10237 modified-state indicator; use ns_set_name_as_filename() when using
10238 formatted title.
10239 (update_window_cursor): Make public when compiling under NS.
10240 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10241 (hourglass_atimer, Vhourglass_delay
10242 * xfaces.c (header section, init_frame_faces, clear_font_table)
10243 (defined_color, unload_color, x_face_list_fonts)
10244 (prepare_face_for_display): Add NS support parallel to other GUIs.
10245 Emulate GCs like other non-X GUIs.
10246 (split_font_name): Don't lowercase font name under NS.
10247 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10248 under NS.
10249 * s/darwin.h: Add support for compilation under NS.
10250
102512008-07-15 Jason Rumney <jasonr@gnu.org>
10252
10253 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10254 (w32_show_hourglass): Rename from show_hourglass.
10255 (w32_hide_hourglass): Rename from hide_hourglass.
10256 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10257 (Vhourglass_delay): Declare extern.
10258 (hourglass_started): Remove.
10259
10260 * xdisp.c (Vhourglass_delay): Remove static.
10261 (hourglass_started, start_hourglass, cancel_hourglass):
10262 Don't include these versions on WINDOWSNT.
10263
102642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10265
10266 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10267 variables (formerly in xfns.c).
10268 (show_hourglass, hide_hourglass): New prototypes (same).
10269 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10270 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10271 in xfns.c).
10272 (syms_of_xdisp): Declare/initialize display-hourglass,
10273 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10274 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10275 formerly in xfns.c.
10276 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10277 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10278 (start_hourglass, cancel_hourglass): Remove.
10279 (show_hourglass, hide_hourglass): Remove prototypes and static
10280 modifiers.
10281 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10282 hourglass_atimer, hourglass_shown_p declaration/initialization.
10283 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10284 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10285 (start_hourglass, cancel_hourglass): Remove.
10286 (show_hourglass, hide_hourglass): Remove prototypes and static
10287 modifiers.
10288 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10289 hourglass_atimer, hourglass_shown_p declaration/initialization.
10290 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10291 (DEFAULT_HOURGLASS_DELAY): Remove.
10292 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10293 hourglass_shown_p declaration/initialization.
10294
102952008-07-14 Jason Rumney <jasonr@gnu.org>
10296
10297 * w32fns.c (w32_get_arg): Remove wrapper function.
10298 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10299 directly.
10300 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10301
103022008-07-14 Kenichi Handa <handa@m17n.org>
10303
10304 * xfont.c (xfont_open): Add workaround for X's bug.
10305
103062008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10307
10308 * fontset.c: Include <stdio.h> unconditionally.
10309
103102008-07-13 Michael Albinus <michael.albinus@gmx.de>
10311
10312 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10313 for filtering.
10314
103152008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10316
10317 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10318
10319 * m/macppc.h:
10320 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10321
10322 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10323 (SPECIAL_EMACS_INT):
10324 * m/ia64.h (SPECIAL_EMACS_INT):
10325 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10326 * s/gnu.h (NLIST_STRUCT):
10327 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10328 * s/gnu-linux.h (LINUX):
10329 * s/msdos.h (HAVE_FACES):
10330 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10331
10332 * systty.h:
10333 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10334 anymore.
10335
103362008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10337
10338 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10339 always defined as int.
10340
10341 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10342 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10343 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10344 * s/freebsd.h (HAVE_WAIT_HEADER):
10345 * s/bsd-common.h (HAVE_UNION_WAIT):
10346 * s/aix4-2.h (HAVE_WAIT_HEADER):
10347 * m/mips.h (HAVE_UNION_WAIT):
10348 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10349 (COFF, static): Do not define, they are undefined later in the file.
10350
10351 * process.c (update_status): Don't use a union.
10352 (status_convert):
10353 (sigchld_handler): Use int instead of WAITTYPE.
10354
103552008-07-12 Chong Yidong <cyd@stupidchicken.com>
10356
10357 * indent.c (Fvertical_motion): Restore hscroll before moving to
10358 goal column.
10359
103602008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10361
10362 * lisp.h: Remove left over code.
10363
103642008-07-11 Andreas Schwab <schwab@suse.de>
10365
10366 * lisp.h: Fix logic in last change.
10367
10368 * menu.h: New file.
10369 * menu.c: Include it.
10370 * xmenu.c: Likewise.
10371 * Makefile.in: Update dependencies.
10372
103732008-07-11 Kenichi Handa <handa@m17n.org>
10374
10375 * fontset.c (fontset_from_font): Cancel the previous change.
10376
103772008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10378
10379 * lisp.h:
10380 * w32heap.c:
10381 * emacs.c:
10382 * alloc.c: Replace all references of NO_UNION_TYPE with
10383 USE_LISP_UNION_TYPE.
10384
10385 * m/xtensa.h (NO_UNION_TYPE):
10386 * m/vax.h (NO_UNION_TYPE):
10387 * m/template.h (NO_UNION_TYPE):
10388 * m/sparc.h (NO_UNION_TYPE):
10389 * m/mips.h (NO_UNION_TYPE):
10390 * m/macppc.h (NO_UNION_TYPE):
10391 * m/m68k.h (NO_UNION_TYPE):
10392 * m/iris4d.h (NO_UNION_TYPE):
10393 * m/intel386.h (NO_UNION_TYPE):
10394 * m/ibms390x.h (NO_UNION_TYPE):
10395 * m/ibms390.h (NO_UNION_TYPE):
10396 * m/ibmrs6000.h (NO_UNION_TYPE):
10397 * m/ia64.h (NO_UNION_TYPE):
10398 * m/hp800.h (NO_UNION_TYPE):
10399 * m/arm.h (NO_UNION_TYPE):
10400 * m/amdx86-64.h (NO_UNION_TYPE):
10401 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10402 defining it the same.
10403
104042008-07-10 Chong Yidong <cyd@stupidchicken.com>
10405
10406 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10407
104082008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10409
10410 * fileio.c:
50426a04 10411 * sysdep.c:
aac0c6e3
MR
10412 * systty.h:
10413 * m/ibmrs6000.h:
10414 * m/iris4d.h:
10415 * s/aix4-2.h:
10416 * s/freebsd.h:
10417 * s/gnu-linux.h:
10418 * s/hpux10-20.h:
10419 * s/hpux11.h:
10420 * s/netbsd.h:
10421 * s/sol2-3.h:
10422 * s/sol2-4.h:
10423 * s/sol2.h:
10424 * s/usg5-4.h:
10425 * s/vms.h: Remove references to unused variables.
10426
104272008-07-10 Andreas Schwab <schwab@suse.de>
10428
10429 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10430 pattern before matching the generic family.
10431
104322008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10433
10434 * unexec.c:
10435 * s/vms.h:
10436 * s/usg5-4-2.h:
10437 * s/sol2-5.h:
10438 * s/freebsd.h:
10439 * s/darwin.h: Remove dead code.
10440
10441 * m/template.h:
10442 * m/sparc.h:
10443 * m/mips.h:
10444 * m/m68k.h:
10445 * m/iris4d.h:
10446 * m/intel386.h:
10447 * m/ibms390x.h:
10448 * m/ibms390.h:
10449 * m/ia64.h:
10450 * m/hp800.h:
10451 * m/arm.h:
10452 * m/amdx86-64.h: Remove dead code and references to unused
10453 and compiler defined symbols.
10454
10455 * unexmips.c:
10456 * unexelf.c: Remove references to desupported systems.
10457
10458 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10459
10460 * m/powermac.h: Remove boilerplate comments.
10461 (NO_REMAP): Remove unused definition.
10462
10463 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10464 define them.
10465
104662008-07-10 Kenichi Handa <handa@m17n.org>
10467
10468 * xfont.c (xfont_open): Log the reason of failure.
10469
104702008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10471
10472 * fontset.c (fontset_get_font_group):
10473 * font.c (font_check_otf): Specify argument types.
10474
104752008-07-09 Kenichi Handa <handa@m17n.org>
10476
10477 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10478 non-ASCII char is found.
10479
10480 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10481 (reorder_font_vector): Change the arg preferred_family to font.
10482 Prefer the spec matching with font.
10483 (fontset_get_font_group): New function.
10484 (fontset_find_font): Change the format of an element of a realized
10485 fontset. Use fontset_get_font_group.
10486 (fontset_font): Try the current fontset, the default fontset, the
10487 fallbacks of the current fontset, and the fallbacks of the default
10488 fontset in this order.
10489 (face_for_char): Delete the shortcut to use the current font.
10490 (fontset_from_font): Don't set fonts for Latin in the fontset.
10491
10492 * font.h (font_make_object, font_match_p): Adjust prototypes.
10493
10494 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10495
10496 * font.c (font_make_object): New arg entity and pixelsize.
10497 (font_check_otf_features, font_check_otf): New functions.
10498 (font_match_p): Check :lang, :script, and :otf properties.
10499
10500 * xfont.c (xfont_open): Adjust it for the change of
10501 font_make_object.
10502 (xfont_text_extents): Fix initial setting of metrics.
10503
10504 * ftfont.c (struct ftfont_info): New member index, delete member
10505 fc_charset_idx. Make the member order compatible with struct
10506 xftfont_info.
10507 (fc_charset_table): Change charset names to registry names.
10508 (ftfont_pattern_entity): Delete the args registry and
10509 fc_charset_idx. Change the value of :font-entity property
10510 to (FONTNAME . INDEX). Always set :registry property to
10511 `iso10646-1'.
10512 (struct ftfont_cache_data): New struct.
10513 (ftfont_lookup_cache): New arg for_face.
10514 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10515 (ftfont_driver): Set the member otf_capability.
10516 (ftfont_get_charset): Adjust it for the change of
10517 fc_charset_table.
10518 (OTF_TAG_SYM): New macro.
10519 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10520 for the change of fc_charset_table.
10521 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10522 ftfont_pattern_entity. Add FC_INDEX to objset.
10523 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10524 and ftfont_pattern_entity.
10525 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10526 font_make_object, struct ftfont_info.
10527 (ftfont_has_char): Use ftfont_get_fc_charset.
10528 (ftfont_otf_features, ftfont_otf_capability): New functions.
10529 (ftfont_shape): Use ftfont_get_otf.
10530 (ftfont_text_extents): Fix initial setting of metrics.
10531
10532 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10533 member order compatible with struct ftfont_info.
10534 (xftfont_open): Add FC_CHARSET to the pattern. Set
10535 xftfont_info->ft_size. Don't unlock the face. Check BDF
10536 properties if appropriate.
10537 (xftfont_close): Unlock the face.
10538 (xftfont_anchor_point, xftfont_shape): Deleted.
10539 (syms_of_xftfont): Don't set members anchor_point and shape of
10540 xftfont_driver.
10541
10542 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10543 font_make_object.
10544
10545 * w32font.c (w32font_open): Adjust it for the change of
10546 font_make_object.
10547 (w32font_open_internal): Don't set properties of font_object here.
10548
105492008-07-08 Chong Yidong <cyd@stupidchicken.com>
10550
10551 * macfns.c (x_create_tip_frame):
10552 * w32fns.c (x_create_tip_frame):
10553 * xfns.c (x_create_tip_frame): Pass parameter argument to
10554 face-set-after-frame-default.
10555
10556 * xfaces.c (Finternal_merge_in_global_face): Save merged
10557 attributes for the default face back into the face vector.
10558
105592008-07-08 Andreas Schwab <schwab@suse.de>
10560
10561 * fontset.h: Declare fontset_from_font. Don't declare
10562 new_fontset_from_font and fontset_from_font_name.
10563 * xterm.c: Include "fontset.h".
10564 * Makefile.in (xterm.o): Update dependencies.
10565
105662008-07-08 Glenn Morris <rgm@gnu.org>
10567
10568 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10569 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10570
105712008-07-07 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10574 (x_set_frame_parameters): Don't bind it.
10575
105762008-07-07 Juanma Barranquero <lekktu@gmail.com>
10577
10578 * w32fns.c (map_w32_filename): Declare extern.
10579
105802008-07-07 Jason Rumney <jasonr@gnu.org>
10581
10582 * w32term.c (WS_EX_LAYERED): Define if not already.
10583
105842008-07-06 Chong Yidong <cyd@stupidchicken.com>
10585
10586 * xfaces.c (set_font_frame_param): Don't try to set the font
10587 parameter if it is still unspecified in the lface.
10588
105892008-07-05 Chong Yidong <cyd@stupidchicken.com>
10590
10591 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10592 face if it didn't already exist.
10593
10594 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10595
105962008-07-05 Andreas Schwab <schwab@suse.de>
10597
10598 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10599
106002008-07-05 Chong Yidong <cyd@stupidchicken.com>
10601
10602 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10603 word-wrapping.
10604 (IT_DISPLAYING_WHITESPACE): New macro.
10605 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10606 when word-wrapping. Simplify word-wrapping logic. Use correct
10607 pixel positions when saving copies of the iterator.
10608 (display_line): Use proper wrap point if the last character on a
10609 line was preceded by whitespace.
10610
106112008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10612
10613 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10614
106152008-07-04 Kenichi Handa <handa@m17n.org>
10616
10617 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10618
10619 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10620
106212008-07-02 Jason Rumney <jasonr@gnu.org>
10622
10623 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10624 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10625
10626 * xdisp.c (next_element_from_display_vector): Move assignment out
10627 of if statement.
10628
106292008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10630
10631 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10632
10633 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10634 (syms_of_fileio): Initialize and export them.
10635 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10636
10637 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10638 (Fsystem_move_file_to_trash): New function.
10639 (syms_of_w32fns): Export it to lisp.
10640
106412008-07-01 Jason Rumney <jasonr@gnu.org>
10642
10643 * w32font.c (w32font_text_extents): Don't count overhang as part
10644 of width.
10645
106462008-06-30 Miles Bader <miles@gnu.org>
10647
10648 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10649 Add `avoid_cursor_p' field.
10650
10651 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10652 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10653 (append_glyph, append_composite_glyph, produce_image_glyph)
10654 (append_stretch_glyph): Initialize avoid_cursor_p.
10655 (get_it_property): Rename from `get_line_height_property'.
10656 (x_produce_glyphs): Use get_it_property.
10657 (handle_line_prefix, push_display_prop): New functions.
10658 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10659 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10660 New variables.
10661 (syms_of_xdisp): Initialize them.
10662
106632008-06-30 Kenichi Handa <handa@m17n.org>
10664
10665 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10666 XftDefaultSubstitute (they are called in XftFontMatch).
10667 (xftfont_open): Fix args to ftfont_font_format.
10668
10669 * ftfont.c (fc_charset_table): New member lang.
10670 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10671 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10672 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10673 (ftfont_open): Fix args to ftfont_font_format.
10674 (ftfont_font_format): New arg filename.
10675
106762008-06-30 Chong Yidong <cyd@stupidchicken.com>
10677
10678 * xfaces.c (Finternal_merge_in_global_face): If default face was
10679 modified, realize it again. Update the font face attribute.
10680
106812008-06-29 Jason Rumney <jasonr@gnu.org>
10682
10683 * w32term.c (x_set_frame_alpha): Fix logic.
10684
106852008-06-29 Kenichi Handa <handa@m17n.org>
10686
10687 * fontset.c (Finternal_char_font): Return font-object instead of
10688 font-name.
10689
10690 * composite.c (get_composition_id): Fix the width calculation for TAB.
10691
106922008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10693
10694 * indent.c (Fvertical_motion): Properly handle float column arg.
10695
106962008-06-28 Jason Rumney <jasonr@gnu.org>
10697
10698 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10699 (pfnSetLayeredWindowAttributes): New function pointer.
10700 (w32_initialize): Initialize it when supported.
10701 (x_set_frame_alpha): New function.
10702
10703 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10704 (w32_frame_parm_handlers): Set alpha handler.
10705
10706 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10707
107082008-06-27 Jason Rumney <jasonr@gnu.org>
10709
10710 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10711 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10712 (w32_to_x_charset, x_to_w32_charset)
10713 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10714 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10715 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10716 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10717 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10718 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10719 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10720 (Qw32_charset_unicode): Remove.
10721 (syms_of_w32fns): Update for above changes.
10722
10723 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10724 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10725 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10726 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10727 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10728 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10729 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10730 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10731 (syms_of_w32font): Update for above changes.
10732
107332008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10734
10735 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10736 removed #if.
10737 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10738
107392008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 10740 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
10741
10742 * makefile.w32-in (LOCAL_FLAGS):
10743 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10744
10745 * sysdep.c (_spawnlp, _getpid):
10746 Declare with explicit _cdecl instead of _CRTAPI1.
10747
10748 * editfns.c (Fget_internal_run_time):
10749 Check for WINDOWSNT with #ifdef, not #if.
10750
107512008-06-26 Jason Rumney <jasonr@gnu.org>
10752
10753 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10754
10755 * w32term.c (x_draw_glyph_string_foreground)
10756 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10757 Use FONT_HANDLE macro.
10758 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10759
10760 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10761 (uniscribe_encode_char): Use FONT_HANDLE macro.
10762
10763 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10764 (w32font_text_extents): Use precast w32_font.
10765 (w32font_close): Free cached metrics.
10766 (w32font_open_internal): Allocate space for name on stack.
10767
107682008-06-26 Chong Yidong <cyd@stupidchicken.com>
10769
10770 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10771
107722008-06-26 Jason Rumney <jasonr@gnu.org>
10773
10774 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10775 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10776
107772008-06-26 Juanma Barranquero <lekktu@gmail.com>
10778
10779 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10780
107812008-06-26 Jason Rumney <jasonr@gnu.org>
10782
10783 * w32bdf.c, w32bdf.h: Remove obsolete files.
10784
10785 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10786
10787 * w32gui.h: Don't include w32bdf.h.
10788 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10789 Remove obsolete font support.
10790
10791 * w32font.h (struct w32font_info): Remove compat_w32_font.
10792 Add hfont member.
10793 (FONT_COMPAT): Remove obsolete macro.
10794
10795 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10796 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10797 (w32font_open_internal): Remove compat code. Set new hfont member.
10798 (Fx_select_font): Use new hfont member.
10799
10800 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10801 (uniscribe_encode_char): Use new hfont member.
10802
10803 * w32term.c (x_draw_glyph_string_foreground)
10804 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10805 (x_draw_glyph_string): Use metrics in w32font_info.
10806
108072008-06-26 Kenichi Handa <handa@m17n.org>
10808
10809 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10810
108112008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10812
10813 * unexnext.c:
10814 * m/ews4800.h:
10815 * m/hp9000s300.h:
10816 * m/ibm370aix.h:
10817 * m/mips-siemens.h:
10818 * m/ncr386.h:
10819 * m/next.h:
10820 * m/pmax.h:
10821 * m/powerpcle.h:
10822 * m/tandem-s2.h:
10823 * s/386bsd.h:
10824 * s/bsd386.h:
10825 * s/bsd4-1.h:
10826 * s/bsd4-2.h:
10827 * s/bsdos2-1.h:
10828 * s/bsdos2.h:
10829 * s/bsdos3.h:
10830 * s/bsdos4.h:
10831 * s/nextstep.h:
10832 * s/ultrix4-3.h:
10833 * s/usg5-0.h:
10834 * s/usg5-2-2.h:
10835 * s/usg5-2.h:
10836 * s/usg5-4-3.h:
10837 * s/ux4800.h:
10838 * s/uxpds.h:
10839 * s/uxpv.h: Remove support for obsolete systems.
10840 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10841 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10842 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10843 Remove, insert contents in s/aix4-2.h.
10844 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10845 * s/bsd4-3.h: Rename to ...
10846 * s/bsd-common.h: ... this.
10847 * data.c:
10848 * doc.c:
10849 * ecrt0.c:
10850 * emacs.c:
10851 * fileio.c:
10852 * floatfns.c:
10853 * keyboard.c:
10854 * mem-limits.h:
10855 * print.c:
10856 * process.c:
10857 * sysdep.c:
10858 * syssignal.h:
10859 * systty.h:
10860 * syswait.h:
10861 * term.c:
10862 * unexec.c:
10863 * unexelf.c:
10864 * unexhp9k800.c:
10865 * m/hp800.h:
10866 * m/ibmrs6000.h:
10867 * m/mips.h:
10868 * m/vax.h:
10869 * s/darwin.h:
10870 * s/freebsd.h:
10871 * s/gnu.h:
10872 * s/ms-w32.h:
10873 * s/msdos.h:
10874 * s/netbsd.h:
10875 * s/template.h: Remove references to obsolete variables.
10876
10877 * Makefile.in: Add dependencies for all unexec files.
10878 (admindir): Remove unused variable.
10879 (UNEXEC_SRC): Remove references.
10880
108812008-06-25 Chong Yidong <cyd@stupidchicken.com>
10882
10883 * xfns.c (x_default_font_parameter): If Xft is available, first
10884 try Monospace-12 for the default font.
10885
108862008-06-25 Jason Rumney <jasonr@gnu.org>
10887
10888 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10889
108902008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10891
10892 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10893
10894 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10895
108962008-06-25 Juanma Barranquero <lekktu@gmail.com>
10897
10898 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10899 <scroll-conservatively>: Fix typo in docstring.
10900
10901 * xselect.c (Fx_send_client_event): Doc fix.
10902
109032008-06-25 Kenichi Handa <handa@m17n.org>
10904
10905 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10906
10907 * font.c (font_parse_fcname): Remove unused variables.
10908 (font_sort_entites): Delete the arg SPEC. Caller changed.
10909 Fix for the case of ! best_only.
10910 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10911
10912 * lisp.h (Fstring_to_unibyte): EXFUN it.
10913
10914 * character.h (str_to_unibyte): Extern it.
10915
10916 * character.c (str_to_unibyte): New function.
10917
10918 * fns.c (Fstring_to_unibyte): New function.
10919 (syms_of_fns): Defsubr it.
10920
109212008-06-24 Kenichi Handa <handa@m17n.org>
10922
10923 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10924 DPI too.
10925 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10926
109272008-06-24 Andreas Schwab <schwab@suse.de>
10928
10929 * Makefile.in (${lispsource}loaddefs.el): Rename from
10930 ../lisp/loaddefs.el.
10931 (bootstrap-clean): Do what distclean does but don't remove
10932 Makefile.
10933 (distclean): Depend on bootstrap-clean and remove Makefile.
10934
109352008-06-24 Chong Yidong <cyd@stupidchicken.com>
10936
10937 * buffer.h (struct buffer): New member word_wrap.
10938
10939 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10940 word-wrap.
10941 (init_buffer_once): Initialize them.
10942
10943 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10944 line_wrap enum possessing three possible values.
10945
10946 * termopts.h: Replace truncate_partial_width_windows with
10947 Vtruncate_partial_width_windows.
10948
10949 * dispnew.c (direct_output_for_insert): Avoid direct output when
10950 inserting a space with word wrap on.
10951
10952 * indent.c (compute_motion): Obey integer values of
10953 truncate-partial-width-windows.
10954
10955 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10956 replacing truncate_partial_width_windows.
10957 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10958 truncate only if the window width is below that integer.
10959 (start_display, resize_mini_window, produce_stretch_glyph)
10960 (display_string, move_it_in_display_line_to): Use line_wrap.
10961 (back_to_previous_visible_line_start, reseat_1): Reset
10962 string_from_display_prop_p.
10963 (display_line): Extend default face to end of line when wrapping.
10964
109652008-06-24 Kim F. Storm <storm@cua.dk>
10966
10967 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10968 to wrap continued lines at word boundaries.
10969
109702008-06-24 Jason Rumney <jasonr@gnu.org>
10971
10972 * font.c (Ffont_face_attributes): Multiply pixel size before point
10973 conversion to avoid multiplying rounding error.
10974
109752008-06-23 Jason Rumney <jasonr@gnu.org>
10976
10977 * w32term.c (x_draw_glyph_string_background)
10978 (x_draw_glyph_string): Remove old bdf font code.
10979
10980 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10981
109822008-06-22 Kenichi Handa <handa@m17n.org>
10983
10984 * font.c (font_find_for_lface): Try the adstyle specified in
10985 the property of LFACE_FONT of LFACE (if any).
10986
109872008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 10988 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
10989
10990 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10991
109922008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10993
10994 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10995 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10996 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10997 (witness-emacs): Remove.
10998 (lisp, shortlisp): Move loaddefs.el earlier.
10999 (mostlyclean): Forget about witness-emacs.
11000
110012008-06-22 Glenn Morris <rgm@gnu.org>
11002
11003 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11004 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11005
110062008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11007
11008 * Makefile.in (PRECOMP): Remove.
11009 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11010 (witness-emacs): Run `compile-first'.
11011 (.el.elc): Use the new compile-onefile target.
11012
110132008-06-21 Kenichi Handa <handa@m17n.org>
11014
11015 * xftfont.c (xftfont_open): Handle QCembolden only when
11016 FC_EMBOLDEN is defined.
11017
110182008-06-21 Andreas Schwab <schwab@suse.de>
11019
11020 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11021 (.el.elc): Likewise.
11022
110232008-06-21 Miles Bader <miles@gnu.org>
11024
11025 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11026 build dir, not the lisp source dir.
11027
110282008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11029
11030 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11031 (bootstrapclean): Remove.
11032 (.el.elc): New rule.
11033 (PRECOMP): New var.
11034 (../lisp/subdirs.el): Remove.
11035 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11036 (witness-emacs): New target.
11037 (mostlyclean): Remove witness-emacs as well.
11038 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11039 Add witness-emacs dependency.
11040
110412008-06-20 Chong Yidong <cyd@stupidchicken.com>
11042
11043 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11044 defined by the font.
11045
110462008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11047
11048 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11049 (bootstrap-clean): New target that keeps TAGS around.
11050 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11051 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11052
110532008-06-20 Jason Rumney <jasonr@gnu.org>
11054
11055 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11056 Remove obsolete font code.
11057
11058 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11059 to determine language support.
11060
110612008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11062
11063 * sysdep.c (cfsetspeed): New fun extracted from the code.
11064 (cfmakeraw): Move before first use.
11065
110662008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11067
11068 * sysdep.c (cfmakeraw): Provide fallback implementation.
11069 (serial_configure): Provide fallback implementation of cfsetspeed.
11070
110712008-06-20 Kenichi Handa <handa@m17n.org>
11072
11073 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11074 the pattern.
11075
11076 * fontset.c (fontset_from_font): Copy font_spec before changing
11077 the elements.
11078
11079 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11080
110812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11082
11083 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11084 for explicit `font' parameters.
11085
11086 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11087
110882008-06-19 Kenichi Handa <handa@m17n.org>
11089
11090 * frame.c: Include <ctype.h>.
11091 (x_set_font_backend): Allow spacing characters in the X resource
11092 for FontBackend.
11093
110942008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11095
11096 * w32fns.c, xfns.c (Qfont_param): New var.
11097 (syms_of_w32fns): Initialize it.
11098 (x_default_font_parameter): Record explicit `font' into
11099 `font-parameter'.
11100
111012008-06-18 Kenichi Handa <handa@m17n.org>
11102
11103 * font.c (font_parse_xlfd): Fix previous change.
11104 (font_parse_fcname): Don't use :fc-unknown-spec.
11105 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11106 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11107 (font_add_log): Prepend the driver name to the resulting fonts.
11108
11109 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11110 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11111 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11112
11113 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11114 (QCembolden): New variables.
11115 (syms_of_xftfont): DEFSYM them.
11116 (xftfont_open): Call XftFontMatch. Don't trust the result of
11117 XftTextExtents8 if the pixel_size is less than 5.
11118
111192008-06-18 Andreas Schwab <schwab@suse.de>
11120
11121 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11122 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11123
111242008-06-18 Jason Rumney <jasonr@gnu.org>
11125
11126 * w32font.c (w32font_list, w32font_match): Add logging.
11127
11128 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11129
111302008-06-17 Chong Yidong <cyd@stupidchicken.com>
11131
11132 * font.c (font_parse_fcname): Store divider characters for
11133 unknown-spec list. For known key symbols, intern using correct
11134 symbol name.
11135
111362008-06-17 Kenichi Handa <handa@m17n.org>
11137
11138 * xfaces.c (realize_default_face): If the frame is not on window
11139 system, set the fontset of face to nil.
11140
111412008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11142
11143 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11144
111452008-06-16 Juanma Barranquero <lekktu@gmail.com>
11146
11147 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11148 (build_font_name_from_vector): Delete externs.
11149
11150 * xfaces.c (struct font_name): Don't declare.
11151
111522008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11153
11154 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11155
111562008-06-16 Chong Yidong <cyd@stupidchicken.com>
11157
11158 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11159
111602008-06-16 Juanma Barranquero <lekktu@gmail.com>
11161
11162 * font.c (Ffont_spec): Fix usage in docstring.
11163 (Ffont_face_attributes): Doc fix.
11164
111652008-06-16 Andreas Schwab <schwab@suse.de>
11166
11167 * font.c (Ffont_face_attributes): Fix definition.
11168
111692008-06-16 Jason Rumney <jasonr@gnu.org>
11170
11171 * font.h (font_style_symbolic_from_value): Remove.
11172
11173 * font.c (font_style_symbolic_from_value): Remove.
11174 (font_style_symbolic): Revert to pre 2008-06-13 version.
11175
11176 * w32font.c (w32_to_fc_weight): New function.
11177 (w32font_full_name, logfont_to_fcname): Use it.
11178
111792008-06-16 Kenichi Handa <handa@m17n.org>
11180
11181 * font.c (font_check_object): Delete it.
11182 (font_clear_cache): Check if a font-object is alive.
11183 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11184 font-object to nil.
11185 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11186 (font_at): Don't call font_check_object.
11187 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11188
111892008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11190
11191 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11192
111932008-06-16 Chong Yidong <cyd@stupidchicken.com>
11194
11195 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11196
111972008-06-15 Chong Yidong <cyd@stupidchicken.com>
11198
11199 * font.c (font_parse_fcname): Only one decimal point.
11200 (font_unparse_fcname): Handle data in family and foundry indices
11201 as symbols, not strings.
11202 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11203
11204 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11205
11206 * font.h (font_unparse_gtkname): Add prototype.
11207
112082008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11209
11210 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11211
112122008-06-15 Andreas Schwab <schwab@suse.de>
11213
11214 * font.c (font_update_drivers): Fix crash when no drivers match.
11215
112162008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11217
11218 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11219 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11220
112212008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11222
11223 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11224
112252008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11226
11227 * process.c (Fserial_process_configure, Fprocess_send_eof):
11228 Use EQ to compare Lisp_Objects.
11229
112302008-06-13 Jason Rumney <jasonr@gnu.org>
11231
11232 * w32fns.c (Fw32_select_font): Remove old font API function.
11233
11234 * w32font.c (logfont_to_fcname): New function.
11235 (Fx_select_font): New font dialog function compatible with
11236 GTK/fontconfig version.
11237
11238 * font.c (font_style_symbolic_from_value): New function.
11239 (font_style_symbolic): Use it.
11240
11241 * font.h (font_style_symbolic_from_value): Declare new function.
11242
112432008-06-13 Juanma Barranquero <lekktu@gmail.com>
11244
11245 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11246 <font-width-table>: Fix typos in docstrings.
11247
112482008-06-13 Daniel Engeler <engeler@gmail.com>
11249
11250 These changes add serial port access.
11251 * process.c: Add HAVE_SERIAL.
11252 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11253 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11254 (list_processes_1, select_wrapper, Fstop_process)
11255 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11256 (status_notify): Modify to handle serial processes.
11257 [HAVE_SERIAL] (Fserial_process_configure)
11258 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11259 New functions.
11260 * process.h (struct Lisp_Process): Add `type'.
11261 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11262 New functions.
11263 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11264 serial ports.
b71ac3dd 11265 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11266 * w32.h: Add FILE_SERIAL.
11267 (struct _child_process): Add ovl_read, ovl_write.
11268
112692008-06-13 Kenichi Handa <handa@m17n.org>
11270
11271 * dispextern.h (enum lface_attribute_index): New member
11272 LFACE_FOUNDRY_INDEX.
11273
11274 * font.c (font_score): Delete arg alternate_families. Check only
11275 weight, slant, width, and size. Ignore the difference of alias
11276 style symbols.
11277 (font_sort_entites): Adjust for the above change. Reflect the
11278 order of font-driver to scores.
11279 (font_list_entities): Don't check alternate_familes here.
11280 (font_clear_prop): Handle foundry.
11281 (font_update_lface): Don't parse "foundry-family" form here.
11282 Handle FONT_FOUNDRY_INDEX.
11283 (font_find_for_lface): Likewise. Handle alternate families here.
11284 If registry is nil, try iso8859-1 and ascii-0.
11285 (font_open_for_lface): Pay attention to size in ENTITY.
11286 (font_open_by_name): Simplify by calling font_load_for_lface.
11287 (free_font_driver_list): Delete it.
11288 (font_update_drivers): Preserve the order of backends.
11289 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11290 of font_score and font_sort_entites.
11291 (font_update_sort_order): Likewise.
11292
11293 * xfaces.c (LFACE_FOUNDRY): New macro.
11294 (check_lface_attrs): Check foundry.
11295 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11296 (merge_face_vectors): Check foundry.
11297 (merge_face_ref): Likewise.
11298 (Finternal_set_lisp_face_attribute): Likewise.
11299 (x_update_menu_appearance): Likewise.
11300 (Finternal_get_lisp_face_attribute): Likewise.
11301 (lface_hash): Likewise.
11302 (lface_same_font_attributes_p): Likewise.
11303 (x_supports_face_attributes_p): Likewise.
11304 (tty_supports_face_attributes_p): Likewise.
11305 (Finternal_set_alternative_font_family_alist): Intern strings.
11306 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11307 (realize_default_face): Set LFACE_FOUNDRY (lface).
11308
11309 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11310 font-driver at first.
11311
11312 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11313
113142008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11315
11316 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11317
113182008-06-12 Jim Meyering <meyering@redhat.com>
11319
11320 Make unexec_free handle NULL the same way free does.
11321 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11322
113232008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11324
11325 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11326 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11327 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11328 (WEAK_ALIAS): Simplify.
11329 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11330 when searching a unibyte buffer.
11331
113322008-06-12 Chong Yidong <cyd@stupidchicken.com>
11333
11334 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11335
113362008-06-12 Juanma Barranquero <lekktu@gmail.com>
11337
11338 * w32font.c: Include ctype.h.
11339
113402008-06-11 Jason Rumney <jasonr@gnu.org>
11341
11342 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11343 misreported as space.
11344 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11345 as aliases for registry iso10646-1.
11346
113472008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11348
11349 * buffer.c (clone_per_buffer_values): Skip `name'.
11350
113512008-06-11 Chong Yidong <cyd@stupidchicken.com>
11352
11353 * font.c (font_parse_fcname): Fix last change; accept decimal
11354 points in font size.
11355
113562008-06-10 Jason Rumney <jasonr@gnu.org>
11357
11358 * w32uniscribe.c (add_opentype_font_name_to_list):
11359 Skip non unicode fonts.
11360
113612008-06-10 Chong Yidong <cyd@stupidchicken.com>
11362
11363 * xfns.c (Fx_font_dialog): New function.
11364
11365 * gtkutil.c (xg_dialog_response_cb): Rename from
11366 xg_file_response_callback.
11367 (pop_down_dialog): Rename from pop_down_file_dialog.
11368 (xg_get_file_name): Callers changed.
11369 (xg_get_font_name): New function.
11370
11371 * gtkutil.h (xg_get_font_name): Insert prototype.
11372
113732008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11374
11375 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11376 x_underline_minimum_display_offset.
11377 (syms_of_xdisp): Declare it here rather than in xterm.c.
11378 * dispextern.h (underline_minimum_offset): Declare it.
11379 * w32term.c (x_draw_glyph_string): Use it.
11380 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11381 (syms_of_xterm): Don't declare it any more.
11382 (x_draw_glyph_string): Adjust to the new name.
11383
8719abec 113842008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11385
11386 * xterm.c (x_underline_minimum_display_offset): New var.
11387 (x_draw_glyph_string): Use it.
11388 (syms_of_xterm): Declare it.
11389
113902008-06-10 Chong Yidong <cyd@stupidchicken.com>
11391
11392 * font.c (font_parse_fcname): Accept GTK-style font names too.
11393
113942008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11395
11396 * dired.c (file_name_completion): Don't return t if the match is exact
11397 but with different capitalization.
11398 * minibuf.c (Ftry_completion): Simplify.
11399
11400 * window.c (Vwindow_point_insertion_type): New var.
11401 (set_window_buffer): Use it.
11402 (syms_of_window): Init and export it to Lisp.
11403
114042008-06-10 Kenichi Handa <handa@m17n.org>
11405
11406 * font.h (font_intern_prop): Prototype adjusted.
11407
11408 * font.c (font_intern_prop): New arg force_symbol.
11409 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11410 Adjust for the change of font_intern_prop.
11411
11412 * ftfont.c (ftfont_pattern_entity):
11413 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11414 (w32_registry):
11415 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11416 the change of font_intern_prop.
11417
114182008-06-09 Juanma Barranquero <lekktu@gmail.com>
11419
11420 * w32menu.c (digest_single_submenu): Declare extern.
11421
114222008-06-09 Jason Rumney <jasonr@gnu.org>
11423
11424 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11425
11426 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11427 (parse_single_submenu): Remove.
11428 (digest_single_submenu): Remove.
11429 (syms_of_w32menu): Don't initialise variables that have moved
11430 to menu.c.
11431 (set_frame_menubar): Sync with version in xmenu.c.
11432 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11433
11434 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11435 Make static again.
11436
114372008-06-09 Jason Rumney <jasonr@gnu.org>
11438
11439 Changes to w32 files related to the move of common menu code
11440 to menu.c on 2008-06-08 by Chong Yidong.
11441
11442 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11443 defs to w32gui.h.
11444 (single_keymap_panes, push_menu_item, push_menu_pane):
11445 Make globally visible.
11446
11447 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11448 (local_free, malloc_widget_value, free_widget_value)
11449 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11450 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11451 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11452 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11453 (menu_items, menu_items_allocated, menu_items_used)
11454 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11455 (init_menu_items, finish_menu_items, discard_menu_items)
11456 (grow_menu_items, push_submenu_start, push_submenu_end)
11457 (push_left_right_boundary, push_menu_pane, push_menu_item)
11458 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11459 (free_menubar_widget_tree_value, parse_single_submenu)
11460 (update_submenu_strings): Remove functions.
11461 (xmalloc_widget_value): Remove and declare extern.
11462
11463 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11464 (OBJ1): Build it.
11465
11466 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11467 (local_heap, local_alloc, local_free, malloc_widget_value)
11468 (free_widget_value): Define here.
11469
114702008-06-09 Kenichi Handa <handa@m17n.org>
11471
11472 * font.h (Qascii_0): Extern it.
11473
11474 * font.c (Qascii_0): New variable.
11475 (syms_of_font): DEFSYM it.
11476 (font_open_by_name): If the registry "iso8859-1" fails, try also
11477 "ascii-0".
11478
11479 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11480
114812008-06-08 Kenichi Handa <handa@m17n.org>
11482
11483 * .gdbinit (xfont): New command.
11484
114852008-06-08 Andreas Schwab <schwab@suse.de>
11486
11487 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11488 * Makefile.in (menu.o): Update dependencies.
11489
11490 * Makefile.in (obj): Always add menu.o.
11491 * emacs.c (main): Always call syms_of_menu.
11492 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11493
114942008-06-08 Chong Yidong <cyd@stupidchicken.com>
11495
11496 * Makefile.in: Compile menu.c.
11497
11498 * lisp.h: Declare syms_of_menu.
11499
11500 * emacs.c (main): Call syms_of_menu.
11501
11502 * keyboard.h: Relocate platform-independent menu definitions from
11503 xmenu.c.
11504
11505 * menu.c: New file. Relocate platform-independent menu
11506 definitions from xmenu.c. Suggested by Adrian Robert.
11507
11508 * xmenu.c: Remove platform-independent menu definitions.
11509 (menu_items menu_items_inuse, menu_items_allocated)
11510 (menu_items_used, menu_items_n_panes)
11511 (menu_items_submenu_depth): Move to keyboard.h.
11512 (init_menu_items, finish_menu_items, unuse_menu_items)
11513 (discard_menu_items, restore_menu_items, save_menu_items)
11514 (grow_menu_items, push_submenu_start, push_submenu_end)
11515 (push_left_right_boundary, push_menu_pane, push_menu_item)
11516 (keymap_panes, single_keymap_panes, single_menu_item)
11517 (list_of_panes, list_of_items, find_and_call_menu_selection)
11518 (xmalloc_widget_value, free_menubar_widget_value_tree)
11519 (parse_single_submenu, digest_single_submenu)
11520 (update_submenu_strings): Move to menu.c.
11521
115222008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11523
11524 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11525
115262008-06-06 Miles Bader <miles@gnu.org>
11527
11528 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11529 face, not frame default.
11530
115312008-06-05 Martin Rudalics <rudalics@gmx.at>
11532
11533 * window.c (pop_up_windows, pop_up_frames)
11534 (display_buffer_reuse_frames, Vpop_up_frame_function)
11535 (Vdisplay_buffer_function, Veven_window_heights)
11536 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11537 (Vspecial_display_function, Vsame_window_buffer_names)
11538 (Vsame_window_regexps, split_height_threshold)
11539 (Vsplit_window_preferred_function): Move those vars to window.el.
11540 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11541 (Fdisplay_buffer): Move those functions to window.el.
11542 (syms_of_window): Remove corresponding declarations.
11543 (display_buffer): New function.
11544 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11545 * dispnew.c (Flast_nonminibuf_frame): New function.
11546 * buffer.c (Fpop_to_buffer): Move to window.el.
11547
115482008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11549
11550 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11551
115522008-06-05 Kenichi Handa <handa@m17n.org>
11553
11554 * coding.c (detect_coding): Fix previous change.
11555 (detect_coding_system): Likewise.
11556
115572008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11558
11559 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11560
11561 * keymap.c (Vminibuffer_local_filename_must_match_map):
11562 Rename from Vminibuffer_local_must_match_filename_map.
11563 (syms_of_keymap):
11564 * minibuf.c (Fcompleting_read): Adjust accordingly.
11565 * commands.h: Rename declaration as well.
11566
115672008-06-05 Kenichi Handa <handa@m17n.org>
11568
11569 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11570 family name.
11571 (Ffont_put): Likewise.
11572
11573 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11574 current font-spec.
11575
11576 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11577 is unspecified.
11578
11579 * xfaces.c (realize_x_face): If the font-related face attributes
11580 are the same as those of default face, realize a new fontset from
11581 default->fontset.
11582 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11583
115842008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11585
11586 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11587 (move_it_in_display_line): New wrapper.
11588
11589 * window.c (window_scroll_pixel_based_preserve_x)
11590 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11591 (window_scroll_pixel_based, window_scroll_line_based):
11592 Use them to preserve column positions.
11593 (syms_of_window): Initialize them.
11594
11595 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11596 (HPOS . VPOS) pair.
11597
11598 * dispextern.h (move_it_in_display_line): Declare.
11599
116002008-06-05 Juanma Barranquero <lekktu@gmail.com>
11601
11602 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11603 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11604 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11605
116062008-06-04 Juanma Barranquero <lekktu@gmail.com>
11607
11608 * window.c (Fset_window_parameter): Doc fix.
11609 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11610
116112008-06-04 Joakim Verona <joakim@verona.se>
11612
11613 * window.h (struct window): Add new member window_parameters.
11614
11615 * window.c (Fwindow_parameters, Fwindow_parameter)
11616 (Fset_window_parameter): New defuns.
11617 (syms_of_window): Defsubr the new defuns.
11618 (make_window): Initialize window_parameters to nil.
11619
116202008-06-04 John Paul Wallington <jpw@pobox.com>
11621
11622 * eval.c (Fdefmacro): Doc fix.
11623
116242008-06-04 Kenichi Handa <handa@m17n.org>
11625
11626 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11627 Be sure to call setup_coding_system when we find a proper coding system.
11628 (detect_coding_system): Fix handling of coding->head_ascii.
11629
116302008-06-03 Andreas Schwab <schwab@suse.de>
11631
11632 * font.c (font_prop_validate_spacing): Fix last change.
11633
116342008-06-03 Kenichi Handa <handa@m17n.org>
11635
11636 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11637 (font_parse_fcname): Fix handling of unknown key.
11638
11639 * xfont.c (xfont_list): Try an alias.
11640
11641 * charset.c (char_charset): Return NULL if the arg charset_list is
11642 specified and C doesn't belong to any of them.
11643
116442008-06-02 Chip Coldwell <coldwell@redhat.com>
11645
11646 * font.c (font_pixel_size): Don't take cdr of an integer.
11647
116482008-06-02 Jim Meyering <meyering@redhat.com>
11649
11650 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11651 * alloc.c (xfree): Return right away for a NULL arg.
11652 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11653 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11654 * mac.c (create_apple_event_from_event_ref): Likewise.
11655 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11656 Likewise.
11657 * doprnt.c (doprnt1): Likewise.
11658 * frame.c (frame): Likewise.
11659 * keyboard.c (wipe_kboard): Likewise.
11660 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11661 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11662 * term.c (tty_default_color_capabilities, maybe_fatal)
11663 (delete_tty): Likewise.
11664 * w16select.c (string): Likewise.
11665 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11666 * w32bdf.c (w32_free_bdf_font): Likewise.
11667 * w32fns.c (w32_unload_font): Likewise.
11668 * w32font.c (w32font_close): Likewise.
11669 * window.c (size_window): Likewise.
11670 * xselect.c (receive_incremental_selection): Likewise.
11671 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11672 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11673 * w32.c (stat): Likewise.
11674
11675 Remove useless if-before-free tests.
11676 * editfns.c (Fset_time_zone_rule): Likewise.
11677 * lread.c (nosuffix): Likewise.
11678 * ralloc.c (get_bloc): Likewise.
11679 * regex.c (reg_free): Likewise.
11680 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11681 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11682 * xsmfns.c (smc_save_yourself_CB): Likewise.
11683
116842008-06-02 Kenichi Handa <handa@m17n.org>
11685
11686 * font.c (font_find_for_lface): Handle float font size.
11687 (font_open_for_lface): Likewise.
11688
11689 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11690 comparing the properties.
11691
116922008-06-01 Jason Rumney <jasonr@gnu.org>
11693
11694 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11695 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11696 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11697 Don't add empty script list.
11698 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11699
117002008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11701
11702 * Makefile.in (dot, dotdot): Remove, update users.
11703 ".." has been used elsewhere in the file for a long time.
11704 (LIBXT_STATIC): Remove conditional based on unused variable.
11705
117062008-06-01 Miles Bader <miles@gnu.org>
11707
11708 * xfaces.c (Vface_remapping_alist): New variable.
11709 (syms_of_xfaces): Initialize it.
11710 (enum named_merge_point_kind): New type.
11711 (struct named_merge_point): Add `named_merge_point_kind' field.
11712 (push_named_merge_point): Make cycle detection respect different
11713 named-merge-point kinds.
11714 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11715 Remove face-name alias resolution.
11716 (lface_from_face_name): New definition using
11717 `lface_from_face_name_no_resolve'.
11718 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11719 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11720 (get_lface_attributes): New definition that layers face-remapping on
11721 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11722 (lookup_basic_face): New function.
11723 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11724 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11725 `get_lface_attributes'.
11726 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11727 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11728 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11729
11730 * xdisp.c (init_iterator): Pass base_face_id through
11731 `lookup_basic_face' when we actually use it as a face-id.
11732 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11733 DEFAULT_FACE_ID.
11734
11735 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11736 lookup the initial face-id.
11737
11738 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11739
117402008-06-01 Juanma Barranquero <lekktu@gmail.com>
11741
11742 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11743 (Fremove_text_properties): Fix typos in docstrings.
11744
117452008-05-31 Kenichi Handa <handa@m17n.org>
11746
11747 * font.c (font_list_entities): Fix the car part of data to be
11748 stored in the cache.
11749
11750 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11751
117522008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11753
11754 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11755 Add a `test' argument so another predicate than `equal' can be used.
11756 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11757 (map_char_table): Remove unused vars `c' and `i'.
11758 * lisp.h (Foptimize_char_table): Adjust declaration.
11759 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11760
117612008-05-30 Kenichi Handa <handa@m17n.org>
11762
11763 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11764 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11765 defined.
11766
117672008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11768
11769 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11770 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11771 frame-local settings for the same variable.
11772
117732008-05-30 Kenichi Handa <handa@m17n.org>
11774
11775 * fontset.c (Ffont_info): Move to font.c.
11776 (syms_of_fontset): Delete defsubr of Sfont_info.
11777
11778 * font.c (font_style_to_value, font_score): Delete casting of the
11779 args to xstcasecmp.
11780 (register_font_driver): Increment num_font_drivers only when
11781 registering the driver globally.
11782 (Ffont_info): Move from fontset.c. Handle a font object too.
11783 (syms_of_font): Defsubr Sfont_info.
11784
117852008-05-29 Kenichi Handa <handa@m17n.org>
11786
11787 * coding.h (enum define_coding_utf8_arg_index): New enum.
11788 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11789 coding_attr_utf_bom.
11790 (enum utf_bom_type): Rename from utf_16_bom_type.
11791 (struct utf_16_spec): Adjust for the above change.
11792 (struct coding_system): Add utf_8_bom in `spec' union.
11793
11794 * coding.c (CODING_UTF_8_BOM): New macro.
11795 (enum coding_category): Delete coding_category_utf_8, add
11796 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11797 coding_category_utf_8_sig.
11798 (CATEGORY_MASK_UTF_8): Delete it.
11799 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11800 (CATEGORY_MASK_UTF_8_SIG): New macros.
11801 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11802 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11803 CATEGORY_MASK_UTF_8_SIG.
11804 (CATEGORY_MASK_UTF_8): New macro.
11805 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11806 (detect_coding_utf_8): Check BOM.
11807 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11808 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11809 (encode_coding_utf_16): Likewise.
11810 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11811 (detect_coding, detect_coding_system): Handle utf-8-auto.
11812 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11813 (syms_of_coding): Fix setting up of Vcoding_category_table.
11814
118152008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11816
11817 * process.c (Faccept_process_output): If `millisec' is non-nil,
11818 `seconds' default to 0.
11819 (wait_reading_process_output): Also return non-nil if we read output
11820 from a non-running process.
11821
118222008-05-29 Jason Rumney <jasonr@gnu.org>
11823
11824 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11825 `raster' specified.
11826 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11827 in the uniscribe backend, but disallow any font that has no
11828 unicode subrange support.
11829
118302008-05-29 Juanma Barranquero <lekktu@gmail.com>
11831
11832 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11833 Fix typos in docstrings.
11834
118352008-05-29 Kenichi Handa <handa@m17n.org>
11836
11837 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11838 (Fx_family_fonts): Set frame correctly.
11839
118402008-05-28 Jason Rumney <jasonr@gnu.org>
11841
11842 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11843
118442008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11845
11846 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11847 calling build_annotations.
11848
118492008-05-28 Juanma Barranquero <lekktu@gmail.com>
11850
11851 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11852 (Fencode_coding_string):
11853 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11854 <latin-extra-code-table>: Fix typos in docstrings.
11855 (syms_of_coding) <coding-system-alist>: Doc fix.
11856 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11857
118582008-05-28 Kenichi Handa <handa@m17n.org>
11859
11860 * fontset.c (Ffont_info): Don't call font_close_object.
11861
11862 * font.c (font_parse_family_registry): Use Ffont_put to validate
11863 foundry and family.
11864 (font_delete_unmatched): Don't check spacing.
11865 (font_list_entities): Add spacing to the spec to list fonts.
11866
11867 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11868 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11869
11870 * coding.c (encode_coding_raw_text): Fix previous change.
11871 (encode_coding_object): When the dst_object is a buffer and is
11872 different from src_object, move gap to PT.
11873
118742008-05-27 Chong Yidong <cyd@stupidchicken.com>
11875
11876 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11877
118782008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11879
11880 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11881 all branches. Compute it differently.
11882
11883 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11884
118852008-05-27 Juanma Barranquero <lekktu@gmail.com>
11886
11887 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11888 into "else if () ... else ...".
11889
118902008-05-27 Jason Rumney <jasonr@gnu.org>
11891
11892 * w32font.c (w32font_open_internal): Determine if glyph indices
11893 are likely to work here.
11894
118952008-05-27 Chong Yidong <cyd@stupidchicken.com>
11896
11897 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11898 draw overlap glyphs with appropriate highlighting.
11899
119002008-05-27 Kenichi Handa <handa@m17n.org>
11901
11902 * xfont.c (xfont_open): Fix calculation of font->average_width.
11903
119042008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11905
11906 * casefiddle.c (casify_object): Try to guess better whether the
11907 argument is a byte or a char.
11908
119092008-05-26 Andreas Schwab <schwab@suse.de>
11910
11911 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11912 Always send multiples of format size.
11913
11914 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11915
119162008-05-26 Jason Rumney <jasonr@gnu.org>
11917
11918 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11919 (compute_metrics): Don't set failure if we just cleared the cache.
11920 (w32_weight_table): Remove unused variable.
11921 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11922 backwards compatibility.
11923
119242008-05-25 Kenichi Handa <handa@m17n.org>
11925
11926 * w32term.c (x_draw_glyph_string):
11927 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11928
11929 * xfaces.c: Delete unused function prototypes.
11930 (xstrlwr, font_frame): Delete them.
11931 (clear_face_cache): Delete unused variable.
11932
11933 * xftfont.c (xftfont_open): Delete unused variable.
11934 If underline_thickness is not 1, adjust underline_position.
11935
11936 * ftxfont.c (ftxfont_open): Delete unused variable.
11937
11938 * fontset.c (face_for_char): Optimize for the case of no charset
11939 property.
11940
11941 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11942 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11943 (otf_open, font_otf_capability, generate_otf_features)
11944 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11945 Comment out by surrounding "#if 0" and "#endif" for the moment.
11946 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11947 (syms_of_font): Codes for accessing above commented out.
11948
119492008-05-24 Eli Zaretskii <eliz@gnu.org>
11950
11951 * w32proc.c: Include dispextern.h.
11952
11953 * w32.c: Include dispextern.h.
11954
119552008-05-23 Juanma Barranquero <lekktu@gmail.com>
11956
11957 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11958 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11959 Fix typos in docstrings.
11960
119612008-05-23 Jason Rumney <jasonr@gnu.org>
11962
11963 * xsmfns.c: Remove includes that are already included by config.h.
11964
119652008-05-23 Kenichi Handa <handa@m17n.org>
11966
11967 * charset.c (Qemacs, charset_emacs): New variables.
11968 (char_charset): Fix for non-Unicode characters.
11969 (syms_of_charset): Define charset_emacs.
11970
11971 * w32term.c (x_draw_glyph_string): Be sure to update
11972 s->underline_thickness and s->underline_position. Be sure to draw
11973 underline within the current line area.
11974
11975 * xterm.c (x_draw_glyph_string): Be sure to update
11976 s->underline_thickness and s->underline_position. Be sure to draw
11977 underline within the current line area.
11978
11979 * fontset.c: Delete unused variables and add casting for char *
11980 throughout the file.
11981 (fontset_font): Try the fallback fonts of the current fontset
11982 before consulting the default fontset.
11983
11984 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11985
11986 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11987
119882008-05-22 Jason Rumney <jasonr@gnu.org>
11989
11990 * font.c: Don't include strings.h.
11991
11992 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11993
11994 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11995 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11996 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11997 to call xstrcasecmp.
11998
11999 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12000
12001 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12002
12003 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12004
12005 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12006
120072008-05-22 Kenichi Handa <handa@m17n.org>
12008
12009 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12010
12011 * font.c (font_prop_validate_style): Adjust for the format
12012 change of font_style_table.
12013
12014 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12015 two args.
12016
12017 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12018 two args.
12019
120202008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12021
12022 * minibuf.c (keys_of_minibuf): Delete.
12023 * lisp.h (keys_of_minibuf): Delete.
12024 * emacs.c (main): Don't call keys_of_minibuf.
12025
120262008-05-22 Kenichi Handa <handa@m17n.org>
12027
12028 * ftfont.c (ftfont_resolve_generic_family): Rename from
12029 ftfont_list_generic_family. Return a single family for each
12030 generic family.
12031 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12032 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12033 Call font_add_log.
12034 (ftfont_match): Call font_add_log.
12035
12036 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12037 (FONT_DEBUG): Define it.
12038 (font_add_log): Extern it.
12039 (font_assert): Rename from xassert.
12040
12041 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12042 (xfont_list_family): Call font_add_log.
12043 (xfont_match): Likewise.
12044 (memq_no_quit): Delete.
12045
12046 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12047 call of Ffont_xlfd_name.
12048
12049 * xfaces.c (struct table_entry, slant_table, weight_table)
12050 (swidth_table): Move to font.c.
12051
12052 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12053 xassert are changed to font_assert. Delete many unused variables.
12054 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12055 New variables.
12056 (struct table_entry): Move from xfaces.c and modified.
12057 (weight_table, slant_table, width_table): Move from xfaces.c and
12058 contents adjusted for the change of struct table_entry.
12059 (font_style_to_value, font_style_symbolic): Adjust for the
12060 format change of font_style_table.
12061 (font_parse_family_registry): Don't overwrite existing foundry and
12062 family of font_spec.
12063 (font_score): Fix calculation of diff for sizes.
12064 (font_sort_entites): Call font_add_log.
12065 (font_delete_unmatched): Return a newly created list.
12066 (font_list_entities): Fix previous change. Call font_add_log.
12067 (font_matching_entity, font_open_entity, font_close_entity):
12068 Call font_add_log.
12069 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12070 (Finternal_set_font_style_table): Delete.
12071 (BUILD_STYLE_TABLE): New macro.
12072 (build_style_table): New function.
12073 (Vfont_log, font_log_env_checked): New variables.
12074 (font_add_log): New function.
12075 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12076 Declare Lisp variables "font-weight-table", "font-slant-table",
12077 "font-width-table", and "font-log". Initialize font_style_table.
12078
120792008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12080
12081 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12082
120832008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12084 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12085
12086 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12087 (Vframe_alpha_lower_limit): New variable.
12088 (x_set_alpha): New function.
12089
12090 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12091
12092 * xfns.c (x-create-frame, Qalpha):
12093 Initialize the frame parameter `alpha'.
12094 * xterm.c (OPAQUE, OPACITY): New.
12095 (x_set_frame_alpha): New function.
12096 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12097
12098 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12099 * w32fns.c (w32_frame_parm_handlers): Likewise.
12100
121012008-05-20 Jason Rumney <jasonr@gnu.org>
12102
12103 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12104 truetype fonts to opentype list.
12105
121062008-05-20 Juanma Barranquero <lekktu@gmail.com>
12107
12108 * fontset.c (Ffontset_info): Doc fix.
12109 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12110 <ignore-relative-composition>: Fix typos in docstrings.
12111
12112 * font.c (syms-of-font) <font-encoding-alist>:
12113 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12114 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12115 (Ffont_otf_alternates): Doc fixes.
12116
121172008-05-20 Kenichi Handa <handa@m17n.org>
12118
12119 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12120 font.h through out the file.
12121 (FONT_DRIVERS): Rename from FONTOBJ.
12122 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12123 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12124
12125 * emacs.c (main): Call syms_of_font unconditionally.
12126
12127 * font.h (find_font_encoding): Extern it.
12128
12129 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12130 fontset.c.
194d44e7 12131 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12132 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12133 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12134 only when HAVE_WINDOW_SYSTEM is defined.
12135 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12136 when HAVE_WINDOW_SYSTEM is defined.
12137
12138 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12139 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12140
12141 * xfaces.c: Include font.h unconditionally.
12142 (merge_face_ref, merge_face_vectors)
12143 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12144
121452008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12146
12147 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12148 indirect_variable.
12149 * eval.c (lisp_indirect_variable): New fun.
12150 (Fuser_variable_p): Use it.
12151
121522008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12153
12154 * lisp.h (indirect_variable):
12155 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12156 Use Lisp_Symbol pointers rather than Lisp_Object.
12157 Adjust callers.
12158 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12159 To this end, change calling-convention.
12160
12161 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12162 if some non-hidden buffers are selected by string&pred.
12163
121642008-05-19 Chong Yidong <cyd@stupidchicken.com>
12165
12166 * process.c (wait_reading_process_output): Always check status
12167 when in batch mode.
12168
121692008-05-19 Kenichi Handa <handa@m17n.org>
12170
12171 * font.c (font_list_entities): Fix handling of cache.
12172 (font_matching_entity): Likewise.
12173
12174 * ftfont.c (cs_iso8859_1): Delete.
12175 (ft_face_cache): New variable.
12176 (struct ftfont_info): New member fc_charset_idx.
12177 (ftfont_build_basic_charsets): Delete.
12178 (fc_charset_table): New variable.
12179 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12180 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12181 Callers changed.
12182 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12183 (ftfont_spec_pattern): New argument fc_charset_idx.
12184 Check registry more rigidly. Change callers.
12185 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12186 change of :font-entity property of the font.
12187
12188 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12189 property of the font.
12190
121912008-05-18 Juanma Barranquero <lekktu@gmail.com>
12192
12193 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12194 (Funencodable_char_position, Fcheck_coding_systems_region)
12195 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12196 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12197 (Ffind_operation_coding_system, Fset_coding_system_priority)
12198 (Fcoding_system_eol_type): Doc fixes.
12199
122002008-05-17 Glenn Morris <rgm@gnu.org>
12201
12202 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12203
122042008-05-16 Eli Zaretskii <eliz@gnu.org>
12205
12206 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12207 and st_gid.
12208
12209 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12210 HAVE_WINDOW_SYSTEM is not defined.
12211
12212 * xfaces.c (merge_face_ref, merge_face_vectors)
12213 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12214 HAVE_WINDOW_SYSTEM is defined.
12215 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12216
122172008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12218
12219 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12220
122212008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12222
12223 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12224
122252008-05-15 Kenichi Handa <handa@m17n.org>
12226
12227 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12228 preference.
12229
122302008-05-15 Glenn Morris <rgm@gnu.org>
12231
12232 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12233
122342008-05-15 Chong Yidong <cyd@stupidchicken.com>
12235
12236 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12237 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12238
12239 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12240
122412008-05-15 Kenichi Handa <handa@m17n.org>
12242
12243 * ftfont.c (ftfont_list): Downcase family name to check generic
12244 families.
12245
12246 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12247 font-spec for QCfont value.
12248
12249 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12250 buffer. Check the return value of it.
12251
122522008-05-14 Jason Rumney <jasonr@gnu.org>
12253
12254 * w32term.c (w32_get_glyph_overhangs): Remove.
12255 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12256
122572008-05-14 Kenichi Handa <handa@m17n.org>
12258
12259 * font.c (font_prop_validate): Make nil a valid value.
12260 (font_clear_cache): Check if the cached vector of entities is nil
12261 or not.
12262
122632008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12264
12265 * emacs.c (main_thread): Conditionalize on
12266 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12267 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12268
12269 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12270 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12271 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12272
122732008-05-14 Kenichi Handa <handa@m17n.org>
12274
12275 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12276 has no corresponding coding system.
12277
122782008-05-14 Jason Rumney <jasonr@gnu.org>
12279
12280 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12281
12282 * w32font.h (w32font_open_internal): Update declaration.
12283
12284 * w32font.c (w32font_open_internal): Change last argument from
12285 w32font_info struct to font object. Fill in font object from
12286 font_entity. Get Outline metrics if possible. Use them to
12287 calculate underline position and thickness. Use xlfd name as name
12288 property. Don't set codepage.
12289 (w32font_open): Pass font_object to w32font_open_internal. Don't
12290 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12291 (w32font_draw): Use s->font.
12292 (clear_cached_metrics): Don't clear non-existent blocks.
12293
12294 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12295 font was not found.
12296 (x_draw_glyph_string): Use underline position and thickness from font.
12297
12298 * w32uniscribe.c (uniscribe_open): Pass font_object to
12299 w32font_open_internal.
12300
123012008-05-14 Kenichi Handa <handa@m17n.org>
12302
12303 These changes are to delete all legacy font-handling codes, and
12304 make Emacs use only font-backends.
12305
12306 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12307 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12308
12309 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12310
12311 * charset.h (Vcharset_non_preferred_head)
12312 (Vcurrent_iso639_language): Extern them.
12313
12314 * charset.c (Vcharset_non_preferred_head): New variable.
12315 (Vcurrent_iso639_language): New variable.
12316 (syms_of_charset): Declare it as a Lisp variable.
12317 (char_charset): Don't check non preferred charsets. As a last
12318 resort, return charset_unicode.
12319 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12320
12321 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12322 conditionals. Don't check enable_font_backend. Delete all codes
12323 used only when USE_FONT_BACKEND is not defined.
12324
12325 * dispextern.h (struct glyph_string): Change type of `font' to
12326 `struct font *'.
12327 (struct glyph_string): New member underline_position and
12328 underline_thickness.
12329 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12330 (struct face): Change type of `font' to `struct font *'. Remove
12331 members `font_name', `font_info_id'.
12332 (per_char_metric, encode_char): Delete externs.
12333 (calc_pixel_width_or_height): Adjust the prototype.
12334
12335 * emacs.c (enable_font_backend): Delete extern.
12336 (main): Don't set enable_font_backend. Don't check the command
12337 line argument "-disable-font-backend".
12338
12339 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12340 (enum font_property_index): New members FONT_DPI_INDEX,
12341 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12342 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12343 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12344 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12345 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12346 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12347 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12348 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12349 (struct font_spec, struct font_entity): New structs.
12350 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12351 (struct font): Many members from old "struct font_info" moved to
12352 here. Members font and entity deleted.
12353 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12354 the new font-related objects.
12355 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12356 (CHECK_FONT_GET_OBJECT): Likewise.
12357 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12358 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12359 (struct font_driver): New members case_sensitive anc check. Type
12360 of the member list and open changed.
12361 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12362 (font_symbolic_width, font_find_object, font_get_spec)
12363 (font_set_lface_from_name): Delete extern.
12364 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12365
12366 * font.c: Include <strings.h>.
12367 (enable_font_backend): Delete it.
12368 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12369 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12370 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12371 (null_string): Delete it.
12372 (null_vector): Make it static.
12373 (font_family_alist): Delete it.
12374 (Qnormal): Extern it.
12375 (QCextra, QClanguage): Delete it.
12376 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12377 (font_make_spec, font_make_entity, font_make_object)
12378 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12379 the string. Callers changed.
12380 (font_pixel_size): Adjusted for the format change of font-related
12381 objects.
12382 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12383 (font_style_to_value, font_style_symbolic): New function.
12384 (build_font_family_alist): Delete it.
12385 (font_registry_charsets): Use Fassoc_string instead of
12386 assq_no_quit.
12387 (font_prop_validate_symbol): Don't return null_string.
12388 (font_prop_validate_style): Adjusted for the change of
12389 style-related values in a font vector.
12390 (font_property_table): Delete entries for QClanguage and
12391 QCantialias, add entries for QCavgwidth.
12392 (get_font_prop_index): Delete the 2nd argument FROM.
12393 (font_prop_validate): Arguments changed.
12394 (font_put_extra): Adjusted for the change of font-related objects.
12395 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12396 (font_parse_fcname, font_unparse_fcname)
12397 (font_prepare_composition): Likewise.
12398 (font_parse_family_registry): Renamed from font_merge_old_spec.
12399 (otf_open): Delete the 1st arg entity.
12400 (font_otf_capability): Adjusted for the above change.
12401 (font_score): New arg alternate_families. Adjusted for the change
12402 of font-related objects.
12403 (font_sort_entites): New arg best_only.
12404 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12405 Delete them.
12406 (font_match_p): Check alternate families.
12407 (font_find_object): Delete it.
12408 (font_check_object): New function.
12409 (font_clear_cache): Adjusted for the change of font-related objects.
12410 (font_delete_unmatched): New arg.
12411 (font_list_entities): Call font_driver->list with a spec that
12412 doesn't specify style-related properties.
12413 (font_matching_entity): Arguments changed. Caller changed.
12414 (font_open_entity): Adjusted for the change of font-related objects.
12415 (font_close_object, font_has_char, font_encode_char)
12416 (font_get_name, font_get_spec): Likewise.
12417 (font_spec_from_name, font_clear_prop, font_update_lface):
12418 New functions.
12419 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12420 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12421 (font_at): Adjusted for the change of font-related objects.
12422 (font_range): New function.
12423 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12424 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12425 (Fcopy_font_spec, Fmerge_font_spec): New function.
12426 (Ffont_family_list): Renamed from list-families.
12427 (Finternal_set_font_style_table): Arguments changed.
12428 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12429 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12430 change of font-related objects.
12431 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12432
12433 * fontset.h (struct font_info): Delete it. Most members go to
12434 struct font.
12435 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12436 (enum FONT_SPEC_INDEX): Delete it.
12437 (font_info, list_fonts_func, load_font_func, query_font_func)
12438 (set_frame_fontset_func, find_ccl_program_func)
12439 (get_font_repertory_func, new_fontset_from_font_name): Delete
12440 externs.
12441 (fontset_from_font_name): Extern it.
12442 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12443 (FONT_INFO_FROM_FACE): Deleted.
12444 (face_for_font): Adjust prototype.
12445
12446 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12447 conditionals. Don't check enable_font_backend. Delete all codes
12448 used only when USE_FONT_BACKEND is not defined.
12449 (get_font_info_func, list_font_func, load_font_func)
12450 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12451 (get_font_repertory_func): Delete them.
12452 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12453 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12454 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12455 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12456 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12457 (fontset_compare_rfontdef): New function.
12458 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12459 rfont-defs by qsort. Adjusted for the change of font-group vector.
12460 (load_font_get_repertory): Deleted.
12461 (fontset_find_font): Use new macros to ref/set elements of
12462 font-def and rfont-def.
12463 (fontset_font): Fix the timing of remembering that no font for C.
12464 (free_face_fontset): Do nothing if the face has no fontset.
12465 (face_suitable_for_char_p): Use new macros to ref/set elements of
12466 rfont-def.
12467 (face_for_char): Likewise. Call face_for_char with font_object.
12468 (fs_load_font): Delete. Delete #pragma surrounding it.
12469 (fs_query_fontset): Use strcasecmp instead of strcmp.
12470 (generate_ascii_font_name): Adjusted for the format change of
12471 font-spec.
12472 (Fset_fontset_font): Likewise. Use new macros to set elements of
12473 font-def.
12474 (Fnew_fontset): Use font_unparse_xlfd to generate
12475 FONTSET_ASCII (fontset).
12476 (new_fontset_from_font_name): Deleted.
12477 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12478 a fontset is already created for the font. FIx updating of
12479 Vfontset_alias_alist.
12480 (fontset_ascii_font): Deleted.
12481 (Ffont_info): Adjusted for the format change of font-spec.
12482 (Finternal_char_font): Likewise.
12483 (Ffontset_info): Likewise.
12484 (syms_of_fontset): Don't check load_font_func.
12485
12486 * fns.c (internal_equal): Handle PREV_FONT.
12487
12488 * frame.h: Delete USE_FONT_BACKEND conditional.
12489
12490 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12491 conditionals. Don't check enable_font_backend. Delete all codes
12492 used only when USE_FONT_BACKEND is not defined.
12493 (x_set_font): Call x_new_font, not x_new_fontset2.
12494 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12495 already set for the frame.
12496
12497 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12498 a font-entity by font_make_entity. Use font_intern_prop instead
12499 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12500 font property. If a font is scalable, set avgwidth property to 0.
12501 Set font-entity property by font_put_extra.
12502 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12503 (ffont_driver): Adjusted for the change of struct font_driver.
12504 (ftfont_spec_pattern): New function.
12505 (ftfont_list): Return a list, not vector.
12506 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12507 (ftfont_list_family): Don't downcase names.
12508 (ftfont_free_entity): Deleted.
12509 (ftfont_open): Return a font-object. Adjusted for the change of
12510 struct font. Get underline_thickness and underline_position from
12511 font property. Don't update dpyinfo->smallest_font_height and
12512 dpyinfo->smallest_char_width.
12513 (ftfont_close): Don't free `struct font'.
12514 (ftfont_has_char): Adjusted for the format change of font-entity.
12515 (ftfont_encode_char, ftfont_text_extents): Likewise.
12516
12517 * ftxfont.c (ftxfont_list): Return a list, not vector.
12518 (ftxfont_open): Return a font-object. Adjusted for the change of
12519 struct font. Get underline_thickness and underline_position from
12520 font property. Don't update dpyinfo->smallest_font_height and
12521 dpyinfo->smallest_char_width.
12522 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12523 (ftxfont_draw): Adjusted for the change of struct font.
12524
12525 * image.c (image_ascent): Don't include "charset.h". Include
12526 "character.h" and "font.h".
12527
12528 * lisp.h (enum pvec_type): New member PREV_FONT.
12529 (Fassoc_string): EXFUN it.
12530
12531 * print.c: Include font.h.
12532 (print_object): Handle font-related objects.
12533
12534 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12535 conditionals. Don't check enable_font_backend. Delete all codes
12536 used only when USE_FONT_BACKEND is not defined.
12537 (handle_auto_composed_prop): Do nothing if it->f is not on a
12538 window system. Check how many following characters can be
12539 displayed by the same font.
12540 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12541 'struct font *'.
12542 (get_char_face_and_encoding): Assign the whole encoding task to
12543 the `encode-char' method of a font driver.
12544 (fill_composite_glyph_string): Adjusted for the change of `struct
12545 face' and `struct glyph_string'.
12546 (fill_glyph_string): Likewise.
12547 (get_per_char_metric): Arguments changed.
12548 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12549 and `struct glyph_string'.
12550 (produce_stretch_glyph, calc_line_height_property)
12551 (x_produce_glyphs): Likewise.
12552
12553 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12554 conditionals. Don't check enable_font_backend. Delete all codes
12555 used only when USE_FONT_BACKEND is not defined. Use
12556 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12557 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12558 (Qp): Extern them.
12559 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12560 Deleted.
12561 (struct font_name): Deleted.
12562 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12563 (compare_fonts_by_sort_order): New function.
12564 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12565 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12566 Deleted.
12567 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12568 compare_fonts_by_sort_order.
12569 (Fx_font_family_list): Call Ffont_family_list.
12570 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12571 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12572 (face_symbolic_slant, face_symbolic_swidth)
12573 (split_font_name_into_vector, build_font_name_from_vector)
12574 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12575 (font_rescale_ratio, split_font_name, build_font_name)
12576 (free_font_names, sort_fonts, x_face_list_fonts)
12577 (face_font_available_p, sorted_font_list, cmp_font_names)
12578 (font_list_1, concat_font_list, font_list, remove_duplicates):
12579 Deleted.
12580 (Fx_list_fonts): Use Ffont_list.
12581 (LFACE_AVGWIDTH): Deleted.
12582 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12583 by FONTP.
12584 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12585 (set_lface_from_font_name): Delete it.
12586 (set_lface_from_font): Renamed from
12587 set_lface_from_font_and_fontset. Caller changed. Don't set
12588 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12589 for face.
12590 (merge_face_vectors): Copy font-spec if necessary.
12591 Clear properties of the font-spec if necessary.
12592 (merge_face_ref): Clear properties of the font-spec if necessary.
12593 (Finternal_set_lisp_face_attribute): Likewise.
12594 (set_font_frame_param): Use font_load_for_lface to load a
12595 font-object, and call Fmodify_frame_parameters with it.
12596 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12597 font name by Ffont_xlfd_name.
12598 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12599 QCslant, and QCwidth.
12600 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12601 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12602 Compare fonts by EQ.
12603 (lookup_non_ascii_face): Deleted.
12604 (face_for_font): The 2nd argument changed.
12605 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12606 Check atomic font properties by case insensitive.
12607 (realize_non_ascii_face): Set face->overstrike correctly.
12608 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12609 (dump_realized_face): Get font name from
12610 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12611
12612 * xfns.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.
12615 (xic_create_xfontset): Original code deleted and renamed from
12616 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12617 (x_make_gc): Don't set GCFont in GCs.
12618 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12619 opened by "fixed".
12620 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12621 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12622 get_font_repertory_func.
12623
12624 * xfont.c: Include <stdlib.h> and "ccl.h".
12625 (struct xfont_info): New structure.
12626 (xfont_query_font): Deleted.
12627 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12628 moved from xterm.c.
12629 (xfont_driver): Adjusted for the change of struct font_driver.
12630 (compare_font_names): New function.
12631 (xfont_list_pattern): Sort font names case insensitively. Make
12632 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12633 (xfont_list): Return a list, not vector.
12634 (xfont_match): If the font doesn't have QCname property, generate
12635 a name from the other font properties.
12636 (xfont_open): Return a font-object. Adjusted for the change of
12637 struct font. Get underline_thickness and underline_position from
12638 font property. Don't update dpyinfo->smallest_font_height and
12639 dpyinfo->smallest_char_width.
12640 (xfont_close): Don't free struct font.
12641 (xfont_prepare_face): Adjusted for the change of struct font.
12642 (xfont_done_face): Deleted.
12643 (xfont_has_char): Adjusted for the change of struct font.
12644 (xfont_encode_char, xfont_draw): Likewise.
12645 (xfont_check): New function.
12646
12647 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12648 callback function.
12649 (xftfont_match): Adjusted for the format change of font-entity.
12650 (xftfont_open): Adjusted for the format change of font-entity and
12651 font-object. Adjusted for the change of struct font. Return a
12652 font-object. Don't update dpyinfo->smallest_font_height and
12653 dpyinfo->smallest_char_width.
12654 (xftfont_close): Block input while calling XftFontClose.
12655 (xftfont_prepare_face): Don't block input while calling
12656 xftfont_get_colors. Adjusted for the change of struct font.
12657 (xftfont_shape): Return value of error case fixed.
12658
12659 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12660
12661 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12662 conditionals.
12663 (FONT_WIDTH): Return (f)->max_width.
12664 (struct x_display_info): Delete member `font'.
12665 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12666 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12667 (struct x_output): Change type of `font' to `struct font *'.
12668
12669 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12670 conditionals. Don't check enable_font_backend. Delete all codes
12671 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12672 (x_per_char_metric, x_encode_char): Deleted.
12673 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12674 (x_compute_glyph_string_overhangs): Adjusted for the change of
12675 `struct face'.
12676 (x_draw_glyph_string_foreground)
12677 (x_draw_composite_glyph_string_foreground): Likewise.
12678 (x_draw_glyph_string): Likewise. Use font->underline_position and
12679 font->underline_thickness.
12680 (x_new_font): Renamed from x_new_fontset2.
12681 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12682 (x_check_font): Call `check' method of a font driver.
12683 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12684 (x_query_font, x_get_font_repertory): Deleted.
12685 (x_find_ccl_program): Renamed and moved to xfont.c.
12686 (x_redisplay_interface): Adjusted for the change of `struct
12687 redisplay_interface'.
12688
12689 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12690 conditionals. Don't check enable_font_backend. Delete all codes
12691 used only when USE_FONT_BACKEND is not defined. Surround non-used
12692 code by "#ifdef OLD_FONT" and "endif".
12693 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12694
12695 * w32font.h (struct w32font_info): New member.
12696 (FONT_COMPAT): New macro.
12697 (w32font_open_internal): Prototype adjusted.
12698
12699 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12700 OLD_FONT" and "endif".
12701
12702 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12703 conditionals. Don't check enable_font_backend. Delete all codes
12704 used only when USE_FONT_BACKEND is not defined.
12705 (w32font_open): Return a font-object. Make a font-object by
12706 font_make_object. Adjusted for the change of struct w32font_info.
12707 (w32font_close): Don't free struct font. Adjusted for the change
12708 of struct w32font_info.
12709 (w32font_encode_char, w32font_text_extents, w32font_draw):
12710 Adjusted for the change of struct w32font_info.
12711 (w32font_draw): Likewise.
12712 (w32font_list_internal): Return a list, not vector.
12713 (w32font_open_internal): Change the 4th arg to font-object.
12714 Adjusted for the change of struct w32font_info and font-object format.
12715 (add_font_name_to_list): Don't downcase names.
12716 (w32_enumfont_pattern_entity): Make a font-entity by
12717 font_make_entity. Adjusted for the format change of font-entity.
12718 Use FONT_SET_STYLE to set a style-related font property. If a
12719 font is scalable, set avgwidth property to 0. Set font-entity
12720 property by font_put_extra.
12721 (font_matches_spec): Adjusted for the format change of font-entity.
12722 (w32_weight_table, w32_decode_weight): New variables.
12723 (w32_encode_weight): New function.
12724 (fill_in_logfont): Adjusted for the format change of font-spec.
12725 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12726 weight value.
12727 (w32font_driver): Adjusted for the change of struct font_driver.
12728
12729 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12730 conditionals. Don't check enable_font_backend. Surround non-used
12731 code by "#ifdef OLD_FONT" and "endif".
12732 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12733 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12734
12735 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12736 conditionals. Don't check enable_font_backend. Delete all codes
12737 used only when USE_FONT_BACKEND is not defined. Surround non-used
12738 code by "#ifdef OLD_FONT" and "endif".
12739
12740 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12741 (uniscribe_open): Return value changed to font-object.
12742 Adjusted for the format change of font-object.
12743 (uniscribe_otf_capability): Adjusted for the change of struct font.
12744 (add_opentype_font_name_to_list): Don't downcase names.
12745 (uniscribe_font_driver): Adjusted for the change of struct
12746 font_driver.
12747
127482008-05-13 Chong Yidong <cyd@stupidchicken.com>
12749
12750 * dispnew.c (update_frame_1): Check if tty output is still valid
12751 before flushing it.
12752
127532008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12754
12755 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12756 to Gtk+ menus.
12757
127582008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12759
12760 * dired.c (file_name_completion): Tweak the code so as to always do it
12761 in a single pass. Tighten the scope of some variables.
12762
12763 * dired.c (Qdefault_directory): New var.
12764 (file_name_completion): Use it instead of Fexpand_file_name.
12765 (syms_of_dired): Initialize it.
12766
127672008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12768
12769 * fileio.c (double_dollars): Remove dead code.
12770
127712008-05-10 Eli Zaretskii <eliz@gnu.org>
12772
12773 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12774 Mention w32-get-true-file-attributes in doc string.
12775
12776 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12777
127782008-05-09 Glenn Morris <rgm@gnu.org>
12779
12780 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12781 2008-04-23.
12782
127832008-05-09 Eli Zaretskii <eliz@gnu.org>
12784
12785 Support for reporting owner and group of each file on MS-Windows:
12786 * dired.c (stat_uname, stat_gname): New functions, with special
12787 implementation for w32.
12788 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12789
12790 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12791 (dflt_group_name): New static variable.
12792 (dflt_group): Rename from the_group.
12793 (init_user_info): Init dflt_group fields. Get user's group name
12794 from LookupAccountSid.
12795 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12796 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12797 New initialization states.
12798 (globals_of_w32): Initialize them to zero. Initialize the default
12799 group name to "None".
12800 (GetFileSecurity_Name): New global var, the name of the function
12801 to call for GetFileSecurity.
12802 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12803 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12804 (get_file_security, get_security_descriptor_owner)
12805 (get_security_descriptor_group, is_valid_sid)
12806 (get_file_security_desc, get_rid, get_name_and_id)
12807 (get_file_owner_and_group): New functions.
12808 (stat): Use get_file_security_desc and get_file_owner_and_group to
12809 report the owner and primary group of each file. Don't ignore the
12810 high 32 bits of file's size, now that st_size is 64-bit wide.
12811 Fix test when to get true file attributes.
12812 (init_user_info): Use get_rid instead of equivalent inline code.
12813 (fstat): Don't ignore the high 32 bits of file's size.
12814
128152008-05-09 Chong Yidong <cyd@stupidchicken.com>
12816
12817 * image.c (png_load): Use correct bit-depth for setting background
12818 color.
12819
128202008-05-08 Eli Zaretskii <eliz@gnu.org>
12821
12822 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12823 epa-hook.elc.
12824
128252008-05-08 Juanma Barranquero <lekktu@gmail.com>
12826
12827 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12828
128292008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12830
12831 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12832 because the original parameters are in pure storage now.
12833 (mac_window): Remove unused params. Update callers.
12834
128352008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12836
12837 * lread.c (substitute_object_recurse): Use lower-level primitives.
12838 Don't signal errors when traversing sub-char-tables.
12839 Don't loop over all the possible characters when traversing char-tables.
12840
12841 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12842 just like we do in print.c.
12843
128442008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12845
12846 * minibuf.c (Ftry_completion): Remove code left over from when we used
12847 scmp instead of Fcompare_strings.
12848
128492008-05-04 Juanma Barranquero <lekktu@gmail.com>
12850
12851 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12852
128532008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12854
12855 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12856 Create bitmap context in native byte order.
12857
12858 * macterm.c (XDrawLine)
12859 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12860 context in native byte order.
12861
128622008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12863
12864 * config.in: Regenerate.
12865
12866 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12867 New definitions for Image I/O support.
12868 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12869 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12870 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12871 (mac_data_provider_release_data, image_load_image_io)
12872 [USE_MAC_IMAGE_IO]: New functions.
12873 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12874 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12875 (init_image_func_pointer) [MAC_OSX]: Remove function.
12876 (image_load_quartz2d) [MAC_OSX]: Check availability of
12877 CGImageCreateWithPNGDataProvider at compile time.
12878 Use lowercase `false' for boolean constant.
12879 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12880 Use image_load_image_io.
12881 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12882 Don't check MyCGImageCreateWithPNGDataProvider.
12883 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12884 Don't call init_image_func_pointer.
12885
12886 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12887
12888 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12889 Make variable non-static.
12890 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12891 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12892
12893 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12894 (RED_FROM_ULONG): Mask off higher bits.
12895 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12896
12897 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12898 Include AvailabilityMacros.h.
12899 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12900 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12901
129022008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12903
12904 * chartab.c (Fset_char_table_range): If range is t, really set all
12905 chars to that value.
12906
129072008-05-03 Eli Zaretskii <eliz@gnu.org>
12908
12909 * dired.c (Ffile_attributes): Don't allow the device number become
12910 negative.
12911
129122008-05-02 Daiki Ueno <ueno@unixuser.org>
12913
12914 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12915
129162008-05-02 Juri Linkov <juri@jurta.org>
12917
12918 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12919 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12920 DEFAULT argument as a list of default values in docstrings.
12921
129222008-05-01 Chong Yidong <cyd@stupidchicken.com>
12923
12924 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12925
129262008-05-01 Martin Rudalics <rudalics@gmx.at>
12927
12928 * dispnew.c (change_frame_size_1): Preserve small windows when
12929 shrinking frames by calling set_window_height|width with third
12930 arg 2.
12931
12932 * window.h (struct window): Replace field too_small_ok by field
12933 resize_proportionally.
12934
12935 * window.c (make_window): Initialize resize_proportionally.
12936 (enlarge_window): Temporarily set resize_proportionally to make
12937 sure that shrink_windows does scale the window proportionally.
12938 (shrink_windows): When window has resize_proportionally set try
12939 to shrink it proportionally by stealing from other windows.
12940 (struct saved_window, Fset_window_configuration)
12941 (compare_window_configurations): Handle resize_proportionally.
12942 (WINDOW_TOTAL_SIZE): New macro.
12943 (window_min_size, shrink_windows, size_window): Use it.
12944 (check_min_window_sizes): Remove. Invalid values of
12945 window-min-height|width are handled by window_min_size_2 now.
12946 (size_window, Fsplit_window, enlarge_window)
12947 (adjust_window_trailing_edge, grow_mini_window): Don't call
12948 check_min_window_sizes.
12949 (window_min_size_2, window_min_size_1, window_min_size):
12950 New argument safe_p for retrieving "safe" minimum sizes.
12951 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12952 (adjust_window_trailing_edge, grow_mini_window):
12953 Adjust arguments of window_min_size... functions.
12954 (shrink_windows): Argument min_size removed. New argument
12955 safe_p allows shrinking windows to their safe minimum sizes.
12956 Calculate minimum size and decide whether a window shall be
12957 deleted for each window individually.
12958 (size_window): When nodelete_p equals 2, tell shrink_windows to
12959 delete windows only if their new minimum size is no more safe.
12960 (shrink_window_lowest_first): Call window_min_size_1 to make
12961 sure to preserve modeline of bottom-most window when resizing
12962 the minibuffer.
12963 (Fset_window_configuration, Fcurrent_window_configuration)
12964 (compare_window_configurations): Do not handle
12965 window-min-height|width any more.
12966 (syms_of_window): Clarify window-min-height|width doc-strings.
12967
129682008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12969
12970 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12971 some more. Copy some of the code from Ftry_completions.
12972 Remove special case code that dates back to initial revision when the
12973 slash was only added when necessary and that can't trigger nowadays.
12974
129752008-04-27 Kenichi Handa <handa@m17n.org>
12976
12977 * font.c (font_prop_validate): Signal `error' instead of `font'.
12978
129792008-04-29 Jason Rumney <jasonr@gnu.org>
12980
12981 * w32fns.c (Fw32_battery_status): New defun.
12982 (syms_of_w32fns): Defsubr it.
12983
129842008-04-28 Andreas Schwab <schwab@suse.de>
12985
12986 * dired.c (file_name_completion): Fix another mixing of encoded
12987 and decoded names.
12988
129892008-04-28 Juanma Barranquero <lekktu@gmail.com>
12990
12991 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12992
129932008-04-27 Juanma Barranquero <lekktu@gmail.com>
12994
12995 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12996
129972008-04-27 Andreas Schwab <schwab@suse.de>
12998
12999 * dired.c (file_name_completion): Fix inappropriate mixing of
13000 encoded and decoded names.
13001
13002 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13003
13004 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13005
130062008-04-26 Eli Zaretskii <eliz@gnu.org>
13007
13008 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13009 2008-03-31, it's not needed anymore with `struct stat' definition
13010 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13011 for the same reasons.
13012
130132008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13014
13015 * m/sparc.h: Additional redefinitions for GNU/Linux.
13016
130172008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13018
13019 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13020 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13021 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13022 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13023 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13024 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13025 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13026 Likewise.
13027
13028 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13029 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13030 (mac_ax_number_of_characters): Add externs.
13031 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13032 [USE_MAC_TSM]: Likewise.
13033 (mac_handle_text_input_event) [MAC_OSX]:
13034 Handle kEventTextInputOffsetToPos for no active input area case.
13035 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13036 (mac_handle_document_access_event)
13037 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13038 (install_application_handler) [MAC_OSX]: Register handlers for
13039 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13040 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13041 Register mac_handle_document_access_event.
13042
13043 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13044 Make functions non-static.
13045
130462008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13047
13048 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13049 (read_file_name_completion_ignore_case, insert_default_directory)
13050 (Qdefault_directory): Move to minibuffer.el.
13051 (Fread_file_name): Call the new `read-file-name' instead.
13052
130532008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13054
13055 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13056 Make function non-static.
13057 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13058 Remove function.
13059 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13060 Move to mactoolbox.c.
13061 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13062
13063 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13064 (mac_rect_make): New macro.
13065
13066 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13067 instead of float.
13068 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13069 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13070 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13071 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13072 CGRectMake.
13073 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13074 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13075 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13076 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13077 instead of WindowRef in argument type.
13078 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13079 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13080 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13081 instead of DISPLAY. All uses changed.
13082 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13083 (x_calc_absolute_position): Simplify so as not to use
13084 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13085
13086 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13087 instead of WindowRef in argument type.
13088 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13089 [TARGET_API_MAC_CARBON]: Remove externs.
13090 (create_apple_event, mac_event_parameters_to_lisp)
13091 [TARGET_API_MAC_CARBON]: Add externs.
13092
13093 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13094 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13095 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13096 is clicked.
13097 (x_activate_menubar): Remove extern for saved_menu_event_location.
13098 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13099 Move from mac.c.
13100
131012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13102
13103 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13104 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13105
131062008-04-23 Jason Rumney <jasonr@gnu.org>
13107
13108 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13109 attributes only for local files.
13110
13111 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13112 default to Qlocal.
13113
131142008-04-22 Juri Linkov <juri@jurta.org>
13115
13116 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13117 read-buffer-to-switch instead of using the letter "B".
13118
131192008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13120
13121 * fileio.c (Qdefault_directory): New variable.
13122 (Fread_file_name): Use it to pass `dir' to the completion functions.
13123
131242008-04-20 Chong Yidong <cyd@stupidchicken.com>
13125
13126 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13127
131282008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13129
13130 * keyboard.c (Vpre_help_message): Remove.
13131 (show_help_echo): Remove default C code.
13132
13133 * dired.c (directory_files_internal, file_name_completion):
13134 Only call ENCODE_FILE if the string is indeed decoded.
13135
131362008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13137
13138 * Makefile.in (TOOLKIT_DEFINES): Remove.
13139 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13140
131412008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13142
13143 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13144 (mactoolbox.o): New target.
13145
13146 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13147 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13148
13149 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13150 Use mac_set_frame_window_background instead of XSetWindowBackground.
13151 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13152 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13153 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13154 instead of SetWindowTitleWithCFString.
13155 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13156 Move function to mactoolbox.c.
13157 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13158 Use mac_set_window_modified instead of SetWindowModified.
13159 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13160 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13161 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13162 FrontNonFloatingWindow. Use mac_activate_window instead of
13163 ActivateWindow. Use mac_active_non_floating_window instead of
13164 ActiveNonFloatingWindow.
13165 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13166 Use mac_show_hourglass and mac_hide_hourglass.
13167 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13168 instead of GetGlobalMouse.
13169 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13170 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13171 Use mac_bring_window_to_front instead of BringToFront.
13172 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13173 mactoolbox.c.
13174 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13175 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13176 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13177 mactoolbox.c.
13178
13179 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13180 (XtPointer): Move typedef from macmenu.c.
13181 (enum button_type): Move enum from macmenu.c.
13182 (widget_value): Move typedef from macmenu.c.
13183 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13184 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13185 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13186 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13187 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13188 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13189 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13190 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13191 (Selection): Move typedef from macselect.c.
13192 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13193 macterm.c.
13194 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13195 (mac_is_window_collapsed, mac_bring_window_to_front)
13196 (mac_send_window_behind, mac_hide_window, mac_show_window)
13197 (mac_collapse_window, mac_front_non_floating_window)
13198 (mac_active_non_floating_window, mac_activate_window)
13199 (mac_move_window_structure, mac_move_window, mac_size_window)
13200 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13201
13202 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13203 (enum mac_menu_kind): Move enum to mactoolbox.c.
13204 (min_menu_id): Move variable to mactoolbox.c.
13205 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13206 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13207 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13208 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13209 [TARGET_API_MAC_CARBON]: Likewise.
13210 (XtPointer): Move typedef to macgui.h.
13211 (enum button_type): Move enum to macgui.h.
13212 (widget_value): Move typedef to macgui.h.
13213 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13214 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13215 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13216 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13217 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13218 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13219 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13220 (popup_activated_flag): Make variable non-static.
13221 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13222 (add_menu_item, fill_menu, dispose_menus):
13223 Move functions to mactoolbox.c.
13224 (restore_show_help_function, menu_target_item_handler)
13225 (install_menu_target_item_handler, mac_handle_dialog_event)
13226 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13227 [TARGET_API_MAC_CARBON]: Likewise.
13228 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13229 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13230 (find_and_call_menu_selection, name_is_separator): Make function
13231 non-static.
13232 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13233 to mactoolbox.c.
13234 (set_frame_menubar): Don't call install_menu_quit_handler.
13235 (menu_item_selection): New variable.
13236 (mac_menu_show): Use create_and_show_popup_menu.
13237 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13238 selection but set variable menu_item_selection. All uses changed.
13239 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13240 Call install_menu_quit_handler. Move to mactoolbox.c.
13241
13242 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13243 (Selection): Move typedef to macgui.h.
13244 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13245 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13246 Make variables non-static.
13247 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13248 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13249 Make functions non-static.
13250 (Vmac_service_selection) [MAC_OSX]: Likewise.
13251 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13252 (mac_valid_selection_target_p, mac_clear_selection)
13253 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13254 (mac_put_selection_value, mac_selection_has_target_p)
13255 (mac_get_selection_value, mac_get_selection_target_list)
13256 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13257 Move functions to mactoolbox.c.
13258 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13259 Likewise.
13260 (copy_scrap_flavor_data, mac_handle_service_event)
13261 (install_service_handler) [MAC_OSX]: Likewise.
13262 (syms_of_macselect) <Vmac_dnd_known_types>:
13263 Use mac_dnd_default_known_types.
13264
13265 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13266 Move to mactoolbox.c.
13267 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13268 (Fx_selection_owner_p): Add EXFUN.
13269 (install_window_handler, remove_window_handler, XSetWindowBackground):
13270 Remove externs.
13271 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13272 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13273 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13274 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13275 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13276 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13277 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13278 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13279 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13280 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13281 (mac_valid_selection_target_p, mac_clear_selection)
13282 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13283 (mac_put_selection_value, mac_selection_has_target_p)
13284 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13285 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13286 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13287 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13288 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13289 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13290 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13291 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13292 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13293
13294 * mactoolbox.c: New file.
13295
132962008-04-18 Jason Rumney <jasonr@gnu.org>
13297
13298 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13299
133002008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13301
13302 * character.c (Fmultibyte_char_to_unibyte):
13303 Return latin1 chars unchanged.
13304
13305 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13306 relocated if it points to `name'.
13307
133082008-04-17 Kenichi Handa <handa@m17n.org>
13309
13310 * data.c (Faset): Allow setting a multibyte character in an
13311 ASCII-only unibyte string.
13312
13313 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13314
133152008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13316
13317 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13318 done in config.h.
13319
133202008-04-16 Juanma Barranquero <lekktu@gmail.com>
13321
13322 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13323 (Fchar_direction): Add usage in the docstring.
13324
133252008-04-15 Chong Yidong <cyd@stupidchicken.com>
13326
13327 * keyboard.c (read_key_sequence): Remove always-true checks.
13328
133292008-04-14 Jason Rumney <jasonr@gnu.org>
13330
13331 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13332 compatibility struct, for better underline positioning.
13333
133342008-04-13 David Hansen <david.hansen@gmx.net>
13335
13336 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13337 string.
13338
133392008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13340
13341 * m/hp800.h (XUINT, XSET): Remove.
13342
133432008-04-12 Juanma Barranquero <lekktu@gmail.com>
13344
13345 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13346 previous change.
13347
133482008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13349
13350 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13351 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13352
133532008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13354
13355 * keymap.h (map_keymap_canonical): Declare.
13356 * xmenu.c (single_keymap_panes): Use it.
13357
133582008-04-11 Glenn Morris <rgm@gnu.org>
13359
13360 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13361 set the target's value to that of the alias.
13362
133632008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13364
13365 * term.c (set_tty_color_mode): Left over typo.
13366
133672008-04-10 Michael Albinus <michael.albinus@gmx.de>
13368
13369 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13370 only after check for file name handler functions. Signal, when
13371 native functionality is not supported.
13372 (syms_of_fileio): Declare it unconditionally.
13373
133742008-04-10 Jason Rumney <jasonr@gnu.org>
13375
13376 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13377 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13378
13379 * w32.c (logon_network_drive): Also logon to remote drives that
13380 are mapped to drive letters.
13381
133822008-04-10 Glenn Morris <rgm@gnu.org>
13383
13384 * xdisp.c (truncate-partial-width-windows): Doc fix.
13385
133862008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13387
13388 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13389 Move functions to minibuffer.el.
13390 (syms_of_fileio): Don't declare them.
13391
133922008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13393
13394 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13395 (syms_of_minibuf): Remove its initialization.
13396
13397 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13398
133992008-04-09 Juanma Barranquero <lekktu@gmail.com>
13400
13401 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13402
134032008-04-09 Jason Rumney <jasonr@gnu.org>
13404
13405 * makefile.w32-in (distclean): Delete makefile too.
13406 (maintainer-clean): New target.
13407
13408 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13409
13410 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13411 for new font backend and composite cases.
13412
134132008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13414
13415 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13416 Most of the code moved to run_timers.
13417 (do_pending_atimers): Call run_timers.
13418 (run_timers): New function.
13419
13420 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13421 run atimers.
13422
13423 * process.c (wait_reading_process_output): The same as above.
13424
134252008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * minibuf.c (last_exact_completion): Remove variable.
13428 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13429 (complete_and_exit_1, complete_and_exit_2)
13430 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13431 (Fdisplay_completion_list, display_completion_list_1)
13432 (Fminibuffer_completion_help, Fself_insert_and_exit)
13433 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13434 minibuffer.el.
13435 (syms_of_minibuf): Remove corresponding initializations.
13436
13437 * keyboard.c (Qdeactivate_mark): New var.
13438 (command_loop_1): Use it to call `deactivate-mark'.
13439 (syms_of_keyboard): Initialize it.
13440
13441 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13442 to another frame.
13443 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13444 Don't call set_tty_color_mode.
13445 (store_frame_param): Reset previous_frame rather than call
13446 set_tty_color_mode.
13447 * term.c (set_tty_color_mode): Rewrite.
13448 * dispextern.h (set_tty_color_mode): New type.
13449 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13450
134512008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13452
13453 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13454 for generic chars, which do not exist any more in emacs-unicode.
13455
134562008-04-08 Michael Albinus <michael.albinus@gmx.de>
13457
13458 * coding.c (detect_coding_emacs_mule)
13459 (Ffind_operation_coding_system): Fix typo.
13460
134612008-04-08 Jason Rumney <jasonr@gnu.org>
13462
13463 * w32uniscribe.c (SNAME): Extract only symbol name.
13464
13465 * w32font.h (struct w32_metric_cache): New struct.
13466 (w32font_info): Use it.
13467 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13468 (CACHE_BLOCKSIZE): New constants.
13469
13470 * w32font.c (Qja, Qko, Qzh): New symbols.
13471 (syms_of_w32font): Initialise them.
13472 (font_matches_spec): Use them to filter by language.
13473 (recompute_cached_metrics): Remove function.
13474 (compute_metrics, clear_cached_metrics): New functions.
13475 (w32font_encode_char): Use them to manage metric cache.
13476 (w32font_text_extents): Cache metrics for all glyphs on demand.
13477 Delay converting glyph indices to WORD until needed.
13478 (w32font_open_internal): Initialize metric cache to empty.
13479 (registry_to_w32_charset): Charset should always be a symbol.
13480 (fill_in_logfont, list_all_matching_fonts): Family should
13481 always be a symbol.
13482
134832008-04-06 Jason Rumney <jasonr@gnu.org>
13484
13485 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13486 Give up if glyph indices not supported. Use uniscribe obtained
13487 ABC widths for individual metrics. Map glyph clusters back to
13488 characters using fClusterStart flag. Return number of glyphs
13489 produced, not chars processed.
13490 (uniscribe_shape): Map char at FROM to current glyph.
13491
134922008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13493
13494 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13495 Use SetMenuItemHierarchicalMenu.
13496
134972008-04-05 Jason Rumney <jasonr@gnu.org>
13498
13499 * image.c (pbm_load): Allow color values up to 65535.
13500 Throw an error if max_color_idx is outside the supported range.
13501 Report an error when image size is invalid.
13502 Read two bytes at a time when raw images have max_color_idx above 255.
13503
135042008-04-05 Eli Zaretskii <eliz@gnu.org>
13505
13506 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13507 cFileName a file name that includes `?' characters, use the 8+3
13508 alias in cAlternateFileName instead.
13509
135102008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13511
13512 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13513 append "CCL: Quitted" when the CCL program is quitted.
13514 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13515
13516 * ccl.h (struct ccl_program): New member quit_silently.
13517
135182008-04-05 Chong Yidong <cyd@stupidchicken.com>
13519
13520 * search.c (compile_pattern_1): Treat non-nil and non-string of
13521 search-spaces-regexp as nil.
13522
13523 * minibuf.c (Fassoc_string): Tweak docstring.
13524
135252008-04-05 Eli Zaretskii <eliz@gnu.org>
13526
13527 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13528 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13529 2008-03-14 to force inode be positive.
13530
13531 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13532 _S_* ones, since we now use our own sys/stat.h.
13533 (stat, fstat): Don't mangle the inode number.
13534 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13535
135362008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13537
13538 * frame.h (struct frame): Give one more bit to `visible' since we use
13539 values larger than 1 to indicate obscured frames on ttys.
13540
13541 * keymap.c (Qkeymap_canonicalize): New var.
13542 (Fmap_keymap_internal): New fun.
13543 (describe_map): Use keymap-canonicalize.
13544
13545 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13546 (Fundo_boundary): Set them.
13547 (syms_of_undo): Initialize them.
13548 (record_point): Use them instead of last_point_position*.
13549 (last_undo_buffer): Change type.
13550
135512008-04-04 Jason Rumney <jasonr@gnu.org>
13552
13553 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13554 (recompute_cached_metrics): Don't set ascent and descent per char.
13555
13556 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13557 (uniscribe_check_otf): Add GC protection before consing.
13558 Rearrange loop for counting features.
13559
135602008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13561
13562 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13563 buffer with byte-size of source buffer.
13564
135652008-04-03 Chong Yidong <cyd@stupidchicken.com>
13566
13567 * callint.c (Fcall_interactively): Handle temporary region even
13568 when shift-select-mode is off.
13569
135702008-04-03 Jason Rumney <jasonr@gnu.org>
13571
13572 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13573
135742008-04-03 Kenichi Handa <handa@m17n.org>
13575
13576 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13577 (CATEGORY_MASK_UTF_16): Likewise.
13578 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13579 binary file.
13580 (detect_coding): Add null-byte detection for a binary file.
13581 (detect_coding_system): Likewise.
13582
135832008-04-03 Jason Rumney <jasonr@gnu.org>
13584
13585 * w32uniscribe.c: New file.
13586
13587 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13588
13589 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13590
13591 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13592 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13593 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13594 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13595 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13596 (Qphonetic): New symbols.
13597 (syms_of_w32font): Initialize them.
13598 (font_supported_scripts): Use them.
13599 (w32font_list_family): List all charsets.
13600 (w32font_text_extents, recompute_cached_metrics): Fix metric
13601 calculations.
13602 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13603 Give opentype fonts their own format.
13604 (font_matches_spec): New arguments backend and logfont.
13605 Handle :otf spec for uniscribe backend.
13606 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13607 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13608
13609 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13610 font backend.
13611 (globals_of_w32fns): Initialize uniscribe font backend.
13612
13613 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13614 dependencies.
13615 (w32uniscribe.$(O)): New file to build.
13616 (FONT_OBJ): Include w32uniscribe.$(O).
13617 (LIBS): Add uniscribe libraries.
13618
13619 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13620
136212008-04-02 Chong Yidong <cyd@stupidchicken.com>
13622
13623 * callint.c (Vshift_select_mode): New var.
13624 (Finteractive): Document new ^ spec.
13625 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13626 is present.
13627
13628 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13629 (command_loop_1): Avoid running the direct display versions of
13630 forward-char and backward-char if shift-selection may occur.
13631 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13632 shift-translation takes place.
13633
13634 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13635 avoid clobbering by define-minor-mode.
13636
13637 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13638 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13639
13640 * syntax.c (Fforward_word): Add ^ interactive spec.
13641
13642 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13643 (Fscroll_right): Add ^ interactive spec.
13644
136452008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13646
13647 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13648
13649 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13650
13651 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13652
136532008-03-31 Juri Linkov <juri@jurta.org>
13654
13655 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13656
136572008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13658
13659 * gtkutil.c (xg_set_geometry): Fix indentation.
13660 (xg_resize_outer_widget): Remove.
13661 (x_wm_size_hint_off): Fix indentation.
13662 (xg_frame_set_char_size): Call flush_and_sync after
13663 gtk_window_resize.
13664 (x_wm_set_size_hint): Pass NULL as geometry window to
13665 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13666 Add menu bar and tool bar height to base height.
13667 (xg_update_frame_menubar, free_frame_menubar)
13668 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13669 (update_frame_tool_bar, free_frame_tool_bar):
13670 Change xg_resize_outer_widget to xg_frame_set_char_size.
13671
136722008-03-30 Michael Albinus <michael.albinus@gmx.de>
13673
13674 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13675 (Fdbus_call_method): New parameter TIMEOUT.
13676 (dbus-send-signal): Optimize UNGCPRO call.
13677
136782008-03-29 Juri Linkov <juri@jurta.org>
13679
13680 * window.c (Fdisplay_buffer): Move call to
13681 Vsplit_window_preferred_function out of conditions that check
13682 if window is eligible for vertical splitting.
13683 When Vsplit_window_preferred_function is non-nil, call it and use
13684 its non-nil return value as window. Otherwise, continue doing
13685 vertical splitting using Fsplit_window with arg horflag=nil.
13686 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13687 default value from `split-window' to nil.
13688
136892008-03-29 Juri Linkov <juri@jurta.org>
13690
13691 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13692 for interactive code letters 'b' and 'B'.
13693
136942008-03-29 Eli Zaretskii <eliz@gnu.org>
13695
13696 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13697 multibyte string.
13698
136992008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13700
13701 * keyboard.c (pending_funcalls): New var.
13702 (timer_check): Run it.
13703 (syms_of_keyboard): Initialize it.
13704 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13705 (Vdelete_terminal_functions): New vars.
13706 (syms_of_terminal): Initialize them.
13707 (Fdelete_terminal): Run delete-terminal-functions.
13708 * xdisp.c (safe_eval): Rewrite.
13709 (safe_call2): New fun.
13710 * frame.c (Qdelete_frame_functions): New var.
13711 (syms_of_frame): Initialize it.
13712 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13713 * lisp.h (safe_call2, pending_funcalls): Declare.
13714
137152008-03-28 Andreas Schwab <schwab@suse.de>
13716
13717 * indent.c (Fmove_to_column): Move declaration before statements.
13718
137192008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13720
13721 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13722 (struct frame): Use bit fields for boolean vars.
13723
13724 * process.c (server_accept_connection): Simplify naming.
13725 (emacs_get_tty_pgrp): Use SDATA.
13726
13727 * coding.c (decode_coding_object): Fix last change.
13728
137292008-03-27 Jason Rumney <jasonr@gnu.org>
13730
13731 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13732
137332008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13734
13735 * charset.c (Fdefine_charset_internal): Change the way of
13736 registering charsets in Vcharset_order_list.
13737 (syms_of_charset): Make the charset `eight-bit' supplementary.
13738
137392008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13740
13741 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13742 operations, to avoid having the difference between pointers
13743 overflow.
13744
137452008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13746
13747 * indent.c (check_display_width): New fun.
13748 (scan_for_column): Use it.
13749
13750 * data.c (syms_of_data): Mark most-positive-fixnum and
13751 most-negative-fixnum as constants.
13752
13753 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13754
13755 * indent.c (scan_for_column): Extract from current_column_1.
13756 Merge with the same code from Fmove_to_column.
13757 (current_column_1, Fmove_to_column): Use it.
13758
137592008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13760
13761 * keymap.c (map_keymap_internal): New fun.
13762 (map_keymap): Use it.
13763 (Fmap_keymap_internal): New fun.
13764 (Fmap_keymap): Remove left-out test from before make_save_value.
13765
13766 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13767
13768 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13769 Use XCAR/XCDR.
13770
13771 * process.h (struct Lisp_Process): Remove filter_multibyte.
13772 * process.c (QCfilter_multibyte): Remove.
13773 (setup_process_coding_systems): Don't use filter_multibyte.
13774 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13775 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13776 (Fset_process_filter_multibyte): Change the coding-system to
13777 approximate the previous behavior.
13778 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13779 coding-system.
13780
13781 * coding.c (decode_coding_object): When not decoding into a buffer,
13782 obey the coding system's preference of (uni|multi)byte.
13783
137842008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13785
13786 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13787 every char is changed and has a different byte-length.
13788 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13789 Fix int -> EMACS_INT.
13790
137912008-03-23 David Hansen <david.hansen@gmx.net>
13792
13793 * dbusbind.c (xd_read_message): Remove extra copying of message
13794 strings. Check for NULL `interface' or `member'.
13795
137962008-03-22 Eli Zaretskii <eliz@gnu.org>
13797
13798 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13799 cFileName a file name that includes `?' characters, use the 8+3
13800 alias in cAlternateFileName instead.
13801
138022008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13803
13804 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13805
138062008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13807
13808 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13809 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13810 work on current_buffer only instead (that was already the case
13811 for some of the code anyway).
13812 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13813 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13814 (SET_PT, SET_PT_BOTH): Adjust.
13815 * intervals.h (set_point, temp_set_point, set_point_both)
13816 (temp_set_point_both): Remove redundant declarations.
13817
138182008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13819
13820 * fileio.c (Finsert_file_contents):
13821 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13822 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13823 when buffer != current_buffer anyway.
13824
138252008-03-20 Andreas Schwab <schwab@suse.de>
13826
13827 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13828 as default.
13829
138302008-03-19 Jason Rumney <jasonr@gnu.org>
13831
13832 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13833 (syms_of_w32fns): Initialize them.
13834 (HOURGLASS_ID): New constant.
13835 (x_window_to_frame): Don't check hourglass_window.
13836 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13837 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13838 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13839 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13840 Only change the cursor if hourglass is not active.
13841 (Fx_create_frame): Initialize frame's current_cursor.
13842 (hourglass_atimer): Remove.
13843 (hourglass_started): New function.
13844 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13845 (show_hourglass): Adapt to w32, changing argument to frame.
13846
13847 * w32term.h (struct w32_output): Remove hourglass_window.
13848 Add current_cursor.
13849
13850 * eval.c (call_debugger, Fsignal):
13851 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13852 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13853 (Fexecute_extended_command, cancel_hourglass_unwind):
13854 * minibuf.c (read_minibuf):
13855 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13856
138572008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13858
13859 * window.c (run_funs): New fun.
13860 (run_window_configuration_change_hook): Use it to run the buffer-local
13861 and the global part of the hook.
13862
13863 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13864 (unwind_format_mode_line): Restore selected window.
13865 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13866
138672008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13868
13869 * editfns.c (Fchar_equal): Check they are valid characters.
13870
13871 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13872
138732008-03-17 Andreas Schwab <schwab@suse.de>
13874
13875 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13876 against a charset.
13877
13878 * lisp.h (Fbuffer_list): Declare.
13879
138802008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13881
aac0c6e3
MR
13882 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13883 handlebox_widget is != 0.
13884
138852008-03-16 Juri Linkov <juri@jurta.org>
13886
13887 * callint.c (Fcall_interactively): For interactive code letters
13888 'b' and 'B' put the buffer list into the list of default "future"
13889 values of the minibuffer.
13890
138912008-03-16 Andreas Schwab <schwab@suse.de>
13892
13893 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13894 modifiers.
13895
13896 * regex.c (re_match_2_internal): Correct matching of a charset
13897 against latin-1 characters.
13898
138992008-03-16 Kenichi Handa <handa@m17n.org>
13900
13901 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13902 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13903 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13904 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13905 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13906 CHAR_STRING_ADVANCE.
13907 (produce_chars): Fix for the case that the source and the
13908 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13909 instead of CHAR_STRING_ADVANCE.
13910 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13911 STRING_CHAR_ADVANCE.
13912
139132008-03-15 Andreas Schwab <schwab@suse.de>
13914
13915 * regex.c (re_match_2_internal): Correct matching of eight bit
13916 characters in unibyte strings.
13917
139182008-03-15 Martin Rudalics <rudalics@gmx.at>
13919
13920 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13921 at end of range when it coincides with the end of the buffer.
13922
139232008-03-14 Eli Zaretskii <eliz@gnu.org>
13924
13925 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13926
13927 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13928
139292008-03-14 Jason Rumney <jasonr@gnu.org>
13930
13931 * editfns.c (initial_tz): New variable.
13932 (syms_of_editfns): Initialize it.
13933 (Fset_time_zone_rule): Set it when first called.
13934 Use it when TZSTRING is nil.
13935
13936 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13937 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13938 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13939 (globals_of_w32fns): Initialize them.
13940 (compute_tip_xy): Use them to position tooltips.
13941
139422008-03-14 Glenn Morris <rgm@gnu.org>
13943
13944 * emacs.c (main): Revert previous change.
13945 (standard_args): Revert -internal-script back to -scriptload,
13946 and remove the long-option form.
13947
139482008-03-13 Glenn Morris <rgm@gnu.org>
13949
13950 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13951 Remove option -enable-font-backend.
13952
139532008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13954
13955 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13956
139572008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13958
13959 * xterm.c (x_connection_closed): For GTK: If this is the last
13960 terminal just exit without closing the display.
13961
139622008-03-11 Jason Rumney <jasonr@gnu.org>
13963
13964 * w32font.c (w32font_full_name): Use floor to round.
13965
f0131492 139662008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13967
13968 * sound.c (alsa_configure): Declare vol at beginning of block.
13969
13970 * fontset.c (Ffontset_info): Remove extra semicolon.
13971
139722008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13973
13974 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13975 size of resulting string.
13976
139772008-03-10 Jason Rumney <jasonr@gnu.org>
13978
13979 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13980
139812008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13982
13983 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13984 Don't pretend as if characters with display property haven't been
13985 consumed for string-replacing-string case.
13986
139872008-03-08 Kim F. Storm <storm@cua.dk>
13988
13989 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13990 (get_next_display_element, next_element_from_string)
13991 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13992
139932008-03-08 Andreas Schwab <schwab@suse.de>
13994
13995 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13996
139972008-03-06 Jason Rumney <jasonr@gnu.org>
13998
13999 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14000 when charset not specified. Only translate ANSI to unicode when
14001 font_type is truetype.
14002 (w32font_coverage_ok): New function.
14003 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14004
140052008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14006
14007 * lread.c (Fread_char): Resolve modifiers.
14008 (Fread_char_exclusive): Likewise.
14009
14010 * character.c (char_resolve_modifier_mask): New function.
14011 (char_string): Use char_resolve_modifier_mask.
14012 (Fchar_resolve_modifiers): New function.
14013 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14014 function.
14015
140162008-03-04 Jason Rumney <jasonr@gnu.org>
14017
14018 * makefile.w32-in: Always include w32font.c in the build.
14019 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14020
140212008-03-04 Andreas Schwab <schwab@suse.de>
14022
14023 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14024 (versionclean): Likewise.
14025
140262008-03-04 Juanma Barranquero <lekktu@gmail.com>
14027
14028 * .cvsignore: Add oo.
14029
140302008-03-03 Andreas Schwab <schwab@suse.de>
14031
14032 * coding.c (decode_coding_object): Inhibit gap shrinking while
14033 decoding in place.
14034
140352008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14036
14037 * w32term.c: Remove unused include "gnu.h".
14038 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14039
14040 * gnu.h: Rename to ...
14041 * emacs-icon.h: ... this.
14042 * xterm.c: Use emacs-icon.h instead of gnu.h.
14043 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14044
140452008-03-03 Juanma Barranquero <lekktu@gmail.com>
14046
14047 * w32font.c: Include math.h.
14048
140492008-03-03 Jason Rumney <jasonr@gnu.org>
14050
14051 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14052 Compute options separately.
14053 (w32font_open_internal): Set glyph_idx before caching metrics.
14054
14055 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14056 Define if system headers don't.
14057 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14058 (w32font_encode_char): Don't declare here.
14059
14060 * w32font.c (Quniscribe, QCformat): New symbols.
14061 (syms_of_w32font): Define them.
14062 (w32font_has_char): Indicate uncertainty.
14063 (w32font_encode_char): Encode as glyph point. Make static.
14064 (recompute_cached_metrics): New function.
14065 (w32font_open_internal): Use it. Set font to use glyph points
14066 initially. Set format based on type of font.
14067 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14068 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14069 on it. Set format based on information available here.
14070 (add_font_entity_to_list): Identify backend based on opentype_only.
14071
140722008-03-02 Andreas Schwab <schwab@suse.de>
14073
14074 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14075
14076 * coding.c (decode_coding_big5, produce_chars):
14077 Fix typos in last change.
14078
140792008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14080
14081 * gnu.h: New icon.
14082
140832008-03-02 Kenichi Handa <handa@m17n.org>
14084
14085 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14086 `dos', don't decode '\r' if that is the last in the source.
14087 (decode_coding_utf_16, decode_coding_emacs_mule)
14088 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14089 (decode_coding_raw_text, decode_coding_charset): Likewise.
14090 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14091
140922008-03-01 Jason Rumney <jasonr@gnu.org>
14093
14094 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14095
140962008-03-01 Kim F. Storm <storm@cua.dk>
14097
14098 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14099
141002008-03-01 Jason Rumney <jasonr@gnu.org>
14101
14102 * w32font.c (w32font_full_name): New function.
14103 (w32font_open_internal): Use it.
14104
141052008-03-01 Kim F. Storm <storm@cua.dk>
14106
14107 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14108
141092008-03-01 Jason Rumney <jasonr@gnu.org>
14110
14111 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14112
141132008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14114
14115 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14116 xg_frame_resized when the event is for the edit widget.
14117
14118 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14119
14120 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14121 set_char_size.
14122 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14123 operations on widgets here. Just set frame size if needed.
14124 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14125 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14126 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14127 the whole frame.
14128 (xg_create_tool_bar): Move attachment of the tool bar to
14129 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14130 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14131
141322008-03-01 Jason Rumney <jasonr@gnu.org>
14133
14134 * w32fns.c (w32_msg_pump): Disable debug code.
14135
141362008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14137
14138 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14139
141402008-02-29 Chong Yidong <cyd@stupidchicken.com>
14141
14142 * xdisp.c (next_overlay_string): Don't set
14143 overlay_strings_at_end_processed_p if we're currently reading from
14144 a display string.
14145
141462008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14147
14148 * xdisp.c (get_overlay_strings_1): Fix typo.
14149
141502008-02-29 Chong Yidong <cyd@stupidchicken.com>
14151
14152 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14153
141542008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14155
14156 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14157
14158 * xdisp.c (display_mode_element): Cancel the previous change.
14159 (decode_mode_spec): Likewise.
14160 (handle_auto_composed_prop): Don't make composition if it->string
14161 is a string.
14162
141632008-02-27 Kim F. Storm <storm@cua.dk>
14164
14165 * lisp.h (GLYPH): Change type from int to struct with separate char
14166 and face_id members.
14167 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14168 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14169 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14170 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14171 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14172 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14173 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14174 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14175 handle new Lisp glyph code encoding, either an integer or a cons.
14176
14177 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14178 (GLYPH_ALIAS): Delete.
14179 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14180 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14181 (GLYPH_FROM_CHAR): Replace macro by ...
14182 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14183
14184 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14185 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14186 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14187 (GLYPH_INVALID_P): New macro.
14188 (spec_glyph_lookup_face): Update prototype.
14189
14190 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14191 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14192 new glyph code encoding.
14193 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14194 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14195
14196 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14197 Adapt to new glyph type and new glyph code encoding.
14198
14199 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14200
14201 * indent.c (current_column, current_column_1, Fmove_to_column)
14202 (compute_motion): Adapt to new glyph code encoding.
14203
14204 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14205
142062008-02-27 Chong Yidong <cyd@stupidchicken.com>
14207
14208 * process.c (wait_reading_process_output): Check for window
14209 changes caused by timers.
14210 Suggested by Johan Bockgård.
14211
142122008-02-27 Glenn Morris <rgm@gnu.org>
14213
14214 * emacs.c (USAGE1): Add `--disable-font-backend'.
14215
142162008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14217
14218 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14219 is made to the buffer.
14220
142212008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14222
14223 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14224 (face_at_string_position):
14225 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14226 (face_at_string_position):
14227 * xdisp.c (display_string, next_overlay_change):
14228 * buffer.h (overlays_at):
14229 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14230 Update callers.
14231
142322008-02-26 Chong Yidong <cyd@stupidchicken.com>
14233
14234 * editfns.c (Fformat): Doc fix.
14235
142362008-02-26 Juanma Barranquero <lekktu@gmail.com>
14237
14238 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14239 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14240 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14241
142422008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14243
14244 * buffer.c (Fbuffer_swap_text): New function.
14245 (syms_of_buffer): Defsubr it.
14246
142472008-02-25 Chong Yidong <cyd@stupidchicken.com>
14248
14249 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14250
142512008-02-25 Jason Rumney <jasonr@gnu.org>
14252
14253 * w32font.c (w32font_draw): Draw one character at a time when padding.
14254
142552008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14256
14257 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14258 Handle a nil arg. Use run_window_configuration_change_hook.
14259 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14260 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14261 Use run_window_configuration_change_hook.
14262
142632008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14264
14265 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14266 1-pixel width.
14267
142682008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14269
14270 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14271 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14272 if the glyph in the font is zero pixel with.
14273
14274 * dispextern.h (struct glyph_string): New member padding_p.
14275
14276 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14277
14278 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14279
14280 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14281
14282 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14283
14284 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14285
142862008-02-25 Jason Rumney <jasonr@gnu.org>
14287
14288 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14289
142902008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14291
14292 Allow fine-grained image-cache flushing.
14293 * dispextern.h (struct image): Add `dependencies' field.
14294 (clear_image_caches): Change arg to Lisp_Object.
14295 * image.c (make_image): Initialize `dependencies' field.
14296 (clear_image_cache): Change arg to allow fine-grained flushing.
14297 Perform the flush even if image-cache-eviction-delay is nil.
14298 (clear_image_caches): Change arg to Lisp_Object.
14299 (Fclear_image_cache): Expand meaning of the argument.
14300 (mark_image): Mark `dependencies' field.
14301 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14302 (lface_hash): Use XHASH rather than XFASTINT.
14303 (face_at_buffer_position): Fix int -> EMACS_INT position.
14304 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14305 (select_frame_for_redisplay): Remove code duplication.
14306 (redisplay_internal): Adapt arg to call to clear_image_caches.
14307
143082008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14309
14310 * s/vms4-0.h:
14311 * s/vms4-2.h:
14312 * s/vms4-4.h:
14313 * s/vms5-5.h: Remove, unused.
14314
14315 * s/irix5-2.h:
14316 * s/irix6-0.h:
14317 * s/riscos5.h:
14318 * s/mach-bsd4-3.h:
14319 * m/mips4.h: Remove files for obsolete systems.
14320
14321 * Makefile.in:
14322 * filelock.c:
14323 * unexmips.c:
14324 * m/hp9000s300.h:
14325 * m/iris4d.h:
14326 * s/aix3-1.h:
14327 * s/hpux.h:
14328 * s/msdos.h:
14329 * s/usg5-0.h:
14330 * s/usg5-2-2.h:
14331 * s/usg5-2.h:
14332 * s/usg5-3.h: Remove references to obsolete variables.
14333
14334 * s/irix5-0.h: Remove, move all the contents ...
14335 * s/irix6-5.h: ... here. Simplify.
14336 * config.in: Regenerate.
14337
143382008-02-24 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32term.c (x_draw_glyph_string_background): Clear the background
14341 manually when cleartype is in use.
14342 (x_draw_glyph_string_foreground): Draw text transparently when
14343 cleartype is in use.
14344
14345 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14346 a font into it unless we have to.
14347
143482008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14349
14350 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14351 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14352
aac0c6e3
MR
143532008-02-18 Jason Rumney <jasonr@gnu.org>
14354
14355 * w32fns.c (Fw32_shell_execute): Encode parameters.
14356
143572008-02-09 Eli Zaretskii <eliz@gnu.org>
14358
14359 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14360
143612008-02-05 Juanma Barranquero <lekktu@gmail.com>
14362
14363 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14364
143652008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14366
14367 * xterm.c (x_set_offset): Don't change the gravity if
14368 CHANGE_GRAVITY is -1.
14369
143702008-02-23 Chong Yidong <cyd@stupidchicken.com>
14371
14372 * fileio.c (auto_save_error_occurred): New var.
14373 (auto_save_error): Set it.
14374 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14375 error occurred.
14376
143772008-02-23 Eli Zaretskii <eliz@gnu.org>
14378
14379 * w32.c (globals_of_w32): Add initializations for
14380 g_b_init_get_sid_sub_authority and
14381 g_b_init_get_sid_sub_authority_count.
14382
143832008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14384
14385 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14386 (font_parse_xlfd): Use them for sanity check.
14387 (Finternal_set_font_style_table): Make sure the table is bijective.
14388
14389 Consolidate the image_cache to the terminal struct.
14390 * termhooks.h (P_): Remove redundant def.
14391 (struct terminal): New field `image_cache'.
14392 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14393 of FRAME_X_IMAGE_CACHE.
14394 * xterm.h (struct x_display_info): Remove image_cache field.
14395 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14396 * w32term.h (struct w32_display_info): Remove image_cache field.
14397 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14398 * macterm.h (struct mac_display_info): Remove image_cache field.
14399 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14400 * xterm.c (x_term_init):
14401 * w32term.c (w32_term_init):
14402 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14403 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14404 Remove declarations.
14405 (clear_image_caches, mark_image_cache): New declarations.
14406 * xfaces.c (clear_face_cache):
14407 * xdisp.c (redisplay_internal): Use clear_image_caches.
14408 * image.c (clear_image_cache): Don't check that a frame is on
14409 a window-system before checking if it shares the same cache.
14410 (clear_image_caches): New function.
14411 (Fclear_image_cache): Use it.
14412 (mark_image): Move from allo.c.
14413 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14414 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14415 (mark_object): Don't call mark_image_cache for frames.
14416 (mark_terminals): Call mark_image_cache.
14417
14418 * lisp.h (Fdelete_terminal): Declare.
14419
14420 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14421 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14422 wrong_type_argument.
14423
144242008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14425
14426 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14427 malayalam.el, and tamil.el. Add sinhala.el.
14428
144292008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14430
14431 * xterm.c (x_connection_closed): Consolidate identical tests.
14432 (x_delete_terminal): Don't crash if called via x_connection_closed.
14433
144342008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14435
14436 * xdisp.c (decode_mode_spec): New arg string.
14437 (display_mode_element): Adjust for the above change.
14438
144392008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14440
14441 * callint.c (Fcall_interactively): Use AREF.
14442
144432008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14444
14445 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14446
144472008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14448
14449 * xfns.c (Fx_show_tip): Set string to " " if empty.
14450
144512008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14452
14453 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14454 with Qt.
14455
144562008-02-17 Kenichi Handa <handa@m17n.org>
14457
14458 * ftfont.c (ftfont_shape): Return Lispy number.
14459
14460 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14461 for GCs.
14462 (Finternal_set_font_selection_order): Call font_update_sort_order
14463 only when enable_font_backend is set.
14464 (realize_x_face): Set face->font_info to that of default face only
14465 when enable_font_backend is set.
14466
14467 * xdisp.c (handle_composition_prop): Set it->c to the fist
14468 character of the composed region.
14469 (fill_composite_glyph_string): Set base_face->font_info to
14470 s->font_info. Get a face for ascii from base_face->ascii_face.
14471 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14472 with a face already decided.
14473 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14474 non-negative.
14475 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14476 call font_prepare_composition unconditionally.
14477
14478 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14479
14480 * xterm.h (struct x_display_info): New member font.
14481
14482 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14483 (x_set_mouse_face_gc, x_new_font): Likewise.
14484 (x_term_init): Setup display_info->font.
14485 (x_delete_terminal): Free display_info->font.
14486
14487 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14488
14489 * ftxfont.c (ftxfont_default_fid): Delete it.
14490 (ftxfont_open): Set xfont->fid to 0.
14491 (ftxfont_end_for_frame): Clear data specific to the frame and the
14492 font-driver.
14493
14494 * xftfont.c (xftfont_default_fid): Delete it.
14495 (xftfont_open): Set xfont->fid to 0.
14496
14497 * fontset.c (FONTSET_OBJLIST): New macro.
14498 (fontset_find_font): Update font-object list of the fontset.
14499 (free_realized_fontset): New function.
14500 (free_face_fontset): Call free_realized_fontset.
14501 (Ffont_info): Call font_close_object only when enable_font_backend
14502 is set.
14503
14504 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14505 [HAVE_NTGUI]: Include w32term.h.
14506 [MAC_OS]: Include macterm.ch.
14507 (font_otf_ValueRecord): Use make_number.
14508 (font_finish_cache): Fix handling of reference count.
14509 (font_clear_cache): Update num_fonts.
14510 (font_open_entity): Update smallest_char_width and
14511 smallest_font_height of the frame.
14512 (font_close_object): Update num_fonts.
14513 (Fclear_font_cache): Fix finding the target cache data.
14514
145152008-02-16 Glenn Morris <rgm@gnu.org>
14516
14517 * fontset.c (Finternal_char_font): Fix compilation warning.
14518
145192008-02-16 Eli Zaretskii <eliz@gnu.org>
14520
14521 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14522 instead of char arrays. Enlarge the size of array passed to
14523 get_token_information.
14524
14525 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14526 warnings.
14527
145282008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14529
14530 * .gdbinit: Don't set `args', it breaks gdb --args.
14531
145322008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14533
14534 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14535 within a narrowed buffer.
14536
145372008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14538
14539 * coding.c (decode_coding_object, encode_coding_object):
14540 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14541
145422008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14543
14544 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14545 hardcoding 1.
14546 (detect_coding_system):
14547 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14548 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14549 * insdel.c (insert_from_gap):
14550 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14551 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14552 (string_to_multibyte):
14553 * character.c (chars_in_text, multibyte_chars_in_text):
14554 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14555
14556 * character.h (FETCH_STRING_CHAR_ADVANCE)
14557 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14558 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14559 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14560
14561 * casefiddle.c (casify_region): Only call after-change and composition
14562 functions on the part of the region that was changed.
14563
14564 * keyboard.c (read_avail_input):
14565 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14566
145672008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14568
14569 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14570 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14571
145722008-02-11 Juanma Barranquero <lekktu@gmail.com>
14573
14574 * w32menu.c (push_submenu_start, push_submenu_end)
14575 (push_left_right_boundary, push_menu_pane, push_menu_item):
14576 * keyboard.c (read_key_sequence): Don't pass args with side effects
14577 to AREF, it fails when compiling with -DENABLE_CHECKING.
14578
145792008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14580
14581 * Makefile.in (${lispsource}international/charprop.el):
14582 Delete this target.
14583
14584 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14585 emacs-unicode-2.
14586
145872008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14588
14589 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14590
145912008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14592
14593 * frame.c (Qnoelisp): New symbol.
14594 (syms_of_frame): Initialize it.
14595 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14596 harmless Elisp code, from a strong `force' from x_connection_closed.
14597 * frame.h (Qnoelisp): Declare.
14598 * xterm.c (x_connection_closed): Pass `noelisp'.
14599
14600 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14601 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14602 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14603 rather than `int' for the type of `type'.
14604
146052008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14606
14607 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14608
14609 * Makefile.in (GNUC): Remove support for gcc-1.x.
14610
146112008-02-10 Richard Stallman <rms@gnu.org>
14612
14613 * lisp.h (ASET): Use AREF, not ASLOT.
14614
146152008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14616
14617 * lisp.h (ASET): Check bounds.
14618
146192008-02-10 Glenn Morris <rgm@gnu.org>
14620
14621 * buffer.c (mode-name): Doc fix.
14622
146232008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14624
14625 * Makefile.in:
14626 * emacs.c:
14627 * gmalloc.c:
14628 * keyboard.c:
14629 * lisp.h:
14630 * m/ibm370aix.h:
14631 * process.c:
14632 * regex.c:
14633 * s/hpux.h:
14634 * sysdep.c:
14635 * sysselect.h:
14636 * systty.h:
14637 * unexec.c:
14638 * w32term.c:
14639 * xsmfns.c:
14640 * xterm.c: Remove code that deals with obsolete variables.
14641
14642 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14643
14644 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14645 nothing else needs it anymore.
14646
146472008-02-09 Eli Zaretskii <eliz@gnu.org>
14648
14649 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14650 instead of unibyte_char_to_multibyte.
14651
146522008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14653
14654 * s/gnu-linux.h: Remove commented out code.
14655
14656 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14657
14658 * Makefile.in: Update what RMS says about using autoconf.
14659 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14660 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14661 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14662 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14663
146642008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14665
14666 * keymap.c (Fkey_description): Move side effect outside of macro call.
14667
14668 * xfaces.c (Finternal_make_lisp_face):
14669 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14670
14671 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14672 (syms_of_fontset): Use ASET.
14673
14674 * fns.c (concat): Move side effect outside of macro call.
14675 (hash_clear): Use ASET.
14676
146772008-02-08 Richard Stallman <rms@gnu.org>
14678
14679 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14680 If FORCE, and frame has a surrogate minibuffer for another frame,
14681 delete the other frame first.
14682
146832008-02-07 Timo Savola <timo.savola@iki.fi>
14684
14685 * xterm.c (x_detect_focus_change): Handle embed client message.
14686 (handle_one_xevent): Ditto.
14687 (handle_one_xevent): If embedded and we get a button press/release,
14688 request focus.
14689 (xembed_set_info, xembed_send_message): New functions.
14690 (x_make_frame_visible): Call xembed_set_info if embedded.
14691 (x_make_frame_invisible): Call xembed_set_info if embedded.
14692 (x_term_init): Initialize Xatom_XEMBED.
14693 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14694 (x_iconify_frame): Ditto.
14695
14696 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14697 (enum xembed_info, enum xembed_message, enum xembed_focus)
14698 (enum xembed_modifier, enum xembed_accelerator): New.
14699 (xembed_set_info, xembed_send_message): Declare.
14700 (FRAME_X_EMBEDDED_P): New.
14701
14702 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14703 gtk_plug_new.
14704
14705 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14706 window ID of a frame.
14707 (x_window): Reparent frame if embedded.
14708 (Fx_create_frame): Don't set border width if embedded.
14709
14710 * emacs.c (USAGE3): Add --parent-id.
14711 (standard_args): Ditto.
14712
147132008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14714
14715 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14716
147172008-02-07 Jim Meyering <meyering@redhat.com>
14718
14719 Use "do...while (0)", not "if (1)...else" in macro definitions.
14720 The latter provokes a warning from gcc about the empty else, when
14721 followed by ";". Also, without that trailing semicolon, it would
14722 silently swallow up any following statement.
14723 * syntax.h (SETUP_SYNTAX_TABLE)
14724 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14725 * buffer.h (DECODE_POSITION): Likewise.
14726 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14727 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14728 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14729 (FETCH_CHAR_ADVANCE): Likewise.
14730 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14731
147322008-02-07 Jim Meyering <meyering@redhat.com>
14733
14734 * lread.c [lint]: Don't include <sys/inode.h>.
14735
147362008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14737
14738 * xselect.c (x_handle_dnd_message):
14739 * xmenu.c (digest_single_submenu, xmenu_show):
14740 * xdisp.c (with_echo_area_buffer_unwind_data)
14741 (format_mode_line_unwind_data, unwind_format_mode_line)
14742 (display_menu_bar):
14743 * eval.c (Ffetch_bytecode):
14744 * doc.c (store_function_docstring):
14745 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14746 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14747 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14748
147492008-02-07 Kenichi Handa <handa@m17n.org>
14750
14751 * ftxfont.c (ftxfont_open): Don't set
14752 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14753
14754 * ftfont.c (ftfont_open): Fix previous change.
14755
147562008-02-06 Jason Rumney <jasonr@gnu.org>
14757
14758 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14759 Use cached metrics for ASCII characters.
14760 (w32font_open_internal): Don't set font's owning_frame.
14761 Cache metrics for ASCII characters.
14762
14763 * w32font.h (struct w32font_info): Add ascii_metrics.
14764 Remove owning_frame.
14765
147662008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14767
14768 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14769 to negative value.
14770
14771 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14772
14773 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14774
14775 * charset.c (syms_of_charset): Set QCtest and Qeq.
14776
147772008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14778
14779 * process.c (Fstart_process):
14780 * callproc.c (Fcall_process): Handle the case where
14781 Funhandled_file_name_directory returns nil.
14782
14783 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14784 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14785 * font.c (check_gstring): Use them and AREF to access the vector before
14786 we know it's really a gstring.
14787 (Ffont_shape_text): Fix typo.
46e722a9 14788 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14789
14790 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14791 Declare.
14792
14793 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14794
147952008-02-05 Jason Rumney <jasonr@gnu.org>
14796
14797 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14798 Set smallest_font_height and smallest_char_width in display info.
14799
148002008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14801
14802 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14803
148042008-02-05 Miles Bader <miles@gnu.org>
14805
14806 * xfaces.c (get_lface_attributes, merge_named_face)
14807 (lookup_named_face, lookup_derived_face, realize_named_face):
14808 Revert 2008-02-01 change by cyd@stupidchicken.com.
14809
148102008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14811
14812 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14813 fallback fonts.
14814 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14815
148162008-02-04 Jason Rumney <jasonr@gnu.org>
14817
14818 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14819 set full_name.
14820 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14821
148222008-02-03 Jason Rumney <jasonr@gnu.org>
14823
14824 * makefile.w32-in (OBJ1): Include font.o here.
14825 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14826
148272008-02-02 Jason Rumney <jasonr@gnu.org>
14828
14829 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14830
148312008-02-01 Jason Rumney <jasonr@gnu.org>
14832
14833 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14834
14835 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14836
148372008-02-01 Andreas Schwab <schwab@suse.de>
14838
14839 * Makefile.in (shortlisp, lisp): Update for rename of
14840 ../lisp/language/myanmar.el.
14841
148422008-02-01 Chong Yidong <cyd@stupidchicken.com>
14843
14844 * xfaces.c (get_lface_attributes): Delete function.
14845 (merge_named_face, lookup_named_face, lookup_derived_face)
14846 (realize_named_face): Call lface_from_face_name directly, and use
14847 the fact that merge_face_vectors does not alter its FROM argument.
14848
148492008-02-01 Jason Rumney <jasonr@gnu.org>
14850
14851 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14852 input in the default locale. Handle non-Unicode multibyte input.
14853
148542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14855
14856 * fontset.c (reorder_font_vector): Exclude nil elements from the
14857 font group. Don't try multiple fonts.
14858 (fontset_font): Adjust for the above change.
14859 (Finternal_char_font): Return nil if the found font doesn't
14860 contain the character ch.
14861
14862 * Makefile.in (lisp, shortlisp): Add cham.el.
14863
148642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14865
14866 * font.h (FONTP): Make it return 1 also for a font-object.
14867
14868 * .gdbinit (xfontset): New function.
14869
14870 * font.c (font_find_for_lface): Check if the character C is
14871 supported or not only for the first font.
14872
14873 * fontset.c (reorder_font_vector): Fix typo.
14874 (fontset_find_font): Don't add a font-spec specifying a script.
14875 Use 0 (not Qt) for the indication of empty font-group. Change the
14876 format of RFONT-DEF. Return Qt if no font in the font-group
14877 support the character.
14878 (fontset_font): Adjust for the above change. If no font was
14879 found the character, remember that.
14880 (face_for_char): Adjust for the change of RFONT-DEF.
14881 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14882 no font for the target.
14883 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14884
148852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14886
14887 * font.c (font_load_for_face): Handle the case that the font in
14888 face->lface is a string.
14889
148902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14891
14892 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14893
148942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14895
14896 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14897 Fix previous change. If the frame is not on a window system,
14898 signal an error.
14899
149002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14901
14902 * coding.c (decode_coding_object, encode_coding_object): Adjust
14903 marker positions after conversion.
14904
14905 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14906
149072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14908
14909 * font.c (font_find_for_lface): Fix the handling of the return
14910 value of font_has_char.
14911 (Ffont_shape_text): Fix previous change.
14912
14913 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14914 (fontset_ref_and_range): Delete it.
14915 (fontset_find_font): Call char_table_ref_and_range instead of
14916 FONTSET_REF_AND_RANGE.
14917 (make_fontset): Don't setup font groups of Latin here.
14918 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14919 (new_fontset_from_font): Make the specified font the default for
14920 all Latin characters.
14921
149222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14923
14924 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14925 is on a window system before accessing the fontset of the frame.
14926
149272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14928
14929 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14930
14931 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14932 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14933
14934 * font.c (Ffont_shape_text): If the font driver doesn't have a
14935 shaper function, make zero-width glyphs to have at least one-pixel
14936 width. Fix setting of `to' field of glyphs.
14937
149382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14939
14940 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14941 glyphs.
14942
14943 * font.h (struct font_driver): Improve docstring of member `shape'.
14944
149452008-02-01 Kenichi Handa <handa@m17n.org>
14946
14947 * composite.c (syms_of_composite): Fix docstring of
14948 auto-composition-function.
14949
14950 * font.h (LGLYPH_SIZE): New macro.
14951
14952 * font.c (Ffont_fill_gstring): Stop filling when a character not
14953 supported by the font is found.
14954 (Ffont_shape_text): When a shape callback function returns nil,
14955 try at most two more times with larger gstring.
14956 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14957
14958 * xdisp.c (handle_auto_composed_prop): Change the argument to
14959 auto-composition-function.
14960
14961 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14962 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14963 Lispy glyph and store it in the lgstring.
14964
14965 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14966
14967 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14968
149692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14970
14971 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14972
14973 * fontset.c (Vfont_encoding_charset_alist): New variable.
14974 (syms_of_fontset): DEFVAR it.
14975 (reorder_font_vector, fontset_find_font): Optimize for the case of
14976 no need of reordering.
14977 (face_for_char): Map the charset property by
14978 Vfont_encoding_charset_alist.
14979
149802008-02-01 Jason Rumney <jasonr@gnu.org>
14981
14982 * w32font.c (logfonts_match): Don't check adstyle here.
14983 (font_matches_spec): Check here against physical font instead.
14984 (add_font_entity_to_list): Avoid some substitutions.
14985
14986 * font.c (font_parse_fcname): Default weight and slant to normal.
14987 (font_score): Prefer normal fonts if weight or slant unspecified.
14988 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14989 match freetype scores.
14990
149912008-02-01 Jason Rumney <jasonr@gnu.org>
14992
14993 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14994 font, as it may have been deleted.
14995 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14996 most common hyphenless variation.
14997 (logfonts_match): Check generic family.
14998 (font_matches_spec): Don't check generic family here.
14999 (fill_in_logfont): Set generic family based on adstyle.
15000
15001 * w32font.h (w32font_get_cache): Update declaration.
15002
150032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15004
15005 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15006
15007 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15008 If none of the new drivers are available, call font_update_drivers
15009 with the old drivers.
15010
15011 * w32font.c (w32font_get_cache): Adjust the argument type.
15012
15013 * xfont.c (xfont_get_cache): Adjust the argument type.
15014
15015 * font.h (struct font_driver): Change argument type of get_cache.
15016
15017 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15018
15019 * font.c (Ffont_get): Fix arguments to Fassoc.
15020 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15021 (font_clear_cache): New function.
15022 (font_list_entities, font_matching_entity): Use font_get_cache.
15023 (font_update_drivers): Call font_clear_cache when finishing a driver.
15024
15025 * fontset.c (fontset_find_font): Fix previous change.
15026
150272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15028
15029 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15030 dpyinfo->font_table.
15031 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15032 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15033
15034 * font.c (font_at): Handle the case that the arg C is negative.
15035 Handle the unibyte case.
15036 (Ffont_at): Call font_at with the arg C -1.
15037
15038 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15039 the position here, and call font_at with the arg C -1.
15040 Don't check the range of the existing composition at the point.
15041
150422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15043
15044 * fontset.c (fontset_add): New args charset_id and family.
15045 Change caller.
15046 (load_font_get_repertory, fontset_find_font): Assume that
15047 font_spec is always a font-spec object.
15048 (Fset_fontset_font): Always store a font-spec object in a fontset.
15049
15050 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15051 instead of get_property_and_range.
15052
150532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15054
15055 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15056 (xftfont_open): Don't keep locking face.
15057 (xftfont_close): Don't unlock face.
15058 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15059
15060 * fontset.c (fontset_find_font): Don't prefer a font of
15061 supplementary charset.
15062
150632008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15066 script, langsys_tag to langsys, new member script.
15067 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15068 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15069 listing to the script specified in that property. Fix arg to
15070 OTF_check_features.
15071
150722008-02-01 Jason Rumney <jasonr@gnu.org>
15073
15074 * w32font.h: New file.
15075
15076 * w32font.c: Include it.
15077 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15078 (w32font_open): Set owning_frame.
15079 (w32font_text_extents): Use owning_frame.
15080 (struct font_callback_data): Add opentype_only field.
15081 (add_font_entity_to_list): Use it to filter fonts.
15082 Don't check against full name.
15083 (w32font_list_internal): New function.
15084 (w32font_list): Use it.
15085 (w32font_match_internal): New function.
15086 (w32font_match): Use it.
15087 (w32font_open_internal): New function.
15088 (w32font_open): Use it.
15089 (w32font_get_cache, w32font_close, w32font_has_char)
15090 (w32font_encode_char, w32font_text_extents, w32font_draw):
15091 Make non-static.
15092
15093 * makefile.w32-in (w32font.o): Depend on w32font.h.
15094
150952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15096
15097 * charset.c (Fdefine_charset_internal): Record a supplementary
15098 charset at the tail of Vcharset_order_list.
15099
15100 * font.c (Ffont_shape_text): Fix the return value.
15101
15102 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15103
15104 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15105
151062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15107
15108 * ftfont.c (struct OpenTypeSpec): New struct.
15109 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15110 (ftfont_get_open_type_spec): New function.
15111 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15112
15113 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15114
151152008-02-01 Jason Rumney <jasonr@gnu.org>
15116
15117 * w32font.c (add_font_entity_to_list): Compare only the beginning
15118 of full name.
15119
151202008-02-01 Kenichi Handa <handa@m17n.org>
15121
15122 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15123 Never return HANDLED_RECOMPUTE_PROPS.
15124
151252008-02-01 Kenichi Handa <handa@m17n.org>
15126
15127 * font.c (font_gstring_produce): Delete it.
15128
15129 * composite.h (COMPOSITION_METHOD):
15130 Handle COMPOSITION_WITH_GLYPH_STRING.
15131
151322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15133
15134 * xfont.c (Qx): Delete.
15135 (syms_of_xfont): Don't initialize Qx.
15136
15137 * composite.h (enum composition_method):
15138 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15139
151402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15141
15142 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15143 (choose_face_font): Accept new form of font-spec.
15144
15145 * frame.h (font_driver_list): Declare it unconditionally.
15146 (struct frame): Define members font_driver_list and font_data_list
15147 unconditionally.
15148
15149 * fontset.c: Include "font.h" unconditionally.
15150 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15151 (Fset_fontset_font): Accept a font-spec object.
15152
15153 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15154 PIXEL_SIZE part a wild card.
15155
15156 * dispextern.h (struct glyph_string): Define members clip and
15157 num_clips unconditionally.
15158 (struct face): Define members font_info and extra unconditionally.
15159
15160 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15161 ftfont_info only when HAVE_LIBOTF is defined.
15162
151632008-02-01 Andreas Schwab <schwab@suse.de>
15164
15165 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15166 and end.
15167
151682008-02-01 Jason Rumney <jasonr@gnu.org>
15169
15170 * w32font.c (w32font_driver): Add new fields.
15171
151722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15173
15174 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15175 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15176 (LIBES): Add @M17N_FLT_CFLAGS@.
15177
15178 * composite.c (compose_text): Don't treat the new style
15179 composition specially.
15180
15181 * emacs.c (main): Call syms_of_font unconditionally.
15182
15183 * font.h (FONT_ENTITY_NOT_LOADABLE)
15184 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15185 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15186 (struct font_driver): New member shape.
15187 (font_registry_charsets): Extern it.
15188 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15189 (font_otf_capability, font_drive_otf): Delete their externs.
15190
15191 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15192 (font_charset_alist, font_registry_charsets): Move from xfont.c
15193 and rename.
15194 (font_prop_validate_otf): New function.
15195 (font_property_table): Register it for QCotf.
15196 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15197 (font_drive_otf): Delete.
15198 (font_prepare_composition): New arg F. Adjust for the change of
15199 lispy gstring.
15200 (font_find_for_lface): New arg C.
15201 (font_load_for_face): Adjust for the change of font_find_for_lface.
15202 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15203 lispy gstring.
15204 (Ffont_shape_text): New function.
15205 (Fopen_font): If the font size is not given, use 12-pixel.
15206 (Ffont_at): New arg STRING.
15207 (syms_of_font): Initalize font_charset_alist.
15208 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15209 conditionally.
15210
15211 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15212 fonts of the same font-spec. Change the format of RFONT-DEF.
15213 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15214 Adjust for the change of RFONT-DEF.
15215 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15216
15217 * ftfont.h: New file.
15218
15219 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15220 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15221 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15222 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15223 font_otf_capability and font_drive_otf, set ftfont_shape.
15224 (ftfont_list): Adjust for the change of :otf property value.
15225 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15226 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15227 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15228 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15229 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15230 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15231
15232 * w32term.c (x_draw_composite_glyph_string_foreground):
15233 Adjust for the change of lispy gstring.
15234
15235 * xdisp.c (handle_composition_prop): Adjust for the change of
15236 lispy gstring. Call a function for auto-composition with the
15237 third arg it->window.
15238 (fill_composite_glyph_string): Adjust for the change of lispy string.
15239 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15240
15241 * xfaces.c (set_font_frame_param): Adjust for the change of
15242 font_find_for_lface.
15243
15244 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15245 (xfont_registry_charsets): Likewise. Change caller.
15246 (syms_of_xfont): Don't handle x_font_charset_alist.
15247
15248 * xftfont.c: Include "ftfont.h".
15249 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15250 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15251 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15252 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15253 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15254 Set xftfont_driver.shape to xftfont_shape.
15255
15256 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15257 the change of lispy gstring.
15258
152592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15260
15261 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15262
152632008-02-01 Jason Rumney <jasonr@gnu.org>
15264
15265 * w32font.c (w32font_draw): Fill background manually.
15266
152672008-02-01 Jason Rumney <jasonr@gnu.org>
15268
15269 * font.c (Qfontp): Remove unused symbol.
15270 (QCantialias): New symbol.
15271 (syms_of_font): Define it.
15272 (font_property_table): Set a validator for QCantialias.
15273
15274 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15275 Define if not already.
15276 (QCfamily): Share with xfaces.c.
15277 (Qstandard, Qsubpixel, Qnatural): New symbols.
15278 (syms_of_w32font): Define them. Don't define QCfamily here.
15279 (w32_antialias_type, lispy_antialias_type): New functions.
15280 (w32_enumfont_pattern_entity): New arg requested_font.
15281 Set antialias parameter if non-default was requested.
15282 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15283
152842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15285
15286 * lread.c (read1): Undo the previous change.
15287
152882008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15289
15290 * frame.c (Fdelete_frame): Call font_update_drivers only when
15291 USE_FONT_BACKEND is defined.
15292
152932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15294
15295 * font.h (struct font_bitmap): New member bits_per_pixel.
15296 (struct font_driver): New members start_for_frame and end_for_frame.
15297 (struct font_data_list): New struct.
15298 (font_put_frame_data, font_get_frame_data): Extern them.
15299
15300 * frame.h (struct frame): New member font_data_list.
15301
15302 * font.c (font_update_drivers): Call driver->start_for_frame and
15303 driver->end_for_frame at proper timings.
15304 (font_put_frame_data, font_get_frame_data): New functions.
15305 (Ffont_spec): Add usage in the docstring.
15306
15307 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15308 (Fdelete_frame): Call font_update_drivers.
15309
15310 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15311 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15312 (xftfont_get_xft_draw): New function.
15313 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15314 (xftfont_end_for_frame): New function.
15315 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15316
15317 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15318 Change argument. Cache GCs in the per-frame data.
15319 (struct ftxfont_frame_data): New struct.
15320 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15321 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15322 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15323 (ftxfont_end_for_frame): New function.
15324 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15325
15326 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15327
153282008-02-01 Kenichi Handa <handa@m17n.org>
15329
15330 * xselect.c (Vselection_coding_system)
15331 (Vnext_selection_coding_system): Delete them.
15332 (syms_of_xselect): Don't declare selection-coding-system and
15333 next-selection-coding-system. They are declared in select.el.
15334
153352008-02-01 Jason Rumney <jasonr@gnu.org>
15336
15337 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15338
15339 * w32fns.c: Include imm.h.
15340 (get_composition_string_fn, get_ime_context_fn): New optional
15341 system functions.
15342 (globals_of_w32fns): Load them from imm32.dll.
15343 (ignore_ime_char): New flag.
15344 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15345 WM_IME_ENDCOMPOSITION messages.
15346
15347 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15348 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15349
153502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15351
15352 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15353 (READCHAR_REPORT_MULTIBYTE): New macro.
15354 (readchar): New 2nd arg MULTIBYTE.
15355 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15356 Make symbol's name multibyte according to the multibyteness of the
15357 source.
15358
153592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15360
15361 * xfaces.c (face_for_overlay_string): Call lookup_face with
15362 correct arguments (fix of synching with the trunk).
15363
153642008-02-01 Kenichi Handa <handa@m17n.org>
15365
15366 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15367 (font_prop_validate_non_neg, font_prop_validate_spacing):
15368 Delete argument prop_index.
15369 (font_property_table): Change arguments to validater. Change Callers.
15370 (font_lispy_object): Delete.
15371 (font_at): Use font_find_object instead fo font_lispy_object.
15372
153732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15374
15375 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15376 and file names.
15377
153782008-02-01 Jason Rumney <jasonr@gnu.org>
15379
15380 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15381 (font_matches_spec): Remove debug output.
15382 (add_font_entity_to_list): Avoid using substituted fonts.
15383
153842008-02-01 Jason Rumney <jasonr@gnu.org>
15385
15386 * doc.c (Fsnarf_documentation):
15387 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15388
153892008-02-01 Miles Bader <miles@gnu.org>
15390
15391 * dispextern.h (struct glyph_row): Only define "clip" field if
15392 HAVE_WINDOW_SYSTEM is defined.
15393
153942008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15395
15396 Fix up multi-tty merge.
15397
15398 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15399 and indentation.
15400
15401 * xfaces.c (free_realized_face, clear_face_gcs):
15402 Include font_done_for_face in the input_blocked section, just in case.
15403
15404 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15405 (get_char_face_and_encoding): Undo last change and remove the *other*
15406 duplicate definition (i.e. keep the one that's better scoped and that
15407 includes code for the font-backend).
15408
15409 * terminal.c (create_terminal): Default keyboard_coding to
15410 `no-conversion' and terminal_coding to `undecided'.
15411
15412 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15413
15414 * fontset.c (free_realized_fontsets): Check that the table entry does
15415 contain a fontset before trying to compare it to `base'.
15416
15417 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15418 syms_of_charset, and syms_of_coding earlier because init_window_once
15419 now needs Vcoding_system_hash_table to be setup.
15420
15421 * coding.h (default_buffer_file_coding): Remove.
15422
15423 * coding.c (default_buffer_file_coding): Remove.
15424 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15425 than ->symbol, and use the terminal-local coding system.
15426 (syms_of_coding): Don't setup the coding-systems that are not
15427 terminal-local.
15428 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15429
15430 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15431 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15432
15433 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15434 in chartab.c and were re-added here by mistake.
15435 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15436
15437 * doc.c (Fsnarf_documentation):
15438 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15439 src to etc.
15440
15441 * ChangeLog.10: Add mistakenly removed entry.
15442
154432008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15444
15445 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15446
154472008-02-01 Miles Bader <miles@gnu.org>
15448
15449 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15450 Add extra args to FACE_FOR_CHAR.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15455 in sequence.
15456
15457 * chartab.c (map_sub_char_table, map_char_table): If the range
15458 contains just one character, call the function with that character
15459 even if the depth is not 3.
15460
154612008-02-01 Jason Rumney <jasonr@gnu.org>
15462
15463 * w32font.c (w32font_text_extents): Calculate metrics for the
15464 whole string.
15465
154662008-02-01 Jason Rumney <jasonr@gnu.org>
15467
15468 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15469
154702008-02-01 Jason Rumney <jasonr@gnu.org>
15471
15472 * w32term.c (x_set_glyph_string_clipping): Use
15473 get_glyph_string_clip_rects.
15474 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15475 Adjust for the change of struct glyph_string.
15476
15477 * w32font.c (w32font_draw): Do clipping here.
15478
154792008-02-01 Kenichi Handa <handa@m17n.org>
15480
15481 * xftfont.c (xftfont_draw): Adjust for the change of struct
15482 glyph_string.
15483
15484 * xterm.c (x_set_glyph_string_clipping): Use
15485 get_glyph_string_clip_rects.
15486 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15487 Adjust for the change of struct glyph_string.
15488
15489 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15490 the resulting clip(s}.
15491 (expose_overlaps): Add arg r. Change callers. Set it to
15492 row->clip temporarily.
15493 (expose_window): Redraw rows overlapping the exposed area.
15494
15495 * dispextern.h (struct glyph_row): New member clip.
15496 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15497 clip_height, new member clip, and num_clips.
15498
154992008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * data.c (Fchar_or_string_p): Fix docstring.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15506 create a temporary XftDraw object.
15507
155082008-02-01 Kenichi Handa <handa@m17n.org>
15509
15510 * font.c (Ffontp): Fix docstring.
15511
15512 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15513 strong evidence of ISO-2022.
15514
155152008-02-01 Kenichi Handa <handa@m17n.org>
15516
15517 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15518 SYNTAX_ENTRY_FOLLOW_PARENT.
15519
155202008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15521
15522 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15523 its type.
15524 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15525 Update to the new type of weak_hash_tables and next_weak.
15526
15527 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15528 a plain C pointer to Lisp_Hash_Table.
15529
15530 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15531 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15532 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15533 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15534 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15535 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15536 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15537 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15538 (GC_EQ): Remove since they've been identical to their non-GC_
15539 alter-egos ever since the markbit was eradicated.
15540
15541 * alloc.c:
15542 * buffer.c:
15543 * buffer.h:
15544 * data.c:
15545 * fileio.c:
15546 * filelock.c:
15547 * fns.c:
15548 * frame.h:
15549 * lisp.h:
15550 * macterm.c:
15551 * print.c:
15552 * process.c:
15553 * w32fns.c:
15554 * w32menu.c:
15555 * w32term.c:
15556 * xfns.c:
15557 * xmenu.c:
15558 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15559
155602008-02-01 Kenichi Handa <handa@m17n.org>
15561
15562 * chartab.c (map_sub_char_table): Make it work for the top-level
15563 char-table. Fix handling of parent char-table.
15564 (map_char_table): Adjust for the above change.
15565
155662008-02-01 Jason Rumney <jasonr@gnu.org>
15567
15568 * w32font.c (Qgdi): Rename from Qw32.
15569
155702008-02-01 Jason Rumney <jasonr@gnu.org>
15571
15572 * w32bdf.c (get_quoted_string): Make function static.
15573
155742008-02-01 Kenichi Handa <handa@m17n.org>
15575
15576 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15577 bigger ascent and descent than those of the font, use them as
15578 font's ascent and descent.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * Makefile.in (${lispsource}international/charprop.el): Move this
15583 target within "#ifdef HAVE_UNIDATA" and "#endif".
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15588 (shortlisp): Add ../lisp/language/tai-viet.el.
15589
155902008-02-01 Ulrich Mueller <ulm@gentoo.org>
15591
15592 * Makefile.in (${lispsource}international/charprop.el): Depend on
15593 temacs${EXEEXT}.
15594
155952008-02-01 Jason Rumney <jasonr@gnu.org>
15596
15597 * w32font.c (w32font_close): Delete the GDI font object.
15598
15599 * w32menu.c: Include character.h.
15600
15601 * w32proc.c: Likewise.
15602
15603 * w32select.c: Likewise.
15604
15605 * makefile.w32-in (w32proc.o): Depend on character.h.
15606
156072008-02-01 Jason Rumney <jasonr@gnu.org>
15608
15609 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15610
15611 * w32menu.c (syms_of_w32menu): Likewise.
15612
15613 * w32proc.c (syms_of_ntproc): Likewise.
15614
15615 * w32select.c (syms_of_w32select): Likewise.
15616
15617 * w32term.c (syms_of_w32term): Likewise.
15618
156192008-02-01 Jason Rumney <jasonr@gnu.org>
15620
15621 * w32font.c (w32font_draw): Delete brush after using it.
15622
156232008-02-01 Jason Rumney <jasonr@gnu.org>
15624
15625 * w32font.c (w32font_open): Don't set font_idx.
15626 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15627 to font settings.
15628 (w32font_draw): Fill background explicitly.
15629
156302008-02-01 Jason Rumney <jasonr@gnu.org>
15631
15632 * w32term.c (w32_initialize): Don't call w32font_initialize.
15633
15634 * w32font.c (w32font_info): Remove subranges.
15635 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15636 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15637 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15638 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15639 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15640 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15641 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15642 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15643 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15644 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15645 New symbols.
15646 (font_callback_data): New struct.
15647 (w32font_list, w32font_match): Use it.
15648 (w32font_open): Don't populate subranges.
15649 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15650 (w32font_encode_char): Always return unicode code-point as-is.
15651 (w32font_text_extents): Supply a transformation matrix to
15652 GetGlyphOutline. Never look up by glyph index. Avoid looping
15653 twice. Use unicode version of GetTexExtentPoint32 instead of
15654 glyph index version.
15655 (set_fonts_frame): Remove.
15656 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15657 set frame parameter. Use backward compatible fake foundries.
15658 Save generic family in extra slot under QCfamily. Make width slot
15659 constant. Save QCspacing value. Save list of scripts instead of
15660 binary subranges.
15661 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15662 (add_font_entity_to_list): Use font_callback_data struct. Filter
15663 unwanted fonts.
15664 (add_one_font_entity_to_list): Use font_callback_data struct.
15665 (w32_registry): Default to iso10646_1.
15666 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15667 string font registries. Don't fill in font name if it is a generic
15668 family name, fill family instead. Use spacing, family and script
15669 extra info to fill pitch, family and charset fields.
15670 (list_all_matching_fonts): Use font_callback_data struct.
15671 (unicode_range_for_char): Remove.
15672 (font_supported_scripts): New function.
15673 (w32font_initialize): Remove.
15674 (syms_of_w32font): Update which symbols are defined.
15675
156762008-02-01 Jason Rumney <jasonr@gnu.org>
15677
15678 * font.c (font_pixel_size): Reverse assq_no_quit args.
15679
15680 * w32term.h (FONT_WIDTH): Report max width, not average.
15681 (FONT_MAX_WIDTH): Remove.
15682 (FONT_AVG_WIDTH): New macro.
15683
15684 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15685 redefinition of FONT_WIDTH.
15686
15687 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15688 (w32_cache_char_metrics): Use FONT_WIDTH.
15689
15690 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15691
156922008-02-01 Jason Rumney <jasonr@gnu.org>
15693
15694 * w32font.c (w32font_open): Make lfHeight negative.
15695
15696 * w32fns.c (x_default_font_parameter): Use new style font name.
15697 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15698
156992008-02-01 Jason Rumney <jasonr@gnu.org>
15700
15701 * w32font.c (QCsubranges): New symbol.
15702 (w32font_open, w32font_has_char): Get subranges from subproperty
15703 of extra.
15704 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15705 (syms_of_w32font): Define :subranges symbol.
15706
15707 * font.c (font_put_extra): Expose externally.
15708
15709 * font.h (font_put_extra): Move declaration from font.c.
15710
15711 * font.c (Ffont_get): Use font driver to determine otf capability.
15712 (adjust_anchor): Check if driver defines anchor_point before using.
15713
15714 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15715 (w32font_draw): Use options.
15716 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15717 Fix detection of truetype fonts.
15718 (registry_to_w32_charset): Handle charsets other than iso8859-1
15719 expressed as lisp symbols.
15720 (w32_registry): Express charset as lisp symbol.
15721 (fill_in_logfont): Reverse pixel and point height logic.
15722 Don't set width here. Set quality to default.
15723
15724 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15725 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15726
15727 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15728 Remove redundant loop and allocation.
15729
15730 * makefile.w32-in (font.o, w32font.o): New objects.
15731 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15732 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15733
15734 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15735 STORE_XCHARB a valid l-value.
15736
15737 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15738 calculations for non-Truetype fonts.
15739 (x_draw_glyph_string): Sync with xterm.c.
15740 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15741 Remove redundant code.
15742 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15743
15744 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15745 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15746
15747 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15748 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15749
15750 * w32font.c: New file for w32 font backend.
15751
157522008-02-01 Kenichi Handa <handa@m17n.org>
15753
15754 * term.c: Don't include "buffer.h" twice.
15755
157562008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * character.c (Funibyte_string): New function.
15759 (syms_of_character): Defsubr it.
15760
157612008-02-01 Jason Rumney <jasonr@gnu.org>
15762
15763 * w32term.c [USE_FONT_BACKEND]:
15764 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15765 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15766 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15767 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15768 (x_free_frame_resources): Sync with xterm.c.
15769
157702008-02-01 Andreas Schwab <schwab@suse.de>
15771
15772 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15773 char-table size.
15774
157752008-02-01 Kenichi Handa <handa@m17n.org>
15776
15777 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15778
157792008-02-01 Kenichi Handa <handa@m17n.org>
15780
15781 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15782 font_otf_gpos, add font_drive_otf.
15783
15784 * fontset.c (fontset_find_font): Pay attention to font size
15785 specified for a font.
15786 (reorder_font_vector): Check contents of font_def.
15787
15788 * font.c (struct otf_list): Delete it.
15789 (otf_list): Make it a lisp variable.
15790 (otf_open): Use lispy otf_list.
15791 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15792 (check_otf_features): New function.
15793 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15794 New functions.
15795 (font_drive_otf): New function merging font_otf_gsub and
15796 font_otf_gpos.
15797 (font_open_for_lface): New arg spec. Change argument order.
15798 (font_load_for_face): Adjust for the change of font_open_for_lface.
15799 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15800 Ffont_otf_gpos.
15801 (syms_of_font): Staticpro otf_list. Delete defsubr of
15802 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15803
15804 * xfaces.c (set_font_frame_param): Adjust for the change of
15805 font_open_for_lface.
15806
15807 * font.h (font_open_for_lface): Adjust prototype.
15808 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15809 member otf_drive.
15810 (font_otf_gsub, font_otf_gpos): Delete externs.
15811 (font_drive_otf): Extern it.
15812
158132008-02-01 Kenichi Handa <handa@m17n.org>
15814
15815 * font.c (font_at): If the window W is not on a window system,
15816 return Qnil.
15817
15818 * coding.c (produce_chars, encode_coding): Don't call
15819 insert_from_gap if no characters to produce.
15820
158212008-02-01 Kenichi Handa <handa@m17n.org>
15822
15823 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15824 Fclear_face_cache.
15825
15826 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15827
158282008-02-01 Miles Bader <miles@gnu.org>
15829
15830 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15831 Parse "--disable-font-backend" option.
15832 (standard_args): Add "--disable-font-backend" option.
15833
158342008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * fontset.c (fontset_find_font): New function.
15837 (fontset_font): Use fontset_find_font.
15838 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15839 Register the specified font for all Latin characters.
15840 (new_fontset_from_font): Register the specified font for all Latin
15841 characters.
15842 (dump_fontset): For a realized fontset, include the base fontset
15843 name in the returned vector.
15844
158452008-02-01 Kenichi Handa <handa@m17n.org>
15846
15847 * character.h (CHAR_STRING): Cast C to unsigned on calling
15848 char_string.
15849
15850 * character.c (char_string): Type of arg C changed to unsigned.
15851 Signal an error if C is an invalid character code.
15852
15853 * editfns.c (general_insert_function, Fchar_to_string):
15854 Use CHARACTERP, not INTEGERP.
15855
158562008-02-01 Kenichi Handa <handa@m17n.org>
15857
15858 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15859 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15860
15861 * regex.c (analyse_first): Fix for multibyte characters in "case
15862 charset:" and "case categoryspec:".
15863
158642008-02-01 Andreas Schwab <schwab@suse.de>
15865
15866 * Makefile.in (LIBES): Move standard libraries to the end.
15867
158682008-02-01 Kenichi Handa <handa@m17n.org>
15869
15870 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15871 nonzero, don't shrink the buffer nextb.
15872
15873 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15874
15875 * coding.c (coding_alloc_by_making_gap): New arg offset.
15876 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15877 offset.
15878 (decode_coding_iso_2022): Update coding->safe_charsets.
15879 (decode_coding_gap): Temporarily set
15880 current_buffer->text->inhibit_shrinking to 1.
15881
158822008-02-01 Kenichi Handa <handa@m17n.org>
15883
15884 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15885 indexing into elements of s->cmp and s->char2b.
15886
158872008-02-01 Juanma Barranquero <lekktu@gmail.com>
15888
15889 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15890
158912008-02-01 Kenichi Handa <handa@m17n.org>
15892
15893 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15894 target_multibyte instead of multibyte.
15895 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15896 (bcmp_translate): Change the argument name from multibyte to
15897 target_multibyte.
15898
158992008-02-01 Kenichi Handa <handa@m17n.org>
15900
15901 These changes are to compile a regexp into a pattern that can be
15902 used both for multibyte and unibyte targets.
15903
15904 * Makefile.in (search.o): Depend on charset.h.
15905
15906 * character.c (multibyte_char_to_unibyte_safe): New function.
15907
15908 * search.c: Include "charset.h".
15909 (compile_pattern_1): Delete argument multibyte. Don't set
15910 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15911 (compile_pattern): Don't compare cp->buf.target_multibyte.
15912 Compare cp->buf.charset_unibyte.
15913 (compile_pattern): Set cp->buf.target_multibyte.
15914
15915 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15916
15917 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15918
15919 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15920 multibyte. Change callers.
15921 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15922 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15923 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15924 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15925 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15926 (regex_compile): Make the compiled pattern usable both for
15927 multibyte and unibyte targets.
15928 (analyse_first): Make the fastmap usable both for multibyte and
15929 unibyte targets.
15930 (TRANSLATE_VIA_MULTIBYTE): Delete.
15931 (re_match_2_internal): Pay attention to the case that the
15932 multibyteness of bufp and target may be different.
15933
159342008-02-01 Kenichi Handa <handa@m17n.org>
15935
15936 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15937 empty box occupy at least one column width.
15938
159392008-02-01 Miles Bader <miles@gnu.org>
15940
15941 * Makefile.in: Remove redundant HAVE_XFT clause.
15942
159432008-02-01 Kenichi Handa <handa@m17n.org>
15944
15945 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15946
159472008-02-01 Kenichi Handa <handa@m17n.org>
15948
15949 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15950 being nil.
15951
159522008-02-01 Kenichi Handa <handa@m17n.org>
15953
15954 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15955
159562008-02-01 Kenichi Handa <handa@m17n.org>
15957
15958 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15959
159602008-02-01 Kenichi Handa <handa@m17n.org>
15961
15962 * search.c (simple_search): Fix previous change.
15963
159642008-02-01 Kenichi Handa <handa@m17n.org>
15965
15966 * xftfont.c (ftfont_font_format): Extern declaration.
15967
15968 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15969
15970 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15971 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15972
15973 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15974 (ftfont_font_format): Fix previous change.
15975
15976 * font.h (Ffont_xlfd_name): EXFUN it.
15977
15978 * font.c (font_parse_xlfd): Fix the array size of `f'.
15979 (register_font_driver): Use EQ to compare driver->type.
15980
15981 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15982 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15983 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15984
159852008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15988 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15989
159902008-02-01 Kenichi Handa <handa@m17n.org>
15991
15992 * xfont.c (xfont_open): Set font->format.
15993
15994 * xftfont.c (xftfont_open): Set font->format.
15995
15996 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15997 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15998 (ftfont_open): Set font->format.
15999 (ftfont_font_format): New function.
16000
16001 * font.h (struct font): New member format.
16002
16003 * font.c (Qopentype): New variable.
16004 (syms_of_font): Defsym it.
16005 (Fquery_font): Change the format of the last element of the return
16006 value.
16007
160082008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16011 last resort.
16012
160132008-02-01 Kenichi Handa <handa@m17n.org>
16014
16015 * coding.c (detect_coding_charset): Fix detection of multi-byte
16016 charset.
16017
160182008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16019
16020 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * xdisp.c (get_next_display_element): Set it->face_id for the
16025 first component of a composition.
16026 (x_produce_glyphs): Check if the font is changed or not for composition.
16027
160282008-02-01 Kenichi Handa <handa@m17n.org>
16029
16030 * fontset.c (Qlatin): New variable.
16031 (syms_of_fontset): Define it as a lisp symbol.
16032 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16033
160342008-02-01 Kenichi Handa <handa@m17n.org>
16035
16036 * font.c (font_unparse_fcname): Pay attention to the case that
16037 some of font property is a null string.
16038
160392008-02-01 Kenichi Handa <handa@m17n.org>
16040
16041 * term.c: Include "composite.h".
16042 (encode_terminal_code): Output all components of composition.
16043 Check the size of encode_terminal_src.
16044 (produce_glyphs): For composition, call produce_composite_glyph.
16045 (append_composite_glyph, produce_composite_glyph): New functions.
16046
16047 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16048 is not found, get font_info from the current ascii face.
16049
160502008-02-01 Kenichi Handa <handa@m17n.org>
16051
16052 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16053 buffer-file-name to Qnil before calling insert_from_buffer.
16054
16055 * font.c (font_unparse_fcname): Pay attention to the case that
16056 foundry is a null string.
16057
160582008-02-01 Kenichi Handa <handa@m17n.org>
16059
16060 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16061
16062 * font.c (Qunicode_sip): New variable.
16063 (syms_of_font): Declare it as a Lisp symbol.
16064
16065 * font.h (Qunicode_sip): Extern it.
16066
160672008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * composite.c (get_composition_id): Pay attention to TAB component.
16070
16071 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16072 TAB. Adjust for the change of s->char2b which always points to
16073 the first element of allocated memory.
16074
16075 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16076
16077 * xdisp.c (handle_composition_prop): Set it->c to the first
16078 non-TAB component.
16079 (fill_composite_glyph_string): Change argument.
16080 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16081 (x_produce_glyphs): Fix handling of left/right padding.
16082
160832008-02-01 Kenichi Handa <handa@m17n.org>
16084
16085 * coding.c (detect_coding_system): Fix for handling off
16086 inhibit_iso_escape_detection. Fix for the case that no coding
16087 system is defined for a specific coding category.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * font.c (font_matching_entity): Delete unused local var.
16092
16093 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16094 opening a font.
16095
16096 * fileio.c (Finsert_file_contents): On recovering a file, assume
16097 Unix-like eol.
16098 (choose_write_coding_system): On auto-saving a file, force
16099 Unix-like eol.
16100
16101 * coding.c (setup_coding_system): Fix setting of
16102 coding->common_flags based on eol_type.
16103 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16104 inherit from it.
16105
161062008-02-01 Kenichi Handa <handa@m17n.org>
16107
16108 * alloc.c (NSTATICS): Increas to 0x600.
16109
161102008-02-01 Kenichi Handa <handa@m17n.org>
16111
16112 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16113 (ftfont_list): Don't check :name property.
16114 (ftfont_match): New function.
16115 (ftfont_pattern_entity): If the pattern doesn't contain
16116 FC_SPACING, don't assume FC_MONO.
16117
16118 * font.h (struct font_driver): New member `match'.
16119 (font_update_drivers): Adjust prototype.
16120
16121 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16122 property of FONT.
16123 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16124 them unconditionally.
16125 (font_matching_entity): New function.
16126 (font_open_by_name): Try font_matching_entity if exact match is
16127 not found.
16128 (font_update_drivers): Delete the arg FONT. Return a list of
16129 actually used backends. Don't free faces, font caches here.
16130 Don't store data in frame parameters. Don't call x_set_font.
16131 (Ffont_spec): Store :name property as is.
16132 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16133 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16134 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16135 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16136 Call font->driver->otf_gsub instead of font_otf_gsub.
16137
16138 * frame.c (x_set_font_backend): Do more works that were done in
16139 font_update_drivers before.
16140
16141 * xfont.c (xfont_match): New function.
16142 (xfont_driver): Set xfont_driver.match to xfont_match.
16143 (xfont_draw): Set font in GC if necessary.
16144
16145 * ftxfont.c (ftxfont_match): New function.
16146 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16147
16148 * xftfont.c (xftfont_match): New function.
16149 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16150
161512008-02-01 Kenichi Handa <handa@m17n.org>
16152
16153 * font.h (struct font): New member scalable.
16154 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16155 (font_otf_gsub): Adjust prototype.
16156
16157 * font.c (font_otf_capability): Fix handling of the default langsys.
16158 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16159 Check the contents of SPEC.
16160 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16161 (check_gstring): New function.
16162 (REPLACEMENT_CHARACTER): New macro.
16163 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16164 glyph codes of GSTRING.
16165 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16166 (font_prepare_composition): Set cmp->glyph_len.
16167 (font_open_entity): Set font->scalable.
16168 (Ffont_get): Handle :otf property.
16169 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16170 functions.
16171 (Fquery_font): Use font->font.full_name.
16172 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16173 Sfont_otf_alternates.
16174
16175 * ftfont.c (ftfont_open): Set font->font.full_name and
16176 font->font.name properly. Fix calculation of font->font.height
16177 and font->min_width.
16178
16179 * ftxfont.c (ftxfont_create_gcs): New function.
16180 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16181 (ftxfont_draw_backgrond): Fix filling region.
16182 (ftxfont_default_fid): New function.
16183 (ftxfont_open): Set xfont->fid to the return value of
16184 ftxfont_default_fid.
16185 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16186 (ftxfont_done_face): Free only GCs that are created by
16187 ftxfont_create_gcs.
16188 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16189
16190 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16191 Clip to src->width, etc (not src->clip_XXX).
16192
16193 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16194 FontBackend frame parameter.
16195
161962008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * font.h (struct font_driver_list): New member `on'.
16199 (Fclear_font_cache): EXFUN it.
16200 (font_update_drivers): Extern it.
16201
16202 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16203 (font_list_entities): Check driver_list->on.
16204 (register_font_driver): Initalize `on' member to 0.
16205 (font_update_drivers): New function.
16206 (Fclear_font_cache): Check driver_list->on.
16207
16208 * frame.h (Qfont_backend): Extern it.
16209 (x_set_font_backend): Extern it.
16210
16211 * frame.c (Qfont_backend): New variable.
16212 (frame_parms): New element for font-backend.
16213 (x_set_font_backend): New function.
16214
16215 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16216 FontBackend frame parameter.
16217 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16218 x_set_font_backend.
16219
16220 * xfont.c (xfont_list): Don't try listing by :name property if the
16221 name is not for XLFD.
16222
162232008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16226 (LGLYPH_SET_TO): New macros.
16227 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16228 element of G is vector or not.
16229 (font_at): Extern it.
16230
16231 * font.c: Include window.h.
16232 (font_lispy_object): New function.
16233 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16234 end of valid glyph.
16235 (font_close_object): Fix getting (struct font *).
16236 (font_at): New function.
16237 (Ffont_get): If FONT is a font-object, get entity from it.
16238 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16239 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16240 range check.
16241 (Ffont_at): New function.
16242 (syms_of_font): Defsubr Sfont_at.
16243
16244 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16245 before the entry for Qcomposition.
16246 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16247 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16248 the font in gstring.
16249 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16250 LGLYPH_FORM (g) to detect the end of valid glyph.
16251 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16252 we are composing with gstring.
16253
16254 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16255 Check if adjustment is vector or not.
16256
16257 * Makefile.in (font.o): Make it depends on window.h.
16258
162592008-02-01 Kenichi Handa <handa@m17n.org>
16260
16261 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16262 adjustment is vector or not.
16263
162642008-02-01 Miles Bader <miles@gnu.org>
16265
16266 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16267
162682008-02-01 Kenichi Handa <handa@m17n.org>
16269
16270 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16271 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16272 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16273
16274 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16275 (DEVICE_DELTA): Fix typo.
16276 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16277 LGLYPH format.
16278
16279 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16280 the change of LGLYPH format.
16281
162822008-02-01 Kenichi Handa <handa@m17n.org>
16283
16284 * ftfont.c (ftfont_list): Fix typo.
16285 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16286
162872008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16288
16289 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16290
16291 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16292 xftface_info is non-NULL.
16293
162942008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16295
16296 * ftfont.c (ftfont_list): Move misplaced #endif.
16297
162982008-02-01 Kenichi Handa <handa@m17n.org>
16299
16300 * ftfont.c (ftfont_list): Pay attention to the case that
16301 FC_CAPABILITY is not defined.
16302
163032008-02-01 Kenichi Handa <handa@m17n.org>
16304
16305 * xftfont.c (xftfont_open): Set charset related members to -1.
16306
16307 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16308 QCname.
16309 (ftfont_open): Set charset related members to -1.
16310
16311 * fontset.c (Votf_script_alist): New variable.
16312 (syms_of_fontset): Initialize it.
16313 (fontset_font): Delete unused variable.
16314
16315 * fontset.h (Votf_script_alist): Extern it.
16316
16317 * font.c (font_find_for_lface): Optimize code.
16318
16319 * font.h (font_close_object, font_merge_old_spec): Extern them.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16324 (syms_of_font): Initialize them.
16325 (font_pixel_size): Allow float value in dpi.
16326 (font_prop_validate_type): Delete.
16327 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16328 Change caller.
16329 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16330 (font_prop_validate_extra): Delete.
16331 (font_prop_validate_spacing): New function.
16332 (font_property_table): Add elements for all known properties.
16333 (get_font_prop_index): Rename from check_font_prop_name. New
16334 argument FROM. Change caller.
16335 (font_prop_validate): Validate all known properties.
16336 (font_put_extra): Delete argument force. Change caller.
16337 (font_expand_wildcards): Make it static. Fix the way of shrinking
16338 the possible range.
16339 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16340 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16341 Change caller.
16342 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16343 (font_parse_fcname): Delete argument merge. Fix parsing of point
16344 size. Don't validate properties values here. Change caller.
16345 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16346 (font_open_by_name): Delete unused variable.
16347 (Ffont_spec): Likewise. Validate property values.
16348 (Ffont_match_p): New function.
16349
16350 * font.h (QCscalable): Extern it.
16351 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16352
16353 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16354
16355 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16356 (xfont_list_pattern): New function.
16357 (xfont_list): Use xfont_list_pattern.
16358
163592008-02-01 Kenichi Handa <handa@m17n.org>
16360
16361 * font.h (Flist_fonts): EXFUN it.
16362
163632008-02-01 Jason Rumney <jasonr@gnu.org>
16364
16365 * w32term.c (w32_initialize): Add back smoothing_type and
16366 smoothing_enabled definitions.
16367
163682008-02-01 Kenichi Handa <handa@m17n.org>
16369
16370 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16371 s->face->font on determining underline position.
16372
163732008-02-01 Kenichi Handa <handa@m17n.org>
16374
16375 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16376 (font_has_char): Accept font-object too.
16377 (font_find_for_lface): Try at first with a size specified in face.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16382 font_open_by_name.
16383
163842008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 * font.h (QCspacing, QCdpi): Extern them.
16387 (enum font_spacing): New enum.
16388 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16389
16390 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16391 (QCspacing, QCdpi): New variables.
16392 (syms_of_font): Initialize them.
16393 (font_pixel_size): New function.
16394 (font_put_extra): New function.
16395 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16396 in FONT_EXTRA.
16397 (font_parse_fcname): Handle enumerated values (e.g. bold).
16398 Fix handling font size. Add QCname property that contains only
16399 unknown properties.
16400 (font_score): Change argument. Change caller. Pay attention to
16401 FONT_PIXEL_SIZE_QUANTUM.
16402 (font_sort_entites, font_list_entities, font_find_for_lface)
16403 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16404 (Ffont_spec): Add QCname property that contains only unknown properties.
16405
16406 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16407 include weight in listing pattern, instead check weight of each
16408 listed font. Don't include scalable in pattern. Pay attention to
16409 FONT_PIXEL_SIZE_QUANTUM.
16410
164112008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * font.c (font_parse_fcname): Fix parsing of point-size.
16414 (font_unparse_fcname): Produce symbolic names for style properties.
16415 (font_list_entities): Handle float size correctly.
16416 (font_open_by_name): Prefer `normal' property values if the name
16417 doesn't specify them.
16418
16419 * fontset.c (Finternal_char_font): Use font_get_name, not
16420 Ffont_xlfd_name.
16421
16422 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16423 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16424 pattern. Don't force scalable.
16425
16426 * xftfont.c (xftfont_open): For generating a name, start from
16427 96-byte buffer.
16428
164292008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16430
16431 * frame.h (x_new_fontset2): Fix prototype.
16432
164332008-02-01 Kenichi Handa <handa@m17n.org>
16434
16435 * font.h (struct font_driver): Delete member parse_name.
16436 (font_match_p, font_get_spec, font_parse_fcname)
16437 (font_unparse_fcname): Extern them.
16438 (font_get_name): Adjust prototype.
16439
16440 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16441 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16442 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16443 unnecessary checks for weight, slant, and swidth.
16444 (font_parse_fcname): New function.
16445 (font_unparse_fcname): New function.
16446 (font_parse_name): New function.
16447 (font_match_p): New function.
16448 (font_get_name): Change return value to Lisp string.
16449 (font_get_spec): New function.
16450 (Qunspecified, Qignore_defface): Don't extern them.
16451 (font_find_for_lface): Assume that LFACE is fully specified.
16452 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16453 object, use it for FACE.
16454 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16455 driver->parse_name.
16456 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16457
16458 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16459 prototype.
16460
16461 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16462 argument F. Don't call Fnew_fontset. Instead, directly call
16463 make_fontset.
16464
16465 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16466
16467 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16468 of x_new_fontset2.
16469
16470 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16471 (Qsans__serif): New variables.
16472 (ftfont_generic_family_list): New variable.
16473 (syms_of_ftfont): Initialize the above variables.
16474 (ftfont_pattern_entity): Delete argument NAME.
16475 (ftfont_list_generic_family): New function.
16476 (ftfont_parse_name): Delete this function.
16477 (ftfont_list): Try generic family only when FcFontList found no font.
16478 (ftfont_list_family): Fix args to FcObjectSetBuild.
16479
16480 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16481 object in attrs[LFACE_FONT_INDEX].
16482 (set_lface_from_font_name): Cancel all changes for font-backend.
16483 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16484 function.
16485 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16486 font object in QCfont attribute.
16487 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16488 (realize_default_face) [USE_FONT_BACKEND]: Call
16489 set_lface_from_font_and_fontset.
16490
16491 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16492 "fixed", and signal error here if no suitable font was found.
16493
16494 * xfont.c (xfont_parse_name): Delete this function.
16495
16496 * xftfont.c (xftfont_open): Change coding style of error
16497 handling. Generate fontconfig's fontname pattern.
16498
16499 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16500 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16501
16502 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16503 Both args FONTSET and FONT_OBJECT must be existing ones.
16504
165052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16506
16507 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16512
16513 * font.h (struct font): Fix typo.
16514
16515 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16516 XLFD_XXX_INDEX.
16517 (enum xlfd_field_mask): New enum.
16518 (intern_font_field): Changed argument. Change caller. If digits
16519 are followed by non-digits, return a symbol.
16520 (font_expand_wildcards): New function.
16521 (font_parse_xlfd): Fix wildcard handling.
16522 (Ffont_spec): If :name is specified, reflect the info in the other
16523 properties.
16524
16525 * ftfont.c (ftfont_pattern_entity): Fix typo.
16526 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16527 locale.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16532
16533 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16534 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16535 registry doesn't specify encoding part.
16536 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16537 (font_open_by_name): At first try parsing the name.
16538 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16539 as Lisp symbols.
16540
16541 * fontset.c (reorder_font_vector): Pay attention to the case that
16542 the 3rd element of font_def is nil.
16543 (fontset_font): For the default fontset, append one more fontset
16544 elements for a script-based font specification. Don't add script
16545 attribute on finding a font.
16546 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16547 font name.
16548 (fontset_ascii_font): If a font can't be opened, return nil.
16549
16550 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16551 (ftfont_pattern_entity): New function.
16552 (ftfont_get_cache): Assume that freetype_font_cache is already
16553 initialized.
16554 (ftfont_list): Handle the case that a file is specified in font
16555 name. Use ftfont_pattern_entity to generate entities.
16556 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16557 (syms_of_ftfont): Initialize freetype_font_cache.
16558
16559 * xftfont.c (xftfont_open): Make the font name fontconfig's
16560 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16561 (xftfont_close): Free font->font.name if not NULL.
16562
16563 * xfont.c (xfont_list): If script is specified for a font, return
16564 null_vector.
16565 (xfont_list_family): Declare argument type.
16566
16567 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16568 name, set LFACE_FONT (lface) to nil.
16569
16570 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16571 return Qnil.
16572
165732008-02-01 Kenichi Handa <handa@m17n.org>
16574
16575 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16576 (standard_args): Add "-enable-font-backend".
16577
165782008-02-01 Kenichi Handa <handa@m17n.org>
16579
16580 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16581 (struct xftdraw_list, xftdraw_list): Delete them.
16582 (register_xftdraw, check_xftdraw): Delete them.
16583 (xftfont_prepare_face): Don't call register_xftdraw.
16584 (xftfont_done_face): Don't call check_xftdraw.
16585 (xftfont_draw): Get background color only when with_background is
16586 nonzero.
16587
16588 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 These changes are for the new font handling codes.
16593
16594 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16595 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16596 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16597 (FONTSRC, FONTOBJ): New variables.
16598 (obj): Add $(FONTOBJ).
16599 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16600 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16601 @LIBOTF_LIBS@.
16602 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16603 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16604
16605 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16606
16607 * character.h (Vscript_representative_chars): Extern it.
16608
16609 * character.c (Vscript_representative_chars): New variable.
16610 (syms_of_character): Declare it as a Lisp variable.
16611
16612 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16613 enable_font_backend is nonzero, accept the composition method
16614 COMPOSITION_WITH_GLYPH_STRING.
16615
16616 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16617 enumeration COMPOSITION_WITH_GLYPH_STRING.
16618
16619 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16620 members clip_x, clip_y, clip_width, and clip_height.
16621 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16622
16623 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16624 --enable-font-backend. Call syms_of_font.
16625
16626 * fns.c (assoc_no_quit): New function.
16627
16628 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16629 (face_for_font, new_fontset_from_font)
16630 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16631
16632 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16633 (fontset_font, fontset_ascii, face_for_char)
16634 (make_fontset_for_ascii_face, Ffont_info)
16635 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16636 is nonzero, use font-backend mechanism.
16637 (find_font_encoding): Make it non-static.
16638 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16639 New functions.
16640
16641 * frame.h (struct frame): New members resx and resy.
16642 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16643 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16644
16645 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16646 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16647
16648 * lisp.h (assoc_no_quit): Extern it.
16649
16650 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16651 Through out the file, use FONT_INFO_FROM_FACE instead of
16652 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16653 rif->per_char_metric.
16654 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16655 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16656 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16657 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16658 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16659 nonzero, use font-backend mechanism.
16660 (get_per_char_metric): New function.
16661
16662 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16663 (set_lface_from_font_name)
16664 (set_font_frame_param, free_realized_face)
16665 (prepare_face_for_display, clear_face_gcs)
16666 (Finternal_set_font_selection_order, realize_x_face)
16667 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16668 font-backend mechanism.
16669 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16670 (load_face_font) [USE_FONT_BACKEND]: Abort.
16671 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16672 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16673
16674 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16675 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16676 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16677 nonzero, register all available font drivers. Call
16678 x_default_font_parameter for deciding a font.
16679 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16680
16681 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16682 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16683 (x_set_glyph_string_clipping_exactly)
16684 (x_compute_glyph_string_overhangs)
16685 (x_draw_glyph_string_foreground)
16686 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16687 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16688 enable_font_backend is nonzero, use font-backend mechanism.
16689 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16690
166912008-02-01 Kenichi Handa <handa@m17n.org>
16692
16693 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16694 system_eol_type.
16695 (syms_of_coding): Initialize system_eol_type.
16696
16697 * process.c (Fset_process_coding_system): Inherit system's eol
16698 format if necessary.
16699
167002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16701
16702 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * coding.c (decode_eol): Pay attention to buffer relocation in
16707 del_range_2.
16708 (decode_coding): Call decode_eol before restoring undo_list.
16709
167102008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * charset.c (Fdefine_charset_internal): Fix setting of
16713 emacs_mule_bytes.
16714
167152008-02-01 Kenichi Handa <handa@m17n.org>
16716
16717 * keyboard.c (read_char): Check if C is a character or not before
16718 looking up Vkeyboard_translate_table.
16719
167202008-02-01 Kenichi Handa <handa@m17n.org>
16721
16722 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16723 condition to terminate the loop.
16724
167252008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 * coding.c (produce_composition): Compare charbuf[i] instead of
16728 args[i] against 0.
16729 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16730
167312008-02-01 Kenichi Handa <handa@m17n.org>
16732
16733 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16734 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16735 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16736 detect_coding.
16737 (emacs_mule_char): Handle old style (Emacs 20) component character
16738 of a composition.
16739 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16740 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16741 composition rule.
16742 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16743
167442008-02-01 Kenichi Handa <handa@m17n.org>
16745
16746 * coding.c (encode_coding_ccl): Allocate destination dynamically
16747 when necessary.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16752 the loop. When quitted, show a proper error message.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16757 src->clip_head and src->clip_tail temporarily instead of src->hl.
16758
16759 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16760 character sequence.
16761 (Fccl_execute_on_string): Use ASET, not XSET.
16762
167632008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16766
167672008-02-01 Kenichi Handa <handa@m17n.org>
16768
16769 * coding.c (decode_coding): Fix the condition of terminating the
16770 decoding loop.
16771
167722008-02-01 Kenichi Handa <handa@m17n.org>
16773
16774 * data.c (Faset): On setting a character bigger than 255 in a
16775 unibyte string, signal an error instead of make the string multibyte.
16776
167772008-02-01 Kenichi Handa <handa@m17n.org>
16778
16779 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16780 made by a mapping table.
16781
167822008-02-01 Kenichi Handa <handa@m17n.org>
16783
16784 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16785 not.
16786 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16787 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16788
16789 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16790 s->face is NULL or not.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16795 (x_draw_glyph_string): Fix drawing of right_overhang and
16796 left_overhang around/on cursor.
16797
16798 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16799
168002008-02-01 Kenichi Handa <handa@m17n.org>
16801
16802 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * coding.c (Fdefine_coding_system_internal)
16807 (Fdefine_coding_system_alias): Avoid a duplicated element in
16808 Vcoding_system_alist.
16809
168102008-02-01 Kenichi Handa <handa@m17n.org>
16811
16812 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16813
16814 * coding.c (Qcoding_system_define_form): New variable.
16815 (syms_of_coding): Intern and staticpro it.
16816 (Fcoding_system_p): Check Qcoding_system_define_form.
16817 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16818
16819 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16820 Fcoding_system_p.
16821 (CHECK_CODING_SYSTEM): If ID is not available, call
16822 Fcheck_coding_system.
16823 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16824 Try also Fcheck_coding_system.
16825
168262008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * coding.c (code_conversion_restore): GCPRO arg.
16829
168302008-02-01 Kenichi Handa <handa@m17n.org>
16831
16832 * character.c (lisp_string_width): Check multibyteness of STRING.
16833
168342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16835
16836 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16837 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16838 (decode_mac_font_name): Use decode_coding_c_string instead of
16839 decode_coding.
16840 (x_load_font): Initialize fontp->fontset to -1. Set
16841 fontp->encoding_type.
16842
168432008-02-01 Kenichi Handa <handa@m17n.org>
16844
16845 * search.c (search_buffer): Give up BM search on case-fold-search
16846 if one of a target character has a case-equivalence of different
16847 byte length even if that target charcter is an ASCII.
16848 (simple_search): Fix calculation of byte length of matched text.
16849 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16850
168512008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * coding.c (decode_coding): Fix handling of invalid bytes.
16854
168552008-02-01 Kenichi Handa <handa@m17n.org>
16856
16857 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16858 Unicode characters.
16859
168602008-02-01 Kenichi Handa <handa@m17n.org>
16861
16862 * coding.c (encode_coding_object): If a pre-write-conversion
16863 function makes a new buffer, kill it.
16864
168652008-02-01 Kenichi Handa <handa@m17n.org>
16866
16867 * coding.c (QCascii_compatible_p): New variable.
16868 (syms_of_coding): Initialize it.
16869 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16870 calling string_char.
16871 (record_conversion_result): Add `default:' case.
16872 (coding_charset_list): Delete unused variable `coding_type'.
16873 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16874 property in the plist of the coding system.
16875 (Fcoding_system_put): Check QCascii_compatible_p.
16876
168772008-02-01 Miles Bader <miles@gnu.org>
16878
16879 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16880 removed calculation of frame `f', as it's now used.
16881
168822008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16885 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16886 (UNIDATA): New variable.
16887 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16888 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16889 $(RUN_TEMACS) unconditionally.
16890
168912008-02-01 Kenichi Handa <handa@m17n.org>
16892
16893 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16894 (admindir): New variable.
16895 ($(lispsource)international/charprop.el): New target.
16896
168972008-02-01 Miles Bader <miles@gnu.org>
16898
16899 * character.c (chars-in-region): Remove obsolete function.
16900 (syms_of_character): Remove its initialization.
16901
169022008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16903
16904 * w32select.c (validate_coding_system)
16905 (setup_windows_coding_system): New functions.
16906 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16907 setup_windows_coding_system.
16908 (setup_config, Fw32_get_clipboard_data): Use
16909 validate_coding_system.
16910 (Fx_selection_exists): Move call to setup_config to a place
16911 where signals are allowed.
16912
16913 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16914 (Fcheck_coding_system): Add declarations.
16915
169162008-02-01 Kenichi Handa <handa@m17n.org>
16917
16918 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16919
169202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16921
16922 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16923 string as the second argument for x_new_fontset.
16924
169252008-02-01 Kenichi Handa <handa@m17n.org>
16926
16927 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16928 (encode_coding_object): Use safe_call instead of call2.
16929
169302008-02-01 Kenichi Handa <handa@m17n.org>
16931
16932 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16933
16934 * Makefile.in (lisp): Include charprop.el.
16935
169362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16937
16938 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16939 Not sure if it's unnecessary.
16940
169412008-02-01 Steven Tamm <steventamm@mac.com>
16942
16943 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16944 some possibly unnecessary fontset checking code that crashed
16945 when creating a new frame.
16946
169472008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16950 lookup_face.
16951
16952 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16953
16954 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16955
169562008-02-01 Kenichi Handa <handa@m17n.org>
16957
16958 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16959 (coding_charset_list): New function.
16960
16961 * coding.h (coding_charset_list): Extern it.
16962
169632008-02-01 Kenichi Handa <handa@m17n.org>
16964
16965 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16966 concatenation of family and registry.
16967
169682008-02-01 Kenichi Handa <handa@m17n.org>
16969
16970 * character.h (BYTE8_STRING): Fix typo.
16971
16972 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16973 string to multibyte (sync to HEAD).
16974
16975 * casefiddle.c (casify_region): Handle changes in byte-length
16976 using replace_range_2 (sync to HEAD).
16977
169782008-02-01 Andreas Schwab <schwab@suse.de>
16979
16980 * chartab.c (map_char_table): GCPRO table and arg.
16981
169822008-02-01 Kenichi Handa <handa@m17n.org>
16983
16984 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16985 already at limit.
16986
169872008-02-01 Kenichi Handa <handa@m17n.org>
16988
16989 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16990 instead of fast_c_string_match_ignore_case.
16991 (find_font_encoding): Change argument to Lisp_Object. Use
16992 fast_string_match_ignore_case instead of
16993 fast_c_string_match_ignore_case. Change caller.
16994
169952008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * xdisp.c (get_next_display_element): In unibyte case, decide to
16998 display in octal form by checking a character by
16999 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17000
17001 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17002
17003 * character.c (unibyte_has_multibyte_table): New variable.
17004
17005 * character.h (unibyte_has_multibyte_table): Extern it.
17006 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17007
170082008-02-01 Kenichi Handa <handa@m17n.org>
17009
17010 * coding.c (encode_coding_iso_2022): Fix handling of charset
17011 annotation.
17012
170132008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * coding.c (setup_coding_system): If coding_system is nil, use
17016 Qundecided.
17017 (Fterminal_coding_system): Return nil if terminal coding system is
17018 `undecided'.
17019 (syms_of_coding): Define coding-system `undecided' here. Setup
17020 terminal_coding as `undecided'.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * xdisp.c (message_dolog, set_message_1): Call
17025 unibyte_char_to_multibyte with arg type int.
17026
17027 * lread.c (read1): Fix reading of a char-table.
17028
17029 * print.c (print_object): Include sub char-table in circularities
17030 detection.
17031
170322008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17035 Append the found sequences in car of ARGS instead of prepending.
17036
170372008-02-01 Kenichi Handa <handa@m17n.org>
17038
17039 * fileio.c (report_file_error): Make a unibyte string from
17040 strerror (errorno).
17041 (Fsubstitute_in_file_name): Fix the arg to
17042 unibyte_char_to_multibyte. It is evaluated twice.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17051 BOM is not found.
17052 (detect_coding, detect_coding_system): Optimization for ISO-2022
17053 when no 8-bit data is found.
17054
170552008-02-01 Jason Rumney <jasonr@gnu.org>
17056
17057 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17058
170592008-02-01 Kenichi Handa <handa@m17n.org>
17060
17061 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17062 CHARS.
17063
170642008-02-01 Steven Tamm <steventamm@mac.com>
17065
17066 * macterm.c (mac_encode_char): Add charset argument and update
17067 to use encoding_type.
17068 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17069 switch to pure fontset.
17070 (decode_mac_font_name): Temporarily remove decoding.
17071 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17072 (x_load_font): Temporarily remove encoding.
17073
170742008-02-01 Kenichi Handa <handa@m17n.org>
17075
17076 * xfaces.c (Fface_font): If frame is not on a window system,
17077 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17078 refer to face->font.
17079 (split_font_name_into_vector, build_font_name_from_vector)
17080 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17081 when HAVE_WINDOW_SYSTEM is defined.
17082
170832008-02-01 Kenichi Handa <handa@m17n.org>
17084
17085 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17086 (x_produce_glyphs): Fix setting of members of cmp in case
17087 cmp->glyph_len is zero.
17088
17089 * fontset.c (Fset_fontset_font): Fix docstring.
17090 (Ffontset_info): Make it backward compatible. New arg ALL.
17091
170922008-02-01 Kim F. Storm <storm@cua.dk>
17093
17094 * process.c (read_process_output): Grow decoding_buf when needed;
17095 this could cause a crash in allocate_string and compact_small_strings.
17096
170972008-02-01 Kenichi Handa <handa@m17n.org>
17098
17099 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17100
171012008-02-01 Kenichi Handa <handa@m17n.org>
17102
17103 * coding.c (setup_coding_system): Set coding->common_flags
17104 correctly for raw-text.
17105 (consume_chars): On encoding unibyte text by raw-text, don't check
17106 multibyte form.
17107 (encode_coding): On encoding by raw-text, never use translation tables.
17108
17109 * fileio.c (e_write): Short cut for the case of no encoding.
17110
171112008-02-01 Kenichi Handa <handa@m17n.org>
17112
17113 * coding.c (detect_coding, detect_coding_system): Delete unused
17114 variables.
17115
171162008-02-01 Kenichi Handa <handa@m17n.org>
17117
17118 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17119 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17120
171212008-02-01 Kenichi Handa <handa@m17n.org>
17122
17123 * coding.c (Ffind_coding_systems_region_internal): Include
17124 raw-text and no-conversion in the result.
17125
171262008-02-01 Kenichi Handa <handa@m17n.org>
17127
17128 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17129 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17130 FONT_DEF.
17131 (font_def_arg, add_arg, from_arg, to_arg): New args.
17132 (set_fontset_font): Change argument.
17133 (Fset_fontset_font): Fix for the case that TARGET is a script
17134 name and charset name.
17135 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17136
171372008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * fontset.c (fontset_font): Rename from fontset_face. Change return
17140 value.
17141 (face_suitable_for_char_p, face_for_char): Adjust for the change
17142 of fontset_font.
17143 (make_fontset_for_ascii_face): Fix setting of the fontset element
17144 for ASCII.
17145 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17146 to get a font name.
17147 (Ffontset_info): Adjust for the change of fontset_font.
17148
17149 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17150
17151 * character.h (LEADING_CODE_LATIN_1_MIN)
17152 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17153
171542008-02-01 Kenichi Handa <handa@m17n.org>
17155
17156 * editfns.c (check_translation): New function.
17157 (Ftranslate_region_internal): Handle M:N mapping.
17158
171592008-02-01 Kenichi Handa <handa@m17n.org>
17160
17161 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17166 goto invalid_code.
17167 (decode_coding_iso_2022): Fix handling of invalid designation.
17168
17169 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17170 after calling code_conversion_save.
17171
171722008-02-01 Kenichi Handa <handa@m17n.org>
17173
17174 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17175
17176 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17177
17178 * fontset.c: Include "intervals.h".
17179 (fontset_face): Fix comparing of Lisp_Objects.
17180 (free_face_fontset, new_fontset_from_font_name): Fix
17181 Lisp_Object/int mixup.
17182
17183 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17184
17185 * coding.c: Add many prototypes for static functions.
17186 (get_translation_table): Allow max_lookup to be NULL.
17187 (decode_coding, Ffind_coding_systems_region_internal)
17188 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17189 get_translation_table with max_lookup NULL.
17190
171912008-02-01 Kenichi Handa <handa@m17n.org>
17192
17193 * coding.c (get_translation_table): Declare it as Lisp_Object.
17194 (LOOKUP_TRANSLATION_TABLE): New macro.
17195 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17196 instead of CHAR_TABLE_REF.
17197
171982008-02-01 Kenichi Handa <handa@m17n.org>
17199
17200 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17201 annotation data format.
17202 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17203 Change arguments FROM and TO to single argument NCHARS. Change caller.
17204 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17205 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17206 (decode_coding_ccl, decode_coding_charset): Pay attention to
17207 coding->charbuf_used.
17208 (get_translation): New function.
17209 (produce_chars): New arguments translation_table and last_block.
17210 Translate characters here. Return number of carryover chars.
17211 Change caller.
17212 (produce_composition): New argument pos. Change caller.
17213 Adjust for the change of annotation data format.
17214 (produce_charset, produce_annotation): Likewise.
17215 (decode_coding, encode_coding): Don't call translate_chars.
17216 (consume_chars): New arg translation_table. Change caller.
17217 (translate_chars): Delete.
17218 (syms_of_coding): Make translation-table's number of extra slots 2.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * search.c (simple_search): Fix setting this_pos_byte in backward
17223 search.
17224
17225 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17226 byte sequence.
17227 (detect_coding_ccl): Fix setting of the variable valids.
17228
172292008-02-01 Kenichi Handa <handa@m17n.org>
17230
17231 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17232
17233 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17234
17235 * editfns.c (Ftranslate_region_internal): Rename from
17236 Ftranslate_region. Accept a char-table in TABLE.
17237 (syms_of_editfns): Defsubr Stranslate_region_internal.
17238
17239 * xfaces.c (set_lface_from_font_name): If a font is specified for
17240 a frame, generate a fontset from the font.
17241 (build_scalable_font_name): If the scalable font is requested for
17242 a specific size, don't change that size.
17243 (try_font_list): Try a scalable font also in the case that a
17244 pattern string is specified.
17245
172462008-02-01 Kenichi Handa <handa@m17n.org>
17247
17248 * xfaces.c (Fface_font): New optional arg CHARACTER.
17249
172502008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * charset.h (CHARSET_OFFSET): New macro.
17253
172542008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17257
17258 * fontset.c (fontset_face): Handle the case that repertory is a
17259 char-table.
17260 (find_font_encoding): Return nil for unknown encoding.
17261 (Fset_fontset_font): Ignore a font of unknown encoding.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * keymap.c (describe_vector): Handle default value of a char table.
17266
17267 * fontset.c (fontset_face): Handle fallback fonts correctly.
17268 (Ffontset_info): Return infomation about fallback fonts.
17269
172702008-02-01 Kenichi Handa <handa@m17n.org>
17271
17272 * fontset.c (FONTSET_DEFAULT): New macro.
17273 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17274 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17275 the case that it is nil.
17276 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17277 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17278
17279 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17280 subset or superset.
17281
172822008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * emacs.c (main): Call init_charset after syms_of_XXX.
17285
17286 * charset.c (Vcharset_map_directory): Delete.
17287 (Vcharset_map_path): New variable.
17288 (load_charset_map_from_file): Use Vcharset_map_path instead.
17289 (init_charset): Initialize Vcharset_map_path.
17290 (syms_of_charset): Delete declaration of "charset-map-directory",
17291 add declaration of "charset-map-path".
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17296 ASCII only string.
17297
17298 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17299
17300 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17301 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17302
173032008-02-01 Kenichi Handa <handa@m17n.org>
17304
17305 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17306
17307 * coding.c (QCmnemonic, QCdefalut_char)
17308 (QCdecode_translation_table, QCencode_translation_table)
17309 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17310 (get_translation_table): Return a list of translation tables if
17311 necessary.
17312 (decode_coding): Call get_translation_table with ENCODEP 0.
17313 (char_encodable_p): If translation_table is non-nil, always call
17314 translate_char.
17315 (Fdefine_coding_system_internal): Accept list of translation
17316 tables as :encode-translation-table and :decode-translation-table.
17317 (Fcoding_system_put): New function.
17318 (syms_of_coding): Declare new symbols. Defsubr
17319 Scoding_system_put.
17320 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17321 typically JISX0212.
17322
17323 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17324 when the charset is superset type.
17325
17326 * character.c (translate_char): Accept list of translation tables.
17327
173282008-02-01 Kenichi Handa <handa@m17n.org>
17329
17330 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17331 (CODING_ATTR_TRANS_TBL): New macro.
17332
17333 * coding.c (get_translation_table): New function.
17334 (translate_chars): Fix the bug of skipping annotation data.
17335 (decode_coding, encode_coding): Utilize get_translation_table.
17336 (char_encodable_p, Funencodable_char_position): Translate char if
17337 necessary.
17338 (Ffind_coding_systems_region_internal)
17339 (Fcheck_coding_systems_region): Setup translation table for encode
17340 in a coding system attribute vector in advance.
17341 (Fdefine_coding_system_internal): Allow a symbol as translation
17342 table. For shift-jis type coding system, allow 4th charset.
17343
173442008-02-01 Kenichi Handa <handa@m17n.org>
17345
17346 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17347
17348 * xdisp.c (get_next_display_element): Pass -1 as POS to
17349 FACE_FOR_CHAR if displaying a C-string.
17350
173512008-02-01 Kenichi Handa <handa@m17n.org>
17352
17353 * composite.c (get_composition_id): Handle xoff and yoff in a
17354 composition rule.
17355
17356 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17357 (struct composition): New member lbearing and rbearing.
17358
17359 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17360 (x_get_glyph_overhangs): Handle a composition glyph.
17361 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17362
17363 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17364 composition glyph.
17365
173662008-02-01 Kenichi Handa <handa@m17n.org>
17367
17368 * print.c: Include charset.h.
17369 (Vprint_charset_text_property): New variable.
17370 (Qdefault): Extern it.
17371 (PRINT_STRING_NON_CHARSET_FOUND)
17372 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17373 (print_check_string_result): New variable.
17374 (print_check_string_charset_prop): New function.
17375 (print_prune_charset_plist): New variable.
17376 (print_prune_string_charset): New function.
17377 (print_object): Call print_prune_string_charset if
17378 Vprint_charset_text_property is not t.
17379 (print_interval): Print nothing if interval->plist is nil.
17380 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17381 variable. Init and staticpro print_prune_charset_plist.
17382
173832008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * fontset.c (new_fontset_from_font_name): Use the specified font
17386 for all characters in the new fontset.
17387
17388 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17389 OBJECT args.
17390
17391 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17392 OBJECT args for composition too.
17393
17394 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17395 OBJECT args.
17396
173972008-02-01 Kenichi Handa <handa@m17n.org>
17398
17399 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17400
17401 * fontset.c (reorder_font_vector): Adjust for the change of
17402 FONT_DEF format.
17403 (fontset_face): New arg id. Change caller.
17404 (face_for_char): New args pos and object.
17405 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17406 (fs_query_fontset): Check NAME by Fassoc too.
17407 (Fset_fontset_font): Allow non-XLFD font name.
17408 (Ffontset_info): Adjust for the change of FONT_DEF format.
17409
17410 * fontset.h (face_for_char): Adjust prototype.
17411
17412 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17413 (append_space, extend_face_to_end_of_line)
17414 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17415 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17416
17417 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17418 POS and OBJECT args.
17419
17420 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17421 POS and OBJECT args.
17422
174232008-02-01 Jason Rumney <jasonr@gnu.org>
17424
17425 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17426 of GlobalAlloc'ed memory.
17427
174282008-02-01 Kenichi Handa <handa@m17n.org>
17429
17430 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17431
17432 * charset.h (charset_table_used): Delete extern.
17433
17434 * charset.c (charset_table_used): Make it static.
17435 (map_charset_chars): Fix args to c_function with.
17436
17437 * chartab.c (map_sub_char_table_for_charset): Fix args to
17438 c_function with.
17439
17440 * coding.h (enum coding_result_code): Delete
17441 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17442
17443 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17444 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17445 (Vlast_code_conversion_error): New variables.
17446 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17447 (ONE_MORE_BYTE): Record error if any instead of signaling an
17448 error. If non-ASCII multibyte char is found, return the negative
17449 value of the code. All callers changed to check it.
17450 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17451 (record_conversion_result): New function. Change all codes setting
17452 coding->result to call this function.
17453 (detect_coding_utf_8, decode_coding_utf_8)
17454 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17455 Don't use the local variable incomplete.
17456 (emacs_mule_char): Change the second arg to `const'.
17457 (decode_coding): Fix of flushing out unprocessed data.
17458 (make_conversion_work_buffer): Fix making of a work buffer.
17459 (decode_coding_object): Return coding->dst_object.
17460
17461 * fontset.c (set_fontset_font): Fix args.
17462
17463 * lisp.h (CHARACTERBITS): Define as 22.
17464
17465 * process.c (send_process): Be sure to set coding->src_multibyte.
17466
17467 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * xdisp.c (handle_auto_composed_prop): Give limit to
17472 Fnext_single_char_property_change.
17473
174742008-02-01 Kenichi Handa <handa@m17n.org>
17475
17476 * composite.c (syms_of_composite): Don't make the composition hash
17477 table weak.
17478
17479 * fontset.c (Fset_fontset_font): Fix docstring.
17480
17481 * lisp.h (detect_coding_system): Adjust prototype.
17482
17483 * fileio.c (kill_workbuf_unwind): Delete this function.
17484 (Finsert_file_contents): Adjust the call of detect_coding_system.
17485 Get conversion_buffer by code_conversion_save. Use the macro
17486 CODING_MAY_REQUIRE_DECODING. After decoding, update
17487 coding_system.
17488
17489 * coding.h (make_conversion_work_buffer): Delete extern.
17490 (code_conversion_save): Extern it.
17491
17492 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17493 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17494 (decode_coding_utf_8): Don't do eol converion.
17495 (detect_coding_utf_16): Check coding->src_chars, not
17496 coding->src_bytes. Add heuristics for those that have no signature.
17497 (decode_coding_emacs_mule, decode_coding_iso_2022)
17498 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17499 Don't do eol converion.
17500 (adjust_coding_eol_type): Return a new coding system.
17501 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17502 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17503 each change.
17504 (decode_coding): Pay attention to undo_list. Do eol conversion for
17505 all types of coding-systems (if necessary).
17506 (Vcode_conversion_work_buf_list): Delete it.
17507 (Vcode_conversion_reused_workbuf): Rename from
17508 Vcode_conversion_reused_work_buf.
17509 (Vcode_conversion_workbuf_name): New variable.
17510 (reused_workbuf_in_use): New variable.
17511 (make_conversion_work_buffer): Delete the arg DEPTH.
17512 (code_conversion_restore): Change argument to cons.
17513 (code_conversion_save): Delete the argument BUFFER. Change callers.
17514 (detect_coding_system): New argument src_chars. Change callers.
17515 Fix for utf-16 detection.
17516 (init_coding_once): Don't use ISO_carriage_return.
17517 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17518 reused_workbuf_in_use.
17519
175202008-02-01 Kenichi Handa <handa@m17n.org>
17521
17522 * keymap.c (store_in_keymap): Pay attention to the case that idx
17523 is a cons specifying a character range.
17524
175252008-02-01 Kenichi Handa <handa@m17n.org>
17526
17527 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17528 HANDLED_RECOMPUTE_PROPS.
17529
17530 * coding.c (Fdefine_coding_system_internal): Fix checking of
17531 ascii compatibility.
17532
175332008-02-01 Kenichi Handa <handa@m17n.org>
17534
17535 * charset.c (find_charsets_in_text): Delete unused locale variable.
17536 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17537
17538 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17539 Resync charset_list to Vemacs_mule_charset_list.
17540
17541 * keymap.c (store_in_keymap): Pay attention to the case that idx
17542 is a cons specifying a character range.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * composite.c (update_compositions): Bind inhibit-read-only, etc
17547 to t before calling remove-list-of-text-properties.
17548
17549 * print.c (print_object): Always print ASCII chars as is.
17550
175512008-02-01 Kenichi Handa <handa@m17n.org>
17552
17553 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17554
17555 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17556 is a char table.
17557
175582008-02-01 Kenichi Handa <handa@m17n.org>
17559
17560 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17561
175622008-02-01 Kenichi Handa <handa@m17n.org>
17563
17564 * xfaces.c (set_lface_from_font_name): Fix for the case that
17565 FONTNAME is not fontset name.
17566
175672008-02-01 Kenichi Handa <handa@m17n.org>
17568
17569 * fns.c (base64_encode_1): Fix previous change.
17570
175712008-02-01 Kenichi Handa <handa@m17n.org>
17572
17573 * fontset.c (set_fontset_font): New function.
17574 (Fset_fontset_font): If a font is specified for a charset, use
17575 map_charset_chars to store the font spec in a fontset.
17576
175772008-02-01 Kenichi Handa <handa@m17n.org>
17578
17579 * fontset.c (fontset_face): Create a fallback fontset on demand.
17580 (make_fontset): Don't create a fallback fontset here.
17581 (free_face_fontset): Free a fallback fontset (if any) too.
17582 (n_auto_fontsets): Delete this variable.
17583 (auto_fontset_alist): New variable.
17584 (new_fontset_from_font_name): Check auto_fontset_alist.
17585 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17586 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17587 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17588 Defsubr Sfontset_list_all.
17589
175902008-02-01 Kenichi Handa <handa@m17n.org>
17591
17592 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17593
175942008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17597
175982008-02-01 Kenichi Handa <handa@m17n.org>
17599
17600 * editfns.c (Fgoto_char): Fix docstring.
17601
176022008-02-01 Kenichi Handa <handa@m17n.org>
17603
17604 * insdel.c (insert_from_gap): Adjust intervals correctly.
17605
176062008-02-01 Jason Rumney <jasonr@gnu.org>
17607
17608 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17609 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17610 (w32_initialize): Try to load it.
17611 (x_get_font_repertory): Use it if available.
17612 (w32_encode_char): Add shortcut for unicode output.
17613
17614 * w32fns.c (w32_load_system_font): Default charset to -1.
17615 (x_to_w32_charset): Match all fonts for unicode.
17616 (w32_to_x_charset): New parameter matching. Don't return partial
17617 or wildcard charsets.
17618 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17619 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17620 (w32_to_x_font): Match charset to real charset.
17621 (enum_font_cb2): Always list unicode versions.
17622
17623 * makefile.w32-in (temacs): Increase EMHEAP.
17624
176252008-02-01 Jason Rumney <jasonr@gnu.org>
17626
17627 * w32term.c (w32_encode_char): New charset parameter.
17628 font_info.encoding becomes encoding_type.
17629 (x_get_font_repertory): New function. Warning: stub only!
17630 (x_new_font): Return quickly if font already set.
17631 (x_new_fontset): fontsetname parameter is Lisp_Object.
17632 Use new fs_query_fontset. Try new_fontset_from_font_name.
17633 Use fontset_name for return value.
17634
17635 * w32term.h: Declare x_get_font_repertory.
17636
17637 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17638 place of find_charset_in_text. Use encode_coding_object in place
17639 of encode_coding.
17640 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17641 decode_coding.
17642
17643 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17644 of x_new_fontset.
17645 (w32_load_system_font): Initialize charset as unicode.
17646 font_info.encoding becomes encoding_type.
17647 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17648 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17649 (syms_of_w32fns): Set get_font_repertory_func.
17650
17651 * w32console.c: Include character.h. Use terminal_encode_buffer
17652 from term.c.
17653 (write_glyphs): Use new version of encode_terminal_code. Use
17654 encode_coding_object in place of encode_coding.
17655
17656 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17657 encoding becomes encoding_type.
17658
17659 * term.c (terminal_encode_buffer): Make externally visible.
17660
17661 * makefile.w32-in: Add character.h dependancies.
17662 (character.o, chartab.o): New targets.
17663
176642008-02-01 Kenichi Handa <handa@m17n.org>
17665
17666 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17667 CODING_ID_EOL_TYPE.
17668
176692008-02-01 Andreas Schwab <schwab@suse.de>
17670
17671 * coding.c (produce_chars): Revert last change.
17672
176732008-02-01 Kenichi Handa <handa@m17n.org>
17674
17675 * charset.h (charset_unicode): Extern it.
17676
17677 * charset.c (string_xstring_p): Check by (C >= 0x100).
17678 (find_charsets_in_text): Change format of the arc CHARSETS. New
17679 arg MULTIBYTE.
17680 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17681 change of find_charsets_in_text.
17682 (Fsplit_char): Fix doc. Never return unknown.
17683
17684 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17685
17686 * coding.c (Fdefine_coding_system_alias): Update
17687 Vcoding_system_list.
17688
17689 * fontset.c (load_font_get_repertory): Pay attention to the case
17690 that ENCODING of a font is specified by a char-table.
17691
17692 * xterm.c (x_get_font_repertory): Handle the case that the
17693 encoding of font is other than Unicode.
17694
176952008-02-01 Kenichi Handa <handa@m17n.org>
17696
17697 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17698 if a character is encodable by the terminal coding system. If
17699 not, produces proper number of `?'s. Update
17700 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17701 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17702
177032008-02-01 Kenichi Handa <handa@m17n.org>
17704
17705 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17706 variables.
17707 (encode_terminal_code): Change argument. Encode multiple
17708 characters at once. Store the result of encoding in
17709 terminal_encode_buffer.
17710 (write_glyphs, insert_glyphs): Adjust for the change of
17711 encode_terminal_code.
17712 (term_init): Initialize terminal_encode_buffer and
17713 terminal_encode_buf_size.
17714
17715 * coding.c (consume_chars): If coding->src_object is nil, don't
17716 check annotation.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * character.c (char_string): Use ASCII_CHAR_P instead of
17721 SINGLE_BYTE_CHAR_P.
17722
177232008-02-01 Kenichi Handa <handa@m17n.org>
17724
17725 * xdisp.c (handle_auto_composed_prop): Check if the last
17726 characters of auto-composed region is newly composed with the
17727 following characters.
17728 (handle_composition_prop): Fix checking of point being inside
17729 composition.
17730
177312008-02-01 Kenichi Handa <handa@m17n.org>
17732
17733 * fns.c (concat): Don't change multibyteness of the result by
17734 concatenating an 8-bit character.
17735
17736 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17737 multibyteness of the result when newelt is an 8-bit character.
17738
177392008-02-01 Dave Love <fx@gnu.org>
17740
17741 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17742 EMACS_INT.
17743
17744 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17745
17746 * xfaces.c (face_numeric_value): Declare dim size_t.
17747 (Finternal_lisp_face_equal_p): Remove unused f.
17748
17749 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17750 (MATRIX_ROW): Remove unused vars.
17751 (draw_glyphs, x_insert_glyphs, fast_find_position)
17752 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17753 byte/char counts.
17754
17755 * regex.c (regex_compile): Remove unused var.
17756
17757 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17758
17759 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17760 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17761
17762 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17763
17764 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17765
17766 * fileio.c (Fwrite_region): Remove unused var.
17767
17768 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17769 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17770
17771 * composite.c (Fremove_list_of_text_properties): Declare.
17772
17773 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17774 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17775 (coding_inherit_eol_type): Remove unused attrs.
17776 (detect_coding): Cast arg of detect_eol.
17777
17778 * charset.c (syms_of_charset): Remove unused var p.
17779 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17780 byte/char counts.
17781
17782 * casetab.c (set_case_table): Remove unused var.
17783
17784 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17785 unused vars.
17786
177872008-02-01 Dave Love <fx@gnu.org>
17788
17789 * xterm.c (x_bitmap_mask): Declare.
17790
177912008-02-01 Dave Love <fx@gnu.org>
17792
17793 * xterm.c (x_term_init): Fix type error.
17794
17795 * lisp.h: Add Funibyte_char_to_multibyte.
17796
17797 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17798 (Fset_coding_system_priority): Doc fix.
17799
17800 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17801
17802 * indent.c (check_composition): Make start and end EMACS_INT.
17803
17804 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17805
17806 * xdisp.c (handle_composition_prop, check_point_in_composition):
17807 Make buffer positions EMACS_INT.
17808
17809 * composite.c (find_composition, run_composition_function)
17810 (update_compositions, Ffind_composition_internal): Make buffer
17811 positions EMACS_INT.
17812
17813 * composite.h (find_composition, update_compositions): Make
17814 position args EMACS_INT.
17815
17816 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17817
17818 * intervals.c (get_property_and_range):
17819 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17820
17821 * unexalpha.c: Don't include varargs.h.
17822
178232008-02-01 Dave Love <fx@gnu.org>
17824
17825 * coding.h (ENCODE_UTF_8): New.
17826
17827 * Makefile.in (gtkutil.o): Depend on coding.h.
17828
17829 * coding.c (Fset_coding_system_priority): Doc fix.
17830
178312008-02-01 Kenichi Handa <handa@m17n.org>
17832
17833 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17834 the case of auto saving.
17835
178362008-02-01 Andreas Schwab <schwab@suse.de>
17837
17838 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17839 `range' from GC.
17840
178412008-02-01 Kenichi Handa <handa@m17n.org>
17842
17843 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17844
178452008-02-01 Kenichi Handa <handa@m17n.org>
17846
17847 * fileio.c (choose_write_coding_system): Return a decided coding system.
17848 (Fwrite_region): Set Vlast_coding_system_used to the return value
17849 of choose_write_coding_system.
17850
178512008-02-01 Kenichi Handa <handa@m17n.org>
17852
17853 * charset.c (Fset_charset_priority): Pay attention to duplicated
17854 arguments.
17855
17856 * coding.c (QCcategory): New variable.
17857 (syms_of_coding): Defsym it. Set all elements of
17858 Vcoding_category_table and their symbol values.
17859 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17860 coding-category-XXX, and coding-category-list.
17861 (Fdefine_coding_system_internal): Add category in the plist.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * callproc.c (Fcall_process): Handle carryover correctly.
17866
17867 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17868 (raw_text_coding_system): Check NILP (coding_system).
17869 (coding_inherit_eol_type): Check NILP (coding_system) and
17870 NILP (parent).
17871 (consume_chars): Fix for the case of raw-text.
17872
17873 * process.c (read_process_output): Handle carryover correctly.
17874
178752008-02-01 Dave Love <fx@gnu.org>
17876
17877 * regex.c (re_search_2): Fix last change.
17878
178792008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17882 target_multibyte. Even in a unibyte case, return a converted
17883 multibyte char.
17884 (GET_CHAR_AFTER): New macro.
17885 (PATFETCH): Translate via multibyte char.
17886 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17887 (SETUP_MULTIBYTE_RANGE): New macro.
17888 (regex_compile): Setup compiled code so that its multibyteness
17889 matches that of a target. Fix the handling of "[X-YZ]" using
17890 SETUP_MULTIBYTE_RANGE.
17891 (analyse_first) <charset>: For filling fastmap for all multibyte
17892 characters, don't check by BASE_LEADING_CODE_P.
17893 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17894 the same as RE_MULTIBYTE_P (bufp) now.
17895 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17896 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17897 (TRANSLATE_VIA_MULTIBYTE): New macro.
17898 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17899 It is the same as RE_MULTIBYTE_P (bufp) now.
17900 <exactn>: Translate via multibyte.
17901 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17902 translate it.
17903 <charset, charset_not>: Fetch a character by
17904 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17905 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17906 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17907 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17908 by GET_CHAR_AFTER.
17909 (bcmp_translate): Likewise.
17910
17911 * search.c (compile_pattern): Check the member target_multibyte,
17912 not the member multibyte of buf.
17913
17914 * lread.c (read1): While reading a string, set force_singlebyte
17915 and force_multibyte correctly.
17916
17917 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17918 up of unibyte_to_multibyte_table.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * coding.c (setup_coding_system): If coding has
17923 post-read-conversion or pre-write-conversion, set
17924 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17925 respectively.
17926 (decode_coding_gap): Run post-read-conversion if any.
17927
17928 * fileio.c (Finsert_file_contents): Even if we read into a
17929 unibyte buffer, check if we must decode the result or not.
17930
179312008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * coding.c (make_conversion_work_buffer): Change the work buffer
17934 name to the same one as that of Emacs 21.
17935
179362008-02-01 Kenichi Handa <handa@m17n.org>
17937
17938 * coding.h (make_conversion_work_buffer): Adjust prototype.
17939 (code_conversion_restore): Don't extern it.
17940
17941 * coding.c (detected_mask): Delete unused variable.
17942 (decode_coding_iso_2022): Pay attention to the byte sequence of
17943 CTEXT extended segment, and retain those bytes as is.
17944 (decode_coding_ccl): Delete unused variable `valids'.
17945 (setup_coding_system): Delete unused variable `category'.
17946 (consume_chars): Delete unused variable `category'. Make it work
17947 for non-multibyte case.
17948 (make_conversion_work_buffer): Change argument.
17949 (saved_coding): Delete unused variable.
17950 (code_conversion_restore): Don't check saved_coding->destination.
17951 (code_conversion_save): New function.
17952 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17953 instead of record_unwind_protect.
17954 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17955 (detect_coding_system): Delete unused variable `mask'.
17956 (Fdefine_coding_system_internal): Delete unused variable id.
17957
17958 * fileio.c (kill_workbuf_unwind): New function.
17959 (Finsert_file_contents): On replacing, call
17960 make_conversion_work_buffer with correct args, and call
17961 record_unwind_protect with the first arg kill_workbuf_unwind.
17962
17963 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17964
179652008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17968 (fontset_add): Fix for the case that TO is less than TO1.
17969 (Ffontset_info): Don't use fallback fontset on checking the
17970 default fontset.
17971 (dump_fontset): New function for debugging.
17972
17973 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17974 coding_type is Qcharset.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17979 (map_char_table): Don't inherit the value from the parent on
17980 initializing VAL. Adjust for the above change.
17981
179822008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * coding.c (Qsignature, Qendian): Delete these variables.
17985 (syms_of_coding): Don't initialize them.
17986 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17987 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17988 detect_info->found.
17989 (decode_coding_utf_16): Don't detect BOM here.
17990 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17991 is NOT utf_16_without_bom.
17992 (setup_coding_system): For a coding system of type utf-16, check
17993 if the attribute :endian is Qbig or not (not nil or not), and set
17994 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17995 (detect_coding): If coding type is utf-16 and BOM detection is
17996 required, detect it.
17997 (Fdefine_coding_system_internal): For a coding system of type
17998 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17999
180002008-02-01 Kenichi Handa <handa@m17n.org>
18001
18002 * coding.c (coding_set_source): Fix for the case that the current
18003 buffer is different from coding->src_object.
18004 (decode_coding_object): Don't use the conversion work buffer if
18005 DST_OBJECT is a buffer.
18006
180072008-02-01 Dave Love <fx@gnu.org>
18008
18009 * lread.c (read_emacs_mule_char) [len==2]: Index
18010 emacs_mule_charset correctly.
18011
180122008-02-01 Dave Love <fx@gnu.org>
18013
18014 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18015 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18016 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18017 treated specially.)
18018 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18019 (detected_mask): Remove Big5 bits.
18020
180212008-02-01 Kenichi Handa <handa@m17n.org>
18022
18023 The following changes are to make the font rescaling facility
18024 compatible with Emacs 21.
18025
18026 * xfaces.c (Vface_font_rescale_alist): Rename from
18027 Vface_resizing_fonts.
18028 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18029 (font_rescale_ratio): Rename from font_resizing_ratio.
18030 (split_font_name): Set font->rescale_ratio.
18031 (better_font_p): Pay attention to font->rescale_ratio.
18032 (build_scalable_font_name): Likewise. Change RESX, and RESY
18033 fields.
18034 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18035
180362008-02-01 Kenichi Handa <handa@m17n.org>
18037
18038 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18039 (Qutf_16_le): Remove these variables.
18040 (syms_of_coding): Don't DEFSYM them.
18041 (decode_coding_utf_16): Fix handling of BOM.
18042 (encode_coding_utf_16): Fix handling of BOM.
18043
180442008-02-01 Kenichi Handa <handa@m17n.org>
18045
18046 * fileio.c (Finsert_file_contents): On replacing, before decoding
18047 the file into the work buffer, set point of the work buffer to the end.
18048
180492008-02-01 Dave Love <fx@gnu.org>
18050
18051 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18052
180532008-02-01 Dave Love <fx@gnu.org>
18054
18055 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18056 and fix C types.
18057
180582008-02-01 Kenichi Handa <handa@m17n.org>
18059
18060 * xdisp.c (SKIP_GLYPHS): New macro.
18061 (set_cursor_from_row): Pay attention to string display properties.
18062
18063 * category.c (copy_category_entry): Fix for the case that RANGE
18064 is an integer.
18065
18066 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18067
18068 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18069
180702008-02-01 Kenichi Handa <handa@m17n.org>
18071
18072 * charset.c (Fcharset_id_internal): New function.
18073 (syms_of_charset): Defsubr it.
18074
18075 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18076 with the last arg charset_list acquired from coding.
18077 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18078 the attribute coding_attr_ccl_valids.
18079
18080 * coding.h (enum define_coding_ccl_arg_index): Set the first
18081 member coding_arg_ccl_decoder to coding_arg_max.
18082
18083 * ccl.h (ccl_driver): Adjust prototype.
18084
18085 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18086 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18087 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18088 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18089 last arg Qnil.
18090
180912008-02-01 Kenichi Handa <handa@m17n.org>
18092
18093 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18094 call encode_char.
18095
18096 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18097
180982008-02-01 Dave Love <fx@gnu.org>
18099
18100 * composite.c (syms_of_composite): Make composition_hash_table weak.
18101
181022008-02-01 Kenichi Handa <handa@m17n.org>
18103
18104 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18105 (font_name_registry): Don't extern them.
18106 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18107
18108 * fontset.h (Qfontset): Don't extern it.
18109 (new_fontset_from_font_name): Extern it.
18110
18111 * fontset.c: Give 8 extra slots to fontset objects.
18112 (Qfontset_info): New variable.
18113 (syms_of_fontset): Defsym it.
18114 (FONTSET_FALLBACK): New macro.
18115 (fontset_face): Try also the default fontset.
18116 (make_fontset): Realize a fallback fontset from the default fontset.
18117 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18118 using split_font_name_into_vector and build_font_name_from_vector.
18119 (Fset_fontset_font): Access the elements of font_spec by enum
18120 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18121 name by using split_font_name_into_vector.
18122 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18123 generate a proper font name from the fontset name. Update
18124 Vfontset_alias_alist.
18125 (n_auto_fontsets): New variable.
18126 (new_fontset_from_font_name): New function.
18127 (Ffont_info): Store the information about fonts generated from the
18128 default fontset in the first extra slot of the returned char-table.
18129
18130 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18131 (font_name_registry): Delete function.
18132 (split_font_name_into_vector): New function.
18133 (build_font_name_from_vector): New function.
18134 (font_list): The argument REGISTRY is now a list of registry names.
18135 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18136 specifies an explicit font name, return the name as is. Make a
18137 list of registy names.
18138
18139 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18140 of x_new_fontset.
18141 (Fx_create_frame): Don't call x_new_fontset here. Just use
18142 x_list_fonts to check the existence of fonts.
18143
18144 * xterm.h (x_new_fontset): Adjust prototype.
18145
18146 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18147 string. Use new_fontset_from_font_name to create a fontset from a
18148 font name.
18149
181502008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 * syntax.c (Vfind_word_boundary_function_table): New name for
18153 Vnext_word_boundary_function_table.
18154 (find-word-boundary-function-table): New name for
18155 next-word-boundary-function-table.
18156
181572008-02-01 Dave Love <fx@gnu.org>
18158
18159 * Makefile.in: Fix some dependencies.
18160
18161 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18162 set it to nil before returning.
18163
18164 * composite.c (update_compositions): Fix type error.
18165
18166 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18167
181682008-02-01 Kenichi Handa <handa@m17n.org>
18169
18170 * xterm.c (x_new_font): Optimize for the case that the font is
18171 already set for the frame.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * chartab.c (char_table_ascii): Check if the char table contents
18176 is sub-char-table or not.
18177 (char_table_set, char_table_set_range): Fix argument to
18178 char_table_ascii.
18179
18180 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18181 (detect_coding_utf_8, detect_coding_utf_16)
18182 (detect_coding_emacs_mule, detect_coding_iso_2022)
18183 (detect_coding_sjis, detect_coding_big5)
18184 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18185 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18186 sequence is valid in this coding system. Change callers.
18187 (MAX_ANNOTATION_LENGTH): New macro.
18188 (ADD_ANNOTATION_DATA): New macro.
18189 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18190 ADD_ANNOTATION_DATA. Change the format of annotation data.
18191 (ADD_CHARSET_DATA): New macro.
18192 (emacs_mule_char): New argument ID. Change callers.
18193 (decode_coding_emacs_mule, decode_coding_iso_2022)
18194 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18195 Produce charset annotation data in coding->charbuf.
18196 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18197 to charset annotation data in coding->charbuf.
18198 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18199 coding->common_flags if the coding system is iso-2022 based and
18200 uses designation.
18201 (produce_composition): Adjust for the new annotation data format.
18202 (produce_charset): New function.
18203 (produce_annotation): Handle charset annotation.
18204 (handle_composition_annotation, handle_charset_annotation): New
18205 functions.
18206 (consume_chars): Handle charset annotation. Utilize the above two
18207 functions.
18208 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18209 buffer, get the deleted text as a string and set
18210 coding->src_object to that string.
18211 (detect_coding, detect_coding_system): Use the new struct
18212 coding_detection_info.
18213
18214 * coding.h (struct coding_detection_info): New structure.
18215 (struct coding_system): Adjust prototype of the member `detector'.
18216 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18217
182182008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18221
182222008-02-01 Dave Love <fx@gnu.org>
18223
18224 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18225 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18226 to new local and nullify apropos_accumulate before returning.
18227 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18228
182292008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18232 correctly.
e3eea1fc 18233
aac0c6e3
MR
182342008-02-01 Dave Love <fx@gnu.org>
18235
18236 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18237
182382008-02-01 Kenichi Handa <handa@m17n.org>
18239
18240 The following changes are to make character composition happen
18241 automatically on displaying.
18242
18243 * Makefile.in (lisp, shortlisp): Add composite.elc.
18244
18245 * composite.h (Qauto_composed, Vauto_composition_function)
18246 (Qauto_composition_function): Extern them.
18247
18248 * composite.c (Vcomposition_function_table)
18249 (Qcomposition_function_table): Delete variables.
18250 (Qauto_composed, Vauto_composition_function)
18251 (Qauto_composition_function): New variables.
18252 (run_composition_function): Don't call
18253 compose-chars-after-function.
18254 (update_compositions): Clear `auto-composed' text property.
18255 (compose_chars_in_text): Delete this function.
18256 (syms_of_composite): Staticpro Qauto_composed and
18257 Qauto_composition_function. Declare Vauto_composition_function as
18258 a Lisp variable.
18259
18260 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18261
18262 * xdisp.c (it_props): Add an entry for Qauto_composed.
18263 (handle_auto_composed_prop): New function.
18264
18265 * xselect.c (selection_data_to_lisp_data): Don't call
18266 compose_chars_in_text.
18267
182682008-02-01 Dave Love <fx@gnu.org>
18269
18270 * keyboard.c (read_char): Modify checking around use of
18271 Vkeyboard_translate_table.
18272
18273 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18274 and fix C types.
18275
182762008-02-01 Kenichi Handa <handa@m17n.org>
18277
18278 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18279 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18280 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18281 the case that the last byte is '\r' correctly.
18282 (decode_coding): Flush out the unprocessed data correctly.
18283 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18284
182852008-02-01 Dave Love <fx@gnu.org>
18286
18287 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18288 Add XK_ISO... case.
18289 (xaw_scroll_callback): Revert last change.
18290
182912008-02-01 Kenichi Handa <handa@m17n.org>
18292
18293 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18294
182952008-02-01 Kenichi Handa <handa@m17n.org>
18296
18297 * xfaces.c (Vface_resizing_fonts): New variable.
18298 (struct font_name): New member `resizing_ratio'.
18299 (font_resizing_ratio): New function.
18300 (split_font_name): Set font->resizing_ratio.
18301 (better_font_p): Pay attention to font->resizing_ratio.
18302 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18303 RESX, and RESY fields.
18304 (try_alternative_families): Try scalable fonts if
18305 Vscalable_fonts_allowed is not Qt.
18306 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18307
183082008-02-01 Dave Love <fx@gnu.org>
18309
18310 * xterm.c (xaw_scroll_callback): Cast correctly.
18311
183122008-02-01 Dave Love <fx@gnu.org>
18313
18314 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18315 (lispy_kana_keys): Comment out.
18316 (make_lispy_event) [XK_kana_A]: Comment out.
18317
18318 * xterm.c (xaw_scroll_callback): Cast call_data.
18319 (XTread_socket): Deal with ASCII keysyms.
18320 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18321
183222008-02-01 Dave Love <fx@gnu.org>
18323
18324 * xterm.c (Vx_keysym_table): New.
18325 (syms_of_xterm): Initialize it.
18326 (XTread_socket): Use it.
18327 From head: Eliminate incorrect optimization that tried to avoid
18328 decoding the output of X*LookupString.
18329 (x_get_font_repertory): Delete charset declaration.
18330
183312008-02-01 Kenichi Handa <handa@m17n.org>
18332
18333 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18334 return 0.
18335 (Fdefine_coding_system_internal): Setup
18336 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18337
183382008-02-01 Dave Love <fx@gnu.org>
18339
18340 * coding.c (Fcheck_coding_system): Doc fix.
18341
18342 * editfns.c (Finsert_byte): Return a proper value.
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * coding.c (decode_coding): Fix args to translate_chars. Pay
18347 attention to Vstandard_translation_table_for_decode.
18348 (encode_coding): Fix args to translate_chars. Pay attention to
18349 Vstandard_translation_table_for_encode.
18350
18351 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18352 SINGLE_BYTE_CHAR_P.
18353
18354 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18355 not by SINGLE_BYTE_CHAR_P.
18356
18357 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18358 SINGLE_BYTE_CHAR_P.
18359
18360 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18361 SINGLE_BYTE_CHAR_P.
18362
18363 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18364 by SINGLE_BYTE_CHAR_P.
18365
18366 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18367 SINGLE_BYTE_CHAR_P.
18368
183692008-02-01 Dave Love <fx@gnu.org>
18370
18371 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18372
183732008-02-01 Dave Love <fx@gnu.org>
18374
18375 * fns.c (Flanginfo): Fix typo.
18376
18377 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18378
183792008-02-01 Kenichi Handa <handa@m17n.org>
18380
18381 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18382 (detect_coding_emacs_mule, detect_coding_iso_2022)
18383 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18384 incomplete byte sequence. Don't update *mask when correctly detected.
18385 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18386 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18387 (detect_coding, detect_coding_system): Adjust for the changes above.
18388
183892008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * character.c (char_string): Rename from
18392 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18393 (string_char): Rename from string_char.
18394
18395 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18396 if C is greater than MAX_3_BYTE_CHAR.
18397 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18398 string_char instead of string_char_with_unification.
18399
184002008-02-01 Dave Love <fx@gnu.org>
18401
18402 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18403
184042008-02-01 Kenichi Handa <handa@m17n.org>
18405
18406 * keymap.c (push_key_description): Pay attention to force_multibyte.
18407
18408 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18409
184102008-02-01 Dave Love <fx@gnu.org>
18411
18412 * charset.c (define_charset_internal): Rename `supprementary'.
18413
18414 * Makefile.in (lisp, shortlisp): Remove latin-N.
18415
184162008-02-01 Dave Love <fx@gnu.org>
18417
18418 * xfns.c (x_window, x_window): Use use_xim.
18419
18420 * xterm.c (use_xim): Initialize.
18421 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18422 (x_term_init): Maybe set use_xim.
18423
18424 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18425
184262008-02-01 Kenichi Handa <handa@m17n.org>
18427
18428 * search.c (search_buffer): Fix case-fold-search of multibyte
18429 characters.
18430 (boyer_moore): Rename the last argument to char_high_bits.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * xdisp.c (display_string): Fix for the case of zero width glyph.
18435
18436 * xfns.c (x_set_font): Change the error message of the case that
18437 x_new_fontset returns Qt.
18438
18439 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18440 (Finternal_set_lisp_face_attribute): Use signal_error for the
18441 error of invalid fontset.
18442
18443 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18444 fontset, return Qt.
18445
184462008-02-01 Dave Love <fx@gnu.org>
18447
18448 * unexelf.c (unexec): Make .got handling not SGI-specific.
18449
18450 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18451
18452 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18453
18454 * keyboard.c (read_key_sequence): Fix type error.
18455
18456 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18457 type error.
18458
18459 * fontset.c (fontset_add): Return Lisp_Object.
18460
184612008-02-01 Dave Love <fx@gnu.org>
18462
18463 * charset.h (charset_ordered_list_tick): Declare extern.
18464
184652008-02-01 Kenichi Handa <handa@m17n.org>
18466
18467 The following changes (and some of 2008-02-01 changes of mine) are
18468 for handling syntax, category, and case conversion for unibyte
18469 characters by converting them to multibyte on the fly. With these
18470 changes, we don't have to setup syntax and case tables for unibyte
18471 characters in each language environment.
18472
18473 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18474 multibyte if necessary.
18475
18476 * bytecode.c (Fbyte_code): Likewise.
18477
18478 * character.h (LEADING_CODE_LATIN_1_MIN)
18479 (LEADING_CODE_LATIN_1_MAX): New macros.
18480 (unibyte_to_multibyte_table): Extern it.
18481 (unibyte_char_to_multibyte): New macro.
18482 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18483 (CHAR_LEADING_CODE): New macro.
18484 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18485
18486 * character.c (unibyte_to_multibyte_table): New variable.
18487 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18488 (multibyte_char_to_unibyte): If C is an eight-bit character,
18489 convert it to the corresponding byte value.
18490
18491 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18492 not 1, signals an error. Update the elements of
18493 unibyte_to_multibyte_table.
18494 (init_charset_once): Initialize unibyte_to_multibyte_table.
18495 (syms_of_charset): Define the charset `iso-8859-1'.
18496
18497 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18498 as is without converting it to unibyte. In a unibyte buffer,
18499 convert C to multibyte before checking the syntax.
18500
18501 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18502
18503 * minibuf.c (Fminibuffer_complete_word): Use the macro
18504 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18505
18506 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18507
18508 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18509 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18510 that is zero, convert an eight-bit char to multibyte.
18511 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18512 non-emacs case.
18513 (PATFETCH): Convert an eight-bit char to multibyte.
18514 (HANDLE_UNIBYTE_RANGE): New macro.
18515 (regex_compile): Setup the compiled pattern for multibyte chars
18516 even if the given regex string is unibyte. Use PATFETCH_RAW
18517 instead of PATFETCH in many places. To handle `charset'
18518 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18519 only for ASCII chars.
18520 (analyse_first) <exactn>: Simplify because the compiled pattern
18521 is multibyte.
18522 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18523 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18524 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18525 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18526 multibyte always 1.
18527 (re_search_2): In emacs, set the locale variable multibyte to 1,
18528 otherwise to 0. New local variable target_multibyte. Check it
18529 to decide the multibyteness of STR1 and STR2. If
18530 target_multibyte is zero, convert unibyte chars to multibyte
18531 before translating and checking fastmap.
18532 (TARGET_CHAR_AND_LENGTH): New macro.
18533 (re_match_2_internal): In emacs, set the locale variable multibyte
18534 to 1, otherwise to 0. New local variable target_multibyte. Check
18535 it to decide the multibyteness of STR1 and STR2. Use
18536 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18537 <charset, charset_not>: If multibyte is nonzero, check fastmap
18538 only for ASCII chars. Call bcmp_translate with
18539 target_multibyte, not with multibyte.
18540 <begline>: Declare the local variable C as `unsigned'.
18541 (bcmp_translate): Change the last arg name to target_multibyte.
18542
18543 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18544 the regexp pattern and the matching target. Set cp->buf.multibyte
18545 to the multibyteness of the regexp pattern. Set
18546 cp->but.target_multibyte to the multibyteness of the matching target.
18547 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18548 FETCH_STRING_CHAR_ADVANCE.
18549 (Freplace_match): Convert unibyte chars to multibyte.
18550
18551 * syntax.c (char_quoted, back_comment, scan_words)
18552 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18553 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18554 unibyte chars to multibyte.
18555 (skip_chars): Delete the arg syntaxp, and move the code for
18556 handling syntaxes to skip_syntaxes. Change callers.
18557 Fix the case that the multibyteness of STRING and the current
18558 buffer doesn't match.
18559 (skip_syntaxes): New function.
18560 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18561 SINGLE_BYTE_CHAR_P.
18562
185632008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * xfaces.c (QCfontset): New variable.
18566 (LFACE_FONTSET): New macro.
18567 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18568 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18569 (Finternal_set_lisp_face_attribute)
18570 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18571 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18572 check also LFACE_FONTSET_INDEX.
18573 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18574 attrs[LFACE_FONT_INDEX].
18575 (syms_of_xfaces): Intern and staticpro QCfontset.
18576
18577 * dispextern.h (enum lface_attribute_index): New member
18578 LFACE_FONTSET_INDEX.
18579
18580 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18581
185822008-02-01 Kenichi Handa <handa@m17n.org>
18583
18584 * coding.c (coding_set_destination): Fix coding->destination for
18585 the case converting a region.
18586 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18587 (encode_coding_object): Fix coding->dst_pos and
18588 coding->dst_pos_byte for the case converting a region.
18589
18590 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18591
18592 * character.h (BYTE8_STRING): New macro.
18593
18594 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18595
185962008-02-01 Kenichi Handa <handa@m17n.org>
18597
18598 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18599 characters by octal form.
18600
18601 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18602
18603 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18604 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18605 _fetch_multibyte_char_len.
18606 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18607
18608 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18609
18610 * casefiddle.c (casify_object): Simplify. Handle the case that
18611 the case conversion change the byte length.
18612 (casify_region): Likewise.
18613
18614 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18615
18616 * character.c (_fetch_multibyte_char_len): Delete this variable.
18617 (syms_of_character): Setup Vprintable_chars.
18618
18619 * editfns.c (Fchar_equal): Fix for the unibyte case.
18620 (Finsert_byte): New function.
18621 (syms_of_editfns): Defsubr it.
18622
18623 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18624 of direct code 0x3ffff.
18625
18626 * search.c (Freplace_match): Fix for the unibyte case.
18627
186282008-02-01 Kenichi Handa <handa@m17n.org>
18629
18630 * lread.c (safe_to_load_p): Fix the logic.
18631
18632 * syntax.c (scan_words): Don't treat characters belonging to
18633 different scripts as constituting a word.
18634
18635 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18636
18637 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18638
18639 * emacs.c (main): In the case of --unibyte, instead of aborting on
18640 finding non-empty buffer, make it unibyte.
18641
186422008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18645 to create a fontset.
18646
186472008-02-01 Dave Love <fx@gnu.org>
18648
18649 * character.c (Funibyte_char_to_multibyte): Doc fix.
18650
18651 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18652
186532008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 * fontset.c (fontset_add): Make the type `int'.
18656 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18657
18658 * character.c (unibyte_char_to_multibyte)
18659 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18660 charset_unibyte, not charset_primary.
18661
18662 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18663
18664 * charset.c (charset_unibyte): Rename from charset_primary.
18665 (Funibyte_charset): Rename from Fprimary_charset.
18666 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18667 (syms_of_charset): Adjust for the above changes.
18668
18669 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18670 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18671 it->multibyte_p is zero.
18672
18673 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18674 Delete extern.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * coding.c (Fdefine_coding_system_internal): Fix category setting
18679 for a coding system of type iso-2022.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18684
186852008-02-01 Kenichi Handa <handa@m17n.org>
18686
18687 * syntax.c (Vnext_word_boundary_function_table): New variable.
18688 (next-word-boundary-function-table): Declare it as a Lisp variable
18689 in syms_of_syntax.
18690 (scan_words): Call functions in Vnext_word_boundary_function_table
18691 if any.
18692
18693 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18694
18695 * fontset.c (fs_load_font): If fontp->charset is not negative,
18696 return fontp without setting its members.
18697
186982008-02-01 Dave Love <fx@gnu.org>
18699
18700 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18701
18702 * m/sparc.h (HAVE_ALLOCA): Delete.
18703
18704 * s/irix6-5.h: Don't include strings.h.
18705 (bcopy, bzero, bcmp): Don't undef.
18706
18707 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18708
18709 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18710 (TIOCSIGSEND): Don't test IRIX6.
18711 (bcopy, bzero, bcmp): Define conditionally.
18712
187132008-02-01 Kenichi Handa <handa@m17n.org>
18714
18715 * buffer.c (Qas, Qmake, Qto): New variables.
18716 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18717 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18718
18719 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18720 we are inserting a process output into a multibyte buffer.
18721
18722 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18723 multibyte_char_to_unibyte.
18724
18725 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18726 by the primary charset, make it eight-bit char.
18727 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18728
18729 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18730 (charset_8_bit__control, charset_8_bit_graphic)
18731 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18732 (define_charset_internal): New function.
18733 (syms_of_charset): Call define_charset_internal for pre-defined
18734 charsets.
18735
18736 * charset.h (charset_8_bit): Extern it.
18737
18738 * coding.c (make_conversion_work_buffer): Adjust for the change
18739 of Fset_buffer_multibyte.
18740 (encode_coding_raw_text): Increment p0 in the loop.
18741
18742 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18743
18744 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18745 for the change of Fset_buffer_multibyte.
18746
18747 * fns.c (Fstring_to_multibyte): New function.
18748 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18749
187502008-02-01 Dave Love <fx@gnu.org>
18751
18752 * xfns.c (x_put_x_image): Declare args.
18753
18754 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18755 (try_font_list): Declare an arg.
18756
18757 * xdisp.c (message2_nolog, set_message): Declare an arg.
18758
18759 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18760
18761 * syntax.c (scan_sexps_forward): Declare an arg.
18762
18763 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18764 Declare an arg.
18765
18766 * lisp.h (Fnew_fontset): Declare.
18767
18768 * keymap.c (push_key_description): Call CHARACTERP correctly.
18769
18770 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18771 (face_for_char): Delete unused vars.
18772 (Fset_fontset_font): Doc fix. Delete unused vars.
18773
18774 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18775
18776 * composite.c (update_compositions): Declare arg.
18777
18778 * cm.c (calccost, cmgoto): Declare args.
18779
18780 * charset.c: Remove `emacs' conditional. Doc fixes.
18781 (map_char_table_for_charset): Declare.
18782
18783 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18784
18785 * ccl.c: Remove `emacs' conditional.
18786
187872008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 The following changes are to allow specifying multiple font
18790 patterns for a character range (specified by script or charset).
18791
18792 * Makefile.in (abbrev.o): Depend on syntax.h.
18793 (xfaces.o): Depend on charset.h.
18794
18795 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18796 SINGLE_BYTE_CHAR_P.
18797
18798 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18799
18800 * character.h (Vchar_script_table): Extern it.
18801
18802 * character.c (Vscript_alist): Delete.
18803 (Vchar_script_table, Qchar_script_table): New variable.
18804 (syms_of_character): Declare Vchar_script_table as a lisp variable
18805 and initialize it.
18806
18807 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18808 have property char-table-extra-slots, make no extra slot.
18809
18810 * dispextern.h (struct face): Delete member `charset'.
18811 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18812 SINGLE_BYTE_CHAR_P.
18813 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18814 Add prototypes.
18815 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18816 (generate_ascii_font_name): Rename from generate_ascii_font.
18817
18818 * fontset.h (get_font_repertory_func): New prototype.
18819 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18820 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18821
18822 * fontset.c (Qprepend, Qappend): New variables.
18823 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18824 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18825 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18826 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18827 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18828 (load_font_get_repertory): New functions.
18829 (fontset_set): Delete.
18830 (fontset_face): New arg FACE. Return face ID, not face.
18831 Complete re-write to handle new fontset structure. Change caller.
18832 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18833 (face_for_char): Don't call lookup_face.
18834 (make_fontset_for_ascii_face): New arg FACE.
18835 (fs_load_font): New arg CHARSET_ID. Don't check
18836 Vfont_encoding_alist here.
18837 (find_font_encoding): New function.
18838 (list_fontsets): Use STRINGP, not ! NILP.
18839 (accumulate_script_ranges): New function.
18840 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18841 re-written to handle new fontset structure.
18842 (Ffontset_font): Return a copy of element.
18843 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18844 docstring of font-encoding-alist.
18845
18846 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18847 (Fset_fotset_font): Fix arguments to 5.
18848
18849 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18850
18851 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18852 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18853 (highlight_trailing_whitespace): Adjust for the change of
18854 lookup_named_face.
18855
18856 * xfaces.c: Include charset.h.
18857 (load_face_font): Delete argument C. Change caller.
18858 (generate_ascii_font_name): Rename from generate_ascii_font.
18859 (font_name_registry): New function.
18860 (cache_face): Store ascii faces before non-ascii faces in buckets.
18861 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18862 Lookup only ascii faces.
18863 (lookup_non_ascii_face): New function.
18864 (lookup_named_face): Delete argument C. Change caller.
18865 (lookup_derived_face): Delete argument C. Change caller.
18866 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18867 a string, just call font_list with it.
18868 (choose_face_font): Delete arguments FACE and C. New arg
18869 FONT_SPEC. Change caller.
18870 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18871 Change caller.
18872 (realize_non_ascii_face): New function.
18873 (realize_x_face): Call load_face_font here.
18874 (realize_tty_face): Delete argument C. Change caller.
18875 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18876 get a face ID.
18877 (dump_realized_face): Don't print charset of FACE.
18878
18879 * xfns.c (x_set_font): Always call x_new_fontset and
18880 store_frame_parameter.
18881 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18882 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18883
18884 * xterm.h (x_get_font_repertory): Extern it.
18885
18886 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18887 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18888 it->multibyte_p is zero.
18889 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18890 (x_new_fontset): If FONTSETNAME doesn't match any existing
18891 fontsets, create a new one.
18892 (x_get_font_repertory): New function.
18893
188942008-02-01 Kenichi Handa <handa@m17n.org>
18895
18896 * coding.c (Ffind_coding_systems_region_internal): Detect an
18897 ASCII only string correctly.
18898
18899 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18900 version is 0.
18901
189022008-02-01 Kenichi Handa <handa@m17n.org>
18903
18904 * lread.c: Include "coding.h".
18905 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18906 (load_each_byte, unread_char): New variables.
18907 (readchar_backlog): Delete.
18908 (readchar): Return a character unless load_each_byte is nonzero.
18909 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18910 cons. If unread_char is not -1, simply return it.
18911 (unreadchar): Handle the case that readcharfun is
18912 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18913 (read_multibyte): Delete.
18914 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18915 (read_emacs_mule_char): New functions.
18916 (Fload): Even if the file doesn't have the extension ".elc", if
18917 safe_to_load_p returns a positive version number, assume that the
18918 file contains bytecompiled code. If the version is less than 22,
18919 load the file while decoding multibyte sequences by emacs-mule.
18920 (readevalloop): Don't use readchar_backlog.
18921 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18922 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18923 (read_escape): Delete the arg BYTEREP.
18924 (read1): Set load_each_byte to 1 temporarily while handling
18925 #@NUMBER. Don't call read_multibyte.
18926 (read_vector): Call Fread with a cons. If readcharfun is
18927 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18928 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18929 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18930 and Qload_force_doc_strings.
18931
189322008-02-01 Kenichi Handa <handa@m17n.org>
18933
18934 * xdisp.c (face_before_or_after_it_pos): Call
18935 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18936
189372008-02-01 Kenichi Handa <handa@m17n.org>
18938
18939 * character.h (TRAILING_CODE_P): New macro.
18940 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18941 (string_char_with_unification): Fix prototype.
18942 (Vscript_alist): Extern it.
18943
18944 * character.c (Vscript_alist): New variable.
18945 (string_char_with_unification, str_as_unibyte)
18946 (string_escape_byte8): Add `const' to local variables.
18947 (syms_of_character): Declare script-alist as a Lisp variable.
18948
18949 * charset.h (Vcharset_ordered_list): Extern it.
18950 (charset_ordered_list_tick): Extern it.
18951 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18952 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18953 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18954 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18955 (Funify_charset): Adjust for the change of Funify_charset.
18956
18957 * charset.c (charset_ordered_list_tick): New variable.
18958 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18959 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18960 deunify intead of unify a charset.
18961 (string_xstring_p): Add `const' to local variables.
18962 (find_charsets_in_text): Add `const' to arguments and local variables.
18963 (encode_char): Adjust for the change of Funify_charset. Fix
18964 detecting of invalid code.
18965 (Fset_charset_priority): Increment charset_ordered_list_tick.
18966 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18967 and TO_CODE.
18968
18969 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18970 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18971 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18972 (decode_coding_ccl, consume_chars)
18973 (Ffind_coding_systems_region_internal)
18974 (Fcheck_coding_systems_region): Add `const' to local variables.
18975
18976 * print.c (print_object): Use octal form for printing the
18977 contents of a bool vector.
18978
189792008-02-01 Dave Love <fx@gnu.org>
18980
18981 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18982 <version == 20>: Refuse to load.
18983
189842008-02-01 Dave Love <fx@gnu.org>
18985
18986 * fns.c: Move coding.h.
18987 (Qcodeset, Qdays, Qmonths): New.
18988 (concat): Use CHARACTERP instead of INTEGERP.
18989 (Flocale_codeset): Delete.
18990 (Flanginfo): New function.
18991 (syms_of_fns): Change accordingly.
18992
18993 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18994
189952008-02-01 Dave Love <fx@gnu.org>
18996
18997 * casetab.c (init_casetab_once, init_casetab_once): Fix
18998 CHAR_TABLE_SET call.
18999
19000 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19001
19002 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19003
19004 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19005 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19006 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19007
19008 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19009
19010 * coding.c (ENCODE_DESIGNATION, decode_eol)
19011 (make_conversion_work_buffer, code_conversion_restore)
19012 (Fdefine_coding_system_internal): Convert Lisp types.
19013 (code_conversion_restore): Use EQ, not ==.
19014 (Fencode_coding_string): Fix code_convert_string call.
19015
19016 * coding.h (code_convert_region): Fix prototype.
19017
19018 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19019
19020 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19021 (Ffontset_info): Convert Lisp types.
19022
19023 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19024
19025 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19026
19027 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19028
19029 * chartab.c: Include "...h", not <...h> in some cases.
19030
19031 * callproc.c (Fcall_process): Remove unused variables.
19032
190332008-02-01 Dave Love <fx@gnu.org>
19034
19035 * coding.c (Fset_coding_system_priority): Allow null arg list.
19036
190372008-02-01 Dave Love <fx@gnu.org>
19038
19039 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19040 (Fself_insert_and_exit): Use CHARACTERP.
19041
19042 * callproc.c (Fcall_process): Remove unused vars.
19043
19044 * xterm.c (XTread_socket): Add extra dead keysyms.
19045
19046 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19047
19048 * dispextern.h: Remove prototypes for redraw_frame,
19049 redraw_garbaged_frames.
19050
19051 * cmds.c (Fself_insert_command): Use CHARACTERP.
19052
19053 * chartab.c (make_sub_char_table): Remove unused var.
19054 (Fset_char_table_default, Fmap_char_table): Doc fix.
19055
19056 * keymap.c (access_keymap): Remove generic char code.
19057 (push_key_description): Use CHARACTERP.
19058
190592008-02-01 Dave Love <fx@gnu.org>
19060
19061 * charset.c: Doc fixes.
19062 (Funify_charset): Extra checking.
19063
190642008-02-01 Dave Love <fx@gnu.org>
19065
19066 * lread.c: Remove some unused variables.
19067 (safe_to_load_p): If safe, return the magic number version byte.
19068 (Fload): Maybe use load-with-code-conversion.
19069
190702008-02-01 Kenichi Handa <handa@m17n.org>
19071
19072 * category.c (Fmodify_category_entry): Don't modify the contents
19073 of category_set for characters out of the range. Avoid
19074 unnecessary modification.
19075
19076 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19077 Vchar_unify_table. The default value of the table is now nil.
19078
19079 * character.c (syms_of_character): Setup Vchar_width_table for
19080 eight-bit-control and raw-byte chars.
19081
19082 * charset.h (enum define_charset_arg_index): Delete
19083 charset_arg_parents and add charset_arg_subset and
19084 charset_arg_superset.
19085 (enum charset_attr_index): Delete charset_parents and add
19086 charset_subset and charset_superset.
19087 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19088 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19089 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19090 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19091 (CHARSET_SUPERSET): New macros.
19092 (charset_work): Extern it.
19093 (ENCODE_CHAR): Use charset_work.
19094 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19095 (map_charset_chars): Extern it.
19096
19097 * charset.c (load_charset_map): Set the default value of encoder
19098 and deunifier char-tables to nil.
19099 (map_charset_chars): Change argument. Change callers. Use
19100 map_char_table_for_charset instead of map_char_table.
19101 (Fmap_charset_chars): New optional args from_code and to_code.
19102 (Fdefine_charset_internal): Adjust for the change of
19103 `define-charset' (:parents -> :subset or :superset).
19104 (charset_work): New variable.
19105 (encode_char, syms_of_charset): Adjust for the change of
19106 Fdefine_charset_internal.
19107 (Ffind_charset_string): Setup the vector `charsets' correctly.
19108
19109 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19110 the previous change.
19111 (char_table_ref_and_range): Adjust for the above change.
19112 (map_sub_char_table_for_charset): New function.
19113 (map_char_table_for_charset): New function.
19114
19115 * keymap.c (describe_vector): Handle a char-table directly here.
19116 (describe_char_table): Delete.
19117
19118 * lisp.h (map_charset_chars): Delete.
19119
191202008-02-01 Dave Love <fx@gnu.org>
19121
19122 * fns.c (count_combining): Comment out (unused).
19123 (Flocale_codeset): New.
19124 (syms_of_fns): Defsubr it.
19125
19126 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19127 (size_t): Remove.
19128
191292008-02-01 Dave Love <fx@gnu.org>
19130
19131 * Makefile.in (chartab.o): Depend on charset.h.
19132
191332008-02-01 Kenichi Handa <handa@m17n.org>
19134
19135 * character.c (syms_of_character): Set the default value of
19136 Vprintable_chars to Qnil.
19137
191382008-02-01 Dave Love <fx@gnu.org>
19139
19140 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19141
191422008-02-01 Kenichi Handa <handa@m17n.org>
19143
19144 * charset.c (load_charset_map): Handle the case that from < to
19145 correctly.
19146
19147 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19148 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19149 Pay attention to raw-8-bit chars.
19150
191512008-02-01 Kenichi Handa <handa@m17n.org>
19152
19153 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19154 It is not bytecompiled now.
19155
19156 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19157 (charset_jisx0208): New variables.
19158 (Fdefine_charset_internal): Setup them if appropriate.
19159 (init_charset_once): Initialize them to -1.
19160
19161 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19162 (charset_jisx0208): Extern them.
19163
19164 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19165 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19166 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19167 (setup_iso_safe_charsets): Fix arguments to Fassq.
19168 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19169 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19170 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19171 (encode_coding_iso_2022): Change the 1st arg to
19172 ENCODE_ISO_CHARACTER to a variable.
19173
191742008-02-01 Kenichi Handa <handa@m17n.org>
19175
19176 * charset.h (enum define_charset_arg_index): New enums
19177 charset_arg_min_code and charset_arg_max_code.
19178 (struct charset): New member char_index_offset.
19179
19180 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19181 Take charset->char_index_offset into account.
19182 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19183 args[charset_arg_max_code]. Setup charset.char_index_offset.
19184 (syms_of_charset): Fix args to Fdefine_charset_internal.
19185
191862008-02-01 Dave Love <fx@gnu.org>
19187
19188 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19189
191902008-02-01 Dave Love <fx@gnu.org>
19191
19192 * coding.c: Doc fixes.
19193 (Fcoding_system_aliases): Fix return value.
19194 (Qmac): Remove (duplicated) definition.
19195
191962008-02-01 Dave Love <fx@gnu.org>
19197
362654a6
JB
19198 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19199 New functions.
aac0c6e3
MR
19200
19201 * character.c (Fstring): Doc fix.
19202
19203 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19204
362654a6 19205 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19206 (font-encoding-alist): Doc fix.
19207
192082008-02-01 Dave Love <fx@gnu.org>
19209
19210 * term.c (costs_set): Declare static, non-initialized for pcc.
19211 (encode_terminal_code): Remove unused var.
19212
19213 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19214 for K&R.
19215
19216 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19217
19218 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19219 (suffixes): Move out of make_subsidiaries for K&R.
19220
19221 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19222
19223 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19224
192252008-02-01 Dave Love <fx@gnu.org>
19226
19227 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19228
19229 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19230
192312008-02-01 Yong Lu <lyongu@asia-infonet.com>
19232
19233 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19234
19235 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19236
192372008-02-01 Kenichi Handa <handa@m17n.org>
19238
19239 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19240 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19241
192422008-02-01 Kenichi Handa <handa@m17n.org>
19243
19244 * coding.c (decode_coding_charset): Adjust for the change of
19245 Fdefine_coding_system_internal.
19246 (Fdefine_coding_system_internal): For a coding system of
19247 `charset' type, store a list of charset IDs in
19248 `charset_attr_charset_valids' element of coding attributes.
19249
192502008-02-01 Kenichi Handa <handa@m17n.org>
19251
19252 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19253 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19254 caller. Handle 2-byte and 3-byte charsets correctly.
19255 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19256 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19257 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19258 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19259 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19260 sequence.
19261 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19262 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19263 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19264 and alt&rule composition.
19265 (decode_coding_iso_2022): Handle composition correctly.
19266 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19267
19268 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19269 re-defining a charset. If the charset has :emacs-mule-id, setup
19270 emacs_mule_bytes.
19271 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19276 (encode_coding_big5, encode_coding_charset): If coding requires safe
19277 encoding, produce a character specified by
19278 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19279
192802008-02-01 Dave Love <fx@gnu.org>
19281
19282 * xterm.c (XSetIMValues): Declare.
19283
19284 * process.c: Conditionally include sys/wait.h, pty.h.
19285
19286 * print.c (print_object): Fix print format for 64-bit systems.
19287
19288 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19289
19290 * buffer.c (emacs_strerror): Declare.
19291
19292 * fontset.c (Fclear_face_cache): Declare.
19293 (accumulate_font_info): Comment-out (unused).
19294 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19295 variables.
19296
19297 * character.h (string_escape_byte8): Declare.
19298
19299 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19300 unused vars.
19301 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19302 (Fmap_charset_chars): Doc fix.
19303
19304 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19305 (Fset_coding_system_priority, Fset_coding_system_priority)
19306 (Fdefine_coding_system_internal): Doc fix.
19307
193082008-02-01 Dave Love <fx@gnu.org>
19309
19310 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19311
193122008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * character.c (string_escape_byte8): Make multibyte string with
19315 correct size.
19316
19317 * charset.c (Fmake_char): Delete unnecessary code.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * xfns.c (x_encode_text): Allocate coding.destination here, and
19322 call encode_coding_object with dst_object Qnil.
19323
19324 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19325 multibyte form correctly.
19326
19327 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19328 against Vfont_encoding_alist.
19329
19330 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19331 handling of charset list.
19332 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19333 (decode_coding_object): Move point to coding->dst_pos before
19334 calling post-read-conversion function.
19335 (encode_coding_object): Give correct arguments to
19336 pre-write-conversion. Ignore the return value of
19337 pre-write-conversion function. Pay attention to the case that
19338 pre-write-conversion changes the current buffer. If dst_object is
19339 Qt, even if coding->src_bytes is zero, allocate at least one byte
19340 to coding->destination.
19341
19342 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19343
19344 * charset.c (Fmake_char): Make it more backward compatible.
19345 (Fmap_charset_chars): Fix docstring.
19346
193472008-02-01 Dave Love <fx@gnu.org>
19348
19349 * coding.c: Doc fixes.
19350 (Fdefine_coding_system_alias): Use names, not symbols, in
19351 coding-system-alist.
19352
193532008-02-01 Kenichi Handa <handa@m17n.org>
19354
19355 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19356 of calling free_realized_face.
19357
193582008-02-01 Yong Lu <lyongu@asia-infonet.com>
19359
19360 * charset.c (read_hex): Don't treat SPC as a comment starter.
19361 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19362 (Fdecode_char): Fix typo.
19363
193642008-02-01 Kenichi Handa <handa@m17n.org>
19365
19366 * charset.h (struct charset): New member `code_space_mask'.
19367
19368 * coding.c (coding_set_source): Delete the local variable beg_byte.
19369 (encode_coding_charset, Fdefine_coding_system_internal):
19370 Delete the local variable charset.
19371 (Fdefine_coding_system_internal): Setup
19372 attrs[coding_attr_charset_valids] correctly.
19373
19374 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19375 member to check if CODE is valid or not.
19376 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19377 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19378 is within the range of charset->min_code and carset->max_code.
19379
193802008-02-01 Dave Love <fx@gnu.org>
19381
19382 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19383
19384 * dispextern.h (generate_ascii_font): Fix return type.
19385
19386 * xfaces.c (generate_ascii_font): Fix arg declaration.
19387
19388 * coding.c (coding_inherit_eol_type)
19389 (Fset_terminal_coding_system_internal)
19390 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19391
193922008-02-01 Kenichi Handa <handa@m17n.org>
19393
19394 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19395 multiple charsets correctly.
19396
193972008-02-01 Kenichi Handa <handa@m17n.org>
19398
19399 * search.c (boyer_moore): Fix handling of multibyte character
19400 translation.
19401
19402 * xdisp.c (display_mode_element): When the variable `elt' is
19403 changed, update `this' and `lisp_string'.
19404
194052008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19408
19409 * callproc.c (Fcall_process): Be sure to give the current buffer
19410 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19411
19412 * charset.c (struct charset_map_entries): New struct.
19413 (load_charset_map): Rename from parse_charset_map. New args
19414 entries and n_entries. Change caller.
19415 (load_charset_map_from_file): Rename from load_charset_map.
19416 Change caller. New arg control_flag. Call load_charset_map at
19417 the tail.
19418 (load_charset_map_from_vector): New function.
19419 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19420 (encode_char): If the charset is compact, change a character index
19421 to a code point.
19422
19423 * coding.c (coding_alloc_by_making_gap): Check the case that the
19424 source and destination are the same correctly.
19425 (decode_coding_raw_text): Set coding->consumed_char and
19426 coding->consumed to 0.
19427 (produce_chars): If coding->chars_at_source is nonzero, update
19428 coding->consumed_char and coding->consumed before calling
19429 alloc_destination.
19430 (Fdefine_coding_system_alias): Register ALIAS in
19431 Vcoding_system_alist.
19432 (syms_of_coding): Define `no-conversion' coding system at the tail.
19433
19434 * fileio.c (Finsert_file_contents): Set coding_system instead of
19435 val. If the current buffer is multibyte, always call
19436 decode_coding_gap.
19437
19438 * xfaces.c (try_font_list): Give higher priority to fontset's
19439 family than face's family.
19440
194412008-02-01 Kenichi Handa <handa@m17n.org>
19442
19443 * callproc.c (Fcall_process): Be sure to give the current buffer
19444 to decode_coding_c_string.
19445
19446 * xfaces.c (try_font_list): Give a family specified in a fontset
19447 higher priority than a family specified in a face.
19448
194492008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19452 Fix arguments to insert_from_buffer.
19453
19454 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19459 (decode_coding_gap): Set coding->dst_multibyte correctly.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19464 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19465 (encode_coding_utf_16): Substitute coding->default_char for
19466 non-Unicode characters.
19467 (decode_coding): Don't call record_insert here.
19468 (setup_coding_system): Initialize `surrogate' of
19469 coding->spec.utf_16 to 0.
19470 (EMIT_ONE_BYTE): Fix for multibyte case.
19471
19472 * insdel.c (insert_from_gap): Call record_insert.
19473
194742008-02-01 Kenichi Handa <handa@m17n.org>
19475
19476 * casefiddle.c (casify_region): Fix multibyte case.
19477
19478 * character.c (c_string_width): Add return type `int'.
19479 (char_string_with_unification): Delete arg ADVANCED.
19480
19481 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19482 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19483 (CHAR_STRING_ADVANCE): Make it do-while statement.
19484
19485 * chartab.c (sub_char_table_set_range): Optimize for the case
19486 DEPTH == 3. Add workaround code for a GCC optimization bug.
19487
19488 * charset.c (parse_charset_map): Remove an unused variable.
19489
19490 * coding.c: Delete unused variables.
19491
19492 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19493 earlier. If inserted is zero and the coding system doesn't
19494 require flushing, don't call decode_coding_gap.
19495
19496 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19497
194982008-02-01 Kenichi Handa <handa@m17n.org>
19499
19500 The following changes are for using Unicode as an internal
19501 character model, and use UTF-8 format for buffer/string
19502 representation.
19503
19504 * .gdbinit (xchartable): Adjust for the change of char table structure.
19505 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19506
19507 * Makefile.in (obj): Add character.o and chartab.o.
19508 (lisp, shortlisp): Remove utf-8.elc.
19509 (*.o): For many files, change dependency on charset.h to
19510 character.h, and add dependency on character.h.
19511 (character.o, chartab.o): New targets.
19512
19513 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19514 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19515 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19516 of "charset.h".
19517
19518 * dired.c, filelock.c: Include "character.h".
19519
19520 * alloc.c: Include "character.h" instead of "charset.h".
19521 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19522 (syms_of_alloc): Remove defsubr for Smake_char_table.
19523
19524 * buffer.c: Include "character.h" instead of "charset.h", don't
19525 include "coding.h".
19526 (Fset_buffer_multibyte): Adjust for UTF-8.
19527
19528 * buffer.h: EXFUN Fbuffer_live_p.
19529
19530 * callproc.c: Include "character.h" instead of "charset.h".
19531 (Fcall_process): Big change for the new code-conversion APIs.
19532
19533 * casetab.c: Include "character.h" instead of "charset.h".
19534 (set_canon, set_identity, shuffle): Adjust for the new
19535 map_char_table spec.
19536 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19537 accessing the char table structure.
19538
19539 * chartab.c: New file that implements char table.
19540
19541 * category.c: Include "character.h".
19542 (copy_category_entry): New function.
19543 (copy_category_table): Call map_char_table and copy_category_entry.
19544 (Fmake_category_table): Initialize all top-level slots.
19545 (char_category_set): New function.
19546 (modify_lower_category_set): Delete.
19547 (Fmodify_category_entry): Call char_table_ref_and_range.
19548
19549 * category.h (CATEGORY_SET): Just call char_category_set.
19550
19551 * ccl.c: Include "character.h".
19552 (Qccl, Qcclp): New variables.
19553 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19554 it's less than 256.
19555 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19556 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19557 and DST type.
19558 (ccl_driver): Change types of argument, adjust code accordingly.
19559 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19560 ccl_driver.
19561 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19562
19563 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19564 New members src_multibyte, dst_multibyte, consumed, and produced.
19565 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19566 (CODING_SPEC_CCL_PROGRAM): New macro.
19567 (ccl_driver): Update prototype.
19568 (Qccl, Qcclp, Fccl_program_p): Extern them.
19569 (CHECK_CCL_PROGRAM): New macro.
19570
19571 * character.c, character.h, chartab.c: New files.
19572
19573 * charset.c: Mostly re-written. Move character and multibyte sequence
19574 handling codes to character.c.
19575
19576 * charset.h: Mostly re-written. Move character and multibyte sequence
19577 handling codes to character.h.
19578
19579 * coding.c, coding.h: Mostly re-written.
19580
19581 * composite.c: Include "character.h" instead of "charset.h".
19582 (CHAR_WIDTH): Move to character.h.
19583 (HASH_KEY, HASH_VALUE): Delete.
19584
19585 * composite.h (enum composition_method): Change order of enumeration
19586 symbols.
19587
19588 * data.c: Include "character.h" instead of "charset.h".
19589 (Faref): Call CHAR_TABLE_REF for a char table.
19590 (Faset): Call CHAR_TABLE_SET for a char table.
19591
19592 * dispextern.h (free_realized_face, check_face_attribytes)
19593 (generate_ascii_font): Extern them.
19594 (free_realized_multibyte_face): Delete extern.
19595
19596 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19597 table structure.
19598
19599 * editfns.c: Include "character.h" instead of "charset.h".
19600 (Fchar_to_string): Always call CHAR_STRING.
19601
19602 * emacs.c (main): Call init_charset_once, init_charset,
19603 syms_of_chartab, and syms_of_character.
19604
19605 * fileio.c: Include "character.h" instead of "charset.h".
19606 (Finsert_file_contents): Big change for the new code-conversion API.
19607 (choose_write_coding_system, Fwrite_region): Likewise.
19608 (build_annotations_2): Delete.
19609 (e_write): Big change for the new code-conversion API.
19610
19611 * fns.c: Include "character.h" instead of "charset.h".
19612 (copy_sub_char_table): Move to chartab.c.
19613 (Fcopy_sequence): Call copy_char_table for a char table.
19614 (concat): Delete codes calling count_multibyte.
19615 (string_char_to_byte, string_byte_to_char): Adjust for the new
19616 multibyte form.
19617 (internal_equal): Adjust for the change of char table structure.
19618 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19619 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19620 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19621 (char_table_translate, optimize_sub_char_table)
19622 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19623 chartab.c.
19624 (char_table_ref_and_index): Delete.
19625 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19626 (Fmd5): Call preferred_coding_system instead of accessing
19627 Vcoding_category_list. Adjust for the new code-conversion API.
19628 (syms_of_fns): Move defsubr for char table related functions to
19629 chartab.c.
19630
19631 * fontset.c: Mostly re-written.
19632
19633 * fontset.h (struct font_info): Change type of the member encoding_type.
19634 (enum FONT_SPEC_INDEX): New enum.
19635 (fontset_font_pattern, fs_load_font): Update prototype.
19636 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19637
19638 * indent.c: Include "character.h" instead of "charset.h".
19639 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19640
19641 * insdel.c: Include "character.h" instead of "charset.h".
19642 (copy_text): Don't refer to Vnonascii_translation_table.
19643 (insert_from_gap): New function.
19644
19645 * keyboard.c: Include "character.h" instead of "charset.h".
19646 (command_loop_1): Never call direct_output_forward_char before
19647 a non-ASCII character.
19648 (read_char): If Vkeyboard_translate_table is a char table, always
19649 translate a character.
19650
19651 * keymap.c: Include "character.h".
19652 (store_in_keymap): Handle the case that IDX is a cons.
19653 (Fdefine_key): Handle the case that KEY is a cons and the car part
19654 is also a cons (range).
19655 (push_key_description): Adjust for the new character code.
19656 (describe_vector): Call describe_char_table for a char table.
19657 (describe_char_table): New function.
19658
19659 * keymap.h (describe_char_table): Extern it.
19660
19661 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19662 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19663 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19664 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19665 Delete.
19666 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19667 structure.
19668 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19669 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19670 (CHARTAB_SIZE_BITS_3): New macros.
19671 (chartab_size): Extern it.
19672 (struct Lisp_Char_Table): Re-design.
19673 (struct Lisp_Sub_Char_Table): New structure.
19674 (HASH_KEY, HASH_VALUE): Move from fns.c.
19675 (CHARACTERBITS): Define as 22.
19676 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19677 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19678 (GC_SUB_CHAR_TABLE_P): New macro.
19679 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19680 (code_convert_string_norecord): Deleted extern.
19681 (init_character_once, syms_of_character, init_charset)
19682 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19683
19684 * lread.c: Include "character.h".
19685 (read_multibyte): New arg NBYTES.
19686 (read_escape): Change the meaning of returned *BYTEREP.
19687 (to_multibyte): Delete.
19688 (read1): Adjust the handling of char table and string.
19689
19690 * print.c: Include "character.h" instead of "charset.h".
19691 (print_string): Convert 8-bit raw bytes to octal form by
19692 string_escape_byte8.
19693 (print_object): Adjust for the new multibyte form. Print 8-bit
19694 raw bytes always in octal form. Handle sub char table correctly.
19695
19696 * process.c: Include "character.h" instead of "charset.h".
19697 (read_process_output, send_process): Adjust for the new
19698 code-conversion API.
19699
19700 * puresize.h (BASE_PURESIZE): Increase.
19701
19702 * regex.c: Include "character.h" instead of "charset.h".
19703 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19704 (regex_compile): Accept a range whose starting and ending
19705 character have different leading bytes.
19706 (analyse_first): Adjust for the above change.
19707
19708 * search.c: Include "character.h" instead of "charset.h".
19709 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19710 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19711
19712 * syntax.c: Include "character.h" instead of "charset.h".
19713 (syntax_parent_lookup): Delete.
19714 (Fmodify_syntax_entry): Accept a cons as CHAR.
19715 (skip_chars): Adjust for the new multibyte form.
19716 (init_syntax_once): Call char_table_set_range instead of directly
19717 accessing the structure of a char table.
19718
19719 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19720 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19721 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19722 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19723
19724 * term.c: Include "buffer.h" and "character.h".
19725 (encode_terminal_code, write_glyphs): Adjust for the new
19726 code-conversion API.
19727 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19728
19729 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19730
19731 * xdisp.c: Include "character.h".
19732 (get_next_display_element): Adjust for the new multibyte form.
19733 (disp_char_vector): Adjust for the new char table structure.
19734 (decode_mode_spec_coding): Adjust for the new structure of
19735 coding system.
19736 (decode_mode_spec): Adjust for the new code-conversion API.
19737
19738 * xfaces.c: Include "character.h" instead of "charset.h".
19739 (load_face_font): Adjust for the change of choose_face_font and
19740 FS_LOAD_FONT.
19741 (generate_ascii_font): New function.
19742 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19743 (set_font_frame_param): Adjust for the change of choose_face_font.
19744 (free_realized_face): Make it public.
19745 (free_realized_faces_for_fontset): Rename from
19746 free_realized_multibyte_face. Free also faces realized for ASCII.
19747 (choose_face_font): Change arguments. Adjust for the change of
19748 fontset_font_pattern and FS_LOAD_FONT.
19749
19750 * xfns.c: Include "character.h".
19751 (x_encode_text): Adjust for the new code-conversion API.
19752
19753 * xselect.c: Don't include "charset.h".
19754 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19755
19756 * xterm.c: Include "character.h".
19757 (x_encode_char): New argument CHARSET. Change caller.
19758 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19759 Call ENCODE_CHAR instead of SPLIT_CHAR.
19760 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19761 CHAR_WIDTH instead of CHARSET_WIDTH.
19762 (XTread_socket): Adjust for the new code-conversion API.
19763 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19764 (x_load_font): Adjust for the change of struct font.
19765
197662008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19767
19768 * xfaces.c (face_at_buffer_position): Remove unused vars.
19769
197702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19771
19772 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19773 Fix overflow checking.
19774
197752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19776
19777 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19778 Cancel previous change.
19779
197802008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19781
19782 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19783 ccl->eight_bit_control. Fix check for buffer overflow.
19784 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19785 (ccl_driver): Initialize extra_bytes to 0.
19786
197872008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19788
19789 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19790 return it ORed with ctrl_modifier.
19791
197922008-01-29 Miles Bader <miles@gnu.org>
19793
19794 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19795
197962008-01-28 Jason Rumney <jasonr@gnu.org>
19797
19798 * w32.c (stat): Don't double check for networked drive.
19799
198002008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19801
19802 * window.c (run_window_configuration_change_hook): New function.
19803 Code extracted from set_window_buffer. Set the selected frame.
19804 (set_window_buffer): Use it.
19805 * window.h (run_window_configuration_change_hook): Declare.
19806 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19807
19808 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19809
198102008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19811
19812 * Makefile.in: Remove references to unused macros.
19813
198142008-01-26 Eli Zaretskii <eliz@gnu.org>
19815
19816 * w32.c (g_b_init_get_sid_sub_authority)
19817 (g_b_init_get_sid_sub_authority_count): New static variables.
19818 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19819 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19820 (init_user_info): Use them to retrieve uid and gid.
19821 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19822 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19823 st_uid and st_gid of the file.
19824
198252008-01-26 Jason Rumney <jasonr@gnu.org>
19826
19827 * w32.c (logon_network_drive): New function.
19828 (stat): Use it.
19829
198302008-01-26 Chong Yidong <cyd@stupidchicken.com>
19831
19832 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19833 invisible text covered with an ellipsis.
19834
198352008-01-25 Richard Stallman <rms@gnu.org>
19836
19837 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19838 jump back to beginning. Move some other initializations after that.
19839 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19840 New variables.
19841 (syms_of_xdisp): Init them.
19842
19843 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19844
19845 * buffer.c (reset_buffer_local_variables):
19846 Implement `permanent-local-hook'.
19847 (Qpermanent_local_hook): New variable.
19848 (syms_of_buffer): Init and staticpro it.
19849
198502008-01-25 Michael Albinus <michael.albinus@gmx.de>
19851
19852 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19853
198542008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19855
19856 * fns.c (Fclrhash): Return TABLE.
19857
198582008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19859
19860 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19861 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19862 is set even without positional changes.
19863 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19864
19865 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19866
198672008-01-23 Jason Rumney <jasonr@gnu.org>
19868
19869 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19870
19871 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19872 the unicode range available in MULE by locale-coding-system.
19873 Improve dbcs lead byte detection. Set event timestamp and modifiers
19874 earlier.
19875
198762008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19877
19878 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19879 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19880 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19881 when used on child processes.
19882
198832008-01-21 Michael Albinus <michael.albinus@gmx.de>
19884
19885 * dbusbind.c (Fdbus_method_return_internal): Rename from
19886 Fdbus_method_return.
19887 (Fdbus_unregister_object): Move to dbus.el.
19888 (Fdbus_call_method, Fdbus_method_return_internal)
19889 (Fdbus_send_signal): Improve debug messages.
19890
198912008-01-20 Martin Rudalics <rudalics@gmx.at>
19892
19893 * undo.c (undo_inhibit_record_point): New variable.
19894 (syms_of_undo): Initialize it.
19895 (record_point): Don't record point when undo_inhibit_record_point
19896 is set.
19897
198982008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19899
19900 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19901
19902 * xdisp.c (Qauto_hscroll_mode): New var.
19903 (syms_of_xdisp): Initialize it.
19904 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19905 window's buffer.
19906 (hscroll_windows): Don't check automatic_hscrolling_p here.
19907
19908 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19909 vscroll if we're setting window-buffer to the value it already has.
19910
199112008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19912
19913 * m/intel386.h: Remove references to XENIX.
19914
199152008-01-17 Andreas Schwab <schwab@suse.de>
19916
19917 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19918 instead of HAVE_X86_64_LIB64_DIR.
19919 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19920
199212008-01-17 Glenn Morris <rgm@gnu.org>
19922
19923 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19924 to HAVE_X86_64_LIB64_DIR.
19925
199262008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19927
19928 * s/irix3-3.h:
19929 * s/irix4-0.h:
19930 * s/386-ix.h:
19931 * s/domain.h:
19932 * s/hpux9-x11r4.h:
19933 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19934
19935 * sysdep.c: Remove code containing references to symbols defined
19936 by unsupported systems.
19937
199382008-01-16 Glenn Morris <rgm@gnu.org>
19939
19940 * coding.c (select-safe-coding-system-function): Doc fix.
19941
199422008-01-15 Glenn Morris <rgm@gnu.org>
19943
19944 * config.in: Revert 2008-01-13 change: this is a generated file.
19945
199462008-01-13 Tom Tromey <tromey@redhat.com>
19947
19948 * lisp.h: Fix typo.
19949
199502008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19951
19952 * m/sequent-ptx.h:
19953 * m/sequent.h:
19954 * s/ptx.h:
19955 * s/ptx4-2.h:
19956 * s/ptx4.h: Remove files for systems no longer supported.
19957
19958 * callproc.c (Fcall_process): Fix previous change.
19959
199602008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19961
19962 * unexsunos4.c: Remove file, system not supported anymore.
19963
19964 * m/mips.h:
19965 * m/intel386.h:
19966 * callproc.c:
19967 * config.in:
19968 * ecrt0.c:
19969 * emacs.c:
19970 * fileio.c:
19971 * frame.c:
19972 * getpagesize.h:
19973 * keyboard.c:
19974 * lread.c:
19975 * process.c:
19976 * puresize.h:
19977 * sysdep.c:
19978 * systty.h:
19979 * syswait.h:
19980 * unexec.c:
19981 * xdisp.c:
19982 * alloc.c: Remove code containing references to symbols defined by
19983 unsupported systems.
19984
199852008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19986
19987 * coding.c (detect_coding_mask): Fix previous change.
19988
199892008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19990
19991 * coding.c (detect_coding_iso2022): New arg
19992 latin_extra_code_state. Allow Latin extra codes only
19993 when *latin_extra_code_state is nonzero.
19994 (detect_coding_mask): If there is a NULL byte, detect the encoding
19995 as UTF-16 or binary. If Latin extra codes exist, detect the
19996 encoding as ISO-2022 only when there's no other proper encoding is
19997 found.
19998
199992008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20000
20001 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20002 #ifdef MAC_OS.
20003
200042008-01-08 Richard Stallman <rms@gnu.org>
20005
20006 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20007
200082008-01-06 Nick Roberts <nickrob@snap.net.nz>
20009
20010 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20011 menu bar in parentheses.
20012
200132008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20014
20015 * m/7300.h:
20016 * m/acorn.h:
20017 * m/alliant-2800.h:
20018 * m/alliant.h:
20019 * m/alliant1.h:
20020 * m/alliant4.h:
20021 * m/altos.h:
20022 * m/amdahl.h:
20023 * m/apollo.h:
20024 * m/att3b.h:
20025 * m/aviion-intel.h:
20026 * m/aviion.h:
20027 * m/celerity.h:
20028 * m/clipper.h:
20029 * m/cnvrgnt.h:
20030 * m/convex.h:
20031 * m/cydra5.h:
20032 * m/delta88k.h:
20033 * m/dpx2.h:
20034 * m/dual.h:
20035 * m/elxsi.h:
20036 * m/f301.h:
20037 * m/gould-np1.h:
20038 * m/gould.h:
20039 * m/i860.h:
20040 * m/ibmps2-aix.h:
20041 * m/ibmrt-aix.h:
20042 * m/ibmrt.h:
20043 * m/irist.h:
20044 * m/is386.h:
20045 * m/isi-ov.h:
20046 * m/mega68.h:
20047 * m/mg1.h:
20048 * m/news-r6.h:
20049 * m/news-risc.h:
20050 * m/news.h:
20051 * m/nh3000.h:
20052 * m/nh4000.h:
20053 * m/ns16000.h:
20054 * m/ns32000.h:
20055 * m/nu.h:
20056 * m/orion.h:
20057 * m/orion105.h:
20058 * m/paragon.h:
20059 * m/pfa50.h:
20060 * m/plexus.h:
20061 * m/pyramid.h:
20062 * m/pyrmips.h:
20063 * m/sh3el.h:
20064 * m/sps7.h:
20065 * m/sr2k.h:
20066 * m/stride.h:
20067 * m/sun1.h:
20068 * m/sun2.h:
20069 * m/sun3-68881.h:
20070 * m/sun3-fpa.h:
20071 * m/sun3-soft.h:
20072 * m/sun3.h:
20073 * m/sun386.h:
20074 * m/symmetry.h:
20075 * m/tad68k.h:
20076 * m/tahoe.h:
20077 * m/targon31.h:
20078 * m/tek4300.h:
20079 * m/tekxd88.h:
20080 * m/tower32.h:
20081 * m/tower32v3.h:
20082 * m/ustation.h:
20083 * m/wicat.h:
20084 * m/xps100.h:
20085 * s/cxux.h:
20086 * s/cxux7.h:
20087 * s/dgux.h:
20088 * s/dgux4.h:
20089 * s/dgux5-4-3.h:
20090 * s/dgux5-4r2.h:
20091 * s/esix.h:
20092 * s/esix5r4.h:
20093 * s/hiuxmpp.h:
20094 * s/hiuxwe2.h:
20095 * s/iris3-5.h:
20096 * s/iris3-6.h:
20097 * s/isc2-2.h:
20098 * s/isc3-0.h:
20099 * s/isc4-0.h:
20100 * s/isc4-1.h:
20101 * s/newsos5.h:
20102 * s/newsos6.h:
20103 * s/osf1.h:
20104 * s/osf5-0.h:
20105 * s/riscix1-1.h:
20106 * s/riscix12.h:
20107 * s/sco4.h:
20108 * s/sco5.h:
20109 * s/sunos4-0.h:
20110 * s/sunos4-1.h:
20111 * s/sunos413.h:
20112 * s/sunos4shr.h:
20113 * s/umax.h:
20114 * s/unipl5-2.h:
20115 * s/xenix.h:
20116 * cxux-crt0.s:
20117 * unexapollo.c:
20118 * unexconvex.c:
20119 * unexenix.c:
20120 * unexsni.c: Remove files for systems no longer supported.
20121
20122 * m/intel386.h: Remove references to unsupported systems.
20123
20124 * w32.c (get_emacs_configuration): Remove reference to i860.
20125
20126 * sysdep.c: Remove dead code.
20127
201282008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20129
20130 * s/rtu.h:
20131 * m/masscomp.h: Remove files. Platform is obsolete.
20132
201332008-01-04 Michael Albinus <michael.albinus@gmx.de>
20134
20135 * dbusbind.c (Fdbus_method_return): New function.
20136 (xd_read_message): Add the serial number to the event.
20137 (Fdbus_register_method): Activate the function.
20138
201392008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20140
20141 * keyboard.c (read_key_sequence): Fix typo.
20142
201432008-01-03 Michael Albinus <michael.albinus@gmx.de>
20144
20145 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20146 (xd_signature, xd_append_arg): Handle element type detection for
20147 empty arrays.
20148 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20149 SDATA () calls; this must be solved more general.
20150 (Fdbus_register_signal): Use SBYTES instead of strlen.
20151
201522008-01-03 Magnus Henoch <magnus@zemdatav>
20153
20154 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20155 unsigned int for byte values (necessary for big-endian platform).
20156 (Fdbus_call_method): Handle the case of no returned arguments.
20157
201582007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20159
20160 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20161
201622007-12-31 Magnus Henoch <mange@freemail.hu>
20163
20164 * dbusbind.c (xd_signature): Signature of variant is just "v".
20165
201662007-12-30 Michael Albinus <michael.albinus@gmx.de>
20167
20168 * dbusbind.c: Fix several errors and compiler warnings.
20169 Reported by Tom Tromey <tromey@redhat.com>.
20170 (XD_ERROR, XD_DEBUG_MESSAGE)
20171 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20172 (xd_append_arg): Part for basic D-Bus types rewritten.
20173 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20174 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20175 appropriate.
20176 (xd_read_message): Return Qnil. Don't signal an error; it is not
20177 useful during event reading.
20178 (Fdbus_register_signal): Signal an error if the check for
20179 FUNCTIONP fails.
20180 (Fdbus_register_method): New function. The implementation is not
20181 complete, the call of the function signals an error therefore.
20182 (Fdbus_unregister_object): New function, renamed from
20183 Fdbus_unregister_signal. The initial check signals an error, if
20184 the object is not well formed.
20185
201862007-12-30 Richard Stallman <rms@gnu.org>
20187
20188 * textprop.c (get_char_property_and_overlay):
20189 Signal error if POSITION is out of range in a buffer.
20190
201912007-12-29 Martin Rudalics <rudalics@gmx.at>
20192
20193 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20194 because the original parameters are in pure storage now.
20195
201962007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20197
20198 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20199
202002007-12-22 Eli Zaretskii <eliz@gnu.org>
20201
20202 * callint.c (syms_of_callint) <command-history>: Add reference to
20203 history-length in the doc string.
20204
202052007-12-17 Jason Rumney <jasonr@gnu.org>
20206
20207 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20208 before passing as wParam.
20209
202102007-12-22 Michael Albinus <michael.albinus@gmx.de>
20211
20212 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20213 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20214 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20215 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20216 as number.
20217 (Fdbus_call_method): Fix docstring.
20218
202192007-12-21 Michael Albinus <michael.albinus@gmx.de>
20220
20221 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20222 New macros.
20223 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20224 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20225 Simplify.
20226 (xd_signature): New function.
20227 (xd_append_arg): Compute also signatures. Major rewrite.
20228 (xd_retrieve_arg): Make debug messages friendly.
20229 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20230 Check for signatures of arguments.
20231
202322007-12-19 Michael Albinus <michael.albinus@gmx.de>
20233
20234 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20235 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20236 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20237 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20238 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20239 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20240 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20241 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20242 (xd_retrieve_value): Remove. Functionality included in ...
20243 (xd_append_arg): New function.
20244 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20245
202462007-12-16 Michael Albinus <michael.albinus@gmx.de>
20247
20248 * dbusbind.c (top): Include <stdio.h>.
20249 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20250 dbus_message_new_method_call and dbus_message_new_signal.
20251 (Fdbus_register_signal): Rename unique_name to uname.
20252 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20253 non-existing unique name. Fix typos in matching rule. Return an
20254 object which is useful in Fdbus_unregister_signal.
20255 (Fdbus_unregister_signal): Reimplementation, in order to remove
20256 only the corresponding entry.
20257 (Vdbus_registered_functions_table): Change the order of entries.
20258 Apply these changes in xd_read_message and Fdbus_register_signal.
20259
202602007-12-16 Andreas Schwab <schwab@suse.de>
20261
20262 * fileio.c (Finsert_file_contents): Fix overflow check to not
20263 depend on undefined integer overflow.
20264
202652007-12-14 Jason Rumney <jasonr@gnu.org>
20266
20267 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20268 for characters above 127.
20269
202702007-12-13 Jason Rumney <jasonr@gnu.org>
20271
20272 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20273 before dereferencing array.
20274 (lookup_vk_code): Remove zero comparison.
20275
202762007-12-14 Michael Albinus <michael.albinus@gmx.de>
20277
20278 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20279 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20280 Use `unsigned int' instead of `uint'.
20281 (xd_read_message, Fdbus_register_signal): Split expressions into
20282 multiple lines before operators "&&" and "||", according to the
20283 GNU Coding Standards.
20284
202852007-12-14 Eli Zaretskii <eliz@gnu.org>
20286
20287 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20288
202892007-12-12 Juri Linkov <juri@jurta.org>
20290
20291 * buffer.c (Frename_buffer): In interactive spec replace
20292 `read-buffer' with `read-string' that uses `buffer-name-history'
20293 as history, and the current buffer's name as default.
20294
202952007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20296
20297 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20298 manipulating the backtrace manually.
20299 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20300 (struct backtrace, backtrace_list): Remove.
20301 (command_loop_1): Remove dead var `no_direct'.
20302
20303 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20304 preserve non-built-in buffer-local variables.
20305 (Fkill_all_local_variables): Don't re-create&re-set permanent
20306 buffer-local variables.
20307
203082007-12-09 Juri Linkov <juri@jurta.org>
20309
20310 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20311 Lisp code that uses `read-buffer' with current buffer as default.
20312
203132007-12-08 Michael Albinus <michael.albinus@gmx.de>
20314
20315 * dbusbind.c (xd_read_message): Generate an event for every
20316 registered handler. There might be several handlers registered
20317 for the same signal.
20318 (Fdbus_register_signal): Don't overwrite a registration for the
20319 same signal. Add a new registration if handlers are different.
20320 (Vdbus_registered_functions_table): Rework doc string.
20321
203222007-12-07 Michael Albinus <michael.albinus@gmx.de>
20323
20324 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20325 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20326 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20327 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20328 Unify argument lists.
20329 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20330 arguments and hash table keys. Use unique name for service.
20331 (Fdbus_unregister_signal): Remove checks.
20332 (Vdbus_registered_functions_table): Fix doc string.
20333
203342007-12-05 Magnus Henoch <mange@freemail.hu>
20335
20336 * process.c (make_process): Initialize pty_flag to 0.
20337
203382007-12-05 Jason Rumney <jasonr@gnu.org>
20339
20340 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20341 specified XBMs.
20342
203432007-12-05 Richard Stallman <rms@gnu.org>
20344
20345 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20346
203472007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20348
20349 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20350 New variable.
20351 (mac_try_close_socket) [MAC_OSX]: New function.
20352 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20353 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20354
20355 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20356 Use mac_try_close_socket.
20357
203582007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20359
20360 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20361 reloc_base.
20362 (copy_dysymtab): Compute relocation base here.
20363 (rebase_reloc_address) [__ppc64__]: New function.
20364 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20365 changed.
20366
203672007-12-05 Jason Rumney <jasonr@gnu.org>
20368
20369 * w32proc.c (sys_spawnve): Quote args with wildcards.
20370
203712007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20372
20373 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20374 __objc_* sections.
20375 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20376
203772007-12-05 Michael Albinus <michael.albinus@gmx.de>
20378
20379 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20380 Move check for Vdbus_registered_functions_table to
20381 xd_read_queued_messages.
20382 (xd_read_queued_messages): Protect xd_read_message calls by
20383 internal_condition_case_1.
20384
203852007-12-04 Michael Albinus <michael.albinus@gmx.de>
20386
20387 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20388 Qdbus_system_bus and Qdbus_session_bus, respectively.
20389 (Vdbus_intern_symbols): Remove.
20390 (Vdbus_registered_functions_table): New hash table.
20391 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20392 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20393 Rewrite in order to manage registered functions by hash table
20394 Vdbus_registered_functions_table.
20395
203962007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20397
20398 * xterm.c: Update URL to Window Manager Specification in comment.
20399
204002007-12-02 Michael Albinus <michael.albinus@gmx.de>
20401
20402 * config.in (HAVE_DBUS): Add.
20403
20404 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20405 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20406 (obj): Add $(DBUS_OBJ).
20407 (LIBES): Add $(DBUS_LIBS).
20408 (dbusbind.o): New target.
20409
20410 * dbusbind.c: New file.
20411
20412 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20413
20414 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20415 (Qdbus_event): New Lisp symbol.
20416 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20417 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20418 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20419
20420 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20421
204222007-12-01 Richard Stallman <rms@gnu.org>
20423
20424 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20425
204262007-11-30 Jason Rumney <jasonr@gnu.org>
20427
20428 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20429 (w32con_reset_terminal_modes): Clear screen buffer.
20430 (w32_face_attributes): Don't use color indexes that are out of range.
20431 Only reverse the default colors.
20432
20433 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20434 WINDOWSNT.
20435
20436 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20437
204382007-11-29 Jason Rumney <jasonr@gnu.org>
20439
20440 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20441 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20442 if the terminal colors are initialized.
20443 (unspecified_fg, unspecified_bg): Remove unused declarations.
20444
204452007-11-29 Andreas Schwab <schwab@suse.de>
20446
20447 * keyboard.c (apply_modifiers): Fix typo.
20448
204492007-11-29 Richard Stallman <rms@gnu.org>
20450
20451 * keymap.c (Fcurrent_local_map): Doc fix.
20452
204532007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20454
20455 * s/gnu-kfreebsd.h: New file.
20456
204572007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20458
20459 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20460 Don't cast redundantly.
20461
20462 * keyboard.c (KEY_TO_CHAR): New macro.
20463 (parse_modifiers, apply_modifiers): Accept integer arguments.
20464 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20465 for chars and symbol keys.
20466 After doing such remapping, apply function-key-map again.
20467
204682007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20469
20470 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20471 compiled anymore.
20472
204732007-11-26 Andreas Schwab <schwab@suse.de>
20474
20475 * process.c (list_processes_1): Fix indentation level of the
20476 command column.
20477
204782007-11-23 Andreas Schwab <schwab@suse.de>
20479
20480 * editfns.c (Fformat): Handle %c specially since it requires the
20481 argument to be of type int.
20482
204832007-11-23 Markus Triska <markus.triska@gmx.at>
20484
20485 * emacs.c (main): Call init_editfns before init_process, since
20486 init_process sets Vprocess_connection_type depending on OS release.
20487
204882007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20489
20490 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20491 (find_symbol_value): Use do_symval_forwarding.
20492
20493 * data.c (set_internal): Set the value in the `cons-cell' (for
20494 Buffer_Local_values) not only for frame-local variables.
20495
204962007-11-22 Andreas Schwab <schwab@suse.de>
20497
20498 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20499 values to sprintf.
20500 * keymap.c (Fsingle_key_description): Likewise.
20501 * print.c (print_object): Likewise.
20502
205032007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20504
20505 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20506 file for image is nil.
20507
205082007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20509
20510 * term.c: Include stdarg.h.
20511 (fatal): Implement using varargs.
20512 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20513
205142007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20515
20516 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20517 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20518 Update call to buffer_slot_type_mismatch.
20519 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20520 (buffer_slot_type_mismatch): Update.
20521 * buffer.c (buffer_local_types): Remove.
20522 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20523 (defvar_per_buffer): Set the type in the buffer_objfwd.
20524
205252007-11-21 Jason Rumney <jasonr@gnu.org>
20526
20527 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20528 CreateFileMapping returns NULL on failure.
20529
205302007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20531
20532 * search.c (Fset_match_data): Remove the `evaporate' feature.
20533 (unwind_set_match_data): Don't use the `evaporate' feature.
20534
205352007-11-21 Jason Rumney <jasonr@gnu.org>
20536
20537 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20538
20539 * w32console.c (w32con_write_glyphs): Remove unused variables.
20540
205412007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20542
20543 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20544
20545 * s/darwin.h (MULTI_KBOARD): Remove.
20546
20547 * macfns.c (x_create_tip_frame, Fx_create_frame)
20548 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20549
205502007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20551
20552 * buffer.c (Fbuffer_local_value): Remove redundant test.
20553 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20554 than in `current-buffer' to match the comment.
20555 Do the swap using swap_in_global_binding.
20556
20557 * data.c (store_symval_forwarding, set_internal):
20558 * eval.c (specbind): Remove dead code.
20559
20560 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20561 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20562 Since we do not want to see internal Lisp_*fwd objects here.
20563
205642007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20565
20566 * sysdep.c (init_system_name): Use getaddrinfo if available.
20567
20568 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20569 (x_scroll_bar_note_movement): start, end, with, height in struct
20570 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20571
205722007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20573
20574 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20575
205762007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20577
20578 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20579 This undoes Richard's change of 14-Oct-2002.
20580
20581 * alloc.c (allocate_other_vector):
20582 * lisp.h (allocate_other_vector): Remove.
20583
20584 * window.c (struct save_window_data): Move non-lisp data to the end
20585 and make it `int' rather than Lisp_Object.
20586 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20587 Done wrap/unwrap integer values.
20588 (Fset_window_configuration, compare_window_configurations):
20589 Update use of fields to their new types.
20590
20591 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20592 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20593 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20594 (SET_SCROLL_BAR_X_WINDOW): Remove.
20595 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20596 Access the new x_window field directly.
20597 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20598 Don't wrap/unwrap integers into Lisp_Objects.
20599 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20600 (x_scroll_bar_report_motion):
20601 Don't wrap/unwrap integers into Lisp_Objects.
20602 (x_term_init): Use SDATA.
20603 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20604 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20605 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20606 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20607 * xfns.c (x_set_background_color):
20608 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20609 Access the new x_window field directly.
20610
20611 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20612 (allocate_pseudovector): Make non-static.
20613
20614 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20615 (allocate_pseudovector): Declare.
20616 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20617
206182007-11-15 Andreas Schwab <schwab@suse.de>
20619
20620 * editfns.c (Fformat): Correctly format EMACS_INT values.
20621 Also take precision into account when formatting an integer.
20622
20623 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20624
206252007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20626
20627 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20628 (syms_of_keyboard): Defsubr it.
20629
20630 * data.c (swap_in_global_binding): Fix longstanding bug where
20631 store_symval_forwarding was not called with the right second argument,
20632 thus causing objfwd-ing from being dropped.
20633
206342007-11-14 Juanma Barranquero <lekktu@gmail.com>
20635
20636 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20637 (Fx_display_pixel_height, Fx_display_planes)
20638 (Fx_display_color_cells, Fx_server_max_request_size)
20639 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20640 (Fx_display_visual_class, Fx_display_save_under):
20641 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20642 (Fx_display_pixel_height, Fx_display_planes)
20643 (Fx_display_color_cells, Fx_server_max_request_size)
20644 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20645 (Fx_display_mm_height, Fx_display_mm_width)
20646 (Fx_display_backing_store, Fx_display_visual_class)
20647 (Fw32_select_font, Fx_display_save_under):
20648 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20649 (Fx_display_pixel_height, Fx_display_planes)
20650 (Fx_display_color_cells, Fx_server_max_request_size)
20651 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20652 (Fx_display_save_under): Fix typos in docstrings.
20653
206542007-11-14 Juanma Barranquero <lekktu@gmail.com>
20655
20656 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20657 corresponding to deleted entries; they are an implementation detail.
20658 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20659 Remove variables.
20660 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20661 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20662 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20663 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20664 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20665 (Fw32_define_rgb_color, Fw32_load_color_file)
20666 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20667 Fix typos in docstrings.
20668 (Fx_server_version): Reflow docstring.
20669 (Fw32_shell_execute): Doc fixes.
20670
206712007-11-13 Juanma Barranquero <lekktu@gmail.com>
20672
20673 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20674 if w32_parse_hot_key returned nil.
20675
206762007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20677
20678 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20679
206802007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20681
aac0c6e3
MR
20682 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20683
20684 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20685
20686 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20687 Remove W32_SCROLL_BAR_CLICK_EVENT.
20688
20689 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20690 Add MULTIMEDIA_KEY_EVENT.
20691
20692 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20693 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20694 (make_lispy_event) [WINDOWSNT]: Use it to translate
20695 MULTIMEDIA_KEY_EVENT.
20696
20697 * w32term.h (WM_APPCOMMAND): Define if not already.
20698 (GET_APPCOMMAND_LPARAM): Likewise.
20699
20700 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20701 WM_APPCOMMAND.
20702
20703 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20704 (syms_of_w32fns): Export and initialize it.
20705 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20706
207072007-11-09 Chong Yidong <cyd@stupidchicken.com>
20708
20709 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20710 twice.
20711
20712 * xdisp.c (handle_face_prop): Fix last change.
20713
207142007-11-09 Richard Stallman <rms@gnu.org>
20715
20716 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20717 not just for after-strings and before-strings.
20718 Call face_for_overlay_string and pass the overlay to it.
20719 (handle_display_prop): Determine whether property came from an overlay.
20720 Pass OVERLAY arg to handle_single_display_spec.
20721 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20722 (load_overlay_strings): Fill in it->string_overlays.
20723 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20724
20725 * xfaces.c (face_for_overlay_string): Function renamed from
20726 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20727
20728 * dispextern.h (struct it): New elt string_overlays.
20729 New elt from_overlay, also in stack.
20730 Rearrange a few elements.
20731 (face_for_overlay_string): Decl renamed from
20732 face_at_buffer_position_no_overlays, and add argument.
20733
207342007-11-09 Richard Stallman <rms@gnu.org>
20735
20736 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20737 to get the base face for an overlay string.
20738
20739 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20740
20741 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20742
20743 * xdisp.c (handle_stop): Move some code out of loop.
20744
207452007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20746
20747 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20748 Fix conversion from Lisp object to ATSUFontID.
20749
207502007-11-09 Jason Rumney <jasonr@gnu.org>
20751
20752 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20753
207542007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20755
20756 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20757 Don't assume regions are aligned to page boundary.
20758 (print_load_command_name): Add LC_UUID if defined.
20759
207602007-11-09 Richard Stallman <rms@gnu.org>
20761
20762 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20763
207642007-11-07 Jason Rumney <jasonr@gnu.org>
20765
20766 * s/windows95.h: Remove.
20767
207682007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20769
20770 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20771 abort with a message on unhandled store_type values.
20772
207732007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20774
20775 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20776 Remove HAVE_X11R5 and HAVE_X11R4.
20777
207782007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20779
20780 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20781
207822007-11-01 Johan Bockgård <bojohan@gnu.org>
20783
20784 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20785 Don't set s->stippled_p here, since it has already been set by
20786 x_set_glyph_string_gc from x_draw_glyph_string.
20787
207882007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20789
20790 * sunfns.c: Remove file.
20791
20792 * m/sun386.h:
20793 * m/sun2.h:
20794 * m/sparc.h: Remove Sun windows code.
20795
207962007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20797
20798 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20799 (init_keyboard): Set current_kboard's window-system to nil.
20800 (tty_read_avail_input): Typo.
20801 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20802
208032007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20804
20805 * s/usg5-4.h:
20806 * s/usg5-3.h:
20807 * s/ptx.h:
20808 * m/is386.h:
20809 * m/ibmps2-aix.h:
20810 * Makefile.in: Remove all mentions of X10.
20811
20812 * dispnew.c (syms_of_display): Don't mention version 10.
20813
208142007-10-28 Juanma Barranquero <lekktu@gmail.com>
20815
20816 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20817 ($(BLD)/abbrev.$(O)): Remove.
20818
208192007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20820
20821 Rewrite abbrev.c in Elisp.
20822 * image.c (Qcount): Don't declare as extern.
20823 (syms_of_image): Initialize and staticpro `Qcount'.
20824 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20825 * emacs.c (main): Don't call syms_of_abbrev.
20826 * Makefile.in (obj): Remove abbrev.o.
20827 (abbrev.o): Remove.
20828 * abbrev.c: Remove.
20829
208302007-10-26 Martin Rudalics <rudalics@gmx.at>
20831
20832 * window.c (window_min_size_2): Don't count header-line.
20833
208342007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20835
20836 * frame.h (struct frame): Move all bit fields after the first bit
20837 field to take advantage of the available space. Group all the
20838 chars together to reduce wasted space due to padding.
20839
208402007-10-26 Juanma Barranquero <lekktu@gmail.com>
20841
20842 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20843
20844 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20845 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20846 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20847 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20848 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20849 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20850 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20851 (last_marked, mark_object_loop_halt): Make static.
20852
20853 * frame.c (syms_of_frame) <delete-frame-functions>:
20854 Fix typo in docstring.
20855
208562007-10-25 Juanma Barranquero <lekktu@gmail.com>
20857
20858 * w32.c (init_environment): Fix tiny memory leak.
20859 (w32_get_resource): Remove unused variable `ok'.
20860
208612007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20862
20863 Make `window-system' into a keyboard-local variable (rather than
20864 frame-local as done originally by multi-tty).
20865
20866 * keyboard.h (struct kboard): Add Vwindow_system.
20867 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20868 (mark_kboards): Mark Vwindow_system.
20869
20870 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20871 (init_display): Don't set the obsolete `window-system' frame-param.
20872
20873 * xterm.c (x_term_init):
20874 * w32term.c (w32_create_terminal):
20875 * term.c (init_tty): Set Vwindow_system.
20876 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20877 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20878
20879 * xfns.c (Fx_create_frame, x_create_tip_frame):
20880 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20881 * macfns.c (Fx_create_frame):
20882 Don't set the obsolete `window-system' frame-param.
20883
20884 * frame.h (Qwindow_system): Remove.
20885 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20886 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20887
208882007-10-24 Richard Stallman <rms@gnu.org>
20889
20890 * frame.c (x_figure_window_size): For fullscreen case,
20891 set USPosition | PPosition without clobbering rest of window_prompting.
20892
20893 * keyboard.c (Fcurrent_idle_time): Doc fix.
20894
20895 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20896
208972007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20898
20899 * process.c (unwind_request_sigio): Only define if __ultrix__.
20900
20901 * callproc.c (child_setup): Remove spurious *.
20902
20903 * lisp.h (Fget_text_property): Declare.
20904 (have_menus_p): Declare it here rather than in sys-dep header files.
20905 * macterm.h (have_menus_p):
20906 * msdos.h (have_menus_p):
20907 * xterm.h (have_menus_p): Remove.
20908
20909 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20910 (Fmake_variable_frame_local): Just check the variable's const-ness
20911 rather than checking nil or t.
20912
209132007-10-22 Jason Rumney <jasonr@gnu.org>
20914
20915 * w32fns.c: Include math.h.
20916 (w32_abort): Declaration moved to nt/config.nt.
20917
20918 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20919 (abort): Redefinition moved to nt/config.nt.
20920
20921 * m/windowsnt.h: Remove.
20922
209232007-10-22 Juanma Barranquero <lekktu@gmail.com>
20924
20925 * emacs.c (Fdump_emacs): Fix typo in message.
20926 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20927 <installation-directory>: Reflow docstring.
20928
209292007-10-22 Juri Linkov <juri@jurta.org>
20930
20931 * minibuf.c: Allow minibuffer default to be a list of default values.
20932 With empty input use the first element of this list as returned default.
20933 (string_to_object)
20934 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20935 (read_minibuf): If defalt is cons, set histstring to its car.
20936 (Fread_string): If default_value is cons, set val to its car.
20937 (Fread_buffer): If def is cons, use its car.
20938 (Fcompleting_read): If defalt is cons, set val to its car.
20939
209402007-10-21 Michael Albinus <michael.albinus@gmx.de>
20941
20942 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20943
209442007-10-20 Juanma Barranquero <lekktu@gmail.com>
20945
20946 * doc.c (Fdocumentation): Check for advice in all cases.
20947
209482007-10-19 Chong Yidong <cyd@stupidchicken.com>
20949
20950 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20951
209522007-10-19 Richard Stallman <rms@gnu.org>
20953
20954 * doc.c (Fdocumentation): Check for and handle an advised function.
20955
209562007-10-19 Juanma Barranquero <lekktu@gmail.com>
20957
20958 * process.c (Fset_process_filter): Doc fix.
20959
209602007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20961
20962 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20963 which caused key-translation-map to applied repeatedly (thus breaking
20964 double-mode).
20965
209662007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20967
20968 * xselect.c (x_own_selection, x_handle_selection_clear)
20969 (x_clear_frame_selections):
20970 * w32menu.c (list_of_panes, list_of_items):
20971 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20972 * textprop.c (validate_plist, interval_has_all_properties)
20973 (interval_has_some_properties, interval_has_some_properties_list)
20974 (add_properties, text_property_list):
20975 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20976 * minibuf.c (Fassoc_string):
20977 * macselect.c (x_own_selection, x_clear_frame_selections)
20978 (Fx_disown_selection_internal):
20979 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20980 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20981
209822007-10-17 Chong Yidong <cyd@stupidchicken.com>
20983
20984 * process.c: Link to libs for calling res_init() if available.
20985 (Fmake_network_process): Call res_init() before getaddrinfo or
20986 gethostbyname, if possible.
20987
209882007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20989
20990 * lread.c (read1): Set pvectype for char_tables.
20991
20992 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20993 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20994 Add type checks.
20995 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20996
20997 * alloc.c (free_misc): Use XMISCTYPE.
20998 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20999
210002007-10-17 Glenn Morris <rgm@gnu.org>
21001
21002 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21003 (syms_of_minibuf): Add Qcompletion_ignore_case.
21004 * dired.c (Qcompletion_ignore_case): Change to external.
21005 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21006 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21007 (Fread_file_name): Use it rather than intern'ing.
21008
21009 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21010 (Fread_coding_system): Ignore case of user input.
21011
210122007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21013
21014 * xdisp.c (handle_display_prop): Ignore display specs after
21015 replacing one when string text is being replaced.
21016 (handle_single_display_spec): Pretend as if characters with display
21017 property haven't been consumed only when buffer text is being replaced.
21018
210192007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21020
21021 * xfns.c (Fx_create_frame, Fx_display_list):
21022 * window.c (window_fixed_size_p, enlarge_window)
21023 (shrink_window_lowest_first):
21024 * macterm.c (init_font_name_table):
21025 * macfns.c (Fx_create_frame, Fx_display_list):
21026 * lread.c (close_load_descs):
21027 * keyboard.c (read_char_x_menu_prompt):
21028 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21029 * coding.c (code_convert_region_unwind): Test the type of an object
21030 rather than just !NILP before extracting data from it.
21031
21032 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21033
21034 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21035 (XMISCANY): New macro.
21036 (XMISCTYPE): Use it.
21037 (struct Lisp_Misc_Any): New type.
21038 (union Lisp_Misc): Use it.
21039 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21040 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21041 (find_symbol_value, set_internal, default_value, Fset_default)
21042 (Fmake_variable_buffer_local, Fmake_local_variable)
21043 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21044 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21045 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21046 * alloc.c (allocate_buffer): Set the size and tag.
21047 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21048 Use XMISCANY.
21049 (die): Follow the GNU convention for error messages.
21050 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21051 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21052 tag any more.
21053 (set_buffer_internal_1):
21054 * frame.c (store_frame_param):
21055 * eval.c (specbind):
21056 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21057
21058 * doc.c (Fsnarf_documentation): Simplify.
21059
210602007-10-14 Juanma Barranquero <lekktu@gmail.com>
21061
21062 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21063 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21064
210652007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21066
21067 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21068
210692007-10-14 Juanma Barranquero <lekktu@gmail.com>
21070
21071 * eval.c (do_autoload): Don't save autoloads.
21072
21073 * data.c (Ffset): Save autoload of the function being set.
21074
210752007-10-07 John Paul Wallington <jpw@pobox.com>
21076
21077 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21078 parameter before setting up faces.
21079
210802007-10-13 Eli Zaretskii <eliz@gnu.org>
21081
21082 * ccl.c (Fregister_code_conversion_map):
21083 * keyboard.c (append_tool_bar_item): Reformat last change.
21084
21085 * lisp.h (eabs): Rename from `abs'. All callers changed.
21086
210872007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21088
21089 * buffer.c (add_overlay_mod_hooklist):
21090 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21091 * fontset.c (make_fontset):
21092 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21093 (append_tool_bar_item):
21094 * macmenu.c (grow_menu_items):
21095 * w32menu.c (grow_menu_items):
21096 * xmenu.c (grow_menu_items): Use larger_vector.
21097
210982007-10-13 Eli Zaretskii <eliz@gnu.org>
21099
21100 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21101 selected frame'' on MSDOS).
21102
211032007-10-12 Martin Rudalics <rudalics@gmx.at>
21104
21105 * frame.c (Qexplicit_name): New variable.
21106 (x_report_frame_params): Report it in parameter alist.
21107 (syms_of_frame): Intern and staticpro it.
21108
211092007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21110
21111 * macfns.c (x_create_tip_frame): Set terminal for frame.
21112
211132007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21114
21115 * frame.c (Qenvironment): Remove.
21116 (syms_of_frame) <Qenvironment>: Don't initialize.
21117 (Fdelete_frame): Don't treat the `environment' param specially.
21118 * frame.h (Qenvironment): Don't declare.
21119 * callproc.c (set_initial_environment): Don't set unused frame param.
21120
21121 * frame.c (Fframe_with_environment): Remove.
21122 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21123
21124 * lisp.h (Fframe_with_environment): Don't declare.
21125
211262007-10-10 Juanma Barranquero <lekktu@gmail.com>
21127
21128 * indent.c (indent_tabs_mode, last_known_column)
21129 (last_known_column_modified): Make static.
21130 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21131
211322007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21133
21134 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21135
211362007-10-09 Jason Rumney <jasonr@gnu.org>
21137
21138 * w32term.c (x_set_window_size): Disable code that attempts to tell
21139 Lisp code about a size change before it actually happens.
21140
211412007-10-09 Richard Stallman <rms@gnu.org>
21142
21143 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21144 return HANDLED_RETURN.
21145
211462007-10-08 Martin Rudalics <rudalics@gmx.at>
21147
21148 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21149 when there's an unread command event.
21150
21151 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21152 window autoselection act appropriately when leaving selected frame.
21153 (syms_of_frame): Initialize focus_follows_mouse.
21154 * frame.h (focus_follows_mouse): Extern it.
21155 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21156 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21157 * msdos.c (dos_rawgetc): Likewise.
21158 * w32term.c (w32_read_socket): Likewise.
21159 * xterm.c (handle_one_xevent): Likewise.
21160 * xdisp.c (syms_of_xdisp): In doc-string of
21161 mouse-autoselect-window mention focus-follows-mouse.
21162
211632007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21164
21165 * macterm.c (mac_load_query_font): Fix missing return value.
21166 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21167 Add BLOCK_INPUT.
21168
211692007-10-08 Richard Stallman <rms@gnu.org>
21170
21171 * xdisp.c (get_window_cursor_type): Implement documented behavior
21172 for cursor-in-non-selected-windows = t.
21173
211742007-10-08 Jason Rumney <jasonr@gnu.org>
21175
21176 * w32.c (w32_get_resource): Always close registry keys.
21177
211782007-10-08 Jason Rumney <jasonr@gnu.org>
21179
21180 * makefile.w32-in (LIBS): Add COMCTL32.
21181
21182 * w32fns.c (globals_of_w32fns): Init common controls.
21183
211842007-10-08 Richard Stallman <rms@gnu.org>
21185
21186 * image.c (our_memory_buffer): Rename from omfib_buffer.
21187
211882007-10-08 Richard Stallman <rms@gnu.org>
21189
21190 * buffer.c (Foverlays_at): Doc fix.
21191
211922007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21193
21194 * fns.c (Fplist_put): Preserve uneven tail data.
21195
211962007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21197
21198 * termhooks.h (enum event_kind): Remove trailing comma.
21199
21200 * frame.h (enum): Remove trailing comma.
21201
212022007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21203
21204 * w32proc.c (delete_child): Don't terminate threads of zombies.
21205
212062007-10-08 Martin Rudalics <rudalics@gmx.at>
21207
21208 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21209
21210 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21211 last-repeatable-command.
21212 (init_kboard): Initialize Vlast_repeatable_command.
21213 (command_loop_1): Set it to real_this_command unless that was
21214 bound to an input event.
21215 (mark_kboards): Mark it.
21216
212172007-10-08 Richard Stallman <rms@gnu.org>
21218
21219 * eval.c (condition-case): Doc fix.
21220
212212007-10-08 Masatake YAMATO <jet@gyve.org>
21222
21223 * xfaces.c (tty_supports_face_attributes_p): Fix code
21224 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21225 was copied and not edited.
21226
212272007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21228
21229 Add new `input-decode-map' keymap and use it for terminal
21230 escape sequences.
21231 * keyboard.h (struct kboard): Add Vinput_decode_map.
21232 Remove Vlocal_key_translation_map.
21233 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21234 (init_kboard): Init input-decode-map.
21235 Replace local-key-translation-map back with key-translation-map.
21236 (syms_of_keyboard): Declare input-decode-map.
21237 Remove local-key-translation-map. Update docstrings.
21238 (mark_kboards): Mark Vinput_decode_map.
21239 Don't mark Vlocal_key_translation_map.
21240 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21241 Replace local-key-translation-map back with key-translation-map.
21242 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21243 Bind in input-decode-map rather than function-key-map.
21244
21245 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21246 This was made redundant by the previous introduction of XSETPVECTYPE.
21247
212482007-10-09 Richard Stallman <rms@gnu.org>
21249
21250 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21251
212522007-09-29 Richard Stallman <rms@gnu.org>
21253
21254 * eval.c (internal_condition_case_2, internal_condition_case_1)
21255 (internal_condition_case): Reenable abort if x_catching_errors ()
21256 to see if that really happens and why.
21257
212582007-10-06 Andreas Schwab <schwab@suse.de>
21259
21260 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21261
212622007-10-04 Juanma Barranquero <lekktu@gmail.com>
21263
21264 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21265
212662007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21267
21268 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21269
212702007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21271
21272 * window.h (struct window):
21273 * window.c (struct save_window_data, struct saved_window):
21274 * termhooks.h (struct terminal):
21275 * process.h (struct Lisp_Process):
21276 * frame.h (struct frame):
21277 * buffer.h (struct buffer):
21278 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21279 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21280 The size field of (pseudo)vectors is now unsigned.
21281 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21282
21283 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21284 Turn `count' into an integer.
21285
21286 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21287 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21288 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21289 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21290 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21291
21292 * alloc.c (allocate_pseudovector): New fun.
21293 (ALLOCATE_PSEUDOVECTOR): New macro.
21294 (allocate_window, allocate_terminal, allocate_frame)
21295 (allocate_process): Use it.
21296 (mark_vectorlike): New function.
21297 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21298 (mark_terminals): Use it.
21299 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21300 (Fmake_byte_code): Use XSETPVECTYPE.
21301
21302 * frame.c (Fframe_parameters): Minor simplification.
21303
21304 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21305
21306 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21307
21308 * buffer.c (Fget_buffer_create, init_buffer_once):
21309 * lread.c (defsubr):
21310 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21311
21312 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21313 defined differently in the m/*.h files.
21314 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21315 (XSETPVECTYPE): New macro.
21316 (XSETPSEUDOVECTOR): Use it.
21317
21318 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21319 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21320
21321 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21322 * lread.c (defvar_per_buffer):
21323 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21324
21325 * window.c (candidate_window_p): Only consider as visible frames that
21326 are on the same terminal.
21327
21328 * m/ibms390x.h (MARKBIT): Remove unused macro.
21329
213302007-10-01 Juanma Barranquero <lekktu@gmail.com>
21331
21332 * lread.c (Fload): Fix typo in docstring.
21333
213342007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21335
21336 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21337 of a non-zero value can't yield zero.
21338
213392007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21340
21341 * term.c (term_clear_mouse_face, term_mouse_highlight)
21342 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21343
21344 * print.c (safe_debug_print): Use XHASH.
21345
21346 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21347 Lisp elements such as tags.
21348 (XHASH): New macro.
21349 (EQ): Use it.
21350 (SREF, SSET, STRING_COPYIN): Use SDATA.
21351 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21352
21353 * alloc.c (mark_terminal): Remove left-over declaration.
21354 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21355 (allocate_vectorlike): Remove type argument. Adjust callers.
21356 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21357 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21358
21359 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21360 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21361 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21362 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21363 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21364 Use them.
21365
21366 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21367 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21368 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21369
213702007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21371
21372 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21373 loaded by default.
21374
213752007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21376
21377 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21378 on this tty.
21379 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21380
21381 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21382 Update all users.
21383 (handle_one_term_event): Use Gpm_DrawPointer.
21384 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21385 Signal errors instead of returning nil. Always return nil.
21386 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21387 Make it a noop if gpm-mouse was not activated.
21388 (syms_of_term): Update names.
21389
213902007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21391
21392 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21393 (init_sys_modes): Check that gpm_tty is the current tty.
21394
21395 * alloc.c (allocate_terminal): Set the vector size to only count the
21396 lisp fields. Initialize those to nil.
21397 (mark_object): Don't treat terminals specially.
21398 (mark_terminal): Remove.
21399 (mark_terminals): Use mark_object instead.
21400
21401 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21402 the GC to the beginning.
21403
21404 * indent.h:
21405 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21406
21407 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21408
214092007-09-25 Jason Rumney <jasonr@gnu.org>
21410
21411 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21412
21413 * w32console.c (create_w32cons_output): Remove.
21414
21415 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21416
21417 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21418 (reset_sys_modes): Use reset_terminal_modes_hook.
21419
214202007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21421
21422 * eval.c (do_autoload): Don't output any message.
21423
214242007-09-24 Juri Linkov <juri@jurta.org>
21425
21426 * emacs.c (standard_args): Change priority of "--no-splash"
21427 from 40 to 3. Add "--no-desktop" with the same priority.
21428
214292007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21430
21431 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21432 and optimize the case where they are all 1.
21433
214342007-09-23 Johannes Weiner <hannes@saeurebad.de>
21435
21436 * lisp.h (abs): Define if not defined.
21437 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21438 Don't define `abs', since it's defined in lisp.h.
21439
214402007-09-22 Eli Zaretskii <eliz@gnu.org>
21441
21442 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21443 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21444 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21445 (init_tty): Use DEV_TTY instead of "/dev/tty".
21446 [WINDOWSNT]: No need to protect from NAME arg being null.
21447
214482007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21449
21450 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21451 up the tty state.
21452
214532007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21454
21455 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21456 (gpm_tty): Change its type.
21457 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21458 (gpm_tty): Change its type and initialize it.
21459 (Fterm_open_connection): Check the frame is indeed a tty.
21460 Use the new gpm_tty.
21461 (Fterm_close_connection): Use the new gpm_tty.
21462 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21463 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21464
214652007-09-21 Juanma Barranquero <lekktu@gmail.com>
21466
21467 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21468 underline_color, to draw strike-through.
21469
214702007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21471
21472 * lisp.h (allocate_terminal): Declare.
21473
21474 * window.c (candidate_window_p): Consider frames that are being placed
21475 by the user as somewhere between visible and iconified.
21476 (window_loop): Prefer windows on the current frame.
21477 (Fselect_window): Move the use of select-frame to the beginning so we
21478 can just delegate all the work (it'll call us back anyway).
21479
21480 * frame.c (Qdisplay_environment_variable):
21481 * frame.h (Qdisplay_environment_variable): Delete.
21482
21483 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21484 of the first arg, since that value may be a union.
21485
21486 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21487 parameter rather than Qdisplay_environment_variable. If all else
21488 fails, look for DISPLAY in initial-environment.
21489
214902007-09-21 Glenn Morris <rgm@gnu.org>
21491
21492 * Makefile.in (emacstool): Remove target.
21493 (lisp, shortlisp): Remove termdev.elc.
21494
214952007-09-21 Markus Triska <markus.triska@gmx.at>
21496
21497 * xterm.c (x_delete_display): Compile session management conditionally.
21498
214992007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21500
21501 * callproc.c (getenv_internal_1): New function.
21502 (getenv_internal): Use it.
21503 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21504
21505 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21506 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21507 (Fset_terminal_parameter): Work with dead terminals as well.
21508 (Fmodify_terminal_parameters): Remove.
21509
21510 * terminal.c (get_terminal): Handle terminals.
21511 Make sure the terminal returned is live.
21512 (create_terminal): Use allocate_terminal.
21513 (mark_terminals): Move to alloc.c.
21514 (delete_terminal): Use terminal->name as liveness status.
21515 NULL out fields after freeing their contents.
21516 Don't deallocate the object.
21517 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21518 rather than an int.
21519 (Fterminal_live_p): Accept non-integer arguments.
21520 (Fterminal_list): Return terminal objects rather than an ints.
21521
21522 * alloc.c (enum mem_type): New member for `terminal' objects.
21523 (allocate_terminal): New function.
21524 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21525 Handle terminals.
21526 (mark_terminal): New fun.
21527 (mark_terminals): Move from terminal.c.
21528
21529 * term.c (get_tty_terminal): Don't treat output_initial specially.
21530 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21531 (delete_tty): Use terminal->name as liveness status.
21532
21533 * termhooks.h (struct terminal): Make it into a pseudovector.
21534 Remove `deleted' replaced by checking `name's nullness.
21535
21536 * print.c (print_object): Handle terminals.
21537
21538 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21539 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21540
21541 * frame.c (make_terminal_frame):
21542 * keyboard.c (tty_read_avail_input):
21543 * w32term.c (x_delete_terminal):
21544 * xfns.c (Fx_create_frame, x_create_tip_frame):
21545 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21546
215472007-09-20 Glenn Morris <rgm@gnu.org>
21548
21549 * process.c (Fmake_network_process): Doc fix.
21550
215512007-09-19 Jason Rumney <jasonr@gnu.org>
21552
21553 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21554
215552007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21556
21557 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21558 Fix a C warning regarding variable constness.
21559
21560 * xterm.c (handle_one_xevent): Fix a C warning.
21561
215622007-09-18 Jason Rumney <jasonr@gnu.org>
21563
21564 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21565
215662007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21567
21568 * gtkutil.c (gdpy_def): New variable.
21569 (xg_initialize): Initialize gdpy_def.
21570 (xg_display_close): If no other display exists, set gdpy_def to a
21571 new connection.
21572
215732007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21574
21575 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21576 when we have no file name for the icon.
21577 (xg_tool_bar_expose_callback): Remove.
21578 (xg_create_tool_bar): Don't connect expose signal to
21579 xg_tool_bar_expose_callback.
21580 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21581
215822007-09-16 Andreas Schwab <schwab@suse.de>
21583
21584 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21585 values instead of zapping them.
21586
215872007-09-14 Glenn Morris <rgm@gnu.org>
21588
21589 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21590 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21591 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21592 scope and rename to omfib_buffer for clarity.
21593 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21594
215952007-09-14 Kenichi Handa <handa@m17n.org>
21596
21597 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21598
215992007-09-13 Jason Rumney <jasonr@gnu.org>
21600
21601 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21602
21603 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21604
21605 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21606 (mac_term_init): Call here instead, passing rif.
21607
216082007-09-13 Glenn Morris <rgm@gnu.org>
21609
21610 * s/hpux.h: No longer define `static' as nothing.
21611
216122007-09-13 Johan Bockgård <bojohan@gnu.org>
21613
21614 * callint.c (Fcall_interactively): Remove unused var `fun'.
21615
216162007-09-12 Romain Francoise <romain@orebokech.com>
21617
21618 * window.c (prefer_window_split_horizontally, display_buffer):
21619 Revert 2007-09-08 change.
21620
216212007-09-12 Glenn Morris <rgm@gnu.org>
21622
21623 * alloca.c: Remove file.
21624 * Makefile.in (alloca): Do not undef.
21625 (allocaobj, alloca.o): Remove.
21626 (otherobj): Remove allocaobj.
21627 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21628 * regex.c (C_ALLOCA): Remove all references and code that was only
21629 used when this was defined.
21630 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21631 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21632 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21633
21634 * Makefile.in (SOURCES, unlock, relock): Delete.
21635
21636 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21637 (menu_grab_callback): All uses changed.
21638
21639 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21640 (x_reply_selection_request): All uses changed.
21641
216422007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21643
21644 * lread.c (load_warn_old_style_backquotes): Change message to look
21645 better when it appears in the middle of byte-compiler messages.
21646
216472007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21648
21649 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21650
21651 * xterm.c (x_create_terminal): Add comment.
21652
21653 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21654
216552007-09-10 Richard Stallman <rms@gnu.org>
21656
21657 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21658
216592007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21660
21661 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21662 (DEFUN): Document `intspec', use it instead of `prompt'.
21663
21664 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21665
21666 * data.c (Finteractive_form): If the interactive specification starts
21667 with a `(', use it as a Lisp form.
21668
21669 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21670 name and file modes.
21671
21672 * callint.c (Fcall_interactively): Comment fixes.
21673
216742007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21675
21676 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21677 and compiled functions.
21678
216792007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21680
21681 * window.c (prefer_window_split_horizontally): New variable.
21682 (display_buffer): Consider splitting window horizontally depending
21683 on prefer_window_split_horizontally.
21684
216852007-09-08 Eli Zaretskii <eliz@gnu.org>
21686
21687 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21688
216892007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21690
21691 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21692
21693 * frame.c (x_set_frame_parameters): Check number is positive before
21694 using XFASTINT.
21695
21696 * window.c (freeze_window_start): Don't presume selected_window holds
21697 a window object.
21698 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21699
217002007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21701
21702 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21703
217042007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21705
21706 * window.c (Vsplit_window_preferred_function): New var.
21707 (Fdisplay_buffer): Use it.
21708 (syms_of_window): Export, and initialize it.
21709
217102007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21711
21712 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21713
217142007-09-06 Glenn Morris <rgm@gnu.org>
21715
21716 * gtkutil.c (menu_grab_callback) <cnt>:
21717 * xselect.c (x_reply_selection_request) <cnt>: Move static
21718 variable to file scope.
21719
217202007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21721
21722 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21723 consistent values of selected_frame and selected_window.
21724
217252007-09-04 Jason Rumney <jasonr@gnu.org>
21726
21727 * w32console.c (initialize_w32_display): Zero unused hooks.
21728
217292007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21730
21731 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21732 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21733
217342007-09-04 Jason Rumney <jasonr@gnu.org>
21735
21736 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21737 in w32console.c. Set up input. Remove XXX comments that have been
21738 confirmed as correct.
21739
21740 * s/ms-w32.h (MULTI_KBOARD): Define.
21741
21742 * w32console.c (one_and_only_w32cons): Remove.
21743 (initialize_w32_display): Take terminal argument.
21744
21745 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21746 initialize_w32_display.
21747 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21748
21749 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21750
21751 * keyboard.c (discard_mouse_events): Discard it.
21752 (make_lispy_event): Translate it to a lisp event.
21753 (lispy_wheel_names): Add wheel-left and right events.
21754 (syms_of_keyboard): Enlarge wheel_syms.
21755
21756 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21757 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21758
21759 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21760
21761 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21762 from WM_MOUSEHWHEEL.
21763 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21764
21765 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21766 terminal.
21767
21768 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21769 keyboard for the terminal.
21770
217712007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21772
21773 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21774 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21775 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21776 and resume-tty-function to resume-tty-hook.
21777 (Fsuspend_tty, Fresume_tty): Use new names.
21778
217792007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21780
21781 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21782 if it starts with "n:".
21783
217842007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21785
21786 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21787
217882007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21789
21790 * frame.h:
21791 * frame.c (Qterm_environment_variable): Remove.
21792 (syms_of_frame): Don't init and staticpro it.
21793
21794 * callproc.c (getenv_internal): Remove special case for $TERM.
21795
21796 * callproc.c (Vinitial_environment): New variable.
21797 (set_initial_environment): Initialize it.
21798 (syms_of_callproc): Declare it.
21799 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21800 TERM under which a process runs is never related to the TERM in which
21801 Emacs is running.
21802
218032007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21804
21805 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21806 * s/darwin.h: ... do it here.
21807
218082007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21809
21810 * lisp.h (set_initial_environment): Rename from set_global_environment.
21811
21812 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21813 removed by mistake on the multi-tty branch.
21814
21815 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21816 (Fmodify_frame_parameters): Return a value.
21817
21818 * image.c (png_load): Comment-out var only used in commented-out code.
21819
21820 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21821 before passing it to mark_object.
21822
21823 * xfaces.c (internal_resolve_face_name): Return a value.
21824 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21825
21826 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21827 (x_icon): Comment-out var only used in commented-out code.
21828
218292007-08-29 Romain Francoise <romain@orebokech.com>
21830
21831 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21832 QUIT hasn't been provided.
21833
218342007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21835
21836 * callproc.c (child_setup, getenv_internal): Use the
21837 display-environment-variable and term-environment-variable frame params.
21838 (set_initial_environment): Initialise Vprocess_environment.
21839
21840 * config.in: Disable multi-keyboard support on a mac.
21841
21842 * frame.c (Qterm_environment_variable)
21843 (Qdisplay_environment_variable): New variables.
21844 (syms_of_frame): Intern and staticpro them.
21845 (Fmake_terminal_frame): Disable output method test.
21846
21847 * frame.h: Declare them here.
21848
21849 * macfns.c (x_set_mouse_color): Get rif from the frame.
21850 (x_set_tool_bar_lines): Don't use updating_frame.
21851 (mac_window): Add 2 new parameters for consistency with other systems.
21852 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21853 frame parameters following what is done in X11 and w32. Don't use
21854 FRAME_MAC_DISPLAY_INFO.
21855 (Fx_open_connection, start_hourglass): Remove window-system check.
21856 (x_create_tip_frame): Get the keyboard from the terminal.
21857
21858 * macmenu.c: Reorder includes.
21859 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21860
21861 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21862 terminal parameter.
21863 (x_clear_frame): Add a frame parameter.
21864 (note_mouse_movement): Get rif from the frame.
21865 (mac_term_init): Initialize the terminal.
21866 (mac_initialize): Make static and move terminal initialization ...
21867 (mac_create_terminal): ... to this new function.
21868
21869 * macterm.h (struct mac_display_info): Add terminal.
21870 (mac_initialize): Delete declaration.
21871
21872 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21873
21874 * sysdep.c: Comment out text after #endif.
21875
21876 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21877 is defined. Better initialize ttys in windows. Use terminal
21878 specific mouse_position_hook.
21879
21880 * termhooks.h (union display_info): Add mac_display_info.
21881
21882 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21883 Set the default minibuffer frame, window_system and the rest of the
21884 frame parameters following what is done in X11.
21885
21886 * w32term.c (w32_initialize): Make static.
21887
21888 * xselect.c (x_handle_selection_clear): Only access
21889 terminal->kboard when MULTI_KBOARD is defined.
21890
21891 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21892 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21893
218942007-08-29 Jason Rumney <jasonr@gnu.org>
21895
21896 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21897 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21898
21899 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21900 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21901
21902 * keyboard.c (restore_kboard_configuration): Only define when
21903 MULTI_KBOARD defined.
21904
21905 * makefile.w32-in: Update dependancies from Makefile.in.
21906 (OBJ1): Add terminal.$(O)
21907
21908 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21909 Don't define function body.
21910 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21911
21912 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21913
21914 * w32.c (request_sigio, unrequest_sigio): Remove.
21915
21916 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21917 (w32con_clear_frame, w32con_clear_end_of_line)
21918 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21919 (w32con_delete_glyphs, w32con_set_terminal_window)
21920 (scroll_line, w32_sys_ring_bell): Add frame arg.
21921 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21922 Add terminal arg.
21923 (PICK_FRAME): Remove.
21924 (w32con_write_glyphs): Use frame specific terminal coding.
21925 (one_and_only_w32cons): New global variable.
21926 (initialize_w32_display): Use it for storing hooks.
21927 (create_w32cons_output): New function.
21928
21929 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21930 arg a frame.
21931
21932 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21933 Set window_system.
21934 (x_set_tool_bar_lines): Don't use updating_frame.
21935 (Fx_create_frame): Set terminal and ref count.
21936 (Fx_open_connection): Remove window-system check.
21937
21938 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21939
21940 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21941 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21942 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21943 Add frame arg.
21944 (x_delete_terminal, w32_create_terminal): New functions.
21945 (w32_term_init): Create a terminal.
21946 (w32_initialize): Move terminal specific initialization to
21947 w32_create_terminal.
21948
21949 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21950 (w32_clear_rect, w32_clear_area): Use background from frame.
21951 (w32_display_info): Add terminal.
21952 (w32_sys_ring_bell, x_delete_display): Declare here.
21953
21954 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21955
21956 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21957
219582007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21959
21960 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21961 Fix get_named_tty calls for the controlling tty.
21962
219632007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21964
194d44e7 21965 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21966
219672007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21968
21969 * term.c (tty_insert_glyphs): Add missing first parameter.
21970
219712007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21972
21973 * buffer.c (Fbuffer_list, Fbury_buffer):
21974 Take frame->buried_buffer_list into account.
21975
21976 * cm.c (current_tty): New variable, for cmputc().
21977 (cmputc): Use it.
21978 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21979 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21980 (cmgoto): Add tty parameter. Pass it on to calccost().
21981 Use emacs_tputs() instead of tputs().
21982
21983 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21984 tputs().
21985 (current_tty): New variable, for cmputc().
21986 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21987
21988 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21989 (internal_condition_case, internal_condition_case_1)
21990 (internal_condition_case_2): Don't abort when x_catching_errors.
21991
21992 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21993 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21994 prevent crashes caused by bogus longjmps in read_char.
21995
21996 * keymap.h (Fset_keymap_parent): Add EXFUN.
21997
21998 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21999 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22000 Remove redundant definition.
22001
22002 * macfns.c (x_set_mouse_color, x_make_gc):
22003 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22004
22005 * w32term.c (x_free_frame_resources):
22006 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22007 (w32_initialize): Use the accessor macros for terminal characteristics.
22008
22009 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22010 Use the accessor macros for terminal characteristics.
22011 * msdos.c (internal_terminal_init): Use the accessor macros for
22012 terminal characteristics.
22013 (ScreenVisualBell, internal_terminal_init):
22014 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22015
22016 * termopts.h (no_redraw_on_reenter): Declare.
22017
22018 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22019 (mark_terminals, mark_ttys): Declare.
22020 (Fgarbage_collect): Call them.
22021 (mark_object): Mark buried_buffer_list.
22022
22023 * prefix-args.c: Include stdlib.h for exit.
22024
22025 * syssignal.h: Add comment.
22026
22027 * indent.c: Include stdio.h.
22028
22029 * window.h (Vinitial_window_system): Declare.
22030 (Vwindow_system): Delete declaration.
22031
22032 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22033
22034 * image.c (lookup_image): Don't initialize `c' until the xasserts
22035 have been run.
22036
22037 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22038 FRAME_FOREGROUND_PIXEL.
22039
22040 * print.c (print_preprocess): Don't lose print_depth levels while
22041 iterating.
22042
22043 * widget.c (update_from_various_frame_slots):
22044 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22045
22046 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22047 frames.
22048 (window_internal_height): Remove bogus make_number call.
22049 (init_window_once): Call make_terminal_frame with two zero parameters.
22050
22051 * fileio.c (Fread_file_name): Update comment.
22052
22053 * callint.c (Fcall_interactively):
22054 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22055 Make sure it is correctly unwound.
22056
22057 * xsmfns.c (x_session_close): New function.
22058
22059 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22060 Delete declarations.
22061
22062 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22063 (x_output): Remove background_pixel and foreground_pixel fields.
22064 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22065 (x_delete_device, x_session_close): Declare.
22066
22067 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22068 (read_filtered_event): Call `read_char' with a local
22069 `wrong_kboard_jmpbuf'.
22070
22071 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22072 Don't call single_kboard_state. Use FRAME_RIF.
22073
22074 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22075 systems.
22076
22077 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22078 (Fframe_with_environment, Fset_input_meta_mode)
22079 (Fset_quit_char): EXFUN.
22080 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22081 (init_sys_modes, reset_sys_modes): Update prototypes.
22082 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22083
22084 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22085 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22086 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22087 Delete declarations.
22088 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22089 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22090 New declarations.
22091
22092 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22093 already does that during init_display(). Call syms_of_keymap
22094 before syms_of_keyboard. Call `syms_of_terminal'.
22095 Call set_initial_environment, not set_process_environment.
22096 (shut_down_emacs): Call reset_all_sys_modes() instead of
22097 reset_sys_modes().
22098
22099 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22100 (internal_resolve_face_name, resolve_face_name_error): New functions.
22101 (resolve_face_name): Protect against loops and errors thrown by Fget.
22102 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22103 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22104
22105 * scroll.c: Replace CURTTY() with local variables throughout the
22106 file (where applicable).
22107 (calculate_scrolling, calculate_direct_scrolling)
22108 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22109 characteristics.
22110
22111 * keymap.c (Vfunction_key_map): Remove.
22112 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22113 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22114 (Vkey_translation_map): Remove.
22115 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22116 (Fdescribe_buffer_bindings)
22117 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22118 Update for terminal-local key-translation-map.
22119
22120 * Makefile.in (callproc.o): Update dependencies.
22121 (lisp, shortlisp): Add termdev.elc.
22122 (obj): Add terminal.o.
22123 (terminal.o): Add dependencies.
22124 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22125 (data.o, fns.o): Add termhooks.h dependency.
22126 (SOME_MACHINE_LISP): Add dnd.elc.
22127 (minibuf.o): Fix typo.
22128 Update dependencies.
22129
22130 * data.c (do_symval_forwarding, store_symval_forwarding)
22131 (find_symbol_value): Use the selected frame's keyboard, not
22132 current_kboard.
22133
22134 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22135 Vwindow_system.
22136
22137 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22138 Fmenu_bar_open.
22139 (syms_of_xmenu): Update defsubr.
22140 (mouse_position_for_popup, Fx_popup_menu)
22141 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22142 (set_frame_menubar, free_frame_menubar)
b97439ce 22143 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22144 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22145 an X frame.
22146
22147 * xselect.c (x_own_selection): Abort if not an X frame.
22148 (some_frame_on_display): Check if it is an X frame.
22149 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22150
22151 * coding.c: Include frame.h and termhooks.h.
22152 (terminal_coding, keyboard_coding): Delete.
22153 (Fset_terminal_coding_system_internal)
22154 (Fset_keyboard_coding_system_internal)
22155 (Fkeyboard_coding_system)
22156 (Fterminal_coding_system): Add a terminal parameter.
22157 Get terminal_coding from the terminal.
22158 (init_coding_once): Don't call setup_coding_system here.
22159
22160 * dispextern.h (set_scroll_region, turn_off_insert)
22161 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22162 (tty_clear_end_of_line, tty_setup_colors)
22163 (delete_tty, updating_frame)
22164 (produce_special_glyphs, produce_glyphs, write_glyphs)
22165 (insert_glyphs): Remove.
22166 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22167 (tty_turn_off_highlight, get_tty_size): Add declaration.
22168 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22169
22170 * frame.h (enum output_method): Add output_initial.
22171 (struct x_output): Delete.
22172 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22173 Access foreground_pixel and background_pixel directly from the frame.
22174 (tty_display): Delete.
22175 (struct frame): Add buried_buffer_list, foreground_pixel,
22176 background_pixel and terminal. Delete kboard.
22177 (union output_data): Add tty.
22178 (FRAME_KBOARD): Get the kboard from the terminal.
22179 (FRAME_INITIAL_P): New macro.
22180 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22181 (Qterm_environment_variable, Qdisplay_environment_variable)
22182 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22183 New declarations.
22184
22185 * termchar.h (tty_output, tty_display_info): New structures.
22186 (tty_list): Declare.
22187 (FRAME_TTY, CURTTY): New macros.
22188 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22189 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22190 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22191 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22192
22193 * callproc.c: Include frame.h and termhooks.h, for terminal
22194 parameters.
22195 (add_env): New function.
22196 (child_setup): Use it.
22197 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22198 (getenv_internal): Fix get_terminal_param call.
22199 (Fgetenv_internal, egetenv): Update doc.
22200 (syms_of_callproc): Initialize Vprocess_environment to nil.
22201 Register and initialize them. Remove obsolete defvars. Update doc
22202 strings.
22203 (child_setup): Handle Vlocal_environment_variables.
22204 (getenv_internal): Add terminal parameter.
22205 Handle Vlocal_environment_variables.
22206 (Fgetenv_internal): Add terminal parameter.
22207 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22208 environment in a frame (not terminal) parameter. Update doc strings.
22209 (set_initial_environment): Rename from set_global_environment.
22210 Store Emacs environment in initial frame parameter.
22211
22212 * xdisp.c (redisplay_internal): Update references to
22213 `previous_terminal_frame'.
22214 (display_mode_line, Fformat_mode_line): Replace calls to
22215 `push_frame_kboard' with `push_kboard'.
22216 (get_glyph_string_clip_rects): Add extra parentheses and
22217 braces to prevent compiler warnings.
22218 (calc_pixel_width_or_height): Add xassert to check that the
22219 frame is alive. Don't call `lookup_image' on a termcap frame.
22220 (message2_nolog, message3_nolog, redisplay_internal)
22221 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22222 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22223 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22224 (Fx_display_pixel_width, Fx_display_pixel_height)
22225 (Fx_display_planes, Fx_display_color_cells)
22226 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22227 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22228 (Fx_display_backing_store, Fx_display_visual_class)
22229 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22230 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22231
22232 * xfns.c (x_set_foreground_color x_set_background_color)
22233 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22234 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22235 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22236 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22237 terminal that is being deleted.
22238 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22239 frame parameter, and make sure it overrides any user-supplied setting.
22240 (Fx_close_connection, Fx_synchronize): Unify argument names with
22241 the rest of the DEFUNs.
22242
22243 * dispnew.c (Fsend_string_to_terminal): Update call to
22244 `get_tty_terminal'.
22245 (Fredraw_frame, Fsend_string_to_terminal)
22246 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22247 FRAME_TERMCAP_P and FRAME_TTY.
22248 (window_change_signal): Don't believe width/height values that are
22249 impossibly small.
22250 (Vinitial_window_system): Rename from Vwindow_system.
22251 (termscript, Wcm, rif): Delete.
22252
22253 * termhooks.h (struct terminal): New struct containing the
22254 previously global text display hooks and new members NAME,
22255 DELETED and PARAM_ALIST.
22256 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22257 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22258 (FRAME_RIF): New macros.
22259 (get_terminal_param, get_device): New declarations.
22260 (termscript): Delete declaration.
22261
22262 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22263 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22264 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22265 FRAME_FOREGROUND_PIXEL.
22266 (x_fully_uncatch_errors): Disable definition.
22267 (x_scroll_bar_expose): Fix reference to foreground pixel.
22268 (XTread_socket): Disable loop on all X displays.
22269 (x_delete_terminal): Don't set terminal->deleted and let
22270 delete_terminal delete the frames on the terminal.
22271 (x_delete_display): Doc update to reflect changes in
22272 delete_terminal.
22273 (x_display_info) <terminal>: Move member earlier in the struct.
22274 (deleting_tty): Remove old variable.
22275 (Fsuspend_tty): Call clear_tty_hooks.
22276 (Fresume_tty, init_tty): Call set_tty_hooks.
22277 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22278 errors on X frames.
22279 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22280 (handle_one_xevent): Initialize `f' to NULL.
22281 (x_delete_terminal, x_create_terminal): New functions.
22282 (XTset_terminal_modes, XTreset_terminal_modes)
22283 (XTread_socket, x_connection_closed, x_term_init)
22284 (x_term_init, x_delete_display): Add terminal parameter.
22285 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22286 X connections.
22287
22288 * frame.c: Include termchar.h.
22289 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22290 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22291 (Qdisplay_environment_variable): New vars.
22292 (Fframep): Deal with output_initial.
22293 (Fframe-live-p): Doc fix.
22294 (Fwindow-system): New function.
22295 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22296 (make_terminal_frame): Don't create frames on a terminal that is
22297 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22298 (store_frame_param): Check for found_for_frame before calling XFRAME.
22299 (Fmake_terminal_frame): Handle NULL tty names correctly.
22300 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22301 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22302 frames to refer to a deleted frame in their 'environment parameter.
22303 (Fframe_with_environment): New function.
22304 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22305 (get_future_frame_param): New function.
22306 (Fmake_terminal_frame): Use it.
22307 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22308
22309 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22310 * sysdep.c (reset_sys_modes): Update for renames.
22311
22312 * keyboard.c (tty_read_avail_input): New function.
22313 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22314 (syms_of_keyboard): Defsubr them.
22315 (Fset_input_meta_mode, Fset_quit_char): New functions.
22316 (Fset_input_mode): Split to above functions.
22317 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22318 parameter. Use it in call to `read_char'.
22319 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22320 Set wrong_kboard_jmpbuf correctly in recursive calls.
22321 Use current_kboard to access Vkeyboard_translate_table.
22322 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22323 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22324 Update longjmp invocations. Remember the original current_kboard,
22325 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22326 changes it. Comment out unnecessary calls to
22327 `record_single_kboard_state' and `any_kboard_state'.
22328 Update recursive calls.
22329 (wrong_kboard_jmpbuf): Remove global variable.
22330 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22331 Handle deleted interrupted_kboards correctly; that is a legal
22332 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22333 and read_char calls. Abort if interrupted_kboard died in read_char.
22334 (any_kboard_state, single_kboard_state)
22335 (push_frame_kboard): Remove function.
22336 (pop_kboard): Switch out of single_kboard mode if the kboard has
22337 been deleted. Remove unused variable. Help debugging by not
22338 changing current_kboard unnecessarily. Set current_kboard to the
22339 kboard of the selected frame when the stored kboard object has
22340 been deleted before pop_kboard.
22341 (temporarily_switch_to_single_kboard): Change first parameter to a
22342 frame pointer. Throw an error when caller wants to change kboards
22343 while in single_kboard mode. Don't push_kboard if we weren't in
22344 single kboard state. Don't pop_kboard if we popped into any
22345 kboard state.
22346 (restore_kboard_configuration): Abort if pop_kboard changed the
22347 kboard in single_kboard mode. Call pop_kboard only after setting
22348 up single_kboard mode.
22349 (Frecursive_edit): Switch to single_kboard mode only in nested
22350 command loops.
22351 (cmd_error, command_loop, command_loop_1, timer_check):
22352 Comment out unnecessary call to `any_kboard_state' and
22353 `record_single_kboard_state'.
22354 (delete_kboard): Exit single_kboard mode if we have just deleted
22355 that kboard. Use FRAME_KBOARD.
22356 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22357 `fatal_error_signal'.
22358 (record_single_kboard_state): Don't push_kboard if we weren't in
22359 single kboard state. Don't pop_kboard if we popped into any
22360 kboard state.
22361 (push_frame_kboard): Rename to push_kboard.
22362 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22363 (read_avail_input): Read input from all terminals.
22364 (mark_kboards): Also mark Vkeyboard_translate_table.
22365 (kbd_buffer_store_event_hold): Simplify condition.
22366 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22367 (Vkeyboard_translate_table): Move to struct kboard.
22368 (init_kboard): Initialize Vkeyboard_translate_table.
22369 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22370 Vkeyboard_translate_table. Update doc strings. Update docs of
22371 local-function-key-map and function-key-map.
22372
22373 * terminal.c: New file.
22374
22375 * term.c: Include errno.h.
22376 (Vring_bell_function, device_list, initial_device)
22377 (next_device_id, ring_bell, update_begin, update_end)
22378 (set_terminal_window, cursor_to, raw_cursor_to)
22379 (clear_to_end, clear_frame, clear_end_of_line)
22380 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22381 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22382 (syms_of_term): Move their initialization to terminal.c.
22383 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22384 (Ftty_display_color_cells)
22385 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22386 (clear_tty_hooks, set_tty_hooks)
22387 (init_tty, maybe_fatal): New functions.
22388 (Ftty_type): Return nil if terminal is not on a tty instead of
22389 throwing an error. Doc update.
22390 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22391 Doc update. Initialize new subrs and variables.
22392 (delete_tty): Use terminal->deleted.
22393 (tty_set_terminal_modes): Rename from set_terminal_modes.
22394 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22395 (set_scroll_region): Rename to `tty_set_scroll_region'.
22396 (turn_on_insert): Rename to `tty_turn_on_insert'.
22397 (turn_off_insert): Rename to `tty_turn_off_insert'.
22398 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22399 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22400 (toggle_highligh): Rename to `tty_toggle_highlight'.
22401 (background_highlight): Rename to `tty_background_highlight'.
22402 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22403 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22404 (tty_set_scroll_region, tty_background_highlight)
22405 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22406 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22407 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22408 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22409 Add static modifier.
22410 (tty_reset_terminal_modes, tty_set_terminal_window)
22411 (tty_set_scroll_region, tty_background_highlight)
22412 (tty_highlight_if_desired, tty_cursor_to)
22413 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22414 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22415 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22416 renames.
22417
224182007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22419
22420 * keyboard.c: Qrtl is new.
22421 (parse_tool_bar_item): Handle :rtl keyword.
22422 (syms_of_keyboard): Intern :rtl keyword.
22423
22424 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22425
22426 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22427 so no Lisp code is executed.
22428 (file_for_image, find_rtl_image): New functions.
22429 (xg_get_image_for_pixmap): Use file_for_image.
22430 (update_frame_tool_bar): If direction is RTL, use RTL image if
22431 defined. Use Gtk stock images if defined.
22432
224332007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22434
22435 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22436 for nonexistent or zero-width glyph in composition glyph.
22437
224382007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22439
22440 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22441
22442 * xdisp.c (Finvisible_p): New function.
22443 (syms_of_xdisp): defsubr it.
22444
224452007-08-24 Juanma Barranquero <lekktu@gmail.com>
22446
22447 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22448 Doc fixes.
22449
224502007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22451
22452 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22453
224542007-08-24 Martin Rudalics <rudalics@gmx.at>
22455
22456 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22457 whether decoding has modified buffer contents.
22458
224592007-08-24 Jason Rumney <jasonr@gnu.org>
22460
22461 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22462 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22463 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22464 (init_svg_functions) [HAVE_NTGUI]: New function.
22465 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22466 (svg_load_image): Use them.
22467 (svg_load_image) [HAVE_NTGUI]: Implement background.
22468
224692007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22470
22471 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22472 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22473 (LIBX): Remove @RSVG_LIBS@.
22474 (LIBES): Add $(RSVG_LIBS).
22475
22476 * image.c (svg_load_image): Blend with specified background if exists.
22477 Use IMAGE_BACKGROUND. Add Mac OS Support.
22478
22479 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22480 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22481 Remove macros.
22482 [MAC_OSX] (socket_callback): Do nothing.
22483 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22484 ReceiveNextEvent.
22485 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22486 socket_callback.
22487 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22488
224892007-08-22 Glenn Morris <rgm@gnu.org>
22490
22491 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22492
224932007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22494
22495 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22496
22497 * image.c: Add support for SVG images. Some additional comments
22498 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22499 (svg_image_p): New function to test for SVG image.
22500 (svg_load): New function to load SVG image.
22501 (svg_load_image): New function, helper for svg_load.
22502 (Qsvg): New Lisp_object.
22503 (svg_keyword_index): New enum.
22504 (svg_format): New static `image_keyword' struct.
22505 (svg_type): New static `image_type' struct.
22506 (librsvg/rsvg.h): Include it.
22507
225082007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22509
22510 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22511
225122007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22513
22514 * lread.c (Qold_style_backquotes): New var.
22515 (syms_of_lread): Init and staticpro it.
22516 (load_warn_old_style_backquotes): New fun.
22517 (Fload): Use them to warn about old style backquotes.
22518 (end_of_file_error, Fload): Remove unused vars.
22519
22520 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22521
22522 * lread.c (Vold_style_backquotes): New var.
22523 (syms_of_lread): Init and export it to Elisp.
22524 (read1): Set it when we find an old-style (back)quote.
22525
225262007-08-22 Jason Rumney <jasonr@gnu.org>
22527
22528 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22529
225302007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22531
22532 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22533
225342007-08-19 Richard Stallman <rms@gnu.org>
22535
22536 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22537
225382007-08-19 Andreas Schwab <schwab@suse.de>
22539
22540 * alloc.c (pure): Round PURESIZE up.
22541
225422007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22543
22544 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22545 active frame.
22546
225472007-08-16 Richard Stallman <rms@gnu.org>
22548
22549 * eval.c (Fcommandp): Add parens to clarify.
22550
22551 * minibuf.c (Fall_completions): Use enum for type of table.
22552
22553 * emacs.c (USAGE2): Improve text.
22554
225552007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22556
22557 * term.c (tty_default_color_capabilities): Declare static
22558 variables in file scope, to avoid HPUX compiler problem.
22559
225602007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22561
22562 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22563 to gtk_toolbar_insert.
22564
225652007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22566
22567 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22568
22569 * insdel.c (reset_var_on_error): New fun.
22570 (signal_before_change, signal_after_change):
22571 Use it to reset (after|before)-change-functions to nil in case of error.
22572 Bind inhibit-modification-hooks to t.
22573 Don't bind (after|before)-change-functions to nil while they run.
22574
225752007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22576
22577 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22578 filling pixmap with stippled background.
22579
225802007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22581
22582 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22583 Don't use invisible frame as parent window for repositioning.
22584
225852007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22586
22587 * print.c (new_backquote_output): Rename from old_backquote_output.
22588 (print): Inverse its logic (according to its name) so as to match the
22589 behavior of new_backquote_flag in lread.c.
22590
225912007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22592
22593 * gmalloc.c (posix_memalign): New function.
22594
22595 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22596 ActivateControl/DeactivateControl here.
22597 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22598 frame-notice-user-settings is non-nil.
22599 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22600 for kEventParamFMFontStyle.
22601 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22602 mac_pass_command_to_system and mac_pass_control_to_system here.
22603 (XTread_socket): Call ActivateControl/DeactivateControl here.
22604 (XTread_socket) [TARGET_API_MAC_CARBON]:
22605 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22606 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22607 for window repositioning.
22608
226092007-08-08 Glenn Morris <rgm@gnu.org>
22610
22611 * Replace `iff' in doc-strings and comments.
22612
226132007-08-07 Chong Yidong <cyd@stupidchicken.com>
22614
22615 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22616
226172007-08-07 Martin Rudalics <rudalics@gmx.at>
22618
22619 * fileio.c (Finsert_file_contents): Run format-decode and
22620 after_insert_file_functions on entire buffer when REPLACE is
22621 non-nil and inhibit modification_hooks and point_motion_hooks.
22622 For consistency, run after_insert_file_functions iff something
22623 got inserted. Move signal_after_change and update_compositions
22624 after code running after_insert_file_functions. Make sure that
22625 undo_list doesn't record intermediate steps of the decoding process.
22626
226272007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22628
22629 * emacs.c (main)
22630 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22631 Call malloc_enable_thread on interactive startup.
22632
22633 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22634 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22635 [USE_PTHREAD]: Conditionalize with it.
22636 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22637 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22638 New functions.
22639
226402007-08-06 Chong Yidong <cyd@stupidchicken.com>
22641
22642 * xdisp.c (redisplay_window): When restoring original buffer
22643 position, make sure it is still valid.
22644
22645 * image.c (png_load): Ignore png-supplied background color.
22646
226472007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22648
22649 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22650 Use kCFAbsoluteTimeIntervalSince1970.
22651
22652 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22653 New variable.
22654 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22655 event loop should be quit.
22656 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22657 Quit dialog event loop if quit_dialog_event_loop is set.
22658
22659 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22660 (Selection): New typedef. Use instead of ScrapRef.
22661 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22662 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22663 (mac_clear_selection): Rename from clear_scrap.
22664 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22665 scrap_has_target_type. All uses changed.
22666 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22667 (mac_selection_has_target_p): New functions.
22668 (mac_put_selection_value): Rename from put_scrap_string.
22669 (mac_get_selection_value): Rename from get_scrap_string.
22670 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22671 (put_scrap_private_timestamp, scrap_has_target_type)
22672 (get_scrap_private_timestamp): Remove functions.
22673 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22674 (x_own_selection, x_get_local_selection):
22675 Use mac_valid_selection_value_p.
22676 (x_own_selection): Don't use put_scrap_private_timestamp.
22677 Record OWNERSHIP-INFO into Vselection_alist instead.
22678 (x_get_local_selection): Don't check type if request is local.
22679 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22680 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22681
226822007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22683
22684 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22685 add comment explaining why.
22686
226872007-08-03 Richard Stallman <rms@gnu.org>
22688
22689 * fileio.c (Fvisited_file_modtime): Use make_time.
22690
226912007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22692
22693 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22694 build.
22695
226962007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22697
22698 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22699
227002007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22701
22702 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22703
227042007-07-30 Richard Stallman <rms@gnu.org>
22705
22706 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22707
227082007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22709
22710 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22711
227122007-07-28 Nick Roberts <nickrob@snap.net.nz>
22713
22714 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22715 remote default-directory.
22716
22717 * buffer.c (mode-line-format): Update doc string.
22718
227192007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22720
22721 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22722 scroll bar gap.
22723 (x_scroll_bar_create): Set bar->fringe_extended_p.
22724 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22725 on frame edge. Check fringe background extension. Don't clear
22726 extended fringe background area.
22727
22728 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22729 (w32_fill_area): Enclose multiple statements with do ... while (0).
22730
22731 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22732 Extend fringe background to scroll bar gap.
22733 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22734 Set bar->fringe_extended_p.
22735 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22736 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22737 background extension. Don't clear extended fringe background area.
22738
22739 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22740 New member fringe_extended_p.
22741
227422007-07-25 Glenn Morris <rgm@gnu.org>
22743
22744 * Relicense all FSF files to GPLv3 or later.
22745
22746 * COPYING: Switch to GPLv3.
22747
227482007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22749
22750 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22751
22752 * data.c (Finteractive_form): Check for the presence of an
22753 `interactive-form' symbol property more thoroughly.
22754
22755 * data.c (Finteractive_form): Use an `interactive-form' property if
22756 present, analogous to the function-documentation property.
22757
227582007-07-24 Jason Rumney <jasonr@gnu.org>
22759
22760 * w32fns.c (x_real_positions): Get real position from OS instead of
22761 calculating it.
22762
227632007-07-23 Jason Rumney <jasonr@gnu.org>
22764
22765 * filelock.c (current_lock_owner): Allow for @ sign in username.
22766
227672007-07-22 Nick Roberts <nickrob@snap.net.nz>
22768
22769 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22770 remote default-directory.
22771
22772 * buffer.c (mode-line-format): Describe above case in doc string.
22773
227742007-07-20 Eli Zaretskii <eliz@gnu.org>
22775
22776 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22777 Define if not defined.
22778
227792007-07-18 Jason Rumney <jasonr@gnu.org>
22780
22781 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22782
227832007-07-18 Richard Stallman <rms@gnu.org>
22784
22785 * data.c (Fsetq_default): Doc fix.
22786
22787 * eval.c (Fsetq): Doc fix.
22788
227892007-07-18 Juanma Barranquero <lekktu@gmail.com>
22790
22791 * coding.c (Ffind_operation_coding_system):
22792 * eval.c (For, Fand): Doc fixes.
22793 Reported by Johan Bockgård.
22794
227952007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22796
22797 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22798
22799 * xterm.h: Declare x_ewmh_activate_frame.
22800
22801 * xterm.c (x_ewmh_activate_frame): New function.
22802 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22803
228042007-07-17 Martin Rudalics <rudalics@gmx.at>
22805
22806 * window.c (Fdisplay_buffer): If largest or LRU window is the
22807 only window, split it even if it is not eligible for splitting.
22808 This restores the original behavior broken by the 2007-07-15
22809 change.
22810
228112007-07-17 Glenn Morris <rgm@gnu.org>
22812
22813 * abbrev.c (abbrev_check_chars): New function.
22814 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22815 Call abbrev_check_chars to check abbrev characters are word
22816 constituents. Doc fix.
22817
228182007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22819
22820 * process.c (Fstart_process, Fmake_network_process)
22821 (read_process_output): Fix up last changes.
22822
228232007-07-16 Eli Zaretskii <eliz@gnu.org>
22824
22825 * makefile.w32-in (clean): Don't delete *~.
22826
228272007-07-16 Andreas Schwab <schwab@suse.de>
22828
22829 * window.c (Fdisplay_buffer): Use NILP.
22830 (Fset_window_scroll_bars): Likewise.
22831
228322007-07-15 Martin Rudalics <rudalics@gmx.at>
22833
22834 * window.c (window_min_size_2): New function.
22835 (window_min_size_1, size_window, Fdisplay_buffer)
22836 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22837 windows without mode- or header-lines when window-min-height is
22838 too small.
22839 (size_window): Reset nodelete_p after testing it, following an
22840 earlier note by Kim F. Storm.
22841 (display_buffer): Do not set split_height_threshold to twice the
22842 value of window_min_height to avoid changing the value of a
22843 customizable variable. Rather explicitly check whether the
22844 height of the window that shall be splitted is at least as large
22845 as split_height_threshold.
22846 (Fwindow_full_width_p): New defun.
22847 (syms_of_window): Defsubr it.
22848
22849 * window.h: Add EXFUN for Fwindow_full_width_p.
22850
228512007-07-14 Jason Rumney <jasonr@gnu.org>
22852
22853 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22854
228552007-07-14 Richard Stallman <rms@gnu.org>
22856
22857 * eval.c (maybe_call_debugger): New function.
22858 (find_handler_clause): Use maybe_call_debugger.
22859 Call it when the handler says `debug'.
22860 Eliminate DEBUGGER_VALUE_PTR.
22861 (Fsignal): Eliminate debugger_value.
22862 (Qdebug): New variable.
22863 (syms_of_eval): Initialize it.
22864
228652007-07-14 Juanma Barranquero <lekktu@gmail.com>
22866
22867 * eval.c (Fprogn):
22868 * keyboard.c (Ftrack_mouse):
22869 * print.c (Fwith_output_to_temp_buffer):
22870 * window.c (Fsave_window_excursion): Doc fix.
22871
228722007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22873
22874 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22875
228762007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22877
22878 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22879 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22880 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22881 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22882 Remove unused encoding_carryover.
22883 * process.c: Adjust all functions accordingly.
22884
228852007-07-12 Richard Stallman <rms@gnu.org>
22886
22887 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22888
228892007-07-11 Jason Rumney <jasonr@gnu.org>
22890
22891 * makefile.w32-in (LIBS): Include OLE32.
22892
22893 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22894 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22895
228962007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22897
22898 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22899 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22900 from a Lisp_Object into a bare pointer.
22901 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22902 Adjust the code correspondingly.
22903
22904 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22905
22906 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22907 (term_show_mouse_face): Remove unused var `j'.
22908 (handle_one_term_event): Remove unused vars `i' and `j'.
22909 Don't cast return value of ttyname since it's not necessary.
22910
229112007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22912
22913 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22914 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22915
22916 * fns.c (map_char_table): Use an array of int for `indices' rather than
22917 an array of Lisp_Objects (which are only ever integers anyway).
22918 (Fmap_char_table): Update caller.
22919 * lisp.h: Update prototype.
22920 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22921 * fontset.c (Ffontset_info):
22922 * casetab.c (set_case_table): Update callers.
22923
22924 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22925
22926 * keymap.c (struct accessible_keymaps_data)
22927 (struct where_is_internal_data): New structures.
22928 (accessible_keymaps_1, where_is_internal_1): Use them to change
22929 interface to adhere to the one used by map_keymap.
22930 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22931 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22932
22933 * keymap.h (map_keymap_function_t): More informative prototype.
22934
229352007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22936
22937 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22938 (looking_at_1): Don't change search_regs and last_thing_searched
22939 if `inhibit-changing-match-data' is non-nil.
22940 (string_match_1, search_buffer, set_search_regs): Likewise.
22941 (syms_of_search): Add Lisp level definition for
22942 `inhibit-changing-match-data' and set it to nil.
22943 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22944 start and end of the match, instead of using values in search_regs.
22945
229462007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22947
22948 * minibuf.c (Fcompleting_read): New value `confirm-only'
22949 for `require-match'.
22950
229512007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22952
22953 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22954 part of the 2007-06-27 change to syms_of_fileio.
22955
229562007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22957
22958 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22959 Check WINDOWP before using XWINDOW. Consolidate return statements.
22960
229612007-06-27 Richard Stallman <rms@gnu.org>
22962
22963 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22964
229652007-06-27 Juanma Barranquero <lekktu@gmail.com>
22966
22967 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22968
229692007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22970
22971 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22972 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22973 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22974 (_free_internal, memalign): Use them.
22975 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22976 Initialize to PTHREAD_MUTEX_INITIALIZER.
22977 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22978 (morecore_nolock): Rename from morecore. All uses changed.
22979 Use only nolock versions of internal allocation functions.
22980 (_malloc_internal_nolock, _realloc_internal_nolock)
22981 (_free_internal_nolock): New functions created from
22982 _malloc_internal, _realloc_internal, and _free_internal.
22983 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22984 Copy hook value to automatic variable before its use.
22985 (memalign): Copy hook value to automatic variable before its use.
22986
229872007-06-26 Kenichi Handa <handa@m17n.org>
22988
22989 * coding.c (Ffind_operation_coding_system): Docstring improved.
22990 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22991
229922007-06-25 David Kastrup <dak@gnu.org>
22993
22994 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22995 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22996 cater for additional parameter.
22997
22998 * keymap.h: Adjust number of parameters to `current-active-maps'.
22999
23000 * doc.c (Fsubstitute_command_keys): Adjust call of
23001 `current-active-maps'.
23002
230032007-06-25 David Kastrup <dak@gnu.org>
23004
23005 * callint.c (Fcall_interactively): Make the parsing of interactive
23006 specs somewhat more readable.
23007
230082007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23009
23010 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23011 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23012 if extended background has already been filled.
23013
230142007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23015
23016 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23017 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23018
23019 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23020 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23021 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23022 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23023 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23024 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23025 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23026 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23027 Run timers during dialog popup.
23028 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23029
230302007-06-21 Jason Rumney <jasonr@gnu.org>
23031
23032 * image.c (convert_mono_to_color_image): Swap fore and background.
23033
230342007-06-20 Jason Rumney <jasonr@gnu.org>
23035
23036 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23037 (w32_free_bdf_font): Unmap memory not handle.
23038
230392007-06-20 Sam Steingold <sds@gnu.org>
23040
23041 * gmalloc.c (__morecore): Fix the declaration to comply with the
23042 definition.
23043
230442007-06-20 Juanma Barranquero <lekktu@gmail.com>
23045
23046 * w32term.c (w32_delete_display): Remove leftover declaration.
23047 (w32_define_cursor, w32_initialize): Make static.
23048
23049 * w32.c (_wsa_errlist): Fix typo in error message.
23050 (init_environment): Ignore any environment variable from the
23051 registry having a null value.
23052
230532007-06-20 Glenn Morris <rgm@gnu.org>
23054
23055 * Makefile.in (LIBGIF): Default to -lgif.
23056
230572007-06-17 Jason Rumney <jasonr@gnu.org>
23058
23059 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23060 unicode strings.
23061
230622007-06-16 Juanma Barranquero <lekktu@gmail.com>
23063
23064 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23065 Fix typo in docstring.
23066
230672007-06-16 Eli Zaretskii <eliz@gnu.org>
23068
23069 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23070 and their keybindings.
23071
230722007-06-15 Chong Yidong <cyd@stupidchicken.com>
23073
23074 * composite.c (update_compositions): Fix last fix.
23075
230762007-06-14 Jason Rumney <jasonr@gnu.org>
23077
23078 * w32.c (get_process_times_fn): New function pointer.
23079 (globals_of_w32): Intialize it if present in kernel32.dll.
23080 (w32_get_internal_run_time): New function.
23081
23082 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23083
230842007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23085
23086 * composite.c (update_compositions): Check the validness of
23087 compositions.
23088
230892007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23090
23091 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23092 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23093
23094 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23095 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23096
23097 * macgui.h (USE_MAC_TOOLBAR): New define.
23098
23099 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23100 Return immediately unless popup is activated.
23101
23102 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23103 background to scroll bar gap.
23104 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23105 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23106 scroll bars on frame edge. Check fringe background extension.
23107 Don't clear extended fringe background area.
23108 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23109 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23110 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23111 [USE_MAC_TOOLBAR]: New macros.
23112 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23113 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23114 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23115 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23116 [USE_MAC_TOOLBAR]: New functions.
23117 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23118 manually if previous repositioning has failed.
23119 (mac_handle_keyboard_event): Use precomputed event kind.
23120 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23121 as tool bar item click. Handle mouse movement over tool bar items.
23122
23123 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23124 toolbar_win_gravity.
23125 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23126 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23127 Add externs.
23128
23129 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23130 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23131
231322007-06-14 Chong Yidong <cyd@stupidchicken.com>
23133
23134 * image.c (search_image_cache): Remove unused variable.
23135
231362007-06-13 Chong Yidong <cyd@stupidchicken.com>
23137
23138 * xfns.c, xmenu.c: Link to xaw3d if available.
23139
231402007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23141
23142 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23143 frame_foreground and frame_background.
23144
23145 * image.c (lookup_image): Save frame foreground and background colors.
23146 (search_image_cache): Check if saved and current frame colors match.
23147
231482007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23149
23150 * regex.c (regex_compile): Remove the `regnum' counter.
23151 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23152
231532007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23154
23155 * term.c: Include intervals.h to declare Fget_text_property.
23156
231572007-06-10 Jason Rumney <jasonr@gnu.org>
23158
23159 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23160
231612007-06-08 Juanma Barranquero <lekktu@gmail.com>
23162
23163 * callint.c (Fcall_interactively):
23164 * editfns.c (Fdelete_and_extract_region):
23165 * fileio.c (Fread_file_name):
23166 * fns.c (Fmapconcat):
23167 * keyboard.c (cmd_error_internal):
23168 * keymap.c (Fkey_description):
23169 * lread.c (openp):
23170 * minibuf.c (read_minibuf):
23171 * search.c (wordify):
23172 * sunfns.c (sel_read):
23173 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23174 * xfns.c (x_default_scroll_bar_color_parameter):
23175 * xmenu.c (menu_help_callback):
23176 * xselect.c (Fx_get_atom_name):
23177 * xterm.c (x_term_init): Use empty_unibyte_string.
23178
231792007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23180
23181 * alloc.c (init_strings): Initialize canonical empty strings.
23182 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23183 canonical empty string when the requested size is 0.
23184
23185 * emacs.c (empty_unibyte_string): Rename from empty_string.
23186 (empty_multibyte_string): New canonical empty string.
23187 (syms_of_emacs): Don't initialize empty_string.
23188
23189 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23190 string, if appropriate.
23191 (empty_unibyte_string, empty_multibyte_string): New externs.
23192 (empty_string): Remove extern.
23193
23194 * lread.c (syms_of_lread): Use empty_unibyte_string.
23195
231962007-06-07 Jason Rumney <jasonr@gnu.org>
23197
23198 * s/ms-w32.h: Don't define HAVE_TZNAME.
23199
23200 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23201
232022007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23203
23204 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23205
23206 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23207 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23208
23209 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23210 Don't call next handler.
23211 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23212 Remove argument. Install handler to application.
23213 (set_frame_menubar): Don't change deep_p.
23214 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23215 FRAME_OUTER_TO_INNER_DIFF_Y.
23216 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23217 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23218 [HAVE_DIALOGS]: New macros.
23219 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23220 Use them.
23221 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23222
23223 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23224 init_service_handler. All callers changed. Return OSStatus value.
23225
23226 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23227 All callers changed so as not to call SetPortWindowPort.
23228 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23229 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23230 mac_draw_string_common.
23231 (mac_draw_image_string_qd): Likewise.
23232 (mac_draw_string_common): Use them. Add INLINE.
23233 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23234 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23235 GetGlobalMouse.
23236 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23237 and FRAME_OUTER_TO_INNER_DIFF_Y.
23238 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23239 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23240 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23241 repositioning window to mac_handle_window_event.
23242 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23243 saving window location to mac_handle_window_event
23244 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23245 (install_menu_target_item_handler): Remove argument in extern.
23246 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23247 Also accept command events.
23248 (do_keystroke): New function created from XTread_socket.
23249 (init_command_handler): Remove functions.
23250 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23251 and save window location by kEventWindowShowing and kEventWindowHiding
23252 handlers here. Don't call next handler for window state change and
23253 focus events.
23254 (mac_handle_application_event, mac_handle_keyboard_event)
23255 [TARGET_API_MAC_CARBON]: New functions.
23256 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23257 kEventWindowShowing and kEventWindowHiding events. Move installation
23258 of mouse, font, text input and menu target item handlers to
23259 install_application_handler.
23260 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23261 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23262 New function.
23263 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23264 Register it.
23265 (XTread_socket) [TARGET_API_MAC_CARBON]:
23266 Consolidate SendEventToEventTarget calls.
23267 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23268 Move application activation handler to mac_handle_application_event.
23269 Move keyboard handler to mac_handle_keyboard_event.
23270 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23271 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23272 init_command_handler. Call install_application_handler.
23273
23274 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23275 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23276
232772007-06-07 Glenn Morris <rgm@gnu.org>
23278
23279 * emacs.c (main): Use `emacs-copyright' in --version output.
23280
232812007-06-06 Chong Yidong <cyd@stupidchicken.com>
23282
23283 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23284
232852007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23286
23287 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23288
23289 * macgui.h: Replace WindowPtr with WindowRef.
23290
23291 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23292 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23293 Replace ControlHandle with ControlRef.
23294 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23295
23296 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23297 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23298 Replace ControlHandle with ControlRef.
23299 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23300 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23301
23302 * macterm.h (struct scroll_bar): Rename member control_handle_low
23303 and control_handle_high to control_ref_low and control_ref_high.
23304 All uses changed.
23305 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23306 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23307 respectively. All uses changed.
23308 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23309 (install_window_handler, remove_window_handler): Replace WindowPtr
23310 with WindowRef in externs.
23311
233122007-06-05 Juanma Barranquero <lekktu@gmail.com>
23313
23314 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23315
233162007-06-03 Nick Roberts <nickrob@snap.net.nz>
23317
23318 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23319
23320 * frame.c (Fmouse_position, Fmouse_pixel_position):
23321 Condition on HAVE_GPM too.
23322
23323 * term.c (term_mouse_highlight): Remove unused variables.
23324 (Fterm_open_connection): Set gpm_zerobased to 1.
23325 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23326 Use zero based co-ordinates.
23327 (handle_one_term_event): Report a drag as mouse movement too.
23328
23329 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23330
233312007-06-03 Chong Yidong <cyd@stupidchicken.com>
23332
23333 * image.c (search_image_cache): New function. Require background
23334 color match if background color is unspecified in the image spec.
23335 (uncache_image, lookup_image): Use it.
23336
233372007-06-01 Juanma Barranquero <lekktu@gmail.com>
23338
23339 * window.c (Fshrink_window): Reflow docstring.
23340
233412007-06-02 Chong Yidong <cyd@stupidchicken.com>
23342
23343 * Version 22.1 released.
23344
233452007-06-01 Richard Stallman <rms@gnu.org>
23346
23347 * xfns.c (x_encode_text): Add GCPRO.
23348
233492007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23350
23351 * xfns.c (x_set_name_internal): Save encoded name before
23352 x_encode_text in case string data is relocated.
23353
233542007-05-31 Richard Stallman <rms@gnu.org>
23355
23356 * buffer.c (syms_of_buffer): Doc fix.
23357
233582007-05-30 Nick Roberts <nickrob@snap.net.nz>
23359
23360 * sysdep.c (init_sys_modes): Add rather than replace with
23361 O_NONBLOCK.
23362
23363 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23364 term_mouse_moveto.
23365
23366 * termhooks.h (term_mouse_moveto): New extern.
23367
23368 * term.c (mouse_face_window): Rename...
23369 (Qmouse_face_window): ...to this.
23370 (term_show_mouse_face, term_clear_mouse_face)
23371 (term_mouse_highlight): Use Qmouse_face_window.
23372 (term_mouse_moveto): New function.
23373 (term_mouse_position): Make it work.
23374 (syms_of_term): Uncomment assignment to mouse_position_hook.
23375 Staticpro Qmouse_face_window.
23376
233772007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23378
23379 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23380 around current_column call.
23381
233822007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23383
23384 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23385 * xdisp.c (next_element_from_buffer):
23386 * window.c (delete_window):
23387 * term.c (term_mouse_highlight):
23388 * msdos.c (getdefdir):
23389 * macterm.c (mac_create_bitmap_from_bitmap_data)
23390 (init_font_name_table):
23391 * fns.c (Fsxhash):
23392 * data.c (Fmake_local_variable):
23393 * ccl.c (ccl_driver): Likewise.
23394
233952007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23396
23397 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23398 Call mac_wakeup_from_rne on window size change.
23399
234002007-05-25 Chong Yidong <cyd@stupidchicken.com>
23401
23402 * image.c (uncache_image): Fix typo.
23403
234042007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23405
23406 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23407
234082007-05-22 Richard Stallman <rms@gnu.org>
23409
23410 * xterm.c (x_connection_closed): Remove NO_RETURN.
23411
234122007-05-22 Martin Rudalics <rudalics@gmx.at>
23413
23414 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23415
234162007-05-21 Chong Yidong <cyd@stupidchicken.com>
23417
23418 * image.c (uncache_image): New function.
23419 (Fimage_refresh): New function.
23420
234212007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23422
23423 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23424
234252007-05-20 Nick Roberts <nickrob@snap.net.nz>
23426
23427 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23428 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23429
234302007-05-20 Nick Roberts <nickrob@snap.net.nz>
23431
23432 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23433 conditional on [HAVE_GPM_H].
23434
234352007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23436
23437 * syntax.c (skip_chars): Update syntax-table only after we checked that
23438 the new location is valid.
23439
234402007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23441
23442 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23443 mac_get_window_bounds.
23444
234452007-05-20 Nick Roberts <nickrob@snap.net.nz>
23446
23447 * Makefile.in (LIBGPM): Allow it to be set from configure.
23448 If set then link Emacs with it.
23449
23450 * config.in: Regenerate.
23451
23452 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23453 New externs.
23454
23455 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23456 Include gpm.h.
23457 (handle_one_term_event, term_gpm): New externs.
23458
23459 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23460 and allow it to be interrupted by SIGIO.
23461
23462 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23463 (wait_reading_process_output): Wait on gpm_fd too.
23464 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23465 (add_gpm_wait_descriptor_called_flag): New variable.
23466 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23467
23468 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23469 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23470 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23471 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23472 (make_lispy_event): Add case GPM_CLICK_EVENT.
23473 (read_avail_input): Handle mouse input.
23474
23475 * term.c (write_glyphs_with_face): New function.
23476 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23477 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23478 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23479 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23480 (last_mouse_x, last_mouse_y): New variables.
23481 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23482 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23483 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23484 (Fterm_close_connection): New functions.
23485 (term_init): Initialise mouse_face_window.
23486
234872007-05-19 Chong Yidong <cyd@stupidchicken.com>
23488
23489 * xdisp.c (redisplay_window): If first window line is a
23490 continuation line, recompute the new window start instead of
23491 recentering.
23492
234932007-05-18 Glenn Morris <rgm@gnu.org>
23494
23495 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23496 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23497
234982007-05-17 Glenn Morris <rgm@gnu.org>
23499
23500 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23501
235022007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23503
23504 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23505 dead key repeat and up events.
23506
235072007-05-14 Chong Yidong <cyd@stupidchicken.com>
23508
23509 * image.c (pbm_load): Check image size for monochrome pbm.
23510
235112007-05-13 Chong Yidong <cyd@stupidchicken.com>
23512
23513 * xterm.c (XTread_socket): Revert last change.
23514
235152007-05-12 Chong Yidong <cyd@stupidchicken.com>
23516
23517 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23518
23519 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23520
235212007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23522
23523 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23524 mixup (YAILOM).
23525
235262007-05-07 Andreas Schwab <schwab@suse.de>
23527
23528 * keymap.c (Flookup_key): Fix typo in last change.
23529
235302007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23531
23532 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23533 mapping for unibyte strings.
23534
235352007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23536
23537 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23538 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23539
235402007-04-29 Richard Stallman <rms@gnu.org>
23541
23542 * insdel.c (replace_range): For undo, record insertion first.
23543
235442007-04-29 Andreas Schwab <schwab@suse.de>
23545
23546 * lisp.h (VECSIZE): Use OFFSETOF.
23547
235482007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23549
23550 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23551 disabled lines.
23552
235532007-04-28 Richard Stallman <rms@gnu.org>
23554
23555 * lread.c (read_escape): In a string, \s is always space.
23556
235572007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23558
23559 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23560
23561 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23562 submenu for menu bar items.
23563
23564See ChangeLog.10 for earlier changes.
23565
23566;; Local Variables:
23567;; coding: utf-8
23568;; add-log-time-zone-rule: t
aac0c6e3
MR
23569;; End:
23570
e3eb1dae 23571 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23572
23573 This file is part of GNU Emacs.
23574
23575 GNU Emacs is free software: you can redistribute it and/or modify
23576 it under the terms of the GNU General Public License as published by
23577 the Free Software Foundation, either version 3 of the License, or
23578 (at your option) any later version.
23579
23580 GNU Emacs is distributed in the hope that it will be useful,
23581 but WITHOUT ANY WARRANTY; without even the implied warranty of
23582 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23583 GNU General Public License for more details.
23584
23585 You should have received a copy of the GNU General Public License
23586 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23587
23588;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40