Regenerate configure, src/config.in.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6e546d18
GM
12010-05-15 Glenn Morris <rgm@gnu.org>
2
4235ca47 3 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4
6e546d18
GM
5 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7
8c5ff6dd
KR
82010-05-15 Ken Raeburn <raeburn@raeburn.org>
9
52766425
KR
10 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an
11 rvalue. (bug#5916)
12 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
13
8b4eb796
KR
14 * emacs.c (main): Initialize initial-environment and
15 process-environment before generating from env, not after.
16
8c5ff6dd
KR
17 Handle --version reasonably in CANNOT_DUMP configuration.
18 * emacs.c (emacs_version, emacs_copyright): New string variables.
19 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
20 (syms_of_emacs): Defvar them, and initialize them from the C
21 string variables.
22 (main): If initialization hasn't been done, print initial version
23 info from the C strings, instead of starting an interactive session.
24
dbd3f723
EZ
252010-05-15 Eli Zaretskii <eliz@gnu.org>
26
d20e1419
EZ
27 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
28 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
29 (bidi_paragraph_init): Remove redundant assertion that we are at
30 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
31
32 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
33 (syms_of_xdisp): Defsubr it.
34
dbd3f723
EZ
35 * Makefile.in: Fix MSDOS-related comments.
36
02be533b
GM
372010-05-15 Glenn Morris <rgm@gnu.org>
38
1a82cca9
GM
39 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
40 (really-lwlib, really-oldXMenu): Always define.
41 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
42
3df7b338
GM
43 * Makefile.in: Simplify cpp conditional.
44
2b5f541b
GM
45 * Makefile.in (${ns_appdir}): Simplify using umask.
46
02be533b
GM
47 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
48
4e2db1fe
SM
492010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
50
51 * eval.c (specbind): Remove left-over duplicate test.
52 Disallow let-binding frame-local vars. Add comment.
53
4b292a22
EZ
542010-05-14 Eli Zaretskii <eliz@gnu.org>
55
2fe72643 56 Make the cache of bidi iterator states dynamically allocated.
1edbd309 57 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
58 (bidi_init_it): Call it.
59 (bidi_cache_iterator_state): Enlarge the cache if needed.
60
4e2db1fe 61 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
62 bidi_get_next_char_visually. All callers changed.
63
82ebc97b
KH
642010-05-14 Kenichi Handa <handa@m17n.org>
65
66 * dispextern.h (struct composition_it): New member reversed_p.
67
68 * composite.c (composition_compute_stop_pos): Search backward if
69 ENDPOS < CHARPOS.
70 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
71 Set CMP_IT->reversed_p.
b4b6e17e 72 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 73
4e2db1fe
SM
74 * xdisp.c (set_iterator_to_next):
75 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
76 scanning backward. Call composition_compute_stop_pos if scan
77 direction is changed.
78 (next_element_from_buffer): Call composition_compute_stop_pos with
79 negative ENDPOS if we are scanning backward.
80 (next_element_from_composition): Pay attention to
81 IT->cmp_it.reversed_p.
82
0e5d7800
KH
832010-05-14 Kenichi Handa <handa@m17n.org>
84
85 * font.c (font_range): Return the range for the font found at
86 first.
87
cb027b32
GM
882010-05-14 Glenn Morris <rgm@gnu.org>
89
177b0288
GM
90 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
91
fbc00890
GM
92 * Makefile.in (mktime, X11, register): Move undefs to configure.
93
f14d1dfd
GM
94 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
95 (MSDOS_X_OBJ): New variable.
96 (MSDOS_SUPPORT_REAL): New constant.
97 (MSDOS_SUPPORT): Set as a variable, not with cpp.
98 (obj): Use MSDOS_X_OBJ.
99 (lisp): Use MSDOS_SUPPORT as a variable.
100
11842bd8
GM
101 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
102 (GPM_MOUSE_SUPPORT): Now it's a constant.
103 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
104 not cpp.
105
489d31a4 106 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 107 (ns_appresdir): Remove, unused.
e20f1f07 108
489d31a4
GM
109 * Makefile.in (SHELL): Move outside cpp section.
110
cb027b32
GM
111 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
112
5a903aa9
GM
1132010-05-13 Glenn Morris <rgm@gnu.org>
114
3369c79f
GM
115 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
116 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
117
d5e982a6
GM
118 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
119 HAVE_WINDOW_SYSTEM must be too.
120
6192e163
GM
121 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
122 (lisp): Remove WINNT_SUPPORT.
123
472c5d6b
GM
124 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
125 Let configure set these variables (to empty) in this case as well.
126
0116466b
GM
127 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
128 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
129
5a903aa9
GM
130 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
131 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
132 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
133 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
134 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 135 the values output by configure.
5a903aa9
GM
136 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
137
1a0d7c06
GM
1382010-05-12 Glenn Morris <rgm@gnu.org>
139
b5457f14
GM
140 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
141 (LINKER_WAS_SPECIFIED): Remove.
142
1a0d7c06
GM
143 * Makefile.in (LIB_GCC): Set using configure, not cpp.
144 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
145 * m/arm.h (LIB_GCC) [GNU_LINUX]:
146 * s/cygwin.h (LIB_GCC):
147 * s/freebsd.h (LIB_GCC):
148 * s/gnu-linux.h (LIB_GCC):
149 * s/msdos.h (LIB_GCC):
150 * s/netbsd.h (LIB_GCC):
151 Move to configure.
152
3ffd4615 1532010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
154
155 * ftfont.c: Fix incorrect parentheses of #if condition for
156 definining M17N_FLT_USE_NEW_FEATURE.
157
acddf8ae
GM
1582010-05-11 Glenn Morris <rgm@gnu.org>
159
160 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
161 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
162
ae5e04fa
EZ
1632010-05-10 Eli Zaretskii <eliz@gnu.org>
164
165 * xdisp.c (init_iterator): Don't turn on bidi reordering in
166 unibyte buffers. See
167 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
168
7490175b
GM
1692010-05-10 Glenn Morris <rgm@gnu.org>
170
97efb629
GM
171 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
172 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
173 (LIBES): Use LIBS_SYSTEM as a variable.
174 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
175 * s/aix4-2.h (LIBS_SYSTEM):
176 * s/freebsd.h (LIBS_SYSTEM):
177 * s/hpux10-20.h (LIBS_SYSTEM):
178 * s/sol2-6.h (LIBS_SYSTEM):
179 * s/unixware.h (LIBS_SYSTEM):
180 Move to configure.
181
7490175b
GM
182 * s/aix4-2.h (MAIL_USE_LOCKF):
183 * s/bsd-common.h (MAIL_USE_FLOCK):
184 * s/darwin.h (MAIL_USE_FLOCK):
185 * s/gnu-linux.h (MAIL_USE_FLOCK):
186 * s/irix6-5.h (MAIL_USE_FLOCK):
187 * s/template.h (MAIL_USE_FLOCK):
188 Move to configure.
189
0235128c 1902010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
191
192 * Version 23.2 released.
193
0235128c 1942010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
195
196 * composite.c (autocmp_chars): Save point as marker before calling
197 auto-composition-function (Bug#5984).
198
199 * lisp.h (restore_point_unwind): Add prototype.
200
201 * fileio.c (restore_point_unwind): Remove static attribute.
202
0235128c 2032010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
204
205 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
206 new feature of libotf and m17n-flt.
0235128c
SM
207 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
208 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
209 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
210 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
211 that OUT is NULL. Use OTF_drive_gsub_with_log and
212 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
213 OTF_drive_gpos.
214 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
215 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
216 Setup mflt_enable_new_feature and mflt_try_otf.
217
4721152c
J
2182010-05-08 Jan Djärv <jan.h.d@swipnet.se>
219
220 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
221
222 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
223 box and toolbar (Bug #6139).
224 (xg_create_tool_bar): Remove comment (Bug #6139).
225 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
226 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
227
ee0a16cf
JB
2282010-05-08 Juanma Barranquero <lekktu@gmail.com>
229
230 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
231 Update dependencies.
232
96d79611
EZ
2332010-05-08 Eli Zaretskii <eliz@gnu.org>
234
235 * fringe.c (update_window_fringes): Set up truncation bitmaps for
236 R2L lines.
237
40c17879
GM
2382010-05-08 Glenn Morris <rgm@gnu.org>
239
7b42b29f
GM
240 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
241
40c17879
GM
242 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
243 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
244 (termcapobj): Replace with TERMCAP_OBJ.
245 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
246 (LIBES): Use LIBS_TERMCAP as a variable.
247
248 * s/freebsd.h (osreldate.h): No longer include, since this file
249 does not use __FreeBSD_version any more.
250
251 * s/aix4-2.h (TERMINFO):
252 * s/cygwin.h (TERMINFO):
253 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
254 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
255 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
256 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
257 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
258 * s/irix6-5.h (TERMINFO):
259 * s/netbsd.h (LIBS_TERMCAP):
260 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
261 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
262 * s/usg5-4.h (TERMINFO):
263 Move to configure.
264
94b612ad
SM
2652010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
266
267 * eval.c (unbind_to): Don't unbind a local binding into the global
268 binding when the local binding disappeared. Inversely, don't unbind
269 a global binding into a newly created local binding.
270 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
271 can specify the frame to use, when applicable. Adjust callers.
272
15e12598
VB
2732010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
274 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
277
f724825e
EZ
2782010-05-07 Eli Zaretskii <eliz@gnu.org>
279
5cba3209
EZ
280 * w32fns.c: Include w32.h.
281 (Fw32_shell_execute): Decode the error message before passing it
282 to `error'. (Bug#6126)
283
d16bdfc3
EZ
284 * msdos.c (dos_set_window_size):
285 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
286 instead of `XSYMBOL (foo)->value'.
287
59d93e87
EZ
2882010-05-07 Eli Zaretskii <eliz@gnu.org>
289
9fdec8bc
EZ
290 Fix the MS-DOS build, broken by autoconfiscation.
291
292 * Makefile.in: Don't use Make-style comments past the "start of
293 cpp stuff" line.
294 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
295
296 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
297 edited directly by msdos/sed1v2.inp).
f724825e 298
2f86b22b
GM
2992010-05-07 Glenn Morris <rgm@gnu.org>
300
301 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
302 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
303 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
304 move out of cpp section.
305 * s/freebsd.h (LD_SWITCH_SYSTEM):
306 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
307 * s/netbsd.h (LD_SWITCH_SYSTEM):
308 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
309
49ebbd65
DN
3102010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
311
312 Define LIB_STANDARD and START_FILES using autoconf.
313 * s/usg5-4.h (LIB_STANDARD):
314 * s/netbsd.h (START_FILES):
315 * s/irix6-5.h (LIB_STANDARD):
316 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
317 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
318 * s/freebsd.h (START_FILES):
319 * s/darwin.h (START_FILES):
320 * s/cygwin.h (START_FILES):
321 * s/aix4-2.h (LIB_STANDARD):
322 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
323 * Makefile.in (STARTFILES): Rename to START_FILES, define using
324 autoconf, not cpp.
325
d43c06d6
DN
3262010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
327
28823648
DN
328 Remove NEED_BSDTTY and NEED_UNISTD_H.
329 * s/hpux10-20.h (NEED_BSDTTY): Remove.
330 * s/aix4-2.h (NEED_UNISTD_H): Remove.
331 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
332 <sys/ptyio.h> and <unistd.h>.
333
aca00430
DN
334 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
335
d43c06d6
DN
336 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
337 * s/gnu.h (START_FILES): Remove empty definition.
338
3e56b11d
JD
3392010-05-06 Jan Djärv <jan.h.d@swipnet.se>
340
341 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
342
e3cf0cde
GM
3432010-05-06 Glenn Morris <rgm@gnu.org>
344
345 * Makefile.in (CPP, LN_S): Remove unused variables.
346
774b9a60
SM
3472010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
348
349 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
350
4ab92842
LM
3512010-05-05 Lawrence Mitchell <wence@gmx.li>
352
353 * m/sparc.h: Fix typo in earlier change.
354
178f2507
SM
3552010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
356
357 Misc tweaks.
358 * eval.c (Fdefvaralias): Remove unintended nested if.
359 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
360
80f00217 3612010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
362
363 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
364
ef03a4e6
DN
3652010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
366
58eb6cf0
DN
367 Remove BSD_PGRPS.
368 * s/bsd-common.h (BSD_PGRPS): Remove undef.
369 * s/gnu-linux.h (BSD_PGRPS): Remove.
370 * term.c (dissociate_if_controlling_tty):
371 * sysdep.c (narrow_foreground_group, widen_foreground_group)
372 (init_sys_modes, reset_sys_modes):
373 * emacs.c (main):
374 * callproc.c (Fcall_process, child_setup): Remove code depending
375 on BSD_PGRPS.
376
ef03a4e6
DN
377 Remove POSIX_SIGNALS.
378 * s/usg5-4.h (POSIX_SIGNALS):
379 * s/netbsd.h (POSIX_SIGNALS):
380 * s/msdos.h (POSIX_SIGNALS):
381 * s/ms-w32.h (POSIX_SIGNALS):
382 * s/hpux11.h (POSIX_SIGNALS):
383 * s/gnu.h (POSIX_SIGNALS):
384 * s/gnu-linux.h (POSIX_SIGNALS):
385 * s/freebsd.h (POSIX_SIGNALS):
386 * s/darwin.h (POSIX_SIGNALS):
387 * s/cygwin.h (POSIX_SIGNALS):
388 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
389 * s/unixware.h:
390 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
391 * process.c (create_process):
392 * syssignal.h:
393 * sysdep.c (wait_for_termination, init_signals):
394 * process.c (create_process):
395 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
396 remove all code that assumes the contrary.
397
49628785
GM
3982010-05-04 Glenn Morris <rgm@gnu.org>
399
27a2cdfc
GM
400 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
401 variable.
402 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
403 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
404 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
405 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
406 LD_SWITCH_SYSTEM_tmp.
407 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
408 New variables, set by configure.
409
eb21eab5
GM
410 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
411 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
412 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
413 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
414 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
415
49628785
GM
416 * s/aix4-2.h (C_SWITCH_SYSTEM):
417 * m/alpha.h (C_SWITCH_MACHINE):
418 Move to configure.in.
419 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
420 New variables, set by configure.
421 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
422 $c_switch_machine and $c_switch_system.
423
7dff330b
DN
4242010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
425
426 * s/hpux10-20.h (LIB_STANDARD): New definition.
427 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
428 on it, not used anymore.
429
53967e09
CY
4302010-05-03 Chong Yidong <cyd@stupidchicken.com>
431
432 * eval.c (internal_condition_case_n): Rename from
433 internal_condition_case_2.
434 (internal_condition_case_2): New function.
435
436 * xdisp.c (safe_call): Use internal_condition_case_n.
437
438 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
439 (internal_delete_file, Frename_file): Callers changed.
440
441 * buffer.c (Fkill_buffer):
442 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
443
444 * lisp.h: Update prototypes.
445
3dee6fdb
GM
4462010-05-03 Glenn Morris <rgm@gnu.org>
447
448 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
449 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
450 (LIBXT): Set with configure, not cpp.
451 (LIBX): Remove.
452 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
453
a101e0fb
DN
4542010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
455
456 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
457 The FreeBSD is not needed, the default works, Solaris version is
458 not needed, and the remaining case is not supported by configure.
459
f63d0028
JD
4602010-05-02 Jan Djärv <jan.h.d@swipnet.se>
461
462 * xsmfns.c (CHDIR_OPT): New define.
463 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
464 restarting emacs.
465
466 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
467 shut_down_emacs.
468
469 * emacs.c (USAGE1): Mention --chdir.
470 (main): Handle --chdir.
471 (standard_args): Add --chdir.
472 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
473 #5552).
474
e4814a9f
DN
4752010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
476
cd03c74a
DN
477 Remove LD_SWITCH_MACHINE.
478 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
479 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
480
c3a398a1
DN
481 Clean up IRIX code.
482 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
483 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
484
87e7285c
DN
485 Clean up AIX code.
486 * m/ibmrs6000.inp: Remove file, unused.
487 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
488 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
489 definition ...
490 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
491
80f00217
JB
492 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
493 unused.
e4814a9f 494
59ca28de
EZ
4952010-05-01 Eli Zaretskii <eliz@gnu.org>
496
197daef4
EZ
497 Emulate POSIX_SIGNALS on MS-Windows.
498
499 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
500 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
501
502 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
503 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
504 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
505
80f00217
JB
506 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
507 New stubs.
197daef4 508
af7c7572
EZ
509 Miscellaneous fixes of bidi display.
510
59ca28de
EZ
511 * xdisp.c (find_row_end): New function, refactored from display_line.
512 (display_line): Use it.
017ea819
EZ
513 (extend_face_to_end_of_line): In almost-filled rows, extend only
514 if the row is R2L and not continued.
166e930d 515 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 516 Preserve overlay and string info in row->end.
166e930d
EZ
517 (insert_left_trunc_glyphs): Support addition of left truncation
518 glyphs to R2L rows.
b47e0dcf 519 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
520 glyph between adjacent windows. Fix a crash when a display string
521 is continued to the next line. Don't return zero if cursor was
522 found by `cursor' property of a display string.
b47e0dcf
EZ
523 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
524 test for that explicitly.
59ca28de 525
7acac9f4
GM
5262010-05-01 Glenn Morris <rgm@gnu.org>
527
528 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
529 for clarity.
530 (OTHER_OBJ): Remove.
531 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
532 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
533
45841e65
KK
5342010-05-01 Karel Klíč <kklic@redhat.com>
535
536 * fileio.c (Ffile_selinux_context): Context functions may return null.
537
afc61943
DN
5382010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
539
80f00217 540 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 541
5a1bb006
GM
5422010-04-30 Glenn Morris <rgm@gnu.org>
543
544 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
545 (OTHER_OBJ): Define as a separate variable, for clarity.
546
210af043
J
5472010-04-30 Jan Djärv <jan.h.d@swipnet.se>
548
549 * xsettings.c: include limits.h and update file comment.
550
0a7df391
GM
5512010-04-30 Glenn Morris <rgm@gnu.org>
552
d5096f16
GM
553 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
554 Set with configure, not cpp.
555 (LIBW): Remove, replace with $TOOLKIT_LIBW.
556
7eb1ac33
GM
557 * Makefile.in (mallocobj): Remove.
558 (otherobj): Simplify using @OTHER_OBJ@.
559
517d086b
GM
560 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
561 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
562 Don't bother making nsgui.h dependency platform-specific.
563
0a7df391
GM
564 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
565
d6d23852
SM
5662010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
567
d2630aef
SM
568 * process.c (read_process_output, exec_sentinel): Don't burp if the
569 sentinel/filter kills the current buffer (bug#6060).
570
f9dddf52 571 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
572 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
573 Remove unused var `args'.
574 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
575 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
576 * doc.c (store_function_docstring): Use XSETCAR.
577
f1e3642a
GM
5782010-04-28 Glenn Morris <rgm@gnu.org>
579
faf535f8
GM
580 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
581 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
582
c40f9449
GM
583 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
584
658f86ca
GM
585 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
586 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
587
bc0b5f61
GM
588 * Makefile.in (FONT_OBJ): New, set by configure.
589 (FONT_DRIVERS): Use $FONT_OBJ.
590
294c50a0
GM
591 * Makefile.in (LIBXMU): Set with configure, not cpp.
592 * s/aix4-2.h (LIBXMU):
593 * s/hpux10-20.h (LIBXMU):
594 Remove definition, now set in configure.
595
e6ec4e99
GM
596 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
597
f1e3642a
GM
598 * m/amdx86-64.h [i386]: Move this test to configure.in.
599
c6ea2936
GM
6002010-04-27 Glenn Morris <rgm@gnu.org>
601
8fdac2c3
GM
602 * Makefile.in (LIBXTR6): Set with configure, not cpp.
603 * s/unixware.h (NEED_LIBW): Remove definition.
604
986fb647
GM
605 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
606 (TOOLKIT_LIBW): New, set by configure.
607 (@X_TOOLKIT_TYPE@): No longer define it.
608
c6ea2936
GM
609 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
610 (MOTIF_LIBW): Set with configure, not cpp.
611 * s/aix4-2.h (LIB_MOTIF):
612 * s/gnu-linux.h (LIB_MOTIF):
613 * s/unixware.h (LIB_MOTIF): Move to configure.in.
614
aaa36002
DN
6152010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
616
617 Reduce CPP usage.
618 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
619 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
620 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
621 definitions and undefs. Inline definitions in the only user.
622 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 623
b678dd8b
GM
6242010-04-27 Glenn Morris <rgm@gnu.org>
625
76cda504
GM
626 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
627 since the defaults (set by the system file) are fine in most cases.
628 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
629 * m/ibms390x.h (START_FILES, LIB_STANDARD):
630 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
631 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
632 Remove definitions, since they are set correctly in s/gnu-linux.h.
633 * s/freebsd.h (START_FILES, LIB_STANDARD):
634 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
635 * s/hpux10-20.h (START_FILES):
636 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
637 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
638
b678dd8b
GM
639 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
640 (MOTIF_LIBW): Use $LIBXP.
641 (otherobj): Use $WIDGET_OBJ.
642
9452ded1
DN
6432010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
644
7e10844c
DN
645 * Makefile.in (LIBS_MACHINE): Remove, unused.
646
9452ded1
DN
647 Use autoconf instead of cpp for LIB_MATH.
648 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
649 * s/cygwin.h (LIB_MATH): Likewise.
650 * Makefile.in (LIB_MATH): Do not define with cpp.
651 (LIBES): Use autoconf for LIB_MATH.
652
fcebfc6a
KH
6532010-04-26 Kenichi Handa <handa@m17n.org>
654
655 * composite.c (Ffind_composition_internal): Fix the return value
656 for an automatic composition.
657
39e2ad1b
DN
6582010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
659
660 Remove all NO_ARG_ARRAY uses.
661 * fns.c (concat2, concat3, nconc2):
662 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
663 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
664 * m/xtensa.h (NO_ARG_ARRAY):
665 * m/template.h (NO_ARG_ARRAY):
666 * m/sparc.h (NO_ARG_ARRAY):
667 * m/sh3.h (NO_ARG_ARRAY):
668 * m/mips.h (NO_ARG_ARRAY):
669 * m/macppc.h (NO_ARG_ARRAY):
670 * m/iris4d.h (NO_ARG_ARRAY):
671 * m/intel386.h (NO_ARG_ARRAY):
672 * m/ibms390x.h (NO_ARG_ARRAY):
673 * m/ibms390.h (NO_ARG_ARRAY):
674 * m/ibmrs6000.h (NO_ARG_ARRAY):
675 * m/ia64.h (NO_ARG_ARRAY):
676 * m/hp800.h (NO_ARG_ARRAY):
677 * m/arm.h (NO_ARG_ARRAY):
678 * m/amdx86-64.h (NO_ARG_ARRAY):
679 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
680
adf4f59c
EZ
6812010-04-25 Eli Zaretskii <eliz@gnu.org>
682
6bdf5d65
EZ
683 * xdisp.c (display_line): Don't assume 2nd call to
684 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
685 (iterate_out_of_display_property): New function, body from pop_it.
686 (pop_it): Use it.
adf4f59c 687
dfbbda83
GM
6882010-04-24 Glenn Morris <rgm@gnu.org>
689
690 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
691 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
692 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
693 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
694
2d4018aa
EZ
6952010-04-24 Eli Zaretskii <eliz@gnu.org>
696
a49884a6
EZ
697 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
698 use `get_next_display_element' and `set_iterator_to_next' to
699 advance to the next character, when looking for the character that
700 begins the next row.
701
76db6fcc 702 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
703 definition of "struct Lisp_Symbol".
704
70eab5c1
GM
7052010-04-24 Glenn Morris <rgm@gnu.org>
706
707 * Makefile.in (CRT_DIR): New variable, set by configure.
708 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
709 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
710
1ad4cc3d
DN
7112010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
712
e769f484
DN
713 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
714
4196ff33
DN
715 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
716
879b0ee4
DN
717 Remove redundant flags.
718 * s/freebsd.h (C_SWITCH_SYSTEM):
719 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
720 * s/netbsd.h (C_SWITCH_SYSTEM):
721 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
722 of these.
723
03cbbcb8
DN
724 Simplify m/intel386.h.
725 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
726 user: ecrt0.c.
727 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
728 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
729 the only user: s/unixware.h.
730 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
731 from m/intel386.h.
732 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
733 moved here from m/intel386.h.
734
1ad4cc3d
DN
735 * m/mips.h: Remove #if 0 code.
736
8785b888
EZ
7372010-04-23 Eli Zaretskii <eliz@gnu.org>
738
728588cc
EZ
739 Fix display of composed characters from L2R scripts in bidi buffers.
740 * xdisp.c (set_iterator_to_next, next_element_from_composition):
741 After advancing IT past the composition, resync the bidi iterator
742 with IT's position. (Bug#5977)
743
a63f80b4
DN
7442010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
745
746 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
747 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
748
ff5dec5c
SM
7492010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
750
751 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
752
8785b888
EZ
7532010-04-23 Eli Zaretskii <eliz@gnu.org>
754
58ccf243 755 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
756 * xdisp.c (pop_it): When the stack is popped after displaying
757 from a string, bidi-iterate to exit from the text portion covered
758 by the `display' property or overlay. (Bug#5988, bug#5920)
759
feeb1604
DN
7602010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
761
8e324eb6
DN
762 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
763 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
764
809fcaba
DN
765 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
766 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
767
ed710380
DN
768 Simplify STARTFILES definition.
769 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
770 relying on Makefile.in to define it.
771 * s/cygwin.h (START_FILES): Likewise.
772 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
773
feeb1604
DN
774 Clean up Solaris code.
775 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
776 (LIB_MOTIF): Remove, configure takes care of this.
777 (NOT_USING_MOTIF): Remove, unused.
778 * xrdb.c: Remove #if 0-ed #include.
779 (SYSV): Remove conditional for old SysV.
780 * sysdep.c (closedir): Remove conditional code for Solaris,
781 Solaris has closedir.
782
a0d0b563
JD
7832010-04-22 Jan Djärv <jan.h.d@swipnet.se>
784
785 * xsettings.c (read_and_apply_settings): Check if current_font is
786 NULL before strcmp (Bug#6001).
787
56bae7c7
DN
7882010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
789
790 Clean up HP-UX files.
791 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
792 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
793 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
794 * s/hpux10-20.h: ... to the only user, here.
795
372b7a95
EZ
7962010-04-21 Eli Zaretskii <eliz@gnu.org>
797
798 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
799 use buffer-local values of paragraph-start and paragraph-separate.
800 <paragraph_start_re, paragraph_separate_re>: Rename from
801 fallback_paragraph_start_re and fallback_paragraph_separate_re.
802 (Bug#5992)
803
f904c0f9
JD
8042010-04-21 Jan Djärv <jan.h.d@swipnet.se>
805
806 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
807 current_tool_bar_style are new.
808 (store_config_changed_event): Rename from store_font_changed_event.
809 (XSETTINGS_TOOL_BAR_STYLE): New define.
810 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
811 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
812 HAVE_XFT.
813 (something_changedCB): store_font_changed_event is now
814 store_config_changed_event
815 (parse_settings): Rename from parse_xft_settings. Read
816 non-xft xsettings outside #ifdef HAVE_XFT.
817 (read_settings): Renamed from read_xft_settings.
818 (apply_xft_settings): Take current settings as parameter. Do not
819 call read_(xft)_settings.
820 (read_and_apply_settings): New function.
821 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
822 read_and_apply_settings if there are settings to be read.
823 (init_xsettings): Renamed from init_xfd_settings.
824 Call read_and_apply_settings unconditionally.
825 (xsettings_initialize): Call init_xsettings.
826 (Ftool_bar_get_system_style): New function.
827 (syms_of_xsettings): Define Qmonospace_font_name and
828 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 829 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 830 dynamic-setting.
31a01b90 831 Move misplaced HAVE_GCONF
f904c0f9
JD
832
833 * xsettings.h (Ftool_bar_get_system_style): Declare.
834
835 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
836 Qtext, Qboth, Qboth_horiz are new.
837 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
838 Vtool_bar_style, tool_bar_max_label_size.
839
840 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
841
842 * keyboard.c: QClabel is new.
843 (parse_tool_bar_item): Take out QClabel from tool bar items.
844 Try to construct a label if ther is no QClabel.
845 (syms_of_keyboard): Intern :label as QClabel.
846
847 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
848 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
849 New.
850
851 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
852 dynamic-setting.el.
853
854 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
855 (xg_make_tool_item, xg_show_toolbar_item): New function.
856 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
857 Call xg_make_tool_item to make a tool bar item.
858 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
859
860 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
861 into account for toolbars.
862
c632dfda
JD
8632010-04-21 Jan Djärv <jan.h.d@swipnet.se>
864
865 * data.c (make_blv): Declarations before code (Bug#5993).
866
10efe302
GM
8672010-04-21 Glenn Morris <rgm@gnu.org>
868
869 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
870 Define using autoconf, not cpp.
871 (LIBXSM): New variable, set by autoconf.
872 (LIBXT): Use $LIBXSM.
873
4285ac5a
DN
8742010-04-21 Dan Nicolaescu <local_user@dannlt>
875
3ec759e7
DN
876 Remove NOMULTIPLEJOBS, unused.
877 * s/template.h (NOMULTIPLEJOBS):
878 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
879
4285ac5a
DN
880 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
881 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
882 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
883 detects -znocombreloc and passes it to the linker
884 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
885
2807228d
GM
8862010-04-21 Glenn Morris <rgm@gnu.org>
887
888 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
889
574c05e2
KK
8902010-04-21 Karel Klíč <kklic@redhat.com>
891
892 * Makefile.in (LIBSELINUX_LIBS): New.
893 (LIBES): Add $LIBSELINUX_LIBS.
894 * eval.c, lisp.h (call7): New function.
895 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
896 (Ffile_selinux_context, Fset_file_selinux_context):
897 New functions.
898 (Fcopy_file): New parameter preserve-selinux-context.
899 (Frename_file): Preserve selinux context when renaming by copy-file.
900
91eac4bb 9012010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 902 Eli Zaretskii <eliz@gnu.org>
91eac4bb 903
50426a04
JB
904 Don't depend on cm.c or termcap.c on Windows, use stubs.
905 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
906 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
907 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
908 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
909 (sys_tputs, sys_tgetstr): New stubs.
910 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
911 (tputs, tgetstr): New; define to sys_*.
91eac4bb 912
938efb77
JB
9132010-04-20 Juanma Barranquero <lekktu@gmail.com>
914
915 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
916
b4bf28b7
SM
9172010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
918
8b1e1112
SM
919 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
920 Just signal a warning rather than an error when inside a let.
921 (Fmake_variable_frame_local): Add the same test.
922
933ac235
SM
923 * font.c (syms_of_font): Make the style table vars read-only.
924
b4bf28b7
SM
925 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
926 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
927
928 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
929
93d68d0c
EZ
9302010-04-20 Eli Zaretskii <eliz@gnu.org>
931
932 Fix R2L paragraph display on TTY.
933
934 * xdisp.c (unproduce_glyphs): New function.
935 (display_line): Use it when produced glyphs are discarded from R2L
936 glyph rows.
937 (append_composite_glyph): In R2L rows, prepend the glyph rather
938 than appending it.
939
940 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
941 rather than append it. Set up the resolved_level and bidi_type
942 attributes of the appended glyph.
283ccc18
EZ
943 (produce_special_glyphs): Mirror the backslash continuation
944 character in R2L lines.
93d68d0c 945
283ccc18 946 Implement display of R2L paragraphs in GUI sessions.
26cdf528 947
283ccc18
EZ
948 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
949 append_stretch_glyph.
950 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
951 off-by-one error in computing x at end of text in the row.
952 (append_stretch_glyph): In reversed row, prepend the glyph rather
953 than append it. Set resolved_level and bidi_type of the glyph.
954 (extend_face_to_end_of_line): If the row is reversed, prepend a
955 stretch glyph whose width is such that the rightmost glyph will be
956 drawn at the right margin of the window. Fix off-by-one error on
957 TTY frames in testing whether a line needs face extension. Fix
958 face extension at ZV. If this is the last glyph row, use
959 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
960 region face.
961 (set_cursor_from_row, display_line): Use
26cdf528
EZ
962 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
963 row->continuation_lines_width.
283ccc18
EZ
964 (next_element_from_buffer): Don't call bidi_paragraph_init if we
965 are at ZV. Fixes a crash when reseated to ZV by
966 try_window_reusing_current_matrix.
45903529
EZ
967 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
968 which happens with R2L glyph rows. Fixes a crash when inserting a
969 character at end of an R2L line.
283ccc18
EZ
970 (set_cursor_from_row): Don't be fooled by truncated rows: don't
971 treat them as having zero-width characters. Improve comments.
972 Don't reverse pos_before and pos_after for reversed glyph rows.
973 Set cursor.x to negative value when the cursor might be on the
974 left fringe.
975 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
976 left fringe, not the right one.
f951a506
EZ
977 (notice_overwritten_cursor, draw_phys_cursor_glyph)
978 (erase_phys_cursor): For reversed cursor_row, support cursor on
979 the left fringe.
980
283ccc18
EZ
981 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
982 of continuation indicators on the fringes.
983 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
984 left fringe.
985
f951a506
EZ
986 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
987 draw cursor on the left fringe.
988
989 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
990 cursor on the left fringe.
991
f951a506
EZ
992 * dispnew.c (update_text_area): Handle reversed desired rows when
993 the cursor is on the left fringe.
994 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
995 below, not by 0, for when the cursor is on the left fringe.
996
3bb49aaf
JD
9972010-04-20 Jan Djärv <jan.h.d@swipnet.se>
998
999 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1000 widget is a scrollbar.
1001
c0be27fd
KH
10022010-04-20 Kenichi Handa <handa@m17n.org>
1003
1004 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1005 only when the arg CHARSET_LIST is nil.
1006
ce5b453a
SM
10072010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1008
1009 Make variable forwarding explicit rather the using special values.
1010 Basically, this makes the structure of buffer-local values and object
1011 forwarding explicit in the type of Lisp_Symbols rather than use
1012 special Lisp_Objects for that. This tends to lead to slightly more
1013 verbose code, but is more C-like, simpler, and makes it easier to make
1014 sure we handled all cases, among other things by letting the compiler
1015 help us check it.
1016 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1017 Removing forwarding objects.
1018 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1019 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1020 explicit rather than hiding them inside Lisp_Object "values".
1021 (XFWDTYPE): New macro.
1022 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1023 (XBUFFER_LOCAL_VALUE): Remove.
1024 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1025 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1026 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1027 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1028 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1029 Remove the Lisp_Misc_* header.
1030 (struct Lisp_Buffer_Local_Value): Redefine.
1031 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1032 (struct Lisp_Misc_Any): Add filler to get the right size.
1033 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1034 Lisp_Intfwd.
1035 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1036 (DEFVAR_KBOARD): Allocate a forwarding object.
1037 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1038 (let_shadows_global_binding_p): New function.
1039 (union Lisp_Val_Fwd): New type.
1040 (make_blv): New function.
1041 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1042 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1043 (swap_in_symval_forwarding, find_symbol_value, Fset)
1044 (let_shadows_buffer_binding_p, set_internal, default_value)
1045 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1046 (Fkill_local_variable, Fmake_variable_frame_local)
1047 (Flocal_variable_p, Flocal_variable_if_set_p)
1048 (Fvariable_binding_locus):
1049 * xdisp.c (select_frame_for_redisplay):
1050 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1051 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1052 * frame.c (store_frame_param):
1053 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1054 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1055 value structure.
1056 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1057 (clone_per_buffer_values): Only adjust markers into the current buffer.
1058 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1059 (Fbuffer_local_value, set_buffer_internal_1)
1060 (swap_out_buffer_local_variables):
1061 Adapt to the new symbol value structure.
1062 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1063 (defvar_per_buffer): Take a new arg for the fwd object.
1064 (buffer_lisp_local_variables): Return a proper alist (different fix
1065 for bug#4138).
1066 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1067 (Fgarbage_collect): Don't handle buffer_defaults specially.
1068 (mark_object): Handle new symbol value structure rather than the old
1069 special Lisp_Misc_* objects.
1070 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1071 * term.c (set_tty_color_mode):
1072 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1073 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1074 a buffer_local_flags.
1075 * print.c (print_object): Get rid of impossible forwarding objects.
1076
fd3998ff
EZ
10772010-04-19 Eli Zaretskii <eliz@gnu.org>
1078
1079 * bidi.c (bidi_get_type, bidi_get_category)
1080 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1081 (bidi_type_of_next_char, bidi_level_of_next_char):
1082 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1083
e42cd1a7
JB
10842010-04-19 Juanma Barranquero <lekktu@gmail.com>
1085
1086 * dired.c (Ffile_attributes): Fix typo in docstring.
1087
6e104790 10882010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1089
1090 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1091 NSInteger (Bug#5811).
1092
6e104790 10932010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1094
1095 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1096 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1097
6e104790 10982010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1099
1100 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1101
6e104790
SM
11022010-04-19 Chong Yidong <cyd@stupidchicken.com>
1103
1104 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1105 terminal frames (Bug#5837).
1106
37dcfea0
EZ
11072010-04-19 Eli Zaretskii <eliz@gnu.org>
1108
d1da276f
EZ
1109 * .gdbinit (xsubchartable): New command.
1110
37dcfea0
EZ
11112010-04-19 Eli Zaretskii <eliz@gnu.org>
1112
1113 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1114 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1115 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1116 and
1117 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1118
e9515805
SM
11192010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1120
1121 * alloc.c (Fpurecopy): Hash-cons if requested.
1122 (syms_of_alloc): Update purify-flag docstring.
1123
22aa44a8
JD
11242010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1125
1126 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1127 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1128
ebb5722e
EZ
11292010-04-17 Eli Zaretskii <eliz@gnu.org>
1130
1131 Fix a crash when an NSM character is inserted at BEGV.
1132
1133 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1134 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1135 NEUTRAL_B or UNKNOWN_BT.
1136
0f4442ef
EZ
11372010-04-16 Eli Zaretskii <eliz@gnu.org>
1138
1139 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1140 other rows with cursor unless they are different from this row and
1141 this row is part of a continued line. (Bug#5943)
1142
7d4e45f8
DN
11432010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1144
1145 * s/freebsd.h: Restore osreldate.h include.
1146 Suggested by Naohiro Aota.
1147
5ba5ec85
J
11482010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1149
1150 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1151
20af301d
CY
11522010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1153
1154 * s/cygwin.h: Avoid linking against static libgcc.
1155
a4b000fb
JL
11562010-04-15 Juri Linkov <juri@jurta.org>
1157
1158 * window.c: Add Qscroll_command.
1159 Remove Vscroll_preserve_screen_position_commands.
1160 (window_scroll_pixel_based, window_scroll_line_based): Check the
1161 `scroll-command' property on the last command instead of searching
1162 the last command in Vscroll_preserve_screen_position_commands.
1163 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1164 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1165 (scroll-preserve-screen-position): Doc fix.
1166 (Vscroll_preserve_screen_position_commands): Remove variable.
1167
bc319ba4
DN
11682010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1169
6bb24457
DN
1170 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1171
19d4c244
DN
11722010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1173
1174 Reduce cpp use in Makefile.in.
1175 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1176 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1177 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1178 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1179 (CRT0_COMPILE): Remove, inline it in the only user.
1180
32129746
JL
11812010-04-14 Juri Linkov <juri@jurta.org>
1182
1183 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1184 `scroll-up-command' and `M-v' from `scroll-down' to
1185 `scroll-down-command'.
1186
9013a7f8
JL
11872010-04-14 Juri Linkov <juri@jurta.org>
1188
1189 * window.c (Vscroll_preserve_screen_position_commands): New variable
1190 with the default value as the list of Qscroll_down and Qscroll_up.
1191 (window_scroll_pixel_based, window_scroll_line_based): Search the
1192 last command in the list Vscroll_preserve_screen_position_commands
1193 instead of comparing with Qscroll_up and Qscroll_down.
1194
4bef8d26
JD
11952010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1196
92848133
JD
1197 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1198 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1199 does that.
1200
4bef8d26
JD
1201 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1202 to zero.
1203
58b963f7
SM
12042010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1205
84164a0d
SM
1206 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1207
2b0a91e7
SM
1208 Try to solve the problem of spurious EOF chars in long lines of text
1209 sent to interactive subprocesses.
1210 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1211 (system_process_attributes): Remove unused var `ttotal'.
1212 * process.c (send_process): Don't bother breaking long line with EOF
1213 chars when talking to ttys any more.
1214 (wait_reading_process_output): Output a warning when called in such
1215 a way that it could block without being interruptible.
1216
58b963f7
SM
1217 Try to detect file modification within the same second.
1218 * buffer.h (struct buffer): New field modtime_size.
1219 * buffer.c (reset_buffer): Initialize it.
1220 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1221 (Fverify_visited_file_modtime): Check it.
1222 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1223 (Fset_visited_file_modtime): Set (or clear) it.
1224
01f5787b
SM
12252010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1226
1227 * process.c (status_notify): Remove unused var `ro'.
1228
83725342
JD
12292010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1230
1231 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1232 more than one visual (Bug#5938).
1233
b9465836
DN
12342010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1235
50426a04
JB
1236 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1237 Undefine.
b9465836 1238
8d9c8ece
DN
12392010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1240
b1f52161
DN
1241 Remove C_SWITCH_SYSTEM_TEMACS.
1242 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1243 (malloc, realloc, free): Use emacs, not temacs for conditional
1244 definition.
1245
1246 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1247 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1248
8d9c8ece
DN
1249 Use autoconf, not cpp for some variables.
1250 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1251 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1252 (ALL_CFLAGS): Use them as make variables.
1253 (really-lwlib, really-oldXMenu): Do not pass them.
1254
1ecb2d3f
JD
12552010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1256
1257 * xmenu.c (apply_systemfont_to_dialog): New.
1258 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1259
3a4fa2f2
SM
12602010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1261
97e53006
SM
1262 * process.c (exec_sentinel): Preserve current-buffer.
1263
3a4fa2f2
SM
1264 * process.c (read_process_output): Move the save-current-buffer to
1265 apply to both the filter and the non-filter branches.
1266
88df7221
DN
12672010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1268
1269 * s/msdos.h (UNEXEC): New definition.
1270
5634ff85
YM
12712010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1272
6eff5c3d
YM
1273 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1274 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1275
1276 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1277 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1278 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1279 TRY_WINDOW_CHECK_MARGINS.
1280
1281 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1282 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1283 width only when it is for padding.
5634ff85 1284
b13aef54
J
12852010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1286
1287 * xfns.c (Fx_show_tip): Call try_window in a loop until
1288 fonts_changed_p is zero (Bug#2423).
1289
21d28484
EZ
12902010-04-08 Eli Zaretskii <eliz@gnu.org>
1291
1292 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1293 the end of TEXT_AREA. (Bug#5856)
1294
0269ef77
JD
12952010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1296
1297 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1298 HAVE_GCONF.
1299
5930fe97
EZ
13002010-04-08 Eli Zaretskii <eliz@gnu.org>
1301
1302 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1303 prev.orig_type, for resolving type of NSM. (Bug#5858)
1304
99852628
JD
13052010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1306
1307 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1308 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1309 in current_font.
1310 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1311 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1312 New functions.
1313 (syms_of_xsettings): Initialize current_font.
1314 defsubr Sfont_get_system_normal_font.
99852628
JD
1315
1316 * xsettings.h (Ffont_get_system_normal_font,
1317 xsettings_get_system_normal_font): Declare.
1318
1319 * xfns.c (extern xlwmenu_default_font): Remove.
1320 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1321 to xlwmenu.c.
1322
1323 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1324 menu items in UTF-8.
1325
1326 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1327 (apply_systemfont_to_menu): New function.
1328 (set_frame_menubar, create_and_show_popup_menu): Call
1329 apply_systemfont_to_menu.
1330
7fc874c4
J
13312010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1332
1333 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1334 FRAME_LINE_TO_PIXEL_Y.
1335
1336 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1337 pixelwidth/height.
1338
863bf481
DN
13392010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1340
5e5a3b92
DN
1341 Simplify code for HP machines.
1342 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1343 for GNU_LINUX, not needed.
1344 (UNEXEC, NEED_BSDTTY): Move definitions...
1345 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1346
863bf481
DN
1347 * m/iris4d.h (UNEXEC): Move definition ...
1348 * s/irix6-5.h (UNEXEC): ... here.
1349
3e6bec3b
JD
13502010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1351
1352 * xfns.c (set_machine_and_pid_properties): New function.
1353 (Fx_create_frame): Call set_machine_and_pid_properties.
1354
2912322b
SM
13552010-04-03 Eli Zaretskii <eliz@gnu.org>
1356
1502b819
EZ
1357 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1358 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1359 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1360
2912322b
SM
1361 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1362 in this function. (Bug#5703)
1363
13642010-04-03 Chong Yidong <cyd@stupidchicken.com>
1365
1366 * nsterm.h: Fix last change.
1367
c435b432
DN
13682010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1369
a568f507
DN
1370 * m/intel386.h (NO_REMAP): Move definition ...
1371 * s/msdos.h (NO_REMAP): ... here.
1372
4cd9f6c2
DN
1373 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1374
c435b432
DN
1375 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1376 used on those platforms.
1377
42a2c622
DN
13782010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1379
1380 Remove extern errno declarations.
1381 * xterm.c:
1382 * xrdb.c:
1383 * w32term.c:
1384 * unexec.c:
1385 * unexaix.c:
1386 * sysdep.c:
1387 * process.c:
1388 * lread.c:
1389 * keyboard.c:
1390 * floatfns.c:
1391 * filelock.c:
1392 * fileio.c:
1393 * emacs.c (main):
1394 * ecrt0.c:
1395 * dispnew.c:
1396 * callproc.c:
1397 * buffer.c: Remove errno extern declarations.
1398 * s/netbsd.h (NEED_ERRNO): Remove.
1399
8224f93d
DN
14002010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1401
1402 Remove all uses of LIBX11_SYSTEM.
1403 * Makefile.in (LIBX11_SYSTEM): Remove.
1404 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1405 instead.
1406
814062c7
EZ
14072010-04-01 Eli Zaretskii <eliz@gnu.org>
1408
ed68db4d
EZ
1409 Remove support for DJGPP v1.x (bug#5813).
1410
1411 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1412 * s/msdos.h:
1413 * unexec.c (make_hdr, copy_text_and_data):
1414 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1415 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1416 (IT_set_terminal_modes, __write, _rename, gethostname)
1417 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1418 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1419 the value of __DJGPP__.
ed68db4d
EZ
1420 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1421 compatibility code.
8224f93d
DN
1422 * lread.c:
1423 * gmalloc.c (memalign):
1424 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1425 * emacs.c (main):
1426 * dosfns.c (init_dosfns):
ed68db4d
EZ
1427 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1428
52f4d8d5
EZ
14292010-04-01 Eli Zaretskii <eliz@gnu.org>
1430
814062c7
EZ
1431 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1432 string with `cursor' property comes from an `after-string'
1433 overlay. (Bug#5816)
1434
0dc2e11d
GM
14352010-04-01 Glenn Morris <rgm@gnu.org>
1436
1437 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1438 Define as Makefile variables.
1439 (LIBX): Use above variables rather than directly using autoconf.
1440
1d29df59
DN
14412010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1442
1443 Clean up BSD_SYSTEM use.
1444 * xterm.c:
1445 * process.c:
1446 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1447 for including <sys/ioctl.h>.
1448 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1449 code is only used for MSDOS.
1450
1546c559
JL
14512010-03-31 Juri Linkov <juri@jurta.org>
1452
1453 * image.c: Add `Qextension_data'.
1454 (syms_of_image): Initialize and staticpro `Qextension_data'.
1455 (Fimage_metadata): Rename from `Fimage_extension_data'.
1456 (gif_load): Put GIF extension data to the property
1457 `Qextension_data'.
1458
b8a1d5a1
CY
14592010-04-05 Chong Yidong <cyd@stupidchicken.com>
1460
1461 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1462 terminal frames (Bug#5837).
1463
6521c534
CY
14642010-03-31 Chong Yidong <cyd@stupidchicken.com>
1465
1466 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1467 * nsterm.h: Fix prototype.
1468
52c30783
EZ
14692010-03-31 Eli Zaretskii <eliz@gnu.org>
1470
1471 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1472 trailing whitespace in right-to-left rows.
1473
855a0da7
SM
14742010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1475
1476 Get rid of the direct_output optimizations.
1477 * keyboard.c (nonundocount): Remove extern declaration.
1478 (command_loop_1): Remove brittle optimisation for cheap and
1479 common operations.
1480 * xdisp.c (redisplay_internal): Don't bother checking
1481 redisplay_performed_directly_p any more.
1482 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1483 any more.
1484 * dispnew.c (redisplay_performed_directly_p)
1485 (direct_output_for_insert, direct_output_forward_char):
1486 * dispextern.h (redisplay_performed_directly_p)
1487 (direct_output_for_insert, direct_output_forward_char): Remove.
1488 * cmds.c (nonundocount): Make it static.
1489
85738751 14902010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1491
1492 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1493
85738751 14942010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1495
1496 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1497 invisible (Bug#5766).
1498
85738751 14992010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1500
855a0da7
SM
1501 * xdisp.c (x_consider_frame_title, update_window_cursor):
1502 Remove HAVE_NS conditionals.
194d44e7 1503 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1504
1505 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1506 filename for the title.
1507 (ns_set_doc_edited): Do nothing if the selected window is a
1508 minibuffer window.
1509
1510 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1511 ns_set_doc_edited.
1512
1513 * nsterm.m: Remove unneeded prototype.
1514
85738751 15152010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1516
1517 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1518 in the DOC file. (Bug#5336)
1519
85738751 15202010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1521
1522 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1523
75d1428c
SM
15242010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1525
1526 * window.c (keys_of_window): Remove redundant/overridden bindings.
1527
82043cfb
EZ
15282010-03-30 Eli Zaretskii <eliz@gnu.org>
1529
1530 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1531 Restore original behavior when the iterator is not bidi_p.
1532
b5dd0ae7
DN
15332010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1534
1535 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1536
bd924a5d
EZ
15372010-03-30 Eli Zaretskii <eliz@gnu.org>
1538
1539 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1540 are outside the range of cached character positions.
1541
3580374b
JB
15422010-03-30 Juanma Barranquero <lekktu@gmail.com>
1543
1544 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1545
a7b02820
EZ
15462010-03-30 Eli Zaretskii <eliz@gnu.org>
1547
1548 Initial support for bidirectional editing.
1549
1550 * Makefile.in (obj): Include bidi.o.
1551 (bidi.o): New target.
1552
1553 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1554 ($(BLD)/bidi.$(O)): New target.
1555
1556 * bidi.c: New file.
1557
1558 * buffer.h (struct buffer): New members bidi_display_reordering
1559 and bidi_paragraph_direction.
1560
1561 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1562 and bidi_paragraph_direction.
1563 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1564 and bidi-paragraph-direction.
1565 (Fbuffer_swap_text): Swap the values of
1566 bidi_display_reordering and bidi_paragraph_direction.
1567
1568 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1569 (bidi_type_t, bidi_dir_t): New types.
1570 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1571 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1572 prev_stop, base_level_stop, and eol_pos.
1573 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1574 (IT_STACK_SIZE): Enlarge to 5.
1575 (struct glyph_row): New member reversed_p.
1576 <string_buffer_position>: Update prototype.
1577 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1578 glyph_row if bidi_it.paragraph_dir == R2L.
1579 (struct glyph): New members resolved_level and bidi_type.
1580
1581 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1582 processing or buffer's direction is right-to-left.
1583 (prepare_desired_row): Preserve the reversed_p flag.
1584 (row_equal_p): Compare the reversed_p attributes as well.
1585
1586 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1587 bidi_init_it and set it->paragraph_embedding from the current
1588 buffer's value of bidi_paragraph_direction.
1589 (reseat_1): Initialize bidi_it.first_elt.
1590 (set_iterator_to_next, next_element_from_buffer): Use the value of
1591 paragraph_embedding to determine the paragraph direction.
1592 (set_iterator_to_next): Under bidi reordering, call
1593 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1594 new_paragraph flag is set in the bidi iterator.
1595 (next_element_from_buffer): If bidi_it.first_elt is set,
1596 initialize paragraph direction and find the first character to
1597 display in the visual order. If reseated to a middle of a line,
1598 prime the bidi iterator starting at the line's beginning. Handle
1599 the situation where we overstepped stop_charpos due to
1600 non-linearity of the bidi iteration. Likewise for when we back up
1601 beyond the previous stop_charpos. When moving across stop_charpos,
1602 record it in prev_stop.
1603 (display_line): Set row->end and it->start for the next row to the
1604 next character in logical order. Always extend reversed_p rows to
1605 the end of line, even if they end at ZV. Copy the reversed_p flag
1606 to the next glyph row. Keep calling set_cursor_from_row for
1607 bidi-reordered rows even if we already have a possible candidate
1608 for cursor position. Set row_end after all the row's glyphs have
1609 been produced, by looping over the glyphs. Record the position
1610 after EOL in it->eol_pos, and use it to set end_pos of the last
1611 row produced for a continued line.
1612 <Qright_to_left, Qleft_to_right>: New variables.
1613 (syms_of_xdisp): Initialize and staticpro them.
1614 (string_buffer_position_lim): New function.
1615 (string_buffer_position): Most of code moved to
1616 string_buffer_position_lim. Last argument and return value are
1617 now EMACS_INT; all callers changed.
1618 (set_cursor_from_row): Rewritten to support bidirectional text and
1619 reversed glyph rows.
1620 (text_outside_line_unchanged_p, try_window_id): Disable
1621 optimizations if we are reordering bidirectional text and the
1622 paragraph direction can be affected by the change.
1623 (append_glyph, append_composite_glyph)
1624 (produce_image_glyph, append_stretch_glyph): Set the
1625 resolved_level and bidi_type members of each glyph.
1626 (append_glyph): If the glyph row is reversed, prepend the glyph
1627 rather than appending it.
1628 (handle_stop_backwards): New function.
1629 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1630 (reseat): call handle_stop_backwards to recompute prev_stop and
1631 base_level_stop for the new position.
1632 (handle_invisible_prop): Under bidi iteration, skip invisible text
1633 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1634 paragraph direction. Update IT->prev_stop after skipping
1635 invisible text.
1636 (move_it_in_display_line_to): New variables prev_method
1637 and prev_pos. Compare for strict equality in
1638 BUFFER_POS_REACHED_P.
1639 (try_cursor_movement): Examine all the candidate rows that occlude
1640 point, to return the best match. If rows are bidi-reordered
1641 and point moved backwards, back up to the row that is not a
1642 continuation line, and start looking for a suitable row from
1643 there.
1644
1645 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1646 rather than appending, if the glyph_row's reversed_p flag is set.
1647 Set the resolved_level and bidi_type members of each glyph.
1648
1649 * .gdbinit (pbiditype): New command.
1650 (pgx): Use it to display bidi level and type of the glyph.
1651 (pitx): Display some bidi information about the iterator.
1652 (prowlims, pmtxrows): New commands.
1653
32a8894e
DN
16542010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1655
1656 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1657 * s/usg5-4.h (LIBS_DEBUG):
1658 * s/irix6-5.h (C_DEBUG_SWITCH):
1659 * s/gnu-linux.h (LIBS_DEBUG):
1660 * s/darwin.h (LIBS_DEBUG):
1661 * s/bsd-common.h (LIBS_DEBUG):
1662 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1663 * m/iris4d.h (LIBS_DEBUG):
1664 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1665
1666 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1667 (LIBS_DEBUG): Remove definition.
1668
649dbf36
CY
16692010-03-27 Chong Yidong <cyd@stupidchicken.com>
1670
1671 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1672 Windows.
1673
cad4261f
YM
16742010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1675
1676 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1677 `connect' (Bug#5723).
1678
cd591dbc
HE
16792010-03-25 Helmut Eller <eller.helmut@gmail.com>
1680
1681 * process.c (Fmake_network_process): Call `select' for interrupted
1682 `connect' rather than creating new socket (Bug#5173).
1683
e867cb5d 16842010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1685
1686 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1687
1688 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1689
1690 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1691
e867cb5d 16922010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1693
1694 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1695 XLoadQueryFont.
1696
e867cb5d 16972010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1698
1699 * coding.c (decode_coding_ccl): Fix previous change for the
1700 multibyte case.
fb608df3
KH
1701 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1702 case that the output buffer is fullfilled.
1703 (encode_coding): Setup ccl program here.
fbdc1721 1704
e867cb5d 17052010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1706
1707 * editfns.c (Fformat): Account for string precision when computing
1708 field width (Bug#5710).
1709
5845f0ed
DN
17102010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1711
814fb708
DN
1712 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1713
5845f0ed
DN
1714 Simplify LIBS_MACHINE definitions.
1715 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1716 * m/iris4d.h (LIBS_MACHINE): Likewise.
1717 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1718 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1719 * s/netbsd.h: Remove commented out code.
5845f0ed 1720
b7064064
DN
17212010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1722
df7734b2
DN
1723 Remove dead code dealing with POSIX_SIGNALS.
1724 * atimer.c (set_alarm): Remove dead code, all USG systems define
1725 POSIX_SIGNALS.
1726 * data.c (arith_error): Likewise.
1727 * keyboard.c (input_available_signal, handle_user_signal)
1728 (interrupt_signal): Likewise.
1729 * process.c (sigchld_handler): Likewise.
1730 (create_process): Remove if 0 code. Remove HPUX conditional when
1731 !defined (POSIX_SIGNALS), it cannot be true.
1732 * syssignal.h: Remove USG5_4 and USG conditionals when
1733 !POSIX_SIGNALS, they cannot be true.
1734
b7064064
DN
1735 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1736 NO_SOCK_SIGIO, not used anymore.
1737
55da5ee3
DN
17382010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1739
0be96e3a
DN
1740 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1741 support vax on BSDs.
1742
55da5ee3
DN
1743 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1744 * s/aix4-2.h (ORDINARY_LINK): ... here.
1745
c0282183
AS
17462010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1747
82c3d67a
AS
1748 * Makefile.in (abs_builddir): Define.
1749 (bootstrap_exe): Use it.
1750 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1751
3613edce
SM
17522010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1753
1754 * Makefile.in (bootstrap_exe): Use an absolute name.
1755
7f110ddc
DN
17562010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1757
22e87574
DN
1758 Remove support for old GNU/Linux using libc version 5.
1759 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1760 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1761
05a670e6
DN
1762 Consolidate redundant definitions in s/bsd-common.h.
1763 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1764 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1765 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1766 doing it in all files that include this one.
1767 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1768 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1769 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1770 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1771 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1772 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1773 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1774 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1775 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1776
2968f561
DN
1777 Consolidate redundant definitions.
1778 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1779 it's undefined in all files that include this one.
1780 (POSIX_SIGNALS): Define here instead of doing it in all files that
1781 include this one.
1782 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1783 (POSIX_SIGNALS): Do not define.
1784 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1785 (POSIX_SIGNALS): Do not define.
1786 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1787 (POSIX_SIGNALS): Do not define.
1788
15d25dc0
DN
1789 Remove support for old UNIX System V systems.
1790 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1791 * s/usg-5-4-2.h: Remove.
1792
07e339e4
DN
1793 Remove support for Solaris on PPC and for old versions.
1794 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1795 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1796 that cancel each other.
1797 * s/sol2-3.h:
1798 * s/sol2-4.h:
1799 * s/sol2-5.h: Remove.
1800 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1801 (NO_REMAP): Remove, unused.
1802 (UNEXEC): Move definition ...
1803 * s/aix4-2.h (UNEXEC): ... here.
1804
7f110ddc
DN
1805 * s/openbsd.h: Remove support for non-ELF and for systems that do
1806 not support shared libraries.
1807 * s/netbsd.h:
1808 * s/freebsd.h: Likewise.
1809
605f35cd
DN
18102010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1811
1812 Remove non-working support for lynxos 3.0.
1813 * s/lynxos.h: Remove file.
1814
1815 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1816 COFF_BSD_SYMBOLS, nothing defines it anymore.
1817
aed71cf4
DN
18182010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1819
1820 Remove obsolete uses of HAVE_SHM.
1821 * emacs.c (standard_args):
1822 (Fdump_emacs):
1823 (syms_of_emacs): Remove code depending on HAVE_SHM.
1824
1825 * alloc.c: Remove HAVE_SHM dependent definition.
1826
1827 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1828
aded53ff
GM
18292010-03-18 Glenn Morris <rgm@gnu.org>
1830
17284745
GM
1831 * emacs.c (USAGE4): Hard-code bug address.
1832 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1833 (bug_reporting_address): Remove.
1834 (main): Don't call bug_reporting_address.
1835
aded53ff
GM
1836 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1837 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1838
303500aa
CY
18392010-03-15 Chong Yidong <cyd@stupidchicken.com>
1840
1841 * xfns.c (Fx_create_frame):
1842 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1843 on left.
1844
cef3058f
CY
18452010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1846
1847 * editfns.c (Fformat): Account for string precision when computing
1848 field width (Bug#5710).
1849
a647d59d
CY
18502010-03-12 Chong Yidong <cyd@stupidchicken.com>
1851
4fa42018
CY
1852 * xfns.c (Fx_create_frame): Set default to Qright.
1853
a647d59d
CY
1854 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1855 all window systems.
1856
6da23aaa
EZ
18572010-03-12 Eli Zaretskii <eliz@gnu.org>
1858
a96f6398 1859 These changes remove termcap.c from the build on Posix platforms.
83d02def 1860 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1861 (MSDOS_OBJ): ...to here.
1862 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1863 now identical to when LIBS_TERMCAP is defined.
1864
1865 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1866
1867 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1868
a96f6398 1869 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1870
288f9fc0
CY
18712010-03-10 Chong Yidong <cyd@stupidchicken.com>
1872
1873 * Branch for 23.2.
1874
d48cd3f4
SM
18752010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1876
1877 Cleanup setup of gl_state in various parts of the code.
1878 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1879 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1880 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1881 (skip_chars):
1882 * regex.c (regex_compile): Use it.
1883 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1884 it's now set in regex_compile when/if we need it.
1885
618db430
SM
18862010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1887
c0335e02
SM
1888 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1889 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1890 (QUIT): Use it to consolidate code and remove redundancy.
1891 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1892
254c06a8
SM
1893 * regex.c (regex_compile): Setup gl_state as well.
1894
618db430
SM
1895 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1896 (in_classes): Use CONSP before XCAR/XCDR.
1897
233f0c9f
CY
18982010-03-03 Chong Yidong <cyd@stupidchicken.com>
1899
1900 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1901 definitions, so that keyboard macros are correctly handled
1902 (Bug#5481).
1903
75f80e63
EZ
19042010-03-02 Eli Zaretskii <eliz@gnu.org>
1905
1906 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1907 text that could be relocated inside the call to emacs_mule_char.
1908 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1909 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1910
dcfb9bc4
KH
19112010-03-02 Kenichi Handa <handa@m17n.org>
1912
fc9a17bc
KH
1913 * character.c (parse_str_as_multibyte): Fix handling of the
1914 multibyte form of raw-bytes.
1915 (str_as_multibyte): Likewise.
1916
dcfb9bc4
KH
1917 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1918 form of raw-bytes.
1919
412c01b6
CY
19202010-02-28 Chong Yidong <cyd@stupidchicken.com>
1921
1922 * charset.c (load_charset_map_from_file)
1923 (load_charset_map_from_vector): Zero out allocated
1924 charset_map_entries before using them.
1925
df7e1ea0
AS
19262010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1927
1928 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1929
fe69a722
CY
19302010-02-27 Chong Yidong <cyd@stupidchicken.com>
1931
4ed28cf4
CY
1932 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1933 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1934
7379cfce
KH
19352010-02-26 Kenichi Handa <handa@m17n.org>
1936
f88cc4d6
KH
1937 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1938
7379cfce
KH
1939 * xdisp.c (reseat_to_string): Fix previous change.
1940
cf2fdcfb
CY
19412010-02-26 David Reitter <david.reitter@gmail.com>
1942
1943 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1944 Lisp_Object (Bug#4736).
1945
cc6c7c75
KH
19462010-02-25 Kenichi Handa <handa@m17n.org>
1947
1948 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1949
32e737d7
JD
19502010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1951
1952 * xterm.c (XTflash): Move declarations before statements.
1953
1954 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1955 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1956 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1957 (xg_create_tool_bar): Remove unused variables.
1958 (x_wm_set_size_hint): Move declarations before statements.
1959 (xg_create_frame_widgets): Remove variable grav,
1960
676cae9f
CY
19612010-02-21 Chong Yidong <cyd@stupidchicken.com>
1962
1963 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1964
886cc2b8
SM
19652010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1966
1967 * term.c (fatal): Add a final \n if needed (bug#5596).
1968
ddb2d8e2
CY
19692010-02-18 Chong Yidong <cyd@stupidchicken.com>
1970
1971 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1972
2a4f8d3d
GM
19732010-02-18 Glenn Morris <rgm@gnu.org>
1974
1975 * callint.c (Finteractive): Doc fix.
1976
ebaf11b6
KH
19772010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1978
886cc2b8
SM
1979 * coding.c (record_conversion_result):
1980 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1981 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1982 memory allocation error.
1983
d0396581
KH
19842010-02-17 Kenichi Handa <handa@m17n.org>
1985
886cc2b8
SM
1986 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1987 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1988 (decode_coding): Setup ccl program here. Keep looping when the
1989 decoder stopped because the output buffer is
1990 fullfilled (bug#5534).
1991
1992 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1993
98599f74
JD
19942010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1995
471e4f04 1996 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1997 bug #5571.
886cc2b8 1998 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1999 overdrawn.
98599f74 2000
182659ae
JD
20012010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2002
2003 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2004 doing_interact here.
2005 (ice_connection_closed): New function.
2006 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2007 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2008 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2009 returns I/O error.
2010 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2011 bug #5512.
2012
9be32c4e 20132010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2014
2015 * nsfont.m (nsfont_open): The system's value for the font descent
2016 is negative, so round it down to avoid clipping.
2017
a2f3eb19
CY
20182010-02-06 Chong Yidong <cyd@stupidchicken.com>
2019
2020 * charset.c (load_charset_map_from_file)
2021 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2022 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2023
3088147c
CY
20242010-02-05 Chong Yidong <cyd@stupidchicken.com>
2025
2026 * charset.c (load_charset_map_from_file): Allocate large
2027 charset_map_entries structure on the heap rather than the stack.
2028 (Bug#5526).
2029
b57d9029
KH
20302010-01-31 Kenichi Handa <handa@m17n.org>
2031
2032 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2033 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2034
c67d885b
CY
20352010-01-31 Chong Yidong <cyd@stupidchicken.com>
2036
2037 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2038 <deactivated@gmail.com> (Bug#3605).
2039
8fab2362
CY
20402010-01-31 David De La Harpe Golden <david@harpegolden.net>
2041
2042 * fileio.c (Frename_file): Correctly rename symlinks to
2043 directories (Bug#5496).
2044
cb2a62f2
CY
20452010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2046
2047 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2048
944c7a26
AS
20492010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2050
2051 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2052
c024ac08
CY
20532010-01-29 Chong Yidong <cyd@stupidchicken.com>
2054
2055 * frame.c (DEFAULT_ROWS): Change default to 35.
2056
2057 * xfns.c (x_default_font_parameter): Change default XFT font to
2058 monospace-10 (Bug#3643).
2059
af93af83
EZ
20602010-01-29 Eli Zaretskii <eliz@gnu.org>
2061
2062 * w32inevt.c (key_event): Remove unnecessary comparison of
2063 event->uChar.AsciiChar with 128.
2064
ca0eb708
CY
20652010-01-28 Chong Yidong <cyd@stupidchicken.com>
2066
b242dbfc
CY
2067 * fileio.c (Frename_file): Fix last change (Bug#5487).
2068
ca0eb708
CY
2069 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2070
2071 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2072
45d45af5
JD
20732010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2074
2075 * xfns.c (Fx_create_frame): Remove window size matching code from
2076 2010-01-15.
2077 (x_get_current_desktop, x_get_desktop_workarea): Remove
2078
7e233730
JR
20792010-01-27 Jason Rumney <jasonr@gnu.org>
2080
2081 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2082 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2083
86e893e3
KH
20842010-01-27 Kenichi Handa <handa@m17n.org>
2085
2086 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2087 pattern string (Bug#4209).
86e893e3 2088
8719abec
CY
20892010-01-27 David De La Harpe Golden <david@harpegolden.net>
2090
2091 * fileio.c (Frename_file): Call copy-directory and
2092 delete-directory for directories, in order to handle cross-device
2093 renaming (Bug#3353).
2094
844794c8
JD
20952010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2096
aa3e13b5 2097 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2098 sizes 24 and 10. Bug #3643.
844794c8 2099
bd4b5750
SM
21002010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2101
8dc1adf6 2102 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2103 * keymap.c (shadow_lookup): Add `remap' arg.
2104 (describe_map, describe_vector): Update calls to shadow_lookup.
2105 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2106 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2107 perform remapping during shadow_lookup check of remapped_sequences.
2108
285d07e2
CY
21092010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2110
2111 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2112 png_check_sig, which has been removed in libpng 1.4.
2113
c6d09b8d
CY
21142010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2115
2116 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2117 lacks this header file).
2118
3d782998
YM
21192010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2120
2121 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2122 as in Emacs 22.
2123
2aff7c53
YM
21242010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2125
2126 * lisp.h (make_pure_string): String pointer arg now points to const.
2127
2128 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2129 args now point to const.
2130
74327f7a
EZ
21312010-01-22 Eli Zaretskii <eliz@gnu.org>
2132
2133 * lread.c (Fload): Don't treat files without .elc extension as
2134 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2135 them. (bug#5303)
2136
4d1e6632
KH
21372010-01-20 Kenichi Handa <handa@m17n.org>
2138
2139 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2140 treat the source as actual byte sequence.
2141
1fdede8f
AM
21422010-01-19 Alan Mackenzie <acm@muc.de>
2143
2144 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2145 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2146 `signal_after_change_p' to `coherent_change_p', and make the
2147 invocation of `modify_region' conditional on it.
2148
67477f30
JD
21492010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2150
2151 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2152 for debug purpose.
2153 (syms_of_xsettings): Declare xft-settings.
2154
244b023e
CY
21552010-01-18 Chong Yidong <cyd@stupidchicken.com>
2156
2157 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2158
617364fe
CY
21592010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2160
2161 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2162
4fe22cdf
CY
21632010-01-16 Chong Yidong <cyd@stupidchicken.com>
2164
2165 * emacs.c (standard_args): Adjust arg priorities to reflect how
2166 they are processed in startup.el.
2167
e118d2be
AS
21682010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2169
2170 * Makefile.in (lisp, shortlisp): Update.
2171
523ae620
SM
21722010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2173
2174 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2175 code, link the new kboard into all_kboard before running Lisp code,
2176 and protect the new terminal with GCPRO (Bug#5365).
2177 (x_term_init): Remove unused var `atom'.
2178 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2179
f0d13888
JD
21802010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2181
2182 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2183 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2184 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2185 this. Bug #3643.
f0d13888 2186
cc320f07
KH
21872010-01-15 Kenichi Handa <handa@m17n.org>
2188
2189 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2190
7ffdf101
CY
21912010-01-15 Chong Yidong <cyd@stupidchicken.com>
2192
2193 * nsterm.m (Qnone): Define.
2194
2195 * nsfns.m (Qnone): Move definition to nsterm.m.
2196
d12bd917
KH
21972010-01-14 Kenichi Handa <handa@m17n.org>
2198
2199 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2200 systems.
2201
d9a7c140
KH
22022010-01-14 Kenichi Handa <handa@m17n.org>
2203
2204 Make auto-composition work on all buffers even if they are
2205 fundamental mode.
2206
2207 * composite.c (Vauto_composition_mode): New variable.
2208 (composition_compute_stop_pos): Check Vauto_composition_mode
2209 instead of Vauto_composition_function.
2210 (composition_adjust_point, Ffind_composition_internal): Likewise.
2211 (syms_of_composite): Declare Lisp variable
2212 "auto-composition-mode" here.
2213
63286bb2
CY
22142010-01-13 Chong Yidong <cyd@stupidchicken.com>
2215
2216 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2217 during call to vendor-specific-keysyms (Bug#5365).
2218
c2623ee7
YM
22192010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2220
2221 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2222 Call SIGNAL_THREAD_CHECK (Bug#5333).
2223
2224 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2225 Call SIGNAL_THREAD_CHECK.
2226
0b5397c2
SM
22272010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2228
2229 Try to fix bug#5314. This is probably not the final word, tho.
2230 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2231 recent-auto-save-p as a side-effect.
2232 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2233 * buffer.c (Fkill_buffer, reset_buffer):
2234 * editfns.c (Fsubst_char_in_region):
2235 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2236 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2237
dc954cb2
KH
22382010-01-13 Kenichi Handa <handa@m17n.org>
2239
2240 Display buffer name, etc. in mode line by composing correctly.
2241
2242 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2243 STRING is not nil.
0b5397c2 2244 (display_mode_element): Adjust for the change of
dc954cb2
KH
2245 decode_mode_spec and display_line.
2246 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2247 (display_string): Handle the case that STRING is non-null and
2248 LISP_STRING is not nil.
2249
0b5397c2
SM
2250 * xterm.c (x_draw_composite_glyph_string_foreground):
2251 Pay attention to s->face->overstrike.
dc954cb2
KH
2252
2253 * composite.c (composition_reseat_it): Don't check PT if STRING is
2254 non nil.
2255
4a00eaca
YM
22562010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2257
2258 * keyboard.c (read_char): Don't apply previous change when current
2259 buffer is unchanged by command execution.
2260
60abb287
JD
22612010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2262
2263 * keyboard.c (read_char): Return after executing from special map.
2264
893db5bc
GM
22652010-01-12 Glenn Morris <rgm@gnu.org>
2266
2267 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2268 bug-gnu-emacs rather than emacs-pretest-bug.
2269
4d03ece0
CY
22702010-01-11 Chong Yidong <cyd@stupidchicken.com>
2271
2272 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2273 initializing the Lisp variables that depend on them.
2274
1df47e38
YM
22752010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2276
2277 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2278 Clear areas that will not be updated after change of menu bar lines.
2279 Clear the menu bar window's current matrix when the window gets empty.
2280
2f1c6384
CY
22812010-01-09 Chong Yidong <cyd@stupidchicken.com>
2282
e398c61c
CY
2283 * intervals.h, textprop.c (extend_property_ranges): Return value
2284 and args changed. Discard properties that begin at or after the
2285 new end (Bug#5306).
2286
2287 * editfns.c (Fformat): Caller changed.
2288
e5a29a10
CY
2289 * nsterm.m (ns_set_default_prefs): Delete function.
2290 (syms_of_nsterm): Initialize ns_command_modifier,
2291 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2292 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2293
2f1c6384
CY
2294 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2295 position (Bug#4040).
2296
d427a9fa
EZ
22972010-01-09 Eli Zaretskii <eliz@gnu.org>
2298
2299 * editfns.c (Ffloat_time): Doc fix.
2300
21b9df2f
JD
23012010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2302
2303 * xfns.c (Fx_create_frame): Don't create frame larger than display
2304 by default bug#3643.
2305
4b00d3b1
YM
23062010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2307
2308 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2309 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2310 windows above internal border.
2311
2312 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2313 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2314 windows above internal border.
2315
2316 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2317 tool bar windows specially.
2318
2319 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2320
2321 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2322 specially.
2323 (XTflash): Take account of menu bar height.
2324
2325 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2326 specially.
2327
5075d853
JD
23282010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2329
ac146f82 2330 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2331 also be true before we can return early (bug #5339).
2332
474217c8
CY
23332010-01-06 David Reitter <david.reitter@gmail.com>
2334
2335 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2336 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2337 (Bug#3233).
2338
c0e6d47d
JD
23392010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2340
d0cf45b7
JD
2341 * font.c (font_open_entity): Enable chache and call cached_font_ok
2342 for the driver if defined.
2343 (QCuser_spec): New symbol.
2344 (font_spec_from_name): Save name as user-spec.
2345 (font_load_for_lface): Keep user-spec instead of name.
2346 (font_open_by_name): Save name as user-spec.
2347 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2348 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2349
2350 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2351 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2352 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2353
2354 * font.h (struct font_driver): Add cached_font_ok.
2355
c0e6d47d
JD
2356 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2357
7c583cd8
JD
23582010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2359
2360 * xterm.c (x_new_font): Move code for setting rows/cols before
2361 resizing ...
ac146f82 2362 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2363
2364 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2365 (xg_frame_resized, xg_frame_set_char_size):
2366 Call xg_clear_under_internal_border.
7c583cd8 2367 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2368
03f77f0a
CY
23692010-01-05 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * keyboard.c (read_key_sequence): Catch keyboard switch after
2372 making a new tty frame (Bug#5095).
2373
2a1ef5be
KH
23742010-01-05 Kenichi Handa <handa@m17n.org>
2375
2376 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2377
e3eb1dae
SM
23782010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2379
2380 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2381 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2382 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2383
777013f2
MA
23842010-01-03 Michael Albinus <michael.albinus@gmx.de>
2385
2386 * dbusbind.c (xd_add_watch): Improve debug message.
2387 (xd_remove_watch): Improve debug message. If DATA is the session
2388 bus, unset D-Bus session environment.
2389 (Fdbus_init_bus): Pass the bus as argument to
2390 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2391
8932b1c2
CY
23922010-01-01 Chong Yidong <cyd@stupidchicken.com>
2393
87231e2c
CY
2394 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2395
4801c5fa
CY
2396 * lread.c (syms_of_lread): Make it clearer that these are the
2397 names of loaded files (Bug#5068).
2398
8932b1c2
CY
2399 * eval.c (run_hook_with_args): Handle the case where the global
2400 value has the obsolete single-function form (Bug#5026).
2401
11e3c684
CY
24022009-12-27 Chong Yidong <cyd@stupidchicken.com>
2403
2404 * minibuf.c (Fall_completions): Minor optimization.
2405
5b28ce35
EZ
24062009-12-26 Eli Zaretskii <eliz@gnu.org>
2407
5ce6e4f4
JB
2408 * .gdbinit (pgx): Fix display of composite glyphs.
2409 Display cmp.from and cmp.to as well.
2410 (pitx): Fix last change.
5b28ce35 2411
bcffff46
KH
24122009-12-25 Kenichi Handa <handa@m17n.org>
2413
2414 * composite.h (composition_adjust_point): Update prototype.
2415
2416 * composite.c (composition_reseat_it): Don't make a composition
2417 spanning over point.
2418 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2419 composable characters.
2420 (composition_adjust_point): New arg NEW_PT. Callers changed.
2421
2422 * keyboard.c (command_loop_1): Force redisplay if the last point
2423 was within a composition.
2424 (adjust_point_for_property): Don't adjust point for automatic
2425 composition when called after buffer modification.
2426
3f670e9a
EZ
24272009-12-19 Eli Zaretskii <eliz@gnu.org>
2428
5ce6e4f4
JB
2429 * .gdbinit (pitx): Don't use enum names, use their values.
2430 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2431 (pgx): Don't use enum names, use their values.
2432 (pitmethod): New helper command.
2433 (pitx): Use it to display iteration method.
2434 (pgrowit): New command.
2435
ad903955
EZ
2436 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2437
3f670e9a
EZ
2438 Update dependencies in Makefile.in.
2439
2440 * Makefile.in (alloc.o): Depend on termhooks.h.
2441 (atimer.o): Depend on blockinput.h.
2442 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2443 and frame.h.
2444 (callint.o): Depend on systime.h, coding.h, and composite.h.
2445 (callproc.o): Depend on buffer.h.
2446 (casefiddle.o): Don't depend on charset.h.
2447 (casetab.o): Depend on character.h.
2448 (ccl.o): Depend on composite.h.
2449 (chartab.o): Depend on ccl.h.
2450 (cm.o): Depend on dispextern.h.
2451 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2452 (coding.o): Don't depend on $(INTERVALS_H).
2453 (composite.o): Don't depend on dispextern.h explicitly (it's in
2454 $(INTERVALS_H)). Depend on ccl.h.
2455 (data.o): Depend on systime.h, coding.h, composite.h,
2456 dispextern.h, font.h, and ccl.h.
2457 (dired.o): Depend on composite.h.
2458 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2459 composite.h (it's in $(INTERVALS_H)).
2460 (doc.o): Depend on systime.h, coding.h, and composite.h.
2461 (editfns.o): Don't depend explicitly on dispextern.h.
2462 (emacs.o): Depend on frame.h and coding.h.
2463 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2464 (fileio.o): Depend on frame.h and commands.h. Don't depend
2465 explicitly on dispextern.h.
2466 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2467 composite.h.
2468 (fns.o): Don't depend on termhooks.h.
2469 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2470 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2471 coding.h, $(INTERVALS_H), window.h, xterm.h.
2472 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2473 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2474 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2475 fontset.h, ccl.h, and ftfont.h.
2476 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2477 (gtkutil.o): Depend on dispextern.h and composite.h.
2478 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2479 termhooks.h, and ccl.h.
2480 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2481 (intervals.o): Depend on systime.h and coding.h.
2482 (keyboard.o): Depend on composite.h and coding.h.
2483 (keymap.o): Depend on coding.h and frame.h.
2484 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2485 (macros.o): Depend on systime.h, coding.h, and composite.h.
2486 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2487 and atimer.h.
2488 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2489 dispextern.h explicitly.
0b5397c2
SM
2490 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2491 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2492 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2493 (regex.o): Don't depend on charset.h.
2494 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2495 (search.o): Don't depend explicitly on composite.h.
2496 (sound.o): Depend on atimer.h and systime.h.
2497 (syntax.o): Don't depend explicitly on composite.h.
2498 (sysdep.o): Depend on coding.h and composite.h.
2499 (term.o): Depend on xterm.h and buffer.h.
2500 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2501 (textprop.o): Don't depend on dispextern.h explicitly.
2502 (undo.o): Depend on dispextern.h.
2503 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2504 dispextern.h and composite.h explicitly.
2505 (xdisp.o): Depend on ccl.h.
2506 (xfaces.o): Depend on coding.h and ccl.h.
2507 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2508 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2509 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2510 ftfont.h.
2511 (xgselect.o): New dependency.
2512 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2513 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2514 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2515 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2516 (xsmfns.o): Depend on frame.h and dispextern.h.
2517 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2518 sysselect.h.
2519
7a6f7fea
AS
25202009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2521
2522 * font.c (Fclear_font_cache): Pass correct cache argument to
2523 font_clear_cache.
2524
f4c21026
AS
25252009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2526
2527 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2528 twice.
2529
f7ab0997
CY
25302009-12-15 Chong Yidong <cyd@stupidchicken.com>
2531
2532 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2533 calling file-remote-p. Reported by Jim Meyering.
2534
fa8e045a
MA
25352009-12-15 Michael Albinus <michael.albinus@gmx.de>
2536
2537 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2538 avoid compiler warnings. (Bug #5217)
fa8e045a 2539
a63dba42
KH
25402009-12-14 Kenichi Handa <handa@m17n.org>
2541
2542 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2543 in 8-bit encoding.
2544
5ce6e4f4 25452009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2546
2547 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2548 tooltip windows.
2549
223e5fc6
JD
25502009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2551
36acb2a7
JD
2552 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2553 Xatom_net_window_type.
2554
2555 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2556 Xatom_net_window_type.
2557
b8f00677
JD
2558 * xterm.c (my_log_handler): New function.
2559 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2560 so we can filter out buggy messages. (Bug #5120).
b8f00677 2561
e5f0bc9a
JD
2562 * xterm.c (xg_scroll_callback): Parameter list changed,
2563 use parameter GtkScrollType to determine scroll/line/page.
2564 Only allow dragging if a button < 4 is grabbed (bug #5177).
2565 (xg_end_scroll_callback): New function.
2566 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2567 xg_create_scroll_bar.
2568
2569 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2570 (scroll_end_callback): Remove.
2571 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2572 button-release-event. Replace value-changed event with change-value,
2573 bug #5177,
2574 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2575 bug #5177.
2576
2577 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2578 (xg_create_scroll_bar): Add GCallback end_callback.
2579
223e5fc6
JD
2580 * xftfont.c (QClcdfilter): New variable.
2581 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2582 (syms_of_xftfont): Initialize QClcdfilter.
2583
3c055b77
JD
25842009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2585
2586 * xsettings.c (struct xsettings): Add member seen.
2587 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2588 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2589 (apply_xft_settings): Only update Xft settings with what member seen
2590 indicates as new.
2591
05fe33ff
EZ
25922009-12-12 Eli Zaretskii <eliz@gnu.org>
2593
2594 * dispextern.h (struct text_pos): Use EMACS_INT;
2595 (struct glyph): Use EMACS_INT for charpos.
2596 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2597 region_beg_charpos, region_end_charpos,
2598 redisplay_end_trigger_charpos, and also for
2599 iterator_stack_entry.end_charpos and
2600 iterator_stack_entry.stop_charpos.
2601
e8d7886a
JD
26022009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2603
5ce6e4f4 2604 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2605 (xg_create_scroll_bar): Call scroll_end_callback on button release
2606 event (bug #5177).
2607 (xg_event_is_for_scrollbar): != replaced with ==.
2608
d0db2ec8
KH
26092009-12-12 Kenichi Handa <handa@m17n.org>
2610
2611 * ftfont.c (struct ftfont_info): New member matrix.
2612 (ftfont_open): Setup xftfont_info->matrix.
2613 (MFLTFontFT): New member matrix.
2614 (FLOOR, CEIL, ROUND): New macros.
2615 (ftfont_get_metrics): Handle matrix transformation.
2616 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2617
2618 * xftfont.c (struct xftfont_info): New member matrix.
2619 (xftfont_open): Setup xftfont_info->matrix.
2620
26212009-12-10 Kenichi Handa <handa@m17n.org>
2622
2623 * xdisp.c (append_space_for_newline): Consider face-remapping.
2624
2cc7b62f
AS
26252009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2626
b87dd913
AS
2627 * xsettings.c: Include "keyboard.h".
2628
eba5eb94
AS
2629 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2630
2cc7b62f
AS
2631 Fix implicit function declarations.
2632 * cmds.c: Include "frame.h".
2633 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2634 * frame.h: Move declaration of delete_frame outside of
2635 HAVE_WINDOW_SYSTEM.
2636
a4ef73c8
CY
26372009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2638
2639 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2640
2641 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2642 GTK builds.
2643
944a300c
AS
26442009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2645
2646 * unexelf.c (unexec): Don't search for .data twice.
2647
022eef62
CY
26482009-12-05 Chong Yidong <cyd@stupidchicken.com>
2649
426ac949
CY
2650 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2651 if push failed.
2652 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2653 of push_display_prop (Bug#5000).
2654
022eef62
CY
2655 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2656 value of font_list_entities (Bug#5085).
2657
be95bee9
JB
26582009-12-04 Juanma Barranquero <lekktu@gmail.com>
2659
2660 Fix `string-to-number' to deal consistently with integers and floats.
2661 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2662 trailing characters, not just whitespace.
2663 (read1): Pass new arg 0 to keep old behavior.
2664 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2665 trailing chars, as it is already done for integers. Doc fixes.
2666 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2667
24c2d7ce
EZ
26682009-12-04 Eli Zaretskii <eliz@gnu.org>
2669
0b5397c2
SM
2670 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2671 Delete unused enumeration value.
24c2d7ce 2672
7e694795
EZ
26732009-12-03 Eli Zaretskii <eliz@gnu.org>
2674
2675 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2676
84b31826
SM
26772009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2678
2679 * process.c (Fmake_network_process): Fix up the tests for
2680 "connectionless socket", so they DTRT for seqpacket sockets as well.
2681
f00c449b
SM
26822009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2683
2684 * process.c (Qseqpacket): New symbol.
2685 (HAVE_SEQPACKET): New macro.
2686 (Fmake_network_process): Accept new :type `seqpacket'.
2687 (init_process): Add `seqpacket' feature when applicable.
2688 (syms_of_process): Initialize Qseqpacket.
2689
8096a0ff
YM
26902009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2691
2692 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2693 if entity is Qnil.
2694
3e0de07f
SM
26952009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2696
2697 * print.c (print_preprocess): Preprocess the key_and_value table of
2698 hashtables, even tho they're "hidden" (bug#5082).
2699
abeafb2a
JD
27002009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2701
2702 * frame.c (frame_make_pointer_invisible)
2703 (frame_make_pointer_visible): Declare f before statements.
2704
4bf47195
EZ
27052009-11-28 Eli Zaretskii <eliz@gnu.org>
2706
2707 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2708 omitted dependencies on lisp.h.
2709
c525b3f2
JD
27102009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2711
ece2d4ed
JD
2712 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2713 is NULL.
2714
2715 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2716
2717 * frame.c (frame_make_pointer_invisible)
3e0de07f 2718 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2719 frame.
2720
c525b3f2
JD
2721 * search.c (simple_search): Remove warning by making *p const.
2722
2f00e299
DN
27232009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2724
2725 * xdisp.c (power_letter): Remove duplicate const.
2726
084b049b
JD
27272009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2728
a1fadc6f
JD
2729 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2730
5ce6e4f4 2731 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2732 defaults (bug #5025).
2733
28259cac
SM
27342009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2735
2736 * insdel.c (adjust_markers_for_delete): Move it in the
2737 right direction! (bug#4803)
2738
e8e14166
YM
27392009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2740
2741 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2742
2743 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2744
86677b58
GM
27452009-11-24 Glenn Morris <rgm@gnu.org>
2746
2747 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2748
581e51e8
JD
27492009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2750
cfc86c7a
JD
2751 * Makefile.in: Must create deps for ecrt0.o in its rule.
2752
581e51e8
JD
2753 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2754 because that is what Gtk+ font dialog understands.
2755
2756 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2757 of Fcopy_sequence.
2758 (font_open_by_name): Put name given into QCname for font-object returned.
2759
2760 * frame.c (x_set_font): Save original font name as frame parameter
2761 font-parameter.
2762
2763 * xsettings.c (set_default_xft_settings): New function.
2764 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2765 is found.
2766
8b264ecb
AS
27672009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2768
2769 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2770 searching backwards through multibyte buffer.
2771
872870b2
JD
27722009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2773
2774 * xterm.c: #include xgselect.h.
2775 (x_initialize): Call xgselect_initialize.
2776
2777 * xsettings.c (something_changedCB): C++ comments => C comments.
2778 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2779 does that now.
2780
2781 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2782 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2783 (scroll_bar_button_cb): Remove.
5ce6e4f4 2784 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2785 event.
2786 (xg_create_scroll_bar): Don't bind button-press-event and
2787 button-release-event.
2788
2789 * process.c: Include xgselect.h if defined (USE_GTK) ||
2790 defined (HAVE_GCONF).
2791 (wait_reading_process_output): Call xg_select for the same condition.
2792
2793 * xgselect.c (xg_select): New function to better integrate with
2794 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2795
2796 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2797
2798 * Makefile.in (XOBJ): Add xgselect.o.
2799
62a6e103
AS
28002009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2801
0b5397c2
SM
2802 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2803 Remove ignored second argument. All callers changed.
62a6e103
AS
2804 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2805 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2806 * xdisp.c (string_char_and_length): Likewise.
2807
b0ca0f33
DN
28082009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2809
2810 * xterm.c (x_new_font):
2811 * print.c (print_object):
2812 * cmds.c (Fself_insert_command): Move declarations before statements.
2813
dd5a6279
CY
28142009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2815
2816 * s/cygwin.h: Remove unneeded linker flags.
2817
4a8e097d
JD
28182009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2819
0d1d0d26
JD
2820 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2821
2822 * xsettings.h: Declare xsettings_get_system_font.
2823
2824 * xsettings.c (xsettings_get_system_font): New function.
2825 (init_gconf): No use initiating gconf unless we have Xft also.
2826 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2827 HAVE_GCONF.
2828
4a8e097d
JD
2829 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2830 add a blank entry so it doesn't collapse into nothing.
2831
8ab1650e
SM
28322009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2833
2834 * lread.c (Funintern): Comment out last change.
2835
82c602f0
RS
28362009-11-19 Richard Stallman <rms@gnu.org>
2837
2838 * lread.c (Funintern): Error if symbol is t or nil.
2839
87e32266
SM
28402009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2841
2842 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2843 representation of Lisp integers.
2844 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2845
1b9ac145
AS
28462009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2847
2848 * lisp.h: Remove declaration of Ffont_get_system_font.
2849 * xfns.c: Move include of "xsettings.h".
2850 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2851
dfb3c4c6
JD
28522009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2853
87e32266
SM
2854 * xsettings.c (something_changedCB, Ffont_get_system_font):
2855 Check use_system_font.
dfb3c4c6
JD
2856 (syms_of_xsettings): DEFVAR font-use-system-font.
2857
9370c1d8
AS
28582009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2859
25fe851a
AS
2860 * xfns.c (x_default_font_parameter): Remove dead assignment.
2861
9370c1d8
AS
2862 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2863
637fa988
JD
28642009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2865
87e32266 2866 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2867 not have FC_LCD_*. #define them if not there.
a6eb20d8 2868
87e32266 2869 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2870
637fa988
JD
2871 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2872
2873 * xterm.c (handle_one_xevent): Call xft_settings_event for
2874 ClientMessage, PropertyNotify and DestroyNotify.
2875 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2876 Call xsettings_initialize.
2877
2878 * xftfont.c (xftfont_fix_match): New function.
2879 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2880 Call xftfont_fix_match after XftFontMatch.
2881
2882 * xfont.c (xfont_driver): Initialize all members.
2883
87e32266
SM
2884 * xfns.c (x_default_font_parameter):
2885 Try font from Ffont_get_system_font.
637fa988
JD
2886 Do not get font from x_default_parameter if we got one from
2887 Ffont_get_system_font.
87e32266 2888 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2889
2890 * w32font.c (w32font_driver): Initialize all members.
2891
2892 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2893
2894 * lisp.h: Declare syms_of_xsettings.
2895
87e32266
SM
2896 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2897 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2898
2899 * ftfont.c (ftfont_filter_properties): New function.
2900
2901 * frame.c (x_set_font): Remove unused variable lval.
2902
87e32266 2903 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2904
2905 * font.c (font_put_extra): Don't return if val is nil, it means
2906 boolean option is off.
2907 (font_parse_fcname): Collect all extra properties in extra_props
2908 and call filter_properties for all drivers with extra_props and
2909 font as parameter.
87e32266
SM
2910 (font_open_entity): Do not use cache, it does not pick up new
2911 fontconfig settings like hinting.
637fa988
JD
2912 (font_load_for_lface): If spec had a name in it, store it in entity.
2913
2914 * emacs.c (main): Call syms_of_xsettings
2915
2916 * config.in: HAVE_GCONF is new.
2917
2918 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2919 xsettings.o is new.
2920
5a942932
KH
29212009-11-17 Kenichi Handa <handa@m17n.org>
2922
2923 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2924 back to the default font in case that no suitable font is found.
2925
b7c7a4d1
SM
29262009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2927
2928 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2929 Suggested by Chad Brown <yandros@mit.edu>.
2930 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2931
072f1e39
JD
29322009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2933
2934 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2935
5d1e70a2
AS
29362009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2937
87e32266 2938 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2939
a53cfbe5
JD
29402009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2941
473a99b7
JD
2942 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2943 has a parent.
2944
a53cfbe5 2945 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2946 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2947
2948 * config.in: Generated (AUTO_DEPEND).
2949
f04bb9b2
MA
29502009-11-13 Michael Albinus <michael.albinus@gmx.de>
2951
b7c7a4d1 2952 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2953 Vdbus_registered_functions_table, because it contains also
2954 properties. Fix docstring.
b7c7a4d1 2955 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2956
8f11f7ec
SM
29572009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2958
2959 * alloc.c (mark_object): Don't reprocess marked strings.
2960 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2961 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2962
8a605fe8
KH
29632009-11-13 Kenichi Handa <handa@m17n.org>
2964
8f11f7ec 2965 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2966 semantics of Vword_combining_categories.
2967 (Vword_combining_categories): Describe the slight change of the
2968 semantics.
2969
241c4680
EZ
29702009-11-13 Eli Zaretskii <eliz@gnu.org>
2971
2972 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2973
2974 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2975
5d58e44c
SM
29762009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2977
2978 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2979
5e13f9d3
JB
29802009-11-12 Juanma Barranquero <lekktu@gmail.com>
2981
2982 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2983
cf54c754
DR
29842009-11-11 David Reitter <david.reitter@gmail.com>
2985
2986 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2987 variables to fix 2009-11-09 change.
2988
a4ada374
DN
29892009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2990
91433552
DN
2991 * process.c (ifflag_def): Make flag_sym constant.
2992 (Fnetwork_interface_info): Use a constant pointer.
2993 (ifflag_table):
2994 * xfns.c (cursor_bits):
2995 * xdisp.c (power_letter):
2996 * termcap.c (speeds, esctab):
2997 * sysdep.c (baud_convert):
2998 * keyboard.c (lispy_accent_codes, modifier_names):
2999 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3000 (jpeg_format, tiff_format, gif_format, svg_format)
3001 (interlace_start, interlace_increment, gs_format):
3002 * gtkutil.c (separator_names):
3003 * fringe.c (swap_nibble):
3004 * fns.c (base64_value_to_char, base64_char_to_value):
3005 * fileio.c (make_temp_name_tbl):
3006 * coding.c (suffixes): Make constant.
3007
f4265f6c
DN
3008 * frame.c (make_initial_frame):
3009 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3010 build_string.
3011 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3012
04420943
DN
3013 * s/freebsd.h:
3014 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3015
0a5d24ae
DN
3016 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3017 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3018
a4ada374
DN
3019 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3020 * xterm.c (syms_of_xterm):
3021 * xfaces.c (syms_of_xfaces):
3022 * xdisp.c (syms_of_xdisp):
3023 * lread.c (syms_of_lread):
3024 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3025 build_string.
91433552 3026
a4ada374
DN
3027 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3028
af98fc7f
SM
30292009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3030
8ab1650e 3031 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3032
e90292a9
JD
30332009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3034
3035 * keyboard.h: Declare timer_check.
3036
3037 * keyboard.c (timer_check_2): New function that does what the old
3038 timer_check did.
3039 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3040 returned, i.e. don't return -1 with timers pending.
3041
3042 * process.c: Remove extern declaration of timer_check.
3043
3044 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3045 even if timer_check returned -1.
3046
af98fc7f
SM
3047 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3048 xg_dialog_data.
e90292a9
JD
3049 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3050 the event loop.
3051 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3052 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3053 Destroy the dialog after xg_dialog_run.
3054
045b83c0
SM
30552009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3056
3057 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3058
1fb99a3a
JD
30592009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3060
3061 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3062
04e452cb
JB
30632009-11-09 Juanma Barranquero <lekktu@gmail.com>
3064
3065 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3066
ef7417fd
SM
30672009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3068
3069 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3070 w32menu.c, and nsmenu.m.
3071 Simplify the obsolete case where position is nil.
3072 (cleanup_popup_menu): New function, moved from nsmenu.m.
3073 (struct skp): Remove slot `notreal'.
3074 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3075 adjust callers.
3076 (single_menu_item): Adjust call to parse_menu_item.
3077 (syms_of_menu): Defsubr x-popup-menu.
3078 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3079 (keymap_panes): Don't export any more.
3080 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3081 (xmenu_show): Declare.
3082 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3083 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3084 * keyboard.h (parse_menu_item): Update declaration.
3085 * xmenu.c (Fx_popup_menu): Remove.
3086 (syms_of_xmenu): Don't defsubr x-popup-menu.
3087 * w32menu.c (Fx_popup_menu): Remove.
3088 (syms_of_w32menu): Don't defsubr x-popup-menu.
3089 * nsmenu.m (cleanup_popup_menu): Remove.
3090 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3091 moved to menu.c's Fx_popup_menu.
3092 (Fx_popup_menu): Remove.
3093 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3094 menu_items (it's done in menu.c already).
3095
424d6179
SM
30962009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3097
3098 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3099 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3100
c0df13a6 31012009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3102
3103 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3104 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3105 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3106 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3107
2de9f71c
SM
31082009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3109
3110 Let integers use up 2 tags to give them one extra bit and thus double
3111 their range.
3112 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3113 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3114 New macros.
3115 (enum Lisp_Type): Use them. Give explicit values.
3116 (Lisp_Type_Limit): Remove.
3117 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3118 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3119 Pay attention to USE_2_TAGS_FOR_INTS.
3120 (INTEGERP): Use LISP_INT_TAG_P.
3121 * fns.c (internal_equal): Simplify the default case.
3122 (sxhash): Use case_Lisp_Int.
3123 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3124 any more.
3125 (Ftype_of): Use case_Lisp_Int.
3126 (store_symval_forwarding): Take into account the fact that Ints can
3127 now have more than one tag.
3128 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3129 buffer_slot_type_mismatch):
3130 * xfaces.c (face_attr_equal_p):
3131 * print.c (print_object):
3132 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3133 Use case_Lisp_Int.
3134
323637a2
EZ
31352009-11-06 Eli Zaretskii <eliz@gnu.org>
3136
7ac65b38
EZ
3137 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3138
323637a2
EZ
3139 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3140 warning.
3141
e511451f
JD
31422009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3143
3144 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3145
3146 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3147
3148 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3149 ButtonPressRelease and MotionNotify (bug#4870).
3150
5e2327cf
DN
31512009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3152
5adc433e
DN
3153 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3154
d67b4f80
DN
3155 * xterm.c (syms_of_xterm):
3156 * xselect.c (syms_of_xselect):
3157 * xmenu.c (syms_of_xmenu):
3158 * xfns.c (syms_of_xfns):
3159 * xfaces.c (syms_of_xfaces):
3160 * xdisp.c (syms_of_xdisp):
3161 * window.c (syms_of_window):
3162 * w32fns.c (syms_of_w32fns):
3163 * undo.c (syms_of_undo):
3164 * textprop.c (syms_of_textprop):
3165 * terminal.c (syms_of_terminal):
3166 * syntax.c (syms_of_syntax):
3167 * sound.c (syms_of_sound):
3168 * search.c (syms_of_search):
3169 * print.c (syms_of_print):
3170 * minibuf.c (syms_of_minibuf):
3171 * macros.c (syms_of_macros):
3172 * keymap.c (syms_of_keymap, initial_define_key)
3173 (initial_define_lispy_key):
3174 * keyboard.c (syms_of_keyboard):
3175 * insdel.c (syms_of_insdel):
3176 * image.c (syms_of_image):
3177 * fringe.c (syms_of_fringe):
3178 * frame.c (syms_of_frame):
3179 * fontset.c (syms_of_fontset):
3180 * fns.c (syms_of_fns):
3181 * fns.c (syms_of_fns):
3182 * fileio.c (syms_of_fileio):
3183 * fileio.c (syms_of_fileio):
3184 * eval.c (syms_of_eval):
3185 * doc.c (syms_of_doc):
3186 * dispnew.c (syms_of_display):
3187 * dired.c (syms_of_dired):
3188 * dbusbind.c (syms_of_dbusbind):
3189 * data.c (syms_of_data):
3190 * composite.c (syms_of_composite):
3191 * coding.c (syms_of_coding):
3192 * cmds.c (syms_of_cmds):
3193 * charset.c (define_charset_internal, syms_of_character):
3194 * ccl.c (syms_of_ccl):
3195 * category.c (syms_of_category, init_category_once):
3196 * casetab.c (syms_of_casetab):
3197 * casefiddle.c (syms_of_casefiddle):
3198 * callint.c (syms_of_callint):
3199 * bytecode.c (syms_of_bytecode):
3200 * buffer.c (keys_of_buffer, syms_of_buffer):
3201 * alloc.c (syms_of_alloc):
3202 * process.c (syms_of_process, init_process):
3203 * lread.c (syms_of_lread, init_obarray):
3204 * font.c (build_style_table):
3205 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3206 intern_c_string, calls to make_pure_string with
3207 make_pure_c_string. Use pure_cons instead of Fcons.
3208
5e2327cf
DN
3209 * process.c (socket_options): Make it const.
3210 (set_socket_option, init_process): Use a const pointer.
3211
3212 * lread.c (intern_c_string): New function.
3213 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3214 (defvar_int): Uset it. Make the name const char*.
3215
3216 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3217 (defvar_int): Update prototypes.
3218 (DEFUN, EXFUN): Support for prototypes is now required.
3219 (intern_c_string): New prototype.
3220 (struct Lisp_Subr): Make symbol_name constant.
3221
3222 * font.c (struct table_entry): Remove unused member. Make NAMES
3223 constant.
3224 (weight_table, slant_table, width_table): Make constant.
3225
3226 * emacs.c (struct standard_args): Make name and longname constant.
3227
3228 * character.h (DEFSYM): Use intern_c_string.
3229
a56eaaef
DN
32302009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3231
3232 * alloc.c (make_pure_c_string): New function.
3233
3234 * eval.c (Fautoload): Purecopy all arguments.
3235
f6a07420
KH
32362009-11-05 Kenichi Handa <handa@m17n.org>
3237
3238 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3239 the buffer in case of replace.
3240
5d28d4b1
DN
32412009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3242
3243 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3244
b349d111
SM
32452009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3246
d528b1ce
SM
3247 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3248 when applicable (bug#4851).
3249
b349d111
SM
3250 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3251 (P_): Support for prototypes is now required.
3252
c38eb027
CY
32532009-10-31 Chong Yidong <cyd@stupidchicken.com>
3254
3255 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3256 (Bug#4827).
3257
0405f8d9
EZ
32582009-10-30 Eli Zaretskii <eliz@gnu.org>
3259
d528b1ce 3260 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3261
ca0a881a
DN
32622009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3263
3264 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3265
d528b1ce
SM
3266 * lread.c (Fload): Purecopy the file name when building
3267 Vpreloaded_file_list.
ca0a881a 3268
47e0e0e4
JR
32692009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3270
3271 * w32fns.c (syms_of_w32fns): Change default value of
3272 w32-scroll-lock-modifier to nil. (Bug#2827)
3273
057bce6f
JB
32742009-10-26 Juanma Barranquero <lekktu@gmail.com>
3275
782a943e 3276 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3277
242bc74c
AS
32782009-10-26 Andreas Schwab <schwab@redhat.com>
3279
3280 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3281
522d013a
JB
32822009-10-26 Juanma Barranquero <lekktu@gmail.com>
3283
3284 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3285 For delta < 0, skip check that only makes sense when the mini-window
3286 is going to be enlarged. (Bug#4534)
3287
18060980
CY
32882009-10-25 Chong Yidong <cyd@stupidchicken.com>
3289
3290 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3291 string in menu maps (Bug#4471).
3292
fec8f0fe
CY
32932009-10-24 Chong Yidong <cyd@stupidchicken.com>
3294
3295 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3296 FRAME_NS_VIEW on terminal frames (Bug#4765).
3297
10d66ec0
AS
32982009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3299
1cae01f7
AS
3300 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3301 DBUS_TYPE_UINTnn separately to get proper sign extension.
3302
58a12889
AS
3303 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3304 can properly handle unsigned types.
d528b1ce 3305 (make_uid, make_gid): Remove.
58a12889 3306
987c9327
AS
3307 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3308 types again.
3309
522d013a 3310 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3311 (system_process_attributes): Likewise.
3312
905a9ed3
DN
33132009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3314
3315 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3316
3317 * eval.c (Fautoload): Purecopy the filename. Simplify.
3318
3319 * category.c (Fdefine_category): Purecopy docstring.
3320
a599b3e8
AS
33212009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3322
7b792fc9
AS
3323 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3324
a599b3e8
AS
3325 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3326
b35ac83e
CY
33272009-10-23 Chong Yidong <cyd@stupidchicken.com>
3328
3329 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3330 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3331 (Bug#4775).
3332
e8903e00
SM
33332009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3334
3335 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3336 (init_fileio_once):
3337 * lisp.h (init_fileio_once): Remove.
3338 * emacs.c (main): Don't call init_fileio_once.
3339
8f43cbf3
DN
33402009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3341
3342 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3343
26898943
AS
33442009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3345
3346 * doprnt.c (doprnt): Fix overflow check.
3347
5c646d5a
JD
33482009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3349
3132a7ea
JD
3350 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3351
5c646d5a
JD
3352 * xterm.h (x_wait_for_event): Declare it.
3353
3354 * xterm.c (pending_event_wait): New variable.
3355 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3356 see pending_event_wait.eventtype.
3357 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3358 (x_new_font): Call change_frame_size with new rows/columns before we
3359 try to resize the frame.
5c646d5a 3360 (x_wait_for_event): New function.
d528b1ce
SM
3361 (x_set_window_size_1): Don't change gravity unless change_gravity
3362 is set.
5c646d5a
JD
3363 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3364 don't change frame size, instead wait for the ConfigureNotify.
3365 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3366 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3367 (x_initialize): Initialize pending_event_wait.
3368
3369 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3370 size.
3371
3372 * widget.c (EmacsFrameSetValues): Add comment.
3373 (EmacsFrameSetCharSize): Just call x_set_window_size.
3374
3375 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3376 x_wait_for_event.
d528b1ce 3377 (flush_and_sync): Remove again.
5c646d5a
JD
3378 (xg_get_font_name): Suggest monospace if no previous font is known.
3379
e9c1637d
SM
33802009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3381
3382 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3383 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3384
5a72cccb
YM
33852009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3386
3387 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3388 processing pending events when event is filtered for input method.
ab04798f 3389 (Bug#3681)
5a72cccb 3390
2629aa37
JB
33912009-10-20 Juanma Barranquero <lekktu@gmail.com>
3392
3393 * fns.c: Add #endif accidentally removed in previous change.
3394
c3417a74
DN
33952009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3396
3397 * fns.c: Remove code for unsupported system: MAC_OS.
3398 * image.c: Likewise. Include setjmp.h.
3399
9685cef2
JD
34002009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3401
3402 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3403 pixel -1 (bug #4742).
3404
d7306fe6
DN
34052009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3406
019d2c4c
DN
3407 * process.c (create_pty): Remove conditionals for no longer
3408 supported systems: UNIPLUS and RTU.
3409
ee6bacd4
DN
3410 * xterm.c:
3411 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3412
d7306fe6
DN
3413 * alloc.c: Do not define struct catchtag.
3414 * eval.c: Move struct catchtag definition ...
3415 * lisp.h: ... here.
3416
3417 * image.c: Move png.h #include earlier to avoid warnings.
3418
3419 * xterm.c:
3420 * xsmfns.c:
3421 * xselect.c:
3422 * xrdb.c:
3423 * xmenu.c:
3424 * xftfont.c:
3425 * xfont.c:
3426 * xfns.c:
3427 * xfaces.c:
3428 * xdisp.c:
3429 * window.c:
3430 * widget.c:
3431 * w32xfns.c:
3432 * w32uniscribe.c:
3433 * w32term.c:
3434 * w32select.c:
3435 * w32reg.c:
3436 * w32proc.c:
3437 * w32menu.c:
3438 * w32inevt.c:
3439 * w32heap.c:
3440 * w32font.c:
3441 * w32fns.c:
3442 * w32console.c:
3443 * w32.c:
3444 * w16select.c:
3445 * vm-limit.c:
3446 * unexsol.c:
3447 * unexec.c:
3448 * unexcw.c:
3449 * unexaix.c:
3450 * undo.c:
3451 * tparam.c:
3452 * textprop.c:
3453 * terminfo.c:
3454 * terminal.c:
3455 * termcap.c:
3456 * term.c:
3457 * syntax.c:
3458 * sound.c:
3459 * sheap.c:
3460 * search.c:
3461 * scroll.c:
3462 * region-cache.c:
3463 * regex.c:
3464 * ralloc.c:
3465 * process.c:
3466 * print.c:
b024548b
DN
3467 * nsterm.m:
3468 * nsselect.m:
3469 * nsmenu.m:
3470 * nsimage.m:
3471 * nsfont.m:
3472 * nsfns.m:
d7306fe6
DN
3473 * msdos.c:
3474 * minibuf.c:
3475 * menu.c:
3476 * marker.c:
3477 * macros.c:
3478 * keymap.c:
3479 * keyboard.c:
3480 * intervals.c:
3481 * insdel.c:
3482 * indent.c:
3483 * gtkutil.c:
3484 * ftxfont.c:
3485 * ftfont.c:
3486 * fringe.c:
3487 * frame.c:
3488 * fontset.c:
3489 * font.c:
3490 * fns.c:
3491 * floatfns.c:
3492 * filelock.c:
3493 * fileio.c:
3494 * emacs.c:
3495 * editfns.c:
3496 * dosfns.c:
3497 * doprnt.c:
3498 * doc.c:
3499 * dispnew.c:
3500 * dired.c:
3501 * dbusbind.c:
3502 * data.c:
3503 * composite.c:
3504 * coding.c:
3505 * cmds.c:
3506 * cm.c:
3507 * chartab.c:
3508 * charset.c:
3509 * character.c:
3510 * ccl.c:
3511 * category.c:
3512 * casetab.c:
3513 * casefiddle.c:
3514 * callproc.c:
3515 * callint.c:
3516 * bytecode.c:
3517 * buffer.c:
3518 * atimer.c: Include setjmp.h. (Bug#4643)
3519
fd5f21e6
SM
35202009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3521
4c0354d7
SM
3522 Remove leftover table unibyte_to_multibyte_table.
3523 * character.c (unibyte_to_multibyte_table): Remove.
3524 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3525 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3526 * character.h (UNIBYTE_TO_CHAR): New macro.
3527 (MAKE_CHAR_MULTIBYTE): Use it.
3528 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3529 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3530 (message_dolog, set_message_1):
3531 * search.c (Freplace_match):
3532 * editfns.c (Fcompare_buffer_substrings):
3533 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3534 (concat):
3535 * insdel.c (copy_text, count_size_as_multibyte):
3536 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3537 * term.c (produce_glyphs):
3538 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3539 * regex.c (RE_CHAR_TO_MULTIBYTE):
3540 * cmds.c (internal_self_insert):
3541 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3542
fd5f21e6
SM
3543 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3544
4418646e
DN
35452009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3546
3547 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3548
35f5c1d2
JB
35492009-10-16 Juanma Barranquero <lekktu@gmail.com>
3550
3551 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3552
a0cd8f6b
AR
35532009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3554
3555 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3556 still needed under Tiger.
3557
3558 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3559
3560 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3561 __Apple__.
3562
3563 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3564
01a8d3fa
KH
35652009-10-15 Kenichi Handa <handa@m17n.org>
3566
3567 * print.c (print_object): Escape a symbol like "2E10" too.
3568
bf6c75c9 35692009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3570
3571 Cleanups and changes for 64-bit compile under Snow Leopard.
3572 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3573
3574 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3575
c5959062 3576 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3577 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3578 cast argument.
3579 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3580 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3581
3582 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3583
3584 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3585 where appropriate.
3586
3587 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3588 where appropriate.
6e4780c5
JB
3589 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3590 Use stringWithUTF8String.
bf6c75c9
AR
3591 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3592
6e4780c5
JB
3593 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3594 Add formal protocol mention to inheritance.
bf6c75c9
AR
3595 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3596
6e4780c5
JB
3597 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3598 Fix printf format.
bf6c75c9
AR
3599 (ns_query_color): Use CGFloat where appropriate.
3600 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3601 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3602 argument.
3603
3d87f118
AR
3604 * config.in (NS_HAVE_NSINTEGER): Drop.
3605
a95c8102
AR
3606 * dbusbind.c (dbus-method-return-internal)
3607 (dbus-method-error-internal): Use long format in printf, and cast
3608 argument.
3609
3610 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3611 in printf, and cast argument.
3612
6873acca 3613 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3614 cast argument.
3615
9ec6f100
GM
36162009-10-11 Glenn Morris <rgm@gnu.org>
3617
3618 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3619
5be883cd
JD
36202009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3621
3622 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3623 menu bar with a small width so it doesn't enlarge the frame.
3624
d7a39b51
JB
36252009-10-08 Juanma Barranquero <lekktu@gmail.com>
3626
3627 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3628
0c2b6f8e
GM
36292009-10-06 Glenn Morris <rgm@gnu.org>
3630
3631 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3632 SOME_MACHINE_LISP (this enters indirectly via DOC).
3633
e02131a2
EZ
36342009-10-05 Eli Zaretskii <eliz@gnu.org>
3635
3636 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3637
b4744254
EZ
36382009-10-04 Eli Zaretskii <eliz@gnu.org>
3639
3640 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3641 Doc fix.
3642
dbf64827
JB
36432009-10-03 Martin Rudalics <rudalics@gmx.at>
3644
3645 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3646
e9a0aef8
MA
36472009-10-02 Michael Albinus <michael.albinus@gmx.de>
3648
d528b1ce 3649 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3650 used anymore outside fileio.c.
3651
3652 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3653
64eb2b56
JB
36542009-10-01 Juanma Barranquero <lekktu@gmail.com>
3655
3656 * lisp.h (Qdelete_directory_internal):
3657 Declare, instead of Qdelete_directory.
3658
3659 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3660
9d28c33e
SM
36612009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3662
3663 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3664
9d8f3bd9
MA
36652009-10-01 Michael Albinus <michael.albinus@gmx.de>
3666
9d28c33e 3667 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3668 Fdelete_directory. It is not a command anymore. It has no file
3669 name handler.
3670
9694740b
SM
36712009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3672
3673 * xdisp.c (get_next_display_element): Use an enum in last change.
3674
748e162f
KH
36752009-09-28 Kenichi Handa <handa@m17n.org>
3676
9694740b 3677 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3678 unibyte_display_via_language_environment in handling
3679 Vnobreak_char_display.
3680
17efd58d
AR
36812009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3682
3683 * nsterm.h (ns_app_name): New extern variable.
3684
3685 * nsterm.m (ns_app_name): New variable.
3686 (ns_term_init): Set and use it.
3687 (ns_term_shutdown): Use it.
3688
3689 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3690 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3691
3692 * nsfns.m (ns_set_name_iconic, ns_set_name)
3693 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3694 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3695
9694740b
SM
3696 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3697 Remove double-casting in client_data comparison.
31c2d412 3698
3208cb35
YM
36992009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3700
3701 * keyboard.c (make_lispy_event): Remember last wheel direction.
3702 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3703
b7d552d6
GM
37042009-09-26 Glenn Morris <rgm@gnu.org>
3705
3706 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3707 internal.elc. Add term/pc-win.elc.
3708 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3709 term/x-win.elc.
3710 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3711 term/w32-win.elc.
3712 (NS_SUPPORT): New.
3713 (lisp): Add NS_SUPPORT.
3714 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3715
4ff670a8
DR
37162009-09-25 David Reitter <david.reitter@gmail.com>
3717
3718 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3719 on Mac OS X 10.6+ (bug#4513).
3720
feabfb6c
JB
37212009-09-24 Juanma Barranquero <lekktu@gmail.com>
3722
3723 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3724 some parts of Emacs code (like font selection) don't grok them.
3725 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3726
de59072a
AS
37272009-09-24 Andreas Schwab <schwab@redhat.com>
3728
3729 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3730
a489517b
JB
37312009-09-24 Juanma Barranquero <lekktu@gmail.com>
3732
3733 * dired.c (Fdirectory_files): Fix typo in docstring.
3734
0592970c
AR
37352009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3736
3737 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3738 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3739 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3740 under GNUstep.
3741 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3742
3743 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3744 glyph advancement.
3745
48e8a88b
AR
37462009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3747
3748 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3749 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3750
3751 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3752 deleted (bug #4492).
3753
e14f0a78
AR
3754 * nsfont.m (Vns_reg_to_script): New lisp variable.
3755 (syms_of_nsfont): Declare it.
3756 (ns_registry_to_script): New function.
3757 (ns_get_req_script): Call it.
3758 (ns_findfonts): Don't give up on non-unicode registry.
3759
3760 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3761
5b650faa
SM
37622009-09-20 Tom Tromey <tromey@redhat.com>
3763
3764 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3765 batch mode (bug#4228).
3766
a489517b 37672009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3768
3769 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3770 carefully. (Bug #4339)
0bae4e09 3771
fcfe06f3
CY
37722009-09-18 Chong Yidong <cyd@stupidchicken.com>
3773
d798ba87 3774 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3775
31642728
AR
37762009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3777
3778 * emacs.c (inhibit_x_resources): Update doc string for NS.
3779 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3780 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3781
3782 * nsterm.h (ns_no_defaults): Remove.
3783
3784 * nsterm.m (ns_no_defaults): Remove.
3785 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3786 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3787 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3788 don't update the NSWindow itself.
3789 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3790 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3791
3792 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3793 ns_use_qd_smoothing.
3794
3795 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3796 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3797 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3798 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3799
8686ac71
JB
38002009-09-17 Juanma Barranquero <lekktu@gmail.com>
3801
3802 * emacs.c (inhibit_x_resources): New variable.
3803 (main) [HAVE_NS]: Don't process --quick command line option.
3804 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3805
3806 * lisp.h (inhibit_x_resources): Declare it extern.
3807
3808 * w32reg.c (x_get_string_resource):
3809 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3810
e227ba05
EZ
38112009-09-17 Eli Zaretskii <eliz@gnu.org>
3812
362654a6
JB
3813 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3814 Add lisp/term/internal.elc.
e227ba05 3815
742d40e8
SM
38162009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3817
3818 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3819 (bug#4461).
3820
005bd5a2
DN
38212009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3822
3823 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3824
3825 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3826 (OBJECTS_MACHINE): Remove, unused.
3827
f9af9719
SM
38282009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3829
3830 * frame.c (x_get_resource_string): Remove unused.
3831
0307c7d2
JD
38322009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3833
3834 * xterm.c (x_new_font): Call change_frame_size before calling
3835 x_set_window_size, in case frame size won't change.
3836
3837 * frame.c (x_set_font): Remove dead code.
3838
428b13d6
SM
38392009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3842
5766c380
SM
38432009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3844
3845 * lread.c (Fload): Don't output a message after loading an obsolete
3846 package any more (done in Lisp now).
3847
2fd0161b
CY
38482009-09-12 Chong Yidong <cyd@stupidchicken.com>
3849
3850 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3851
bc5e75b6
SM
38522009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3853
3854 * keymap.c (Fwhere_is_internal): Use nconc2.
3855
c31c985e
AM
38562009-09-11 Alan Mackenzie <acm@muc.de>
3857
3858 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3859 batch mode.
3860
78012bd2
AS
38612009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3862
3863 * xdisp.c (display_mode_element): Detect cycles.
3864
9d889332
SM
38652009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3866
3867 * keymap.c (where_is_internal): Don't erroneously return nil right after
3868 filling the cache.
3869 (where_is_internal_1): Fix up typo.
3870
7ab5d780
GM
38712009-09-11 Glenn Morris <rgm@gnu.org>
3872
3873 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3874 share a common doc-string.
3875
5238a749
SM
38762009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3877
66d77eda
SM
3878 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3879 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3880
5238a749
SM
3881 * keymap.c (QCadvertised_binding): New constant.
3882 (syms_of_keymap): Initialize it.
3883 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3884 if applicable.
3885
19f48442
SM
38862009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3887
50d4ba39
SM
3888 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3889 (parse_menu_item): Streamline since bindings are recomputed all the
3890 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3891 more and don't support lmenu's menu-alias any more either.
3892
a88a5372
SM
3893 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3894 (where_is_internal): Strip it down to only traverse the keymaps.
3895 Move the cache handling from Fwhere_is_internal to here.
3896 (Fwhere_is_internal): Move the handling of remapping and the choice of
3897 the best binding from where_is_internal to here.
3898 Unify the cached/noncached paths, so remapping is also handled
3899 correctly when the cache is used, and so the cache can be used to
3900 speed up remap-handling when applicable.
3901 Give preference to non-remapped bindings.
3902 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3903 non-remapped bindings.
3904 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3905 command remapping.
3906
19f48442
SM
3907 * xdisp.c (display_mode_element): Move list length limit from 50 to
3908 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3909
599498c3 39102009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3911
3912 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3913
f9b7b5ac
SM
39142009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3915
a53af587
JB
3916 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3917 (Bug#4334)
3918
f9b7b5ac
SM
3919 * keymap.c (where_is_internal): Filter out shadowed remappings.
3920 Assume that where_is_internal returns unshadowed bindings to simplify
3921 the code and get rid of the gotos. Use ASIZE.
3922
04f4b72d
JD
39232009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3924
4da146f2
JD
3925 * xterm.c (x_focus_changed): If we get a focusout and pointer
3926 is invisible, make it visible.
3927
04f4b72d
JD
3928 * xterm.h: Remove condition for declaration of
3929 x_*_window_to_frame.
3930
7cef7ce3
SM
39312009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3932
3933 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3934 initial terminal as well.
3935
a54fa5b7
JD
39362009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3937
3938 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3939 x_menubar_window_to_frame.
a54fa5b7 3940
50426a04 3941 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3942 (XTmouse_position): Do not return valid positions
3943 for clicks in the menubar and the toolbar for Gtk+.
3944
3945 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3946 if the widget for the event has the same top level as a frame,
3947 return the frame.
3948 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3949 internal windows, bug #4122.
3950 (x_non_menubar_window_to_frame): Remove.
3951
5a021dd0
GM
39522009-09-02 Glenn Morris <rgm@gnu.org>
3953
3954 * buffer.c (default-major-mode): Move most of the doc from here...
3955 (major-mode): ... to here.
3956
548fe2f3
NR
39572009-08-30 Nick Roberts <nickrob@snap.net.nz>
3958
3959 * process.c (wait_reading_process_output): Keep the descriptor
3960 when pty is used by a non-child process, e.g., in I/O buffer of
3961 GDB this allows inferior to be restarted.
3962
e0840eef
EZ
39632009-08-29 Eli Zaretskii <eliz@gnu.org>
3964
3965 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3966 both branches into one.
3967
82e98df4
SM
39682009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3969
3970 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3971 (main): Use enable-multibyte-characters rather than
3972 default-enable-multibyte-characters. Output a warning message when
3973 running a unibyte session.
3974
890617cb
YM
39752009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3976
3977 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3978 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3979 (copy_data_segment): Also copy __program_vars section.
3980 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3981 (dump_it) [LC_DYLD_INFO]: Use it.
3982
3983 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3984
e7adeadc
EZ
39852009-08-28 Eli Zaretskii <eliz@gnu.org>
3986
3987 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3988 $(SRC)/buildobj.h.
3989 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3990 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3991 $(SRC)/buildobj.h.
3992 (clean): Add buildobj.h.
3993
3ed8bbdc
TZ
39942009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3995
3996 * print.c (print_object): Set escapeflag to 1 when printing
3997 hashtable keys and values.
3998
155a6764
SM
39992009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4000
4001 * lread.c (read_integer): Use doubles (and potentially return a float
4002 number) as we do in string-to-number.
4003 (read1): Use strtol to read integers, signal errors on strtol's
4004 overflow and use floats if strtol's output is too large for
4005 Elisp integers.
4006
877610de
EZ
40072009-08-27 Eli Zaretskii <eliz@gnu.org>
4008
4009 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4010 (make-buildobj-SH): Fix last change.
4011 (SRC): Move to before where it's first used.
4012
ef73e7be
KH
40132009-08-27 Kenichi Handa <handa@m17n.org>
4014
550c8289
KH
4015 * process.c (send_process): Use encode_coding_object instead of
4016 encode_coding_string to perform eol-conversion even if the string
4017 is unibyte.
4018
60afa08d
KH
4019 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4020 character.
4021
ef73e7be 4022 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4023 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4024
7b3a82d7
DN
40252009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4026
5654bf63
DN
4027 * callproc.c (Fcall_process): Remove always true #if.
4028
7b3a82d7
DN
4029 * lisp.h: Replace #if 0 code for checking with text pointing to
4030 the --enable-checking configure flag.
4031
4032 * emacs.c (main): Mention the --enable-profiling configure flag
4033 instead of using CFLAGS.
4034
878bde49
KR
40352009-08-26 Ken Raeburn <raeburn@raeburn.org>
4036
4037 * Makefile.in (buildobj.h): New target.
4038 (doc.o): Depend on it.
4039 (temacs${EXEEXT}): Don't generate buildobj.lst.
4040 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4041 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4042 ($(BLD)/doc.$(O)): Depend on it.
4043 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4044 provided by Eli Zaretskii.)
4045 ($(TEMACS)): Don't generate buildobj.lst.
4046 * doc.c: Include buildobj.h.
4047 (buildobj): New static variable.
4048 (Fsnarf_documentation): Use it, instead of opening and reading
4049 buildobj.lst.
4050
1574224c
MA
40512009-08-25 Michael Albinus <michael.albinus@gmx.de>
4052
4053 * dbusbind.c (Fdbus_call_method)
4054 (Fdbus_call_method_asynchronously): Use English numeric format for
4055 timeout values in doc string.
4056
d9da2f45
KH
40572009-08-25 Kenichi Handa <handa@m17n.org>
4058
ef73e7be
KH
4059 * alloc.c (mark_char_table): New function.
4060 (mark_object): Use mark_char_table for a char-table.
4061
d9da2f45
KH
4062 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4063 (CHAR_TABLE_REF): Use it.
4064
c8edcc01
KR
40652009-08-23 Ken Raeburn <raeburn@raeburn.org>
4066
4067 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4068 before invoking the newly build emacs to check for load-path
4069 shadowing.
4070
7763401b
GM
40712009-08-22 Glenn Morris <rgm@gnu.org>
4072
4073 * Makefile.in (bootstrap_exe): New variable.
4074 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4075 Use ${bootstrap_exe}.
4076
729eadda
EZ
40772009-08-22 Eli Zaretskii <eliz@gnu.org>
4078
4079 * coding.h (encode_coding_string): Don't encode unibyte strings.
4080 (Bug#4047)
4081
eb4c6ace
MA
40822009-08-22 Michael Albinus <michael.albinus@gmx.de>
4083
4084 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4085
4086 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4087 intended as hotfix only.
4088 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4089
36e34d1b
AR
40902009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4091
4092 * nsterm.m (ns_get_color): Update documentation properly for last
4093 change, and clean up loose ends in the code left by it. Fix
4094 longstanding bug with 16-bit hex parsing, and add support for
4095 yet another X11 format (rgb:r/g/b) for compatibility.
4096 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4097 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4098
f983eb8a
SM
40992009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4100
4101 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4102
3f56d3c6
MA
41032009-08-20 Michael Albinus <michael.albinus@gmx.de>
4104
4105 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4106 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4107 (xd_initialize, xd_pending_messages): Check, whether
4108 $DBUS_SESSION_BUS_ADDRESS is set.
4109
fb641d68
YM
41102009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4111
4112 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4113
4114 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4115
cf59a374
GM
41162009-08-20 Glenn Morris <rgm@gnu.org>
4117
4118 * emacs.c (system-type): Doc fix.
4119
1373f3be
SM
41202009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4121
4122 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4123 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4124
058ed861
MA
41252009-08-18 Michael Albinus <michael.albinus@gmx.de>
4126
1373f3be
SM
4127 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4128 New functions.
058ed861
MA
4129 (xd_initialize): Revert change from 2009-08-16.
4130
563a866e 41312009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4132
4133 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4134 font-group vector, return nil.
5fc05db0 4135
e42bdf01
CY
41362009-08-17 Chong Yidong <cyd@stupidchicken.com>
4137
4138 * process.c (status_notify): Don't perform redisplay.
4139 (Fdelete_process, list_processes_1, process_send_signal):
4140 Expliticly perform redisplay.
4141 (wait_reading_process_output): Always check process status, but
4142 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4143
4230ab74
KR
41442009-08-17 Ken Raeburn <raeburn@raeburn.org>
4145
1373f3be 4146 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4147 (XFLOAT_INIT): New macro for storing a float value.
4148 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4149 * fns.c (sxhash): Copy out the value of a float in order to
4150 examine its bytes.
4151 * dbusbind.c (xd_append_arg): Likewise.
4152
4230ab74
KR
4153 * emacs.c (main): Don't call syms_of_data twice.
4154
a0645cdd
MA
41552009-08-16 Michael Albinus <michael.albinus@gmx.de>
4156
4157 * dbusbind.c (xd_initialize): Add connection file descriptor to
4158 input_wait_mask, in order to let select() detect, whether a new
4159 message has been arrived.
ca4f31ea 4160 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4161
485db0ba
MA
41622009-08-15 Michael Albinus <michael.albinus@gmx.de>
4163
1373f3be
SM
4164 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4165 New functions.
485db0ba
MA
4166
4167 * lisp.h (xd_pending_messages): Declare.
4168
4169 * keyboard.c (readable_events): Call xd_pending_messages.
4170
b5b98ff4
CY
41712009-08-15 Chong Yidong <cyd@stupidchicken.com>
4172
1373f3be 4173 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4174
f8354c6e
CY
4175 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4176
b5b98ff4
CY
4177 * buffer.c (set_buffer_internal_1)
4178 (swap_out_buffer_local_variables): Check for unbound local
4179 variables (Bug#4138).
4180
8b9fc636
EZ
41812009-08-14 Eli Zaretskii <eliz@gnu.org>
4182
4183 * process.c (create_pty): Fix last change.
4184
ce959360
CY
41852009-08-13 Chong Yidong <cyd@stupidchicken.com>
4186
4187 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4188 (xbm_load_image): Caller changed.
64b807c9 4189 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4190
c7baf7e9
NR
41912009-08-13 Nick Roberts <nickrob@snap.net.nz>
4192
4193 * process.c (create_pty): New function.
4194 (Fstart_process): Use it to allow Emacs to just associate a pty
4195 with the buffer. See associated change in gdb-mi.el.
4196 (list_processes_1): Deal with no program name.
4197 (start_process_unwind): Use pid == -2 to mean no process.
4198
1ac9108a
SM
41992009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4200
4201 * cmds.c (nonundocount): New global variable.
4202 (keys_of_cmds): Initialize it.
4203 (Fself_insert_command): Use it to combine upto 20 sequential chars
4204 into a single undo entry, just like the Qself_insert_command code in
4205 keyboard.c does.
4206 Call frame_make_pointer_invisible, also like the Qself_insert_command
4207 code in keyboard.c does.
4208 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4209 than its own local replacement for it.
4210
e267324c
KR
42112009-08-10 Ken Raeburn <raeburn@raeburn.org>
4212
1ac9108a 4213 * fns.c (concat): Don't re-set string length to its current value.
77437343 4214
1ac9108a
SM
4215 * coding.h (decode_coding_string, encode_coding_string):
4216 Use SBYTES macro.
f0bed503 4217
1ac9108a 4218 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4219 (doprnt): Merge with doprnt1, discarding lispstrings code.
4220 * lisp.h (doprnt_lisp): Don't declare.
4221
416e006d
JL
42222009-08-07 Juri Linkov <juri@jurta.org>
4223
4224 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4225
6f7d5780
DN
42262009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4227
4228 * print.c (syms_of_print): Undo previous change.
4229
f19a0f5b
TZ
42302009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4231
4232 * lread.c (read1, syms_of_lread): Read hashtables back from the
4233 readable format.
4234
4235 * print.c (print_preprocess, print_object): Print hashtables fully
4236 and readably.
4237 (syms_of_print): Provide 'hashtable-print-readable.
4238
b9173dc2
AR
42392009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4240
4241 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4242 no family set.
4243 (nsfont_open): Handle case when entity has no family.
4244
1586503c
AR
42452009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4246
4247 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4248 element, not a list, for match case.
4249
087048cd
KH
42502009-07-28 Kenichi Handa <handa@m17n.org>
4251
4252 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4253 rigidly.
4254
4255 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4256 font_parse_xlfd. Check font properties more rigidly.
4257
780c2506
DN
42582009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4259
31fd7c5c
JB
4260 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4261 bsd-common.h.
780c2506 4262
a8c0cc18
KH
42632009-07-27 Kenichi Handa <handa@m17n.org>
4264
4265 * xfaces.c (face_with_height): Call font_clear_prop.
4266
4fbe2306
CY
42672009-07-26 Chong Yidong <cyd@stupidchicken.com>
4268
111d9af3
CY
4269 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4270
4271 * xterm.c (x_term_init): Use Qx.
4272
4fbe2306
CY
4273 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4274
1ac9108a 4275 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4276 (ns_get_color): Revert 2009-07-16 change.
4277
beb0b7f9
EZ
42782009-07-25 Eli Zaretskii <eliz@gnu.org>
4279
4280 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4281 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4282
2baf5e76
KR
42832009-07-25 Ken Raeburn <raeburn@raeburn.org>
4284
1ac9108a
SM
4285 * coding.h (decode_coding_string, encode_coding_string):
4286 Use SCHARS macro.
8890e5f5 4287
2baf5e76 4288 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4289 (load_depth): Delete.
2baf5e76
KR
4290 (Qload_in_progress): New variable.
4291 (load_unwind): Don't reference load_depth or load_in_progress.
4292 (Fload): Likewise; specbind Qload_in_progress instead.
4293 (init_lread): Don't initialize load_depth.
4294 (syms_of_lread): Initialize and protect Qload_in_progress.
4295
1395c6f5
AR
42962009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4297
4298 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4299
4e2f36cf
AR
43002009-07-23 Yavor Doganov <yavor@gnu.org>
4301
4302 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4303
5dd9a6f7
AR
43042009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4305
4306 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4307 Bugs 3792, 3720, 2402.
4308 (ns_lookup_indexed_color): Check for bad index.
4309 (ns_index_color): Init unused slot to 0.
4310 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4311 Bug 3714, possibly 3082.
5dd9a6f7 4312
c902b920
JR
43132009-07-22 Jason Rumney <jasonr@gnu.org>
4314
1ac9108a
SM
4315 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4316 Position IME window at cursor (Bug#2570).
c902b920
JR
4317 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4318 (globals_of_w32fns): Dynamically load functions required above.
4319
4320 * w32term.c (w32_draw_window_cursor): Send message to reposition
4321 any IME window.
4322
090101cf
CY
43232009-07-21 Chong Yidong <cyd@stupidchicken.com>
4324
4325 * fileio.c: Revert 2009-07-16 changes.
4326 (Vauto_save_include_big_deletions): New variable.
4327 (Fdo_auto_save): Disable auto-save only if
4328 auto-save-include-big-deletions is nil.
4329
e6583e3d
CY
43302009-07-21 Chong Yidong <cyd@stupidchicken.com>
4331
4332 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4333 the overflowed pixels into account (Bug#3879).
4334
ece435a5
KR
43352009-07-21 Ken Raeburn <raeburn@raeburn.org>
4336
4337 * lread.c (load_depth): New variable.
4338 (Fload, load_unwind, init_lread): Set it to the load recursion
4339 depth; set load_in_progress as a simple boolean based on the
4340 current load_depth. (Bug#3892)
4341
40b2d973
AR
43422009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4343
4344 * nsfont.m (ns_has_attribute): Remove.
4345 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4346
10be7e0d
JL
43472009-07-18 Juri Linkov <juri@jurta.org>
4348
4349 * process.c (Fset_process_query_on_exit_flag): Mention killing
4350 a buffer in docstring.
4351
fa055055
KH
43522009-07-17 Kenichi Handa <handa@m17n.org>
4353
4354 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4355
042f7b69
YM
43562009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4357
4358 * nsfns.m (Fns_set_alpha): Remove function.
4359 (syms_of_nsfns): Don't defsubr it.
4360
4361 * nsterm.m (ns_get_color): Remove incompatible color formats.
4362 (ns_color_to_lisp): Generate #rrggbb color format string.
4363
4be941e3
RS
43642009-07-16 Richard Stallman <rms@gnu.org>
4365
4366 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4367 (Fset_buffer_auto_saved): Handle save_length = -2.
4368
4e6b227d
CY
43692009-07-16 Chong Yidong <cyd@stupidchicken.com>
4370
4371 * xterm.c (Qx_gtk_map_stock): New var.
4372
4373 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4374 of calling intern each time.
4375
a1856973
YM
43762009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4377
4378 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4379 does tiling.
4380
4381 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4382
497e54d8
KH
43832009-07-14 Kenichi Handa <handa@m17n.org>
4384
72d36834
KH
4385 * font.c (font_vconcat_entity_vectors): New function.
4386 (struct font_sort_data): New member font_driver_preference.
4387 (font_compare): Check font_driver_preference.
4388 (font_sort_entities): The format of the first argument changed.
4389 (font_delete_unmatched): Likewise.
4390 (font_list_entities): The return type changed.
4391 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4392 (font_find_for_lface): Adjuste for the above changes.
4393 Don't suppress the checking of C even if the repertory supports it.
4394 (Flist_fonts): Adjust for the above changes.
72d36834 4395
1ac9108a
SM
4396 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4397 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4398 Reject a font who has adstyle property that is different from a
4399 langname derived from registry property.
1ac9108a 4400 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4401
b6046155
EZ
44022009-07-13 Eli Zaretskii <eliz@gnu.org>
4403
4404 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4405 local copy of dirfilename.
4406
fb6b6049
KH
44072009-07-13 Kenichi Handa <handa@m17n.org>
4408
e2402a5e
KH
4409 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4410 against max_char.
4411
fb6b6049
KH
4412 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4413 calling XSYMBOL (sym).
4414
65156807
EZ
44152009-07-11 Eli Zaretskii <eliz@gnu.org>
4416
1ac9108a
SM
4417 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4418 New function.
4419 (directory_files_internal) [WINDOWSNT]:
4420 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4421 the filesystem of the directory is fast or slow.
4422
4423 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4424 file name.
4425 (is_slow_fs): New function.
4426 (stat): Use it to determine whether to issue more system calls to
4427 get accurate file attributes, when w32-get-true-file-attributes is
4428 `local'.
4429
e0ab5fcf
JD
44302009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4431
4432 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4433 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4434 parameter font-parameter as default to the font dialog.
4435
784ceded
KH
44362009-07-10 Kenichi Handa <handa@m17n.org>
4437
4438 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4439
fb8edc0b
EZ
44402009-07-09 Eli Zaretskii <eliz@gnu.org>
4441
1ac9108a 4442 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4443
fb8edc0b
EZ
4444 * w32.c (stat): Treat UNC file names as residing on remote
4445 drives. (Bug#3542)
4446
635c75b1
KH
44472009-07-09 Kenichi Handa <handa@m17n.org>
4448
4449 * fontset.c (fontset_find_font): Fix previous change.
4450
c1d5ce94
MA
44512009-07-08 Michael Albinus <michael.albinus@gmx.de>
4452
4453 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4454 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4455 error flag.
4456
edb61b39
KH
44572009-07-08 Kenichi Handa <handa@m17n.org>
4458
374bf7e4
KH
4459 * fontset.c (fontset_find_font): Fix the logic of handling
4460 charset_matched.
4461 (font_for_char): Delete unused var.
4462 (generate_ascii_font_name): Delete it.
4463
edb61b39
KH
4464 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4465
4466 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4467 (encode_coding_sjis): Fix the code range check.
4468
0f3f018c
CY
44692009-07-07 Chong Yidong <cyd@stupidchicken.com>
4470
4471 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4472 (Fexpand_file_name): Copy string data properly (Bug#3772).
4473
fcaf6f3a
JD
44742009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4475
4476 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4477 first MapNotify.
4478
6809ca75
KH
44792009-07-07 Kenichi Handa <handa@m17n.org>
4480
4481 * character.h (unibyte_has_multibyte_table): Delete extern.
4482 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4483
4484 * charset.c (Fset_charset_priority): Update charset_unibyte.
4485 (syms_of_charset): Initialize charset_unibyte.
4486
4487 * character.c (unibyte_has_multibyte_table): Delete it.
4488 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4489 charset_unibyte.
4490 (multibyte_char_to_unibyte_safe): Likewise.
4491 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4492
1ac9108a 4493 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4494 (x_produce_glyphs): Likewise.
4495
4496 * .gdbinit (xcharset): Fix the treating $arg0.
4497
ad9e2d54
EZ
44982009-07-04 Eli Zaretskii <eliz@gnu.org>
4499
4500 Emulation of `getloadavg' on MS-Windows.
50426a04 4501 * w32.c: Include float.h.
ad9e2d54
EZ
4502 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4503 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4504 (get_native_system_info, get_system_times): New functions.
4505 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4506 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4507 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4508 g_b_init_get_system_times, and num_of_processors.
4509
0a3472c7
JR
45102009-07-03 Jason Rumney <jasonr@gnu.org>
4511
4512 * w32term.c (w32_initialize): Use standard types.
4513
80904120
EZ
45142009-07-03 Eli Zaretskii <eliz@gnu.org>
4515
4516 * dired.c (Ffile_attributes): Decode user and group names by the
4517 locale's encoding. (Bug#3443)
4518
6978862d
DN
45192009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4520
f8d23104
DN
4521 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4522 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4523
4524 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4525
4526 * term.c (init_tty): Remove spurious #ifdef.
4527
6978862d
DN
4528 * m/mips.h: Mention this file is also used for netbsd.
4529 * m/pmax.h: Remove file.
4530
e044e4fc
JD
45312009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4532
4533 * xterm.h (struct x_display_info): Add invisible_cursor.
4534 (struct x_output): Add current_cursor.
4535
4536 * xterm.c (XTtoggle_invisible_pointer): New function.
4537 (x_define_frame_cursor): Don't define cursor if invisible or the
4538 same as before. Set current_cursor.
4539 (x_create_terminal): Set toggle_invisible_pointer_hook.
4540
4541 * xfns.c (make_invisible_cursor): New function.
4542 (x_set_mouse_color): Call make_invisible_cursor.
4543 Set current_cursor.
4544 (x_window): Set current_cursor.
4545
4546 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4547
4548 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4549 inserting a character.
4550 (read_avail_input): Call frame_make_pointer_visible.
4551
4552 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4553 (frame_make_pointer_invisible, frame_make_pointer_visible):
4554 New functions.
e044e4fc
JD
4555 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4556
4557 * frame.h: Declare frame_make_pointer_invisible and
4558 frame_make_pointer_visible.
4559 (struct frame): Add pointer_invisible.
4560
574c8efa
JD
45612009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4562
7b507248
JD
4563 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4564 frame isn't visible.
4565 (xg_frame_resized): If width/height is -1, get size of window
4566 from X server.
4567
4568 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4569 for MapNotify.
4570
835bdaa7 4571 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4572 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4573 (flush_and_sync): Reintroduce.
574c8efa 4574
3f1c6666 45752009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4576
31fd7c5c 4577 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4578
4579 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4580 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4581
4582 * frame.h: Declare Qsticky.
4583
cad9ef74
JD
4584 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4585
4586 * nsfns.m (ns_frame_parm_handlers): Ditto.
4587
4588 * frame.c: Declare Qsticky.
4589 (frame_parms): Add sticky.
4590
4591 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4592
4593 * xterm.h: Declare x_set_sticky.
4594
4595 * xterm.c (x_set_sticky): New function.
4596
69b16610
JD
4597 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4598 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4599 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4600
4601 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4602
4603 * frame.c: Qmaximized is new.
4604 (x_set_frame_parameters): Do not handle fullscreen specially.
4605 Only set width and height if explicitly set.
4606 (x_set_fullscreen): Handle Qmaximized.
4607 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4608 (syms_of_frame): Initialize Qmaximized.
4609
1ac9108a
SM
4610 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4611 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4612
4613 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4614 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4615 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4616 set gravity to NorthWestGravity when USE_GTK.
4617 (set_wm_state): New function.
31fd7c5c 4618 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4619 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4620 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4621 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4622 to x_real_positions and x_fullscreen_adjust.
4623
4624 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4625 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4626 flush_and_sync.
4627 (xg_height_changed): New function.
4628 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4629 and gtk_window_set_policy. Set frame gravity after parsing the
4630 geometry string.
3f1c6666
JD
4631 (xg_update_frame_menubar, free_frame_menubar)
4632 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4633 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4634 Remove calls to xg_frame_set_char_size.
4635
fd503d99
KH
46362009-07-01 Kenichi Handa <handa@m17n.org>
4637
4638 * keyboard.c (decode_keyboard_code): New function.
4639 (tty_read_avail_input): Decode the input bytes if necessary.
4640
1ac9108a
SM
4641 * coding.c (setup_coding_system):
4642 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4643 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4644 use Qno_conversion.
4645
24ed93fb
YM
46462009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4647
4648 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4649
99061dfc
CY
46502009-06-30 Chong Yidong <cyd@stupidchicken.com>
4651
1ac9108a 4652 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4653
ff90fbde
JR
46542009-06-30 Jason Rumney <jasonr@gnu.org>
4655
4656 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4657 is already loaded.
4658 Set user model ID if supported (bug#1849).
4659
5f445726
JM
46602009-06-29 Jim Meyering <meyering@redhat.com>
4661
4662 Remove useless if-before-xfree test.
4663 * nsfont.m (nsfont_close): Remove useless test.
4664 * term.c (delete_tty): Likewise.
4665 * w32.c (system_process_attributes): Likewise.
4666 * w32font.c (w32font_close): Likewise.
4667 * xfaces.c (x_free_gc): Likewise.
4668 * xselect.c (buffer): Likewise.
4669
b9607587
AS
46702009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4671
4672 * process.c (send_process): Keep decoded string in a local
4673 variable and protect it from GC. (Bug#3521)
4674
89ba96f4
EZ
46752009-06-28 Eli Zaretskii <eliz@gnu.org>
4676
4677 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4678 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4679
098a1589
CY
46802009-06-28 Chong Yidong <cyd@stupidchicken.com>
4681
485422be
CY
4682 * xdisp.c (start_display, handle_face_prop)
4683 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4684 (redisplay_window, try_window_id, produce_image_glyph):
4685 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4686
098a1589
CY
4687 * xterm.c (x_update_window_begin, x_new_focus_frame)
4688 (x_scroll_bar_handle_click, handle_one_xevent)
4689 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4690 (x_make_frame_visible, x_make_frame_invisible)
4691 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4692 code chunks that are now obsolete.
4693
78c38319
MA
46942009-06-28 Michael Albinus <michael.albinus@gmx.de>
4695
4696 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4697 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4698 for hours, when optimzation is enabled.
4699 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4700 (xd_read_message): Make them static.
4701
4189ed40
CY
47022009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4703
4704 * term.c (turn_on_face): Allow simultaneously bold and dim
4705 terminal faces (Bug#3530).
4706
cd9b5e16
CY
47072009-06-27 Chong Yidong <cyd@stupidchicken.com>
4708
4e23bedb
CY
4709 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4710
cd9b5e16
CY
4711 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4712 truncation glyphs (Bug#3686).
4713
07cc3c35
GM
47142009-06-27 Glenn Morris <rgm@gnu.org>
4715
4716 * m/pmax.h: Restore file, with only netbsd portions.
4717
31fd7c5c 47182009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4719
cd9b5e16 4720 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4721
42d4a64f
KH
47222009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4723
4724 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4725 the arg FORCE_SYMBOL.
4726
930fe55b 47272009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4728
4729 * fontset.c (fontset_find_font): When a usable rfont_def is found
4730 in a fallback font-group, make it the first element of the group.
4731
57ebc3fd
CY
47322009-06-24 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4735
f084f942
KH
47362009-06-24 Kenichi Handa <handa@m17n.org>
4737
4738 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4739 set for C.
4740 (fontset_font): Record the availability of a font for C both in
4741 the realized fontsets of the current one and the default one.
4742
2f686c87
DN
47432009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4744
4745 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4746 conditional, it is always defined on AIX.
4747
666e158e
MB
47482009-06-23 Miles Bader <miles@gnu.org>
4749
4750 * window.c (Vrecenter_redisplay): New variable.
4751 (syms_of_window): Initialize it.
4752 (Qtty): New extern declaration.
4753 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4754
c6da7cd2
JM
47552009-06-23 Jim Meyering <meyering@redhat.com>
4756
1ac9108a
SM
4757 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4758 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4759 pointer dereferences are guaranteed to be valid.
c6da7cd2 4760
678dca3d
KH
47612009-06-23 Kenichi Handa <handa@m17n.org>
4762
74d75424
KH
4763 * emacs.c (main): Call init_font ().
4764
4765 * font.h (Vfont_log): Extern it.
4766 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4767
4768 * font.c (font_sort_entities, font_list_entities)
4769 (font_matching_entity, font_open_entity)
4770 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4771 (Vfont_log): Delete static.
4772 (font_log_env_checked): Delete this variable.
4773 (font_add_log): Don't check font_log_env_checked.
4774 (font_deferred_log): Check Vfont_log.
4775 (init_font): New function.
4776
678dca3d
KH
4777 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4778
4779 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4780
4781 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4782
4783 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4784
4785 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4786 (face_for_char): Don't call font_deferred_log here.
4787 (font_for_char): Likewise.
4788
8a668709
CY
47892009-06-22 Chong Yidong <cyd@stupidchicken.com>
4790
9a01ee33
CY
4791 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4792 rather than its background_width for drawing the overline and
4793 underline (Bug#489).
4794
4795 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4796 rather than its background_width for drawing the overline and
4797 underline (Bug#489).
ec7c9926
CY
4798 (xg_default_icon_file): New variable.
4799 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4800 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4801
8a668709
CY
4802 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4803 (load_overlay_strings): Remove externs.
4804 (fast_find_position): Function deleted.
4805 (mouse_face_from_buffer_pos): New function, based on
4806 fast_find_position. Correctly handle before-strings,
4807 display-strings, and after-strings (Bug#1220).
4808 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4809
4d4c02d8
CY
48102009-06-21 Chong Yidong <cyd@stupidchicken.com>
4811
1ac9108a 4812 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4813 (move_it_in_display_line_to, move_it_in_display_line_to)
4814 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4815
70243478
CY
48162009-06-21 Chong Yidong <cyd@stupidchicken.com>
4817
4818 * Branch for 23.1.
4819
13087e59
JR
48202009-06-21 Jason Rumney <jasonr@gnu.org>
4821
4822 * w32term.c (keyboard_codepage): New static variable.
4823 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4824 (w32_read_socket) [WM_CHAR]: Use it to decode character
4825 input (bug#3237).
4826 (w32_initialize): Initialize it.
4827 (codepage_for_locale): New function.
4828
4735b74e
KR
48292009-06-20 Ken Raeburn <raeburn@raeburn.org>
4830
4831 * process.c (status_message): Pass Faset index argument as a lisp
4832 object, so as to work with USE_LISP_UNION_TYPE.
4833
0e727afa
YM
48342009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4835
4836 * coding.c (Ffind_coding_systems_region_internal):
4837 Cache checked characters.
4838
cf299835
KH
48392009-06-18 Kenichi Handa <handa@m17n.org>
4840
1ac9108a 4841 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4842
90f20d94
AS
48432009-06-18 Andreas Schwab <aschwab@redhat.com>
4844
4845 * xdisp.c (redisplay_internal): Check that the frame is still
4846 live after redisplay of its windows.
4847 (redisplay_windows): Check that the window is still live.
4848
7f1faf1c
KH
48492009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4850
4851 * coding.c (detect_coding_utf_16): Fix previous change.
4852
cc13543e
KH
48532009-06-16 Kenichi Handa <handa@m17n.org>
4854
4855 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4856 UTF-16 by checking the dispersion of Eth and Oth bytes.
4857
977b85f4
AS
48582009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4859
4860 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4861
66bd43d1
KH
48622009-06-15 Kenichi Handa <handa@m17n.org>
4863
4864 * process.c (status_message): Fix previous change. Be sure to
4865 decode a localized string.
4866
cb5ca9c5
YM
48672009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4868
4869 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4870 add comment explaining why.
4871
ec7709ba 48722009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4873
ec7709ba 4874 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4875
4b7f335c
AR
48762009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4877
4878 * nsfont.m (ns_attribute_value): Remove.
4879 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4880 (ns_has_attribute): Shrink the normal range.
4881 (ns_findfonts): Don't worry about requested spec in determining
4882 need for synthItal.
e41820ee 4883 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4884
73b26103
SZ
48852009-06-14 Seiji Zenitani <zenitani@mac.com>
4886
4887 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4888
5753e4da
KH
48892009-06-11 Kenichi Handa <handa@m17n.org>
4890
4891 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4892 overhang for the static composition case.
4893
3561b671
KH
48942009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4895
5753e4da
KH
4896 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4897 overhang for the automatic composition case.
4898
3561b671
KH
4899 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4900 composition case.
4901
852bbd41
CY
49022009-06-10 Chong Yidong <cyd@stupidchicken.com>
4903
4904 * xdisp.c (get_next_display_element): When handling wrap-prefix
4905 and line-prefix, treat \n as a control character (bug#3502).
4906
9903d1e6
KH
49072009-06-10 Kenichi Handa <handa@m17n.org>
4908
4909 * font.c (font_parse_family_registry): Fix for one-char foundry.
4910 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4911
0bcbaaaa
CY
49122009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4913
4914 * process.c (status_message): Fix handling of multibyte signal
4915 string (Bug#3499).
4916
40aa3f13
JM
49172009-06-09 Jim Meyering <meyering@redhat.com>
4918
1f80c7e2
CY
4919 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4920 color name is missing.
40aa3f13 4921
72d51285
KH
49222009-06-09 Kenichi Handa <handa@m17n.org>
4923
4924 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4925 FROM-CODE and TO-CODE are codepoints of CHARSET.
4926
c1d04d84
AR
49272009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4928
4929 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4930
49312009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4932
4933 Changes to support :script/:lang/:otf in NS font driver.
4934 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4935 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4936 indicate not part of font driver interface, and change callers.
4937 (ns_get_family): Remove pointless null check.
4938 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4939 ns_spec_to_descriptor, ns_descriptor_to_entity.
4940 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4941 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4942 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4943 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4944 (ns_get_req_script, ns_accumulate_script_ranges)
4945 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4946 New functions.
4947 (nsfont_list, nsfont_match): Use ns_findfonts.
4948 (nsfont_open): Use font descriptor instead of traits.
4949 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4950 (dump_glyphstring): Rename to ns_dump_glyphstring.
4951
c7eb9816
AR
4952 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4953
c1d04d84
AR
4954 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4955
4956 * fontset.c (fontset_from_font): Remove NS-specific code.
4957
ec7709ba 49582009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4959
4960 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4961 nonactive windows.
4962
31fd7c5c 49632009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4964
1ac9108a 4965 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4966
68852c13 49672009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4968
4969 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4970
6756cd1d
CY
49712009-06-07 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4974 account for the overflowing of newlines into the last glyph on the
4975 display line (Bug#3482).
4976
28bf482a
DR
49772009-06-05 David Reitter <david.reitter@gmail.com>
4978
ec7709ba
JB
4979 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4980 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4981 Fns_selection_exists_p, Fns_selection_owner_p.
4982
fdb55376
JR
49832009-06-03 Jason Rumney <jasonr@gnu.org>
4984
4985 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4986 available. (Bug#3379)
4987
05129fbe
KH
49882009-05-29 Kenichi Handa <handa@m17n.org>
4989
1ac9108a
SM
4990 * coding.c (get_translation_table):
4991 Check Venable_character_translation.
05129fbe 4992
ec7709ba 49932009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4994
ec7709ba
JB
4995 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4996 (x_make_frame_visible): Move frame to front rather than calling
15891144 4997 ns_raise_frame().
ec7709ba 4998 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4999 isn't key window.
ec7709ba 5000 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5001 drawRect may be called by NSView even if the frame is hidden.
5002
ec7709ba
JB
5003 * nsfns.m (Fx_create_frame): Follow other ports in
5004 determining visibility; default to t. Ensure async_visible is set.
15891144 5005
21f73755
EZ
50062009-05-23 Eli Zaretskii <eliz@gnu.org>
5007
5008 * dired.c (Ffile_attributes): Doc fix.
5009
34001e41
CY
50102009-05-22 Chong Yidong <cyd@stupidchicken.com>
5011
5012 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5013
46306a17
SM
50142009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5015
5016 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5017 and xfont_scratch_props.
5018 (syms_of_xfont): Do it here instead.
5019 (xfont_find_ccl_program): Delete, unused.
5020 (xfont_open): Delete unused var `i'.
5021
ef6e0694
KH
50222009-05-21 Kenichi Handa <handa@m17n.org>
5023
5024 * fontset.c (Qlatin): Don't make it static.
5025
46306a17
SM
5026 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5027 New functions.
ef6e0694
KH
5028 (xfont_scripts_cache, xfont_scratch_props): New variables.
5029 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5030 (xfont_list_pattern): Argument changed. Callers changed.
5031 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5032 (xfont_list): Don't reject a font spec with :script property.
5033 (xfont_has_char): Fix setting of encoding.
5034 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5035 xfont_scratch_props.
5036
50372009-05-19 Kenichi Handa <handa@m17n.org>
5038
46306a17 5039 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5040 Callers changed.
5041
50422009-05-18 Kenichi Handa <handa@m17n.org>
5043
5044 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5045
ac71ced7
SM
50462009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5047
5048 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5049 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5050
1c6d1051
YM
50512009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5052
5053 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5054 (x_delete_terminal): Dissociate resource database from display and
5055 then call XrmDestroyDatabase before closing display.
5056
9b9b779c
AR
50572009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5058
5059 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5060 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5061 whether selected frame is viable before raising it (based on patch
5062 by David Reitter), and improve commentary.
5063 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5064
cccd42d5
KH
50652009-05-15 Kenichi Handa <handa@m17n.org>
5066
5067 * font.c (Ffont_spec): Check arguments.
5068
337fbd17
CY
50692009-05-14 Chong Yidong <cyd@stupidchicken.com>
5070
5071 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5072 weight when testing attributes (Bug#3282).
5073
47a6002f
JD
50742009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5075
5076 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5077 what we expect to get in the next ConfigureNotify event.
5078
9cb363db
YM
5079 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5080 before Xft one (Bug#1696).
5081
b9126609
CY
50822009-05-07 David Reitter <david.reitter@gmail.com>
5083
5084 * nsfns.m (Fx_display_planes): Compute bitplanes using
5085 NSBitsPerPixelFromDepth (Bug#3207).
5086
27a69fd9
CY
50872009-05-10 Chong Yidong <cyd@stupidchicken.com>
5088
5089 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5090
00f37552
TTN
50912009-05-10 Ulrich Mueller <ulm@gentoo.org>
5092
5093 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5094
2d82a920
DR
50952009-05-07 David Reitter <david.reitter@gmail.com>
5096
ec7709ba
JB
5097 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5098 Respect mouse face background.
2d82a920 5099
46b0d52d
DR
51002009-05-07 David Reitter <david.reitter@gmail.com>
5101
ec7709ba
JB
5102 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5103 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5104 in ns_update_begin and ns_update_end.
5105
ce1b23bb
SM
51062009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5107
5996e1b7
SM
5108 * nsfns.m (ns_get_screen): Rewrite.
5109 Don't presume selected-frame is of type `ns'.
5110
ba98e3a0
SM
5111 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5112 all drivers.
5113
ce1b23bb
SM
5114 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5115
bcda200f
YM
51162009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5117
5118 * keyboard.h (add_user_signal): Fix typo in extern.
5119
5120 * lisp.h (add_user_signal): Remove extern.
5121
5122 * unexelf.c (unexec): Consider a section to precede the .bss section
5123 if its addresses overlap that of .bss.
5124 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5125 instead of dumping process.
5126
864660a2
SM
51272009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5128
5129 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5130
50da4e56
SM
51312009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5132
5133 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5134
51520a1a
DN
51352009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5136
5137 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5138 any statements.
5139
409ea3a1
AS
51402009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5141
59c4c60f
AS
5142 * process.c (read_process_output): Make sure the current buffer is
5143 always restored.
5144
409ea3a1
AS
5145 * coding.c (record_conversion_result): Don't modify
5146 Vlast_code_conversion_error for successful result.
5147 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5148
56f00ed2
KH
51492009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5150
5151 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5152 (load_charset_map): Remove unnecessary code.
56f00ed2 5153
4491c9d2
DR
51542009-04-30 David Reitter <david.reitter@gmail.com>
5155
35f5b128 5156 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5157 through f24.
5158
6970f632
CY
51592009-04-30 Chong Yidong <cyd@stupidchicken.com>
5160
5161 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5162
5163 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5164 face_at_buffer_position.
5165 (face_before_or_after_it_pos, get_next_display_element)
5166 (note_mouse_highlight): Update face_at_buffer_position call.
5167
5168 * term.c (term_mouse_highlight):
5169 * msdos.c (IT_note_mouse_highlight):
5170 * fontset.c (Finternal_char_font):
35f5b128 5171 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5172
5173 * dispextern.h (face_at_buffer_position): Update prototype.
5174
0c616f63
KH
51752009-04-30 Kenichi Handa <handa@m17n.org>
5176
35f5b128 5177 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5178
ad3aaf33
AS
51792009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5180
5181 * callproc.c (Fcall_process): Fix GC protection. Make sure
5182 current buffer is always restored.
5183
c3c963a0
YM
51842009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5185
5186 * atimer.c (init_atimer): Also clear stopped_atimers.
5187
5188 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5189
7e3386cb
YM
5190 * process.c (create_process): Clean up merger residues of
5191 2008-07-17 change.
5192
91f68422
CY
51932009-04-29 Ulrich Mueller <ulm@gentoo.org>
5194
5195 * lread.c (Vread_circle): New variable.
5196 (read1): Disable recursive read if Vread_circle is nil.
5197
24b34550
KH
51982009-04-29 Kenichi Handa <handa@m17n.org>
5199
5200 * fontset.h (set_default_ascii_font): Delete extern.
5201
5202 * fontset.c (set_default_ascii_font): Delete this unused function.
5203
5204 * frame.c (x_set_font): When ARG is a font-object, check if the
5205 font-object matches with the ASCII font-spec of the frame's
9c358bda 5206 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5207
77bf07e1
AS
52082009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5209
5210 * fns.c (Flocale_info): Protect vector from GC during decoding.
5211
5212 * process.c (Fstart_process): Protect argv strings from GC during
5213 encoding.
5214
2c55aacf
AS
52152009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5216
5217 * sysdep.c: Include <ctype.h>.
5218
b892d3c9
DR
52192009-04-27 David Reitter <david.reitter@gmail.com>
5220
35f5b128 5221 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5222 Remove commented-out code.
5223
9d0644c4
JB
52242009-04-26 Johan Bockgård <bojohan@gnu.org>
5225
5226 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5227
b7053016
JR
52282009-04-25 Jason Rumney <jasonr@gnu.org>
5229
5230 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5231
4e8231f3
YM
52322009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5233
5234 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5235 Swap bytes in short integer if fringe bitmap width > 8.
5236
493dcf2c
KH
52372009-04-23 Kenichi Handa <handa@m17n.org>
5238
5239 * xfaces.c (Fx_list_fonts): If a font size is specified in
5240 PATTERN, set it in returned scalable fonts.
5241
401e9e57
CY
52422009-04-22 Chong Yidong <cyd@stupidchicken.com>
5243
708e05dc
CY
5244 * keyboard.c (Fset_input_meta_mode): Doc fix.
5245
5246 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5247
1ac9108a 5248 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5249
5250 * coding.c (Fterminal_coding_system): Doc fix.
5251
5252 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5253 (Fx_display_pixel_height, Fx_display_planes)
5254 (Fx_display_color_cells, Fx_server_max_request_size)
5255 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5256 (Fx_display_mm_height, Fx_display_mm_width)
5257 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5258 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5259 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5260 (check_x_display_info): Handle terminal objects instead of
5261 terminal ids.
5262
401e9e57
CY
5263 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5264 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5265 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5266 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5267
df80c7f0
KH
52682009-04-21 Kenichi Handa <handa@m17n.org>
5269
5a8f12af 5270 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5271 (font_score): Check AVGWIDTH too.
908567ef 5272
df80c7f0
KH
5273 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5274 worst case.
1ac9108a
SM
5275 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5276 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5277
705af33f
JR
52782009-04-19 Jason Rumney <jasonr@gnu.org>
5279
5280 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5281 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5282
5283 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5284 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5285 get_phys_cursor_geometry.
5286
b71ac3dd 5287 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5288 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5289 using get_phys_cursor_geometry.
5290
5291 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5292 correctly calculated.
5293
dc2933eb
JD
52942009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5295
1ac9108a
SM
5296 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5297 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5298 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5299 is deprecated.
5300
973e7849
AS
53012009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5302
5303 * font.c (font_put_frame_data): Use xfree instead of free.
5304
314d66f4
JB
53052009-04-17 Juanma Barranquero <lekktu@gmail.com>
5306
5307 * w32font.c (Qja, Qko): Remove declarations.
5308 (syms_of_w32font): Don't DEFSYM them.
5309
cf702558
CY
53102009-04-17 Chong Yidong <cyd@stupidchicken.com>
5311
5312 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5313
5314 * font.h (Qja, Qko): Extern them.
5315
5316 * ftfont.c (Qja, Qko): Remove declarations.
5317
5318 * xfont.c (Qja, Qko): Remove declarations.
5319
b50504f5
KH
53202009-04-17 Kenichi Handa <handa@m17n.org>
5321
bde25748
KH
5322 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5323 string from a vector to handle Latin-1 characters correctly.
5324
b50504f5
KH
5325 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5326 entity even if the cache hits.
5327
f4646fff
AS
53282009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5329
5330 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5331 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5332
e7deaab0
AS
5333 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5334 * lisp.h: Adjust prototypes.
5335
0a0e7d49
CY
53362009-04-16 Chong Yidong <cyd@stupidchicken.com>
5337
5338 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5339 change (Bug#3003).
5340
3c908a57
KH
53412009-04-16 Kenichi Handa <handa@m17n.org>
5342
1ac9108a 5343 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5344
5345 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5346 adstyle.
5347
5348 * ftfont.c (Qja, Qko): Don't make them static.
5349 (enum ftfont_cache_for): New enum.
5350 (fc_charset_table): Undo the previous change.
5351 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5352 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5353 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5354 non-scarable font, try to get AVERAGE_WIDTH.
5355 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5356 Change ft_face_cache from a list of a hash-table. Don't check
5357 `ja' and `ko' adstyle here.
5358 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5359 FTFONT_CACHE_FOR_CHARET.
5360 (ftfont_get_charset): Undo the previous change.
1ac9108a 5361 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5362 (ftfont_close): Likewise.
5363 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5364
5365 * font.c (font_sort_entites): Change the meaning of the arg
5366 BEST-ONLY. Don't optimize for VEC of lenght 1.
5367 (font_select_entity): Just return the value of font_sort_entites.
5368
5369 * xfaces.c (merge_face_vectors): Reflect font properties in
5370 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5371 font_clear_prop if a face attribute doesn't change.
5372
3c908a57
KH
5373 * charset.h (charset_ksc5601): Extern it.
5374
5375 * charset.c (charset_ksc5601): New variable.
5376 (Fdefine_charset_internal): Set charset_ksc5601.
5377 (init_charset_once): Initialize charset_ksc5601 to -1.
5378
d65859c3
DN
53792009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5380
5381 * fileio.c (history_delete_duplicates): Remove unused declaration.
5382
5383 * callint.c (history_delete_duplicates): New declaration.
5384 (Fcall_interactively): Remove command history duplicates when
5385 history_delete_duplicates is true.
5386
3ba010e5
EZ
53872009-04-14 Eli Zaretskii <eliz@gnu.org>
5388
5389 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5390
06f19b91
KH
53912009-04-14 Kenichi Handa <handa@m17n.org>
5392
5393 * font.c (Ffont_info): Fix docstring. Fix the second element of
5394 the returned value (bug#2949).
5395
2cce8bfc
CY
53962009-04-14 Chong Yidong <cyd@stupidchicken.com>
5397
5398 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5399
d156542d
KH
54002009-04-14 Kenichi Handa <handa@m17n.org>
5401
5402 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5403 encoding charset is ascii_compatible.
5404
5405 * charset.c (Fdefine_charset_internal): Make charset
5406 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5407 code_offset is 0, and covers all ASCII characters.
5408
86fa089e
SM
54092009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5410
5411 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5412 (ns_string_to_pasteboard_internal):
5413 * nsmenu.m (process_dialog):
5414 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5415 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5416 * lisp.h (Fx_load_color_file): Declare.
5417
a8a3728b
KH
54182009-04-13 Kenichi Handa <handa@m17n.org>
5419
1ac9108a 5420 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5421 (font_select_entity): Suppress the code to optimize for the same
5422 kind of fonts.
5423 (font_load_for_lface): Get a font that supports at least ASCII
5424 characters.
5425
5426 * ftfont.c (Qja, Qko): New variables.
5427 (fc_charset_table): Delete uniquifier data for iso8859-1.
5428 (ftfont_get_latin1_charset): New function.
5429 (get_adstyle_property): New function.
5430 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5431 bitmap fonts.
5432 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5433 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5434 `ko' or `ja'.
5435 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5436 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5437 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5438 property.
5439 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5440 (syms_of_ftfont): DEFSYM Qja and Qko.
5441
483670b5
KH
54422009-04-09 Kenichi Handa <handa@m17n.org>
5443
12b55765
KH
5444 * charset.c (map_charset_chars): For a charset of `superset'
5445 method, fix calculation of code range.
5446
483670b5
KH
5447 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5448 from the list of extra properties.
5449 (font_clear_prop): Be sure to delete `:name' font property.
5450
57d3b93b
KH
54512009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5452
b4b2c2ca
YM
5453 * dispnew.c (redraw_overlapping_rows): Fix detection of
5454 overlapping for topmost and bottommost rows.
5455
1ac9108a 5456 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5457
472c3609
JR
54582009-04-06 Jason Rumney <jasonr@gnu.org>
5459
5460 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5461
ab193662
KH
54622009-04-06 Kenichi Handa <handa@m17n.org>
5463
5464 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5465
5466 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5467
0c26f026
KH
54682009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5469
5470 * ftfont.c (ftfont_open): Fix checking of the return value of
5471 FT_Load_Char. Fix setting font->underline_thickness.
5472
e173bbce
CY
54732009-04-04 Chong Yidong <cyd@stupidchicken.com>
5474
5475 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5476 (Fterminal_parameters, Fterminal_parameter)
5477 (Fset_terminal_parameter): In doc string, refer to terminal
5478 objects rather than terminal ids.
5479
693a2698
EZ
54802009-04-04 Eli Zaretskii <eliz@gnu.org>
5481
5482 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5483 ret_lim_data. (Bug#2867)
5484
d5221487
CY
54852009-04-03 Chong Yidong <cyd@stupidchicken.com>
5486
5487 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5488 so they don't get wider than the window, matching 2006-01-23
5489 change to the partner function in xdisp.c (Bug#2800).
5490
223509a3
KH
54912009-04-03 Kenichi Handa <handa@m17n.org>
5492
5493 * print.c (print_object): Make each lowest sub_char_table start a
5494 new line (Bug#2866).
5495
74fcd0b1
KH
54962009-04-02 Kenichi Handa <handa@m17n.org>
5497
5498 * fontset.c (fontset_font): Record no-font when a fontset
5499 explicitly tells not to try another font-specs.
5500
c542407d
SM
55012009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5502
5503 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5504
e3869731
KH
55052009-03-30 Kenichi Handa <handa@m17n.org>
5506
d8d2f142
KH
5507 * fontset.c (fontset_from_font): Specify only registry in a
5508 font-spec for all characters supported by that registry.
5509
e3869731
KH
5510 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5511 even if HAVE_M17N_FLT is not defined.
5512
5da5f805
CY
55132009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5514
5515 * ftfont.c: Conditionalize prototyping and use of
5516 ftfont_variation_glyphs.
5517
ab226c50
SM
55182009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5519
9628fed7
SM
5520 * frame.c (delete_frame): Work around compiler bug.
5521
5522 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5523 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5524 Some more EMACS_INT.
5525 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5526
5527 * xdisp.c (dump_glyph): Fix typo.
5528
ae19ba7c
SM
5529 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5530 (adjust_markers_gap_motion, adjust_markers_for_delete)
5531 (adjust_markers_for_insert, adjust_point)
5532 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5533 (make_gap, copy_text, count_size_as_multibyte, insert)
5534 (insert_and_inherit, insert_before_markers)
5535 (insert_before_markers_and_inherit, insert_1)
5536 (count_combining_before, count_combining_after, insert_1_both)
5537 (insert_from_string, insert_from_string_before_markers)
5538 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5539 (insert_from_buffer_1, adjust_after_replace)
5540 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5541 (replace_range_2, del_range, del_range_1, del_range_byte)
5542 (del_range_both, del_range_2, modify_region)
5543 (prepare_to_modify_buffer, signal_before_change)
5544 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5545 for buffer positions and sizes.
5546 * lisp.h: Adjust prototypes accordingly.
5547
5548 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5549 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5550 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5551
ab226c50
SM
5552 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5553
46dfb8fb
JD
55542009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5555
5556 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5557 lines and columns so we keep the same pixel height and width.
5558
5559 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5560 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5561 (x_handle_net_wm_state): New function to update frame parameter
5562 fullscreen.
5563 (x_term_init): Initialize atoms for _NET_WM_STATE.
5564
5565 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5566
d347e494
SM
55672009-03-27 Kevin Ryde <user42@zip.com.au>
5568
5569 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5570 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5571 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5572 (Fgpm_mouse_stop): Pass that new parameter.
5573 * termhooks.h (close_gpm): Adjust prototype.
5574
84db11d6
SM
55752009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5576
c95a5008
SM
5577 * lisp.h (Fx_focus_frame): Declare.
5578
84db11d6
SM
5579 * callint.c (Fcall_interactively): For '^' just delegate the work to
5580 handle-shift-selection.
5581 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5582
0a1958d6
CY
55832009-03-24 Chong Yidong <cyd@stupidchicken.com>
5584
0bfdff23
CY
5585 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5586
0a1958d6
CY
5587 * data.c (Qinteractive_form): New variable.
5588 (Finteractive_form): Use it.
5589
5590 * eval.c (Fcommandp): Use Qinteractive_form.
5591
58aec0d6
JR
55922009-03-24 Jason Rumney <jasonr@gnu.org>
5593
5594 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5595 Calculate total size precisely. Decode environment variables
5596 before substituting. (Bug#38)
5597
553dd618
KH
55982009-03-24 Kenichi Handa <handa@m17n.org>
5599
5600 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5601 encoding (Bug#2722).
553dd618 5602
c39ea606
JD
56032009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5604
5605 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5606 that gdpy is set.
5607
bc9b2b5e
AM
56082009-03-22 Alan Mackenzie <acm@muc.de>
5609
5610 * callint.c (Finteractive): Clarify the doc string - even
5611 promptless elements need \n separators.
5612
9f995a76
JR
56132009-03-22 Jason Rumney <jasonr@gnu.org>
5614
5615 * w32term.c (syms_of_w32term): Doc fix for
5616 x-use-underline-position-properties.
5617
22749e9a
EZ
56182009-03-21 Eli Zaretskii <eliz@gnu.org>
5619
5620 * w32.c (getpwuid): Change argument type to unsigned.
5621 (struct w32_id): Change type of `rid' member to unsigned.
5622 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5623 argument ID to unsigned. All callers changed.
5624 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5625
e00553bf
EZ
56262009-03-20 Eli Zaretskii <eliz@gnu.org>
5627
5628 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5629 negative, produce a float value.
5630
5631 * dired.c (make_uid, make_gid): New functions.
5632 (Ffile_attributes): Use them to avoid negative UID and GID.
5633
f761d6b6
JB
56342009-03-20 Juanma Barranquero <lekktu@gmail.com>
5635
5636 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5637 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5638 Fix typos in docstrings.
5639
d507f8d7
KH
56402009-03-19 Kenichi Handa <handa@m17n.org>
5641
5642 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5643 changed, use font_load_for_lface to get a new font object.
5644 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5645
5646 * frame.c (x_set_font): Handle the case that ARG is a cons.
5647
c68845e0
GM
56482009-03-19 Glenn Morris <rgm@gnu.org>
5649
5650 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5651
bfa49dd1
CY
56522009-03-19 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5655
8458d4c1
KH
56562009-03-19 Kenichi Handa <handa@m17n.org>
5657
5658 * charset.c (load_charset_map_from_file): When a mapfile can't be
5659 loaded, signal an error.
5660
78e7d1fe
EZ
56612009-03-18 Eli Zaretskii <eliz@gnu.org>
5662
5663 * dired.c (Ffile_attributes): Make sure UID and GID are always
5664 positive, even if the value is too large for a positive EMACS_INT.
5665 Doc fix.
5666
5667 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5668
5da9fdfa
YM
56692009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5670
5671 * xmenu.c (xdialog_show): Move Fredisplay call ...
5672 (Fx_popup_dialog): ... here.
5673
7519c40d
SM
56742009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5675
5676 * dired.c (file_name_completion): Disable the first optimization just
5677 installed, since it is not implemented correctly.
5678
2cd298e2
SM
56792009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5680
5681 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5682 only if the entry can affect bestmatch.
2cd298e2
SM
5683 Stop the search early, as Ftry_completion already does.
5684
48d37adf
CY
56852009-03-17 Chong Yidong <cyd@stupidchicken.com>
5686
e10c9c93 5687 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5688
9286b16a
CY
56892009-03-15 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * keyboard.c (parse_menu_item): Don't display remappings as menu
5692 equivalent bindings (Bug#788).
5693
f7b146dc
JR
56942009-03-15 Jason Rumney <jasonr@gnu.org>
5695
5696 * w32term.h (WM_EMACS_PAINT): New message.
5697 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5698 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5699 before passing to lisp thread. (Bug#950)
5700
f761d6b6 57012009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5702
d93f9575
CY
5703 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5704 variable as it was never reset.
5705 (ns_term_init): Remove initialization of Lisp-settable defaults
5706 and ns_expand_space.
5707 (-setPanelFromDefaultValues): Remove ns_expand_space.
5708 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5709 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5710 i.e. no additional spacing, similar to Carbon port.
5711
d93f9575
CY
5712 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5713 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5714
305018ec
JD
57152009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5716
5717 * sound.c (alsa_configure): Remove call to deprecated
5718 snd_pcm_sw_params_set_xfer_align.
5719
f761d6b6 57202009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5721
5722 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5723 after clicking in a detached tool bar.
5724 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5725
46e722a9
SM
57262009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5727
348db3dd
SM
5728 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5729 int/Lisp_Object mixup).
46e722a9 5730
a3d16f39
KH
57312009-03-13 Kenichi Handa <handa@m17n.org>
5732
5733 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5734 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5735 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5736 (set_fontset_font): Change ARG to a vector. Handle range_list in
5737 ARG correctly.
5738 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5739 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5740 the above change.
5741 (fontset_from_font): Fix previous change.
fe24f56a 5742 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5743 entry. If FONTSET is the default fontset, don't set the extra
5744 slot of the returning char-table.
5745
b066e6b6
JB
57462009-03-12 Juanma Barranquero <lekktu@gmail.com>
5747
5748 * nsfns.m (Fx_close_connection): Doc fix.
5749 (Fns_do_applescript): Reflow docstring.
5750 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5751 (Fx_display_pixel_width, Fx_display_pixel_height)
5752 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5753 Fix typos in docstrings.
5754 (Fns_set_alpha): Fix typos in error messages.
5755
d472514e 57562009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5757
d472514e 5758 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5759 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5760 were used for such events.
5761
d472514e
JB
5762 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5763 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5764
d472514e 5765 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5766 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5767
fb930676
KH
57682009-03-11 Kenichi Handa <handa@m17n.org>
5769
ff85581a
KH
5770 * font.h (font_open_by_spec): Extern it.
5771
c50b7e98
KH
5772 * font.c (font_open_by_spec): New function.
5773 (font_open_by_name): Use font_open_by_spec.
5774
fb930676
KH
5775 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5776 fontset of the frame.
5777
5778 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5779 modify the default font of frames that use this fontset.
5780 (num_auto_fontsets): New variable.
5781 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5782 name. Be sure to set FONTSET_ASCII to the correct font name.
5783 (update_auto_fontset_alist): New function.
5784
df4e8455
JB
57852009-03-11 Juanma Barranquero <lekktu@gmail.com>
5786
5787 * makefile.w32-in: Update dependencies.
5788
0a375797
AR
57892009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5790
5791 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5792
61313fa3
SM
57932009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5794
5795 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5796
b55103fb
CY
57972009-03-10 Chong Yidong <cyd@stupidchicken.com>
5798
5799 * lread.c (Feval_buffer): Doc fix.
5800
dde2559c
KH
58012009-03-09 Kenichi Handa <handa@m17n.org>
5802
5803 * charset.c (Qfile_name_handler_alist): Extern it.
5804 (load_charset_map_from_file): Temporarily bind
5805 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5806
df4e8455 58072009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5808
47f588bb
GM
5809 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5810 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5811
4ddf94bd
AR
58122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5813
4c9bdfc2
AR
5814 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5815 (x_set_window_size): Change back to calculated method of setting
5816 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5817 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5818 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5819
fe41ae9e
AR
5820 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5821
4c9bdfc2
AR
5822 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5823 accelerator in parens under GNUstep.
5824
825d0875
KH
58252009-03-06 Kenichi Handa <handa@m17n.org>
5826
5827 These changes are to detect incorrect composition sequence without
f3b3be74 5828 looking ahead the source. (Bug#2370)
825d0875
KH
5829
5830 * coding.h: Include "composite.h".
5831 (enum compisition_state): New enum.
5832 (struct compisition_status): New struct.
5833 (struct iso_2022_spec): New member cmp_status.
5834 (struct emacs_mule_spec): New struct.
5835 (struct coding_system): New members ctext_extended_segment_len and
5836 embedded_utf_8. Change the union member
5837 spec.emacs_mule_full_support to spec.emacs_mule.
5838
5839 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5840 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5841 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5842 (ADD_COMPOSITION_DATA): New arg nbytes.
5843 (emacs_mule_char): New arg cmp_status.
5844 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5845 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5846 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5847 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5848 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5849 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5850 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5851 (EMACS_MULE_COMPOSITION_END): New macro.
5852 (emacs_mule_finish_composition): New function.
5853 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5854 (decode_coding_emacs_mule): Avoid long looking ahead while
5855 handling composition.
5856 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5857 (ENCODE_COMPOSITION_RULE): New macro.
5858 (finish_composition): New function.
5859 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5860 (DECODE_COMPOSITION_START): New implementation.
5861 (DECODE_COMPOSITION_END): Likewise.
5862 (STORE_COMPOSITION_RULE): New macro.
5863 (decode_coding_iso_2022): Avoid long looking ahead while handling
5864 composition, CTEXT extended segment, and embedded UTF-8.
5865 (setup_coding_system): For a coding of type iso-2022, reset
5866 CODING_ISO_EXTSEGMENT_LEN (coding) and
5867 CODING_ISO_EMBEDDED_UTF_8 (coding).
5868 (get_translation): Delete arguments last_block, from_nchars,
5869 to_nchars. Callers changed.
5870 (produce_chars): Don't modify charbuf. Adjusted for the change of
5871 get_translation.
98a326f7 5872 (produce_composition): Adjust for the new annotation sequence.
825d0875 5873 (handle_composition_annotation): Likewise.
98a326f7 5874 (consume_chars): Adjust for the change of get_translation.
825d0875 5875
ccbc4452
AR
58762009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5877
4ddf94bd 5878 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5879
988a7ddb
KH
58802009-03-05 Kenichi Handa <handa@m17n.org>
5881
5882 * font.c (font_select_entity): New function.
5883 (font_find_for_lface): Use font_select_entity to select a font.
5884
5885 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5886 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5887 font with C restriction.
5888
98a326f7 58892009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5890
be1bce46 5891 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5892
10ea2b82
JR
58932009-03-04 Jason Rumney <jasonr@gnu.org>
5894
2c93b248 5895 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5896 characters that have already been read. (Bug#2569)
2c93b248 5897
10ea2b82
JR
5898 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5899 Log an error message if check_image_size failed.
5900 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5901 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5902
71a0c011
EZ
59032009-03-02 Eli Zaretskii <eliz@gnu.org>
5904
5905 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5906 when decoding process output.
5907
2f63bba8
RS
59082009-03-01 Richard M Stallman <rms@gnu.org>
5909
5910 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5911
5912 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5913
0a9564cb
EZ
59142009-02-28 Eli Zaretskii <eliz@gnu.org>
5915
5916 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5917 (decode_coding_emacs_mule, decode_coding_iso_2022)
5918 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5919 (decode_coding_raw_text, decode_coding_charset)
5920 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5921 Honor inhibit-eol-conversion. (Bug #2186)
5922
449148b3
JR
59232009-02-28 Jason Rumney <jasonr@gnu.org>
5924
5925 * coding.c (detect_coding_charset): If not checking latin extra,
5926 fail on characters between 0x80 and 0xA0. (Bug#2354)
5927
a4aee864
EZ
59282009-02-28 Eli Zaretskii <eliz@gnu.org>
5929
5930 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5931 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5932
d88bee5a
GM
59332009-02-27 Glenn Morris <rgm@gnu.org>
5934
5935 * callint.c (Finteractive): Doc fix.
5936
a808f22d
KH
59372009-02-27 Kenichi Handa <handa@m17n.org>
5938
5939 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5940
caf8d60c
CY
59412009-02-27 Chong Yidong <cyd@stupidchicken.com>
5942
5943 * font.c (font_style_to_value): Set value for unknown symbols to
5944 100 instead of 255.
b61137ea
CY
5945 (weight_table, slant_table, width_table): Treat "unspecified" as
5946 the default value.
caf8d60c 5947
1a0de25c
JB
59482009-02-26 Juanma Barranquero <lekktu@gmail.com>
5949
5950 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5951
8fc45744
JB
59522009-02-25 Juanma Barranquero <lekktu@gmail.com>
5953
107bd7d1
JB
5954 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5955 error as soon as a recursive load is detected.
8fc45744 5956
f097e223
AR
59572009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5958
5959 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5960 before caching.
5961
8810a12f
KH
59622009-02-24 Kenichi Handa <handa@m17n.org>
5963
5964 * fontset.c (fontset_find_font): Fix the condition for checking
5965 unavailable font.
5966
2c7d1565
GM
59672009-02-24 Glenn Morris <rgm@gnu.org>
5968
5969 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5970 whitespace that confuses documentation.
5971
a20878b6
MB
59722009-02-23 Miles Bader <miles@gnu.org>
5973
5974 * process.c (Flist_system_processes, Fprocess_attributes)
5975 (syms_of_process): Rename `system-process-attributes' to
5976 `process-attributes'.
5977
b3b58c01
AS
59782009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5979
1b3b981b
AS
5980 * coding.h (struct coding_system): Make safe_charsets a pointer to
5981 unsigned char.
5982 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5983 being 255.
5984 (SAFE_CHARSET_P): Likewise.
5985 (setup_iso_safe_charsets): Properly setup safe_charsets.
5986 (Fdefine_coding_system_internal): Likewise.
5987 (setup_coding_system): Likewise. Remove unneeded casts.
5988 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5989 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5990 unneeded casts.
5991
b3b58c01
AS
5992 * insdel.c (del_range_2): Don't modify gap contents when called
5993 from decode_coding_object. (Bug#1809)
5994
0b6f228c
CY
59952009-02-21 Chong Yidong <cyd@stupidchicken.com>
5996
5997 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5998 Qfont_object.
5999 (Ftype_of): Recognize font objects.
6000
6001 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6002
6003 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6004 moved to data.c.
6005
52f8870b
AR
60062009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6007
6008 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6009 async_iconified. Based on a patch by Christian Lynbech
6010 <christian.lynbech@tieto.com>.
6011 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6012
7087d5e9
GM
60132009-02-20 Glenn Morris <rgm@gnu.org>
6014
6015 * syntax.c (Fskip_chars_forward): Fix doc typo.
6016
41d2ceef
CY
60172009-02-20 Chong Yidong <cyd@stupidchicken.com>
6018
6019 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6020
1a3b7ca6
CY
60212009-02-19 Chong Yidong <cyd@stupidchicken.com>
6022
6023 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6024
73cce38d
KH
60252009-02-19 Kenichi Handa <handa@m17n.org>
6026
6027 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6028 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6029
a51092ee
DN
60302009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6031
6032 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6033
c423ecca
KH
60342009-02-18 Kenichi Handa <handa@m17n.org>
6035
6036 * font.c (font_check_otf_features): Fix handling of `nil' element.
6037 (Ffont_spec): Describe :lang and :otf in the docstring.
6038
4c1958f4
AS
60392009-02-16 Andreas Schwab <schwab@suse.de>
6040
6041 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6042 string.
6043
5704f39a
KH
60442009-02-16 Kenichi Handa <handa@m17n.org>
6045
6046 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6047 (Bug#1723)
5704f39a 6048
8f0085aa
CY
60492009-02-14 Chong Yidong <cyd@stupidchicken.com>
6050
a057d86a 6051 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6052
6053 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6054 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6055
aff01dd9
EZ
60562009-02-14 Eli Zaretskii <eliz@gnu.org>
6057
6058 * msdos.c (MAX_SCREEN_BUF): New macro.
6059 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6060 Encode the entire run of glyphs sharing the same face, instead of
6061 doing that one glyph at a time (fixes a bug with displaying
6062 double-size characters).
6063
ba301db3
AR
60642009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6065
6066 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6067
6068 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6069 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6070 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6071
6072 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6073 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6074
51d861de
SM
60752009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6076
ac146f82 6077 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6078 invisible areas.
6079
7fed8996
JR
60802009-02-12 Jason Rumney <jasonr@gnu.org>
6081
631ea4fb
JR
6082 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6083 (add_font_entity_to_list): Call check_face_name even when family
6084 is unspecified.
6085
cb4a3e42
JR
6086 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6087 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6088 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6089
7fed8996 6090 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6091 raster fonts. (Bug#2219)
7fed8996 6092
895416e3
KH
60932009-02-12 Kenichi Handa <handa@m17n.org>
6094
6095 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6096 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6097 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6098 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6099 (find_automatic_composition): While looking forward and backward,
6100 check static composition. Fix where to stop looking forward.
6101 (composition_adjust_point): Fix checking of static composition.
6102 (Fcomposition_get_gstring): Pay attention to
1dacf998 6103 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6104
6105 * lisp.h (fast_looking_at): Extern it.
6106
6107 * search.c (fast_looking_at): New function.
6108
51d861de 6109 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6110 <struct glyph>.u.cmp.to.
6111 (append_composite_glyph): Likewise.
6112
51d861de 6113 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6114 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6115 composition.
51d861de 6116 (append_composite_glyph): Adjust for the change of
895416e3
KH
6117 <strcut glyph>.u.cmp.to.
6118
8510724d
JB
61192009-02-11 Juanma Barranquero <lekktu@gmail.com>
6120
6121 * casetab.c (init_casetab_once):
6122 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6123 * font.c (font_update_lface):
6124 * fontset.c (Fnew_fontset):
6125 * ftfont.c (ftfont_drive_otf):
6126 * xfont.c (xfont_open):
6127 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6128
294fa707
SM
61292009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6130
6131 * fileio.c (Fwrite_region): !NILP -> CONSP.
6132
b5bfebec
AS
61332009-02-10 Andreas Schwab <schwab@suse.de>
6134
6135 * process.c (send_process): Properly relocate pointer into data
adab88bd 6136 when using encoded data. (Bug#2272)
b5bfebec 6137
cb84a2be
KH
61382009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6139
6140 * coding.c (detect_coding_charset): Fix previous change.
6141
89e09428
JR
61422009-02-08 Jason Rumney <jasonr@gnu.org>
6143
6144 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6145 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6146
4470a277
AS
61472009-02-07 Andreas Schwab <schwab@suse.de>
6148
6149 * unexelf.c (unexec): Fix error message.
6150
3175b12a
AR
61512009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6152
6153 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6154 when modal window is active. (Bug #2152)
3175b12a
AR
6155 (applicationShouldTerminate:): Remove now-unneeded while loop
6156 around NSRunAlertPanel.
6157
6158 * nsmenu.m (popupSession): New file-global variable.
6159 (pop_down_menu): End the popupSession before closing dialog.
6160 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6161 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6162 don't query NSApp for events (just sleep instead).
6163
8434d0b8
EZ
61642009-02-07 Eli Zaretskii <eliz@gnu.org>
6165
51d861de
SM
6166 * coding.c (syms_of_coding) <translation-table-for-input>:
6167 Modify doc string to discourage use for character code unification.
8434d0b8 6168
aa82edfd
CY
61692009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6170
6171 * atimer.c (run_timers): Update pending_atimers.
6172
2d283c7c
CY
61732009-02-06 Chong Yidong <cyd@stupidchicken.com>
6174
eb306cab
CY
6175 * image.c (svg_load_image): Fix last change.
6176
2d283c7c
CY
6177 * xfns.c (Fx_create_frame): Signal an error if no font is
6178 found (Bug#2147).
6179
4d8e170e
JB
61802009-02-05 Juanma Barranquero <lekktu@gmail.com>
6181
6182 * character.c (syms_of_character) <script-representative-chars>:
6183 Fix typo in docstring.
6184
c96169a0
AR
61852009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6186
6187 * nsmenu.m (pop_down_menu): New function.
6188 (ns_popup_dialog): Call it on unwind.
6189 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6190 call timer_check() (Bug#2154).
6191 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6192 handling_signal is set.
6193 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6194
31fd7c5c 6195 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6196
6197 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6198
6199 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6200
51d861de
SM
6201 * keyboard.c (poll_for_input_1, handle_async_input):
6202 Set handling_signal under HAVE_NS.
c96169a0 6203
aacd8ba1
GM
62042009-02-04 Glenn Morris <rgm@gnu.org>
6205
6206 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6207
4cb75c4b
KH
62082009-02-04 Kenichi Handa <handa@m17n.org>
6209
6210 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6211
6212 * charset.c (Fchar_charset): New optional arg restriction.
6213
6214 * coding.h (coding_system_charset_list): Extern it.
6215
6216 * coding.c (coding_system_charset_list): New function.
6217
6218 * composite.c: Include coding.h and termhooks.h.
6219 (composition_gstring_p): Fix for the terminal case.
6220 (composition_gstring_width): Likewise.
6221 (fill_gstring_body): Likewise.
6222 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6223 the frame.
6224 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6225 is within a composition.
867d4bb3 6226 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6227
6228 * term.c (encode_terminal_code): Fix handling of composition.
6229 (produce_composite_glyph): For static composition, get pixel_width
6230 from struct composition.
6231
826ba17e
AS
62322009-02-02 Andreas Schwab <schwab@suse.de>
6233
6234 * unexelf.c (unexec): Handle unaligned bss offset.
6235
8ad093db
AR
62362009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6237
6238 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6239 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6240
8ad093db
AR
6241 * keyboard.c (handle_interrupt): Don't call
6242 quit_throw_to_read_char() under NS.
d0a76a6e 6243
8ad093db
AR
6244 * blockinput.h: Remove NS-specific code.
6245
4d18a7a2
DN
62462009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6247
db878925
DN
6248 * dispnew.c (window_change_signal): Don't try to get the size of a
6249 suspended tty frame.
6250 * term.c (Fresume_tty): Resize if the size has changed while the
6251 tty was suspended.
6252
4d18a7a2
DN
6253 * alloc.c (mark_stack): Properly conditionalize previous change.
6254
8984df7c
JB
62552009-01-30 Juanma Barranquero <lekktu@gmail.com>
6256
6257 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6258 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6259 Remove; this code is not used on Windows.
6260
75f4f1ac
EZ
62612009-01-30 Eli Zaretskii <eliz@gnu.org>
6262
6263 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6264 EOLs that also has stray ^M characters.
6265
07a1e794
JB
62662009-01-30 Juanma Barranquero <lekktu@gmail.com>
6267
6268 * atimer.c (run_timers, alarm_signal_handler):
6269 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6270 * w32inevt.c (w32_console_read_socket):
6271 * w32term.c (w32_read_socket):
6272 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6273
a8b11cc9
CY
62742009-01-30 Chong Yidong <cyd@stupidchicken.com>
6275
6276 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6277 Initialize it as a relative filename pattern.
6278 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6279 (Fcall_process_region): Simplify temp file creation using
6280 temporary-file-directory.
6281
c279587b
EZ
62822009-01-29 Eli Zaretskii <eliz@gnu.org>
6283
6284 * msdos.c: Rename pending_signals to msdos_pending_signals.
6285 (sig_suspender, sigprocmask): Adjust.
6286
a8fe3242
CY
62872009-01-29 Chong Yidong <cyd@stupidchicken.com>
6288
6289 * keyboard.c (pending_signals): New var.
6290 (poll_for_input, input_available_signal, init_keyboard): Set it.
6291 (process_pending_signals): New function.
6292
6293 * lisp.h (QUIT): Check pending_signals instead of
6294 interrupt_input_pending. Use process_pending_signals.
6295
51d861de 6296 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6297
51d861de 6298 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6299
6300 * sysdep.c (emacs_write): Use process_pending_signals.
6301
6302 * xterm.c (XTread_socket): Update pending_signals.
6303
6304 * w32term.c (w32_read_socket): Update pending_signals.
6305
6306 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6307
6570a1c4
KH
63082009-01-29 Kenichi Handa <handa@m17n.org>
6309
6310 * xftfont.c (xftfont_has_char): New function.
6311 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6312
d72a4afa
AR
63132009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6314
6315 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6316 under GNUstep.
6317 (ns_query_color): New declaration.
6318
6319 * nsterm.m (ns_confirm_quit): New variable.
6320 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6321 (EmacsApp-applicationShouldTerminate:): Use it.
6322 (EmacsPrefsController): Let user set it.
6323 (ns_query_color): New function.
6324 (ns_defined_color): Use it.
6325 (ns_initialize): Drop.
6326 (ns_term_init): Add two lines from ns_initialize(), and set
6327 input_interrupt_mode to nil.
6328
6329 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6330 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6331
9fe78804
KH
63322009-01-28 Kenichi Handa <handa@m17n.org>
6333
6334 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6335 (fontset_get_font_group): Remember that no font-group is specified
6336 for C.
9fe78804 6337
fa57de36
CY
63382009-01-27 Chong Yidong <cyd@stupidchicken.com>
6339
930600e9
CY
6340 * fns.c (concat): Check for string overflow (bug#1787).
6341
fa57de36
CY
6342 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6343 Quadruple undo limits (bug#1501).
6344
7179ce7b
KH
63452009-01-27 Kenichi Handa <handa@m17n.org>
6346
6347 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6348 directly use GT_Get_Char_index.
6349
6350 * xftfont.c (struct xftfont_info): New member `index'.
6351
6352 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6353 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6354
5be8fcc0
CY
63552009-01-26 Kenichi Handa <handa@m17n.org>
6356
6357 * fontset.c (fontset_find_font): Fix handling of non-cons return
6358 value of fontset_get_font_group.
6359 (fontset_font): Revert last change.
6360
19ae3e61
JR
63612009-01-26 Jason Rumney <jasonr@gnu.org>
6362
6363 * w32font.c (w32font_list_internal): Return quickly if registry is
6364 unknown. Simplify final return.
6365 (add_font_entity_to_list): Break complex logic down into more
6366 manageable chunks. Move unknown registry check to
6367 w32font_list_internal.
6368
8612b71a
AR
63692009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6370
6371 Changes to remove Feval calls from GUI under NS.
6372
d8038940
JB
6373 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6374 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6375 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6376
6377 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6378 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6379 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6380 instead of NON_ASCII_KEYSTROKE_EVENT.
6381 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6382 (EmacsApp-applicationShouldTerminate:): Query user.
6383 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6384 instead of Feval.
6385
6386 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6387
6388 * keyboard.c (kbd_buffer_get_event): Check for it.
6389 (keys_of_keyboard): Define lispy keys for
6390 ns-put/unput-working-text.
6391
6392 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6393 versions.
6394 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6395
6288ae55
CY
63962009-01-25 Chong Yidong <cyd@stupidchicken.com>
6397
6398 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6399 setting current_buffer directly. (Bug#2044)
6288ae55 6400
289e7f8f
CY
64012009-01-24 Chong Yidong <cyd@stupidchicken.com>
6402
5ce87308 6403 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6404 any work. (Bug#1952, bug#1990).
5ce87308 6405
64cc3cf6 6406 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6407
b3243e6f
AR
64082009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6409
6410 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6411 (ns_no_defaults): New declaration.
6412 (main): Use it.
e0d2e69a 6413
d900b2af 6414 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6415
d900b2af 6416 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6417
d900b2af
AR
6418 * nsterm.m (ns_no_defaults): New variable.
6419 (ns_initialize): Don't read defaults when ns_no_defaults.
6420 (EmacsView-readSelectionFromPasteboard:)
6421 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6422 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6423 (ns_dumpglyphs_stretch): New function.
6424 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6425 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6426
e0d2e69a
AR
6427 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6428
3ac71f5d
CY
64292009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6430
6431 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6432 call for Sparc64.
6433
3fe53a83
AR
64342009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6435
6436 * nsfns.m:
6437 * nsgui.h:
6438 * nsmenu.m:
6439 * nsselect.m:
6440 * nsterm.h:
6441 * nsterm.m: Remove '23' comments that indicated code added during
6442 update from emacs-20 -> emacs-23.
6443
10f87c6f 64442009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6445
6446 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6447 ns_alternate_modifier. (Bug#1217)
a3b53a85 6448
c7cef62d
AR
6449 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6450 Display all shortcuts, including those w/o super modifier.
6451
575fb8bd
AR
6452 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6453
918b848b
CY
64542009-01-22 Chong Yidong <cyd@stupidchicken.com>
6455
6456 * fileio.c (Vwrite_region_post_annotation_function)
6457 (Vwrite_region_annotation_buffers): New vars.
6458 (build_annotations_unwind): Just reset
6459 Vwrite_region_annotation_buffers.
6460 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6461 Call write-region-post-annotation-function.
6462 (build_annotations): Add to Vwrite_region_annotation_buffers if
6463 buffer changes.
6464
a39e2539
AR
64652009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6466
6467 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6468 Tiger.
51d861de
SM
6469 * nsfns.m (ns_do_applescript):
6470 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6471
35ed44db
AR
64722009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6473
6474 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6475
cbe0b5bf
AR
64762009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6477
6478 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6479
6049d3a0
AR
6480 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6481
6482 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6483 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6484 handle Ctrl-tab. (Bug#1841)
6485 (ns_get_color): Use unsigned long long for scanned hex string value.
6486 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6487 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6488 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6489 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6490 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6491 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6492 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6493
d3810c21 6494 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6495 DPI. (Bug#1316)
d3810c21
AR
6496 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6497 values in onTiger section.
4c7077c3 6498
e301e634
CY
64992009-01-19 Chong Yidong <cyd@stupidchicken.com>
6500
7f82490b
CY
6501 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6502 Check return value of font_spec_from_name.
64cc3cf6 6503 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6504
6505 * font.c (font_spec_from_name): Return Qnil if font name could not
6506 be parsed.
6507 (font_parse_name): Treat a `?' character as part of an XLFD.
6508
e301e634
CY
6509 * fns.c (Fsubstring): Doc fix.
6510
1c0db158
KH
65112009-01-19 Kenichi Handa <handa@m17n.org>
6512
51d861de 6513 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6514 (ftfont_list): Likewise.
6515
acf20901
JB
65162009-01-18 Juanma Barranquero <lekktu@gmail.com>
6517
fff4e459
JB
6518 * dbusbind.c (Fdbus_register_signal):
6519 * process.c (conv_sockaddr_to_lisp):
6520 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6521
acf20901
JB
6522 * callproc.c (Fgetenv_internal): Doc fix.
6523
e7abcdfb
CY
65242009-01-16 Chong Yidong <cyd@stupidchicken.com>
6525
6526 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6527 it is not even used.
6528
b60861e6
GM
65292009-01-16 Glenn Morris <rgm@gnu.org>
6530
6531 * font.c (Ffont_variation_glyphs): Silence compiler.
6532
8db52afe
JB
65332009-01-15 Juanma Barranquero <lekktu@gmail.com>
6534
6535 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6536 Reported by David Robinow <drobinow@gmail.com>.
6537
4cddb209
KH
65382009-01-15 Kenichi Handa <handa@m17n.org>
6539
51d861de 6540 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6541
f247f67b
JR
65422009-01-14 Jason Rumney <jasonr@gnu.org>
6543
6544 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6545 never a fontset. (Bug#1562)
f247f67b 6546
f56a4450
KH
65472009-01-14 Kenichi Handa <handa@m17n.org>
6548
6549 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6550 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6551
4e99855e
CY
65522009-01-13 Chong Yidong <cyd@stupidchicken.com>
6553
6554 * font.c (font_clear_prop): If clearing the family, clear the font
6555 width index too.
6556
fff4e459 6557 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6558
24f01470
JB
65592009-01-12 Juanma Barranquero <lekktu@gmail.com>
6560
6561 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6562 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6563 functions, use sizeof.
6564
a41240a3
MR
65652009-01-12 Martin Rudalics <rudalics@gmx.at>
6566
6567 * keyboard.c (read_char): Fix case where last_nonmenu_event
6568 returned a bad value with submenus. (Bug#447)
6569
944636b8
CY
65702009-01-12 Chong Yidong <cyd@stupidchicken.com>
6571
6572 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6573 family, clear the font width index too.
6574
0dad7c6f
JR
65752009-01-11 Jason Rumney <jasonr@gnu.org>
6576
6577 * keyboard.c (cmd_error_internal): Exit when errors occur before
6578 frame creation and not in daemon mode. (Bug#1836)
6579
7c2363af
CY
65802009-01-10 Chong Yidong <cyd@stupidchicken.com>
6581
6582 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6583 of a display vector, backtrack.
6584 (try_window_reusing_current_matrix): Check glyph type before
6585 referencing charpos member.
6586
97b1b294
EZ
65872009-01-10 Eli Zaretskii <eliz@gnu.org>
6588
6589 Fix Bug #876:
6590
6591 * coding.c (inhibit_null_byte_detection): New variable.
6592 (detect_coding, detect_coding_system): Don't pay attention to null
6593 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6594 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6595 <inhibit-iso-escape-detection>: Doc fix.
6596
4624b6e3
JR
65972009-01-09 Jason Rumney <jasonr@gnu.org>
6598
6599 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6600 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6601 Only report Unicode Plane 2 fonts as unicode-sip.
6602
323b840c
CY
66032009-01-09 Chong Yidong <cyd@stupidchicken.com>
6604
51d861de
SM
6605 * xfaces.c (Fx_font_family_list): Delete function.
6606 Move compatibility version to faces.el.
323b840c 6607
51d861de 6608 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6609
eba7400d
MR
66102009-01-09 Martin Rudalics <rudalics@gmx.at>
6611
6612 * frame.c (x_set_frame_parameters): Remember requested value for
6613 fullscreen before it's reset by the parameter handler.
6614
4b09796d
GM
66152009-01-09 Glenn Morris <rgm@gnu.org>
6616
6617 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6618 (last_command_event): ... and update all users.
4b09796d
GM
6619 (last_input_char): For clarity, rename to...
6620 (last_input_event): ... and update all users.
6621 (last-command-char, last-input-char): Move to subr.el as aliases.
6622 * cmds.c, commands.h: Update for last_command_char rename.
6623
14ccea62
CY
66242009-01-08 Chong Yidong <cyd@stupidchicken.com>
6625
51d861de 6626 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6627
5f004711
JR
66282009-01-08 Jason Rumney <jasonr@gnu.org>
6629
6630 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6631 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6632 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6633 Don't declare.
fff4e459 6634 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6635 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6636
b71f6f73
KH
66372009-01-07 Kenichi Handa <handa@m17n.org>
6638
50b06221 6639 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6640 remember the coding system used for decoding in
50b06221
KH
6641 coding_system (Bug#1039).
6642
b71f6f73 6643 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6644 breaking the loop. (Bug#870)
b71f6f73
KH
6645 (decode_coding_utf_16, decode_coding_emacs_mule)
6646 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6647 (decode_coding_charset): Likewise.
6648
56f668f7
MR
66492009-01-05 Martin Rudalics <rudalics@gmx.at>
6650
6651 * frame.c (x_set_frame_parameters): Make sure height (width) get
6652 applied when fullwidth (fullheight) is set. (Bug#1522)
6653
5da9424d
JB
66542009-01-04 Juanma Barranquero <lekktu@gmail.com>
6655
6656 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6657 (utc_base): Declare as ULONGLONG, not long double.
6658 (convert_time_raw): Delete.
6659 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6660 (initialize_utc_base): New function.
6661 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6662 (convert_from_time_t): Use initialize_utc_base; compute result with
6663 64-bit arithmetic.
6664 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6665
c4605e09
EZ
66662009-01-03 Eli Zaretskii <eliz@gnu.org>
6667
9acef61c 6668 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6669 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6670 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6671 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6672 [!subprocesses]: Define.
6673 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6674 (Flist_system_processes, Fsystem_process_attributes)
6675 [!subprocesses]: Call list_system_processes and
6676 system_process_attributes instead of returning Qnil.
6677
9acef61c
JB
6678 * dosfns.c (system_process_attributes, list_system_processes):
6679 New functions.
c4605e09
EZ
6680
6681 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6682
6683 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6684 Don't use the default (no-op) implementation.
6685
8b7d0a16
JR
66862009-01-03 Jason Rumney <jasonr@gnu.org>
6687
a6d46bc1
JR
6688 * keyboard.c (parse_modifiers_uncached): Wheel events are
6689 clicks (bug#687).
6690
8b7d0a16
JR
6691 * w32term.c (x_query_colors, x_query_color): New functions.
6692
6693 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6694 (svg_load_image): Cast returned pointers from dynamically loaded
6695 functions. Eliminate W32 specific code.
6696
bfe11752
DN
66972009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6698
89e2438a
DN
6699 * nsfns.m (x_set_foreground_color, x_set_background_color)
6700 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6701 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6702 x_ prefix instead of ns_. Update references.
6703 (syms_of_nsfns): Add a FIXME comment.
6704
6705 * nsterm.m (x_set_cursor_type): New prototype.
6706 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6707
bfe11752
DN
6708 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6709 for Solaris instead of incorrectly providing Qutime and Qcutime.
6710
031da700
EZ
67112009-01-02 Eli Zaretskii <eliz@gnu.org>
6712
6713 * w32.c (process_times): Compute sum of utime and stime.
6714 (system_process_attributes): Add Qtime to the alist.
6715
6716 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6717 and add them to the alist.
6718
6719 * process.c (top level) <Qtime, Qctime>: New variables.
6720 (syms_of_process): staticpro them.
6721 (Fsystem_process_attributes): Add their documentation to the doc
6722 string.
6723
6724 * process.h: Declare Qtime and Qctime.
6725
df23bf08
JR
67262009-01-02 Jason Rumney <jasonr@gnu.org>
6727
9acef61c 6728 * image.c (Qgobject): New symbol.
df23bf08
JR
6729 (syms_of_image): Initialize it.
6730 (init_svg_functions): Load some functions from gobject library.
6731
5bbdf7aa
DN
67322009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6733
6734 * frame.c (make_terminal_frame): Remove redundant code and useless
6735 block.
6736
63136da6
AS
67372009-01-01 Andreas Schwab <schwab@suse.de>
6738
6739 * process.c (conv_sockaddr_to_lisp): Add workaround for
6740 getsockname bug on BSD.
6741
9ef69046
CY
67422009-01-01 Chong Yidong <cyd@stupidchicken.com>
6743
d6fafbe0
CY
6744 * xfns.c (x_create_tip_frame): Set border width of the X window.
6745
51d861de 6746 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6747
f9c34147
JR
67482009-01-01 Jason Rumney <jasonr@gnu.org>
6749
9acef61c 6750 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6751 Don't block input, as per earlier xterm.c changes.
6752
f5497e45
AR
67532008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6754
6755 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6756 (ns_appkit_version_int): New function.
6757 (x-server-version): Use ns_appkit_version_int and follow 21+
6758 convention of returning 3 integers.
6759
c19cab20
KH
67602008-12-30 Kenichi Handa <handa@m17n.org>
6761
6762 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6763 (CHAR_SURROGATE_PAIR_P): New macro.
6764
6765 * font.h (struct font_driver): New member get_variation_glyphs.
6766
9acef61c 6767 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6768 (Ffont_variation_glyphs): New function.
6769 (syms_of_font): Defsubr it.
6770
6771 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6772 ftfont_variation_glyphs.
6773 (setup_otf_gstring): New function.
6774 (ftfont_drive_otf): Use it.
6775 (ftfont_shape_by_flt): Handle variation selector.
6776 (ftfont_variation_glyphs): New function.
6777
28cd591f
MR
67782008-12-30 Martin Rudalics <rudalics@gmx.at>
6779
6780 * frame.c (Vemacs_iconified): Remove.
6781
7f714baf
JR
67822008-12-30 Jason Rumney <jasonr@gnu.org>
6783
6784 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6785 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6786
9d2d22ab
CY
67872008-12-30 Chong Yidong <cyd@stupidchicken.com>
6788
6789 * indent.c (Fvertical_motion): Don't advance iterator if we have
6790 reseated to the desired position.
6791
6792 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6793 checking for pos match.
6794
545312c2
KH
67952008-12-30 Kenichi Handa <handa@m17n.org>
6796
1ede3eb6
KH
6797 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6798 just get the low 8-bit of the code.
6799
545312c2
KH
6800 * font.c (font_intern_prop): Validate str as multibyte.
6801
bd7bbf29
DN
68022008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6803
31e0750e
DN
6804 * dispextern.h (struct face): Move lface and hash from the middle
6805 of bitfields.
6806
bd7bbf29
DN
6807 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6808
b5672e7c
DN
68092008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6810
6811 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6812 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6813 instead of intervals.h.
6814
d704470f
AS
68152008-12-26 Andreas Schwab <schwab@suse.de>
6816
6817 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6818 cons.
6819
54b33868
MR
68202008-12-26 Martin Rudalics <rudalics@gmx.at>
6821
6822 * textprop.c (Qminibuffer_prompt): New variable.
6823 (syms_of_textprop): Initialize it.
6824 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6825 in minibuffer-prompt face. (Bug#1662)
6826
40b615d6
JR
68272008-12-25 Jason Rumney <jasonr@gnu.org>
6828
6829 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6830
baae5c2d
JR
68312008-12-24 Jason Rumney <jasonr@gnu.org>
6832
6833 * ralloc.c (r_alloc_reset_variable): New function.
6834
6835 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6836 record of what points where. (Bug#716)
baae5c2d 6837
a9051c88
DN
68382008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6839
6840 * minibuf.c (read_minibuf): Follow the non-interactive case when
6841 running as a daemon, before detaching.
6842
8b146312
AS
68432008-12-22 Andreas Schwab <schwab@suse.de>
6844
6845 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6846 * gtkutil.c (free_widget_value): Use xfree instead of free.
6847
56f2de10
MR
68482008-12-22 Martin Rudalics <rudalics@gmx.at>
6849
6850 * frame.c (delete_frame): New function derived from
6851 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6852 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6853 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6854 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6855 * frame.h: Extern delete_frame.
6856 * window.c (window_loop):
6857 * terminal.c (delete_terminal):
6858 * xterm.c (x_connection_closed):
6859 * xfns.c (Fx_hide_tip):
9acef61c 6860 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6861
1fc200d6
JR
68622008-12-21 Jason Rumney <jasonr@gnu.org>
6863
6864 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6865 when character maps to .notdef character.
6866
5e252df2
SM
68672008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6868
6869 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6870
99b72cc4
JR
68712008-12-20 Jason Rumney <jasonr@gnu.org>
6872
6873 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6874 a graphical frame on Windows. (Bug#1325)
99b72cc4 6875
acc49a52
JD
68762008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6877
6878 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6879
6ea15123
CY
68802008-12-20 Chong Yidong <cyd@stupidchicken.com>
6881
6882 * minibuf.c (Fread_buffer): Doc fix.
6883
b2dab6c8
JR
68842008-12-20 Jason Rumney <jasonr@gnu.org>
6885
54ea0c87 6886 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6887 server name in UNC paths. (Bug#719)
54ea0c87 6888
b2dab6c8 6889 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6890 charbuf. (Bug#1035)
b2dab6c8 6891
6d1921be
DN
68922008-12-19 Daniel Engeler <engeler@gmail.com>
6893
6894 * sysdep.c (serial_configure): Fix typo.
6895
53934c98
DN
68962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6897
6898 * sysdep.c: Include alloca.h.
f4f634e8
DN
6899 (system_process_attributes): Add implementation for Solaris.
6900
6901 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6902
06e111a6
DN
69032008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6904
6905 Reorganize implementation of Flist_system_processes and
6906 Fsystem_process_attributes. No functional changes.
6907 * process.c: Don't #include pwd.h, grp.h and limits.h.
6908 (Flist_system_processes): Just call list_system_processes.
6909 (Fsystem_process_attributes): Just call system_process_attributes.
6910 (procfs_list_system_processes, time_from_jiffies)
6911 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6912 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6913
6914 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6915 (list_system_processes): Rename from
6916 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6917 Provide a do nothing implementation.
6918 (system_process_attributes): Rename from
6919 procfs_list_system_processes.
6920 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6921 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6922
6923 * w32.c (list_system_processes): Rename from
6924 w32_list_system_processes.
6925 (system_process_attributes): Rename from
6926 w32_system_process_attributes.
6927
6928 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6929
6930 * process.h (w32_list_system_processes)
6931 (w32_system_process_attributes): Remove.
362654a6
JB
6932 (list_system_processes, system_process_attributes):
6933 New prototypes.
06e111a6 6934
6a705b23
KH
69352008-12-19 Kenichi Handa <handa@m17n.org>
6936
6937 * xfont.c (xfont_decode_coding_xlfd): New function.
6938 (xfont_encode_coding_xlfd): New function.
6939 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6940 (xfont_list): Decode and encode XLFD by iso-8859-1.
6941 (xfont_match): Likewise.
6942 (xfont_list_family): Likewise.
6943 (xfont_open): Likewise.
6944
d66c0241 6945 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6946 names are utf-8.
6947
d66c0241 6948 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6949 names are utf-8.
6950
5a130941
JD
69512008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6952
6953 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6954 changed.
bfd20325
JD
6955 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6956 clicked on a detached tool bar button.
5a130941 6957
fd95644b
DN
69582008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6959
6960 * emacs.c (main): Print and error and exit when no data is read
6961 from the pipe.
6962
e6eee6ae
JR
69632008-12-17 Jason Rumney <jasonr@gnu.org>
6964
6965 * w32font.c (w32font_has_char): Always return -1.
6966
a35dd56b
KH
69672008-12-16 Kenichi Handa <handa@m17n.org>
6968
6969 * font.c (font_open_entity): Fix previous change.
6970
0e3635c2
DN
69712008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6972
6973 * process.c: Include <limits.h>.
6974
d4835507 69752008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6976
6977 * font.c (font_update_drivers): Fix mistake in reconstructing the
6978 driver list.
6979
69802008-12-16 Chong Yidong <cyd@stupidchicken.com>
6981
6982 * font.c (font_clear_cache): Fix format of font cache data.
6983
e2cbc401
CY
69842008-12-15 Chong Yidong <cyd@stupidchicken.com>
6985
6986 * xftfont.c (xftfont_open): Free Xft font pattern if
6987 XftFontOpenPattern fails.
6988
6989 * xterm.c (x_free_frame_resources): Remove extraneous call to
6990 free_frame_faces.
6991
b131d535
CY
69922008-12-13 Chong Yidong <cyd@stupidchicken.com>
6993
6994 * xterm.c (x_delete_display): Move xim_close_dpy call to
6995 x_delete_terminal.
6996 (x_delete_terminal): Call xim_close_dpy.
6997
e6df5336
JR
69982008-12-13 Jason Rumney <jasonr@gnu.org>
6999
7000 * w32font.c (intern_font_name): New function.
7001 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7002 (w32font_open_internal, Fx_select_font): Decode font name.
7003 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7004
7005 * w32font.h (intern_font_name): Declare new function.
7006
7007 * w32uniscribe.c (add_opentype_font_name_to_list):
7008 Use intern_font_name.
7009
20d68145
CY
70102008-12-13 Chong Yidong <cyd@stupidchicken.com>
7011
9f2554de
CY
7012 * frame.c (Fdelete_frame): Call free_font_driver_list.
7013
3d9bec9a
CY
7014 * font.c (free_font_driver_list): Implement missing function.
7015
20d68145
CY
7016 * w32term.c (w32_term_init): Don't initialize the image cache
7017 here; it will be done in init_frame_faces.
7018
7019 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7020 (struct x_display_info): Remove unused member null_pixel. New
7021 member xim_callback_data.
7022
7023 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7024 (xim_initialize): Save pointer to callback function data.
7025 (xim_close_dpy): Free callback function data. Call XCloseIM,
7026 reverting 2008-11-04 change by David Smith.
7027 (x_term_init): Don't initialize the image cache here; it will be
7028 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7029 (x_delete_display): Free x_dnd_atoms member.
7030
96f9306b
KH
70312008-12-13 Kenichi Handa <handa@m17n.org>
7032
6dec9044
JB
7033 * font.c (font_rescale_ratio): Moved from xfaces.c.
7034 Argument type changed. Handle a font-spec too.
96f9306b 7035 (font_score): Check Vface_font_rescale_alist.
6dec9044 7036 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7037
7038 * xfaces.c (font_rescale_ratio): Moved to font.c.
7039
8d5b4964
CY
70402008-12-13 Chong Yidong <cyd@stupidchicken.com>
7041
7042 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7043
e6df5336
JR
70442008-12-12 Jason Rumney <jasonr@gnu.org>
7045
7046 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7047 Vwindow_system_version to the real w32 major version.
7048
97c6058a
DN
70492008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7050
7051 * term.c (init_tty): Move setting the terminal name before the
7052 potential user: maybe_fatal.
7053
ec4e88d7
CY
70542008-12-11 Chong Yidong <cyd@stupidchicken.com>
7055
d4835507
JB
7056 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7057 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7058
b4233ec9
JR
70592008-12-11 Jason Rumney <jasonr@gnu.org>
7060
8ec71e23 7061 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7062 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7063
b4233ec9 7064 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7065 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7066
011a0143
JB
70672008-12-11 Juanma Barranquero <lekktu@gmail.com>
7068
7069 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7070
3c309f34
JB
70712008-12-11 Juanma Barranquero <lekktu@gmail.com>
7072
7073 * process.c (Fsystem_process_attributes, syms_of_process):
7074 Fix typo in name of Ssystem_process_attributes.
7075 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7076
fedc6ab5
JB
70772008-12-11 Juanma Barranquero <lekktu@gmail.com>
7078
7079 * syntax.c (Fmodify_syntax_entry): Doc fix.
7080
ba3de0e8
JB
70812008-12-10 Juanma Barranquero <lekktu@gmail.com>
7082
7083 * font.c (Ffont_spec): Move usage to end of docstring.
7084
174f1c74
JR
70852008-12-10 Jason Rumney <jasonr@gnu.org>
7086
7087 * w32font.c (Qcham): New symbol.
7088 (font_supported_scripts): Add cham, and comments for other new
7089 scripts in bitfield from OpenType spec.
9d32f818
JR
7090 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7091 contain characters beyond the bmp.
174f1c74 7092
7b649478
KH
70932008-12-10 Kenichi Handa <handa@m17n.org>
7094
7095 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7096 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7097 Qunicode_sip.
7098
2133e2d1
JB
70992008-12-10 Juanma Barranquero <lekktu@gmail.com>
7100
7101 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7102 (Fcoding_system_put): Use QCdefault_char.
7103 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7104
9af886ee
CY
71052008-12-09 Chong Yidong <cyd@stupidchicken.com>
7106
74d819eb
CY
7107 * xftfont.c (syms_of_xftfont): Fix typo.
7108
4ccfa1c0 7109 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7110
7c19d3ae
DN
71112008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7112
7113 * emacs.c (main): Close daemon_pipe on exec.
7114
567826bb
CY
71152008-12-08 Chong Yidong <cyd@stupidchicken.com>
7116
7117 * termchar.h (struct tty): New members termcap_term_buffer and
7118 termcap_strings_buffer.
7119
7120 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7121 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7122 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7123 All callers changed.
7124 (init_tty): Store termcap data and string buffers in new struct
7125 tty members termcap_term_buffer and termcap_strings_buffer.
7126 (delete_tty): Free them.
4ccfa1c0 7127 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7128
aa96c42b
SZ
71292008-12-07 Seiji Zenitani <zenitani@mac.com>
7130
7131 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7132 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7133
b7e1d896
CY
71342008-12-06 Chong Yidong <cyd@stupidchicken.com>
7135
7136 * coding.c (make_conversion_work_buffer): Disable buffer
7137 modification hooks in the work buffer.
7138
b5ec91a5
EZ
71392008-12-05 Eli Zaretskii <eliz@gnu.org>
7140
7141 * process.c (procfs_system_process_attributes): If `nread' has a
7142 negative value, assign zero to it.
7143
a5d2a52b
CY
71442008-12-05 Chong Yidong <cyd@stupidchicken.com>
7145
68c5540b 7146 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7147
7bf1bb21
KH
71482008-12-05 Kenichi Handa <handa@m17n.org>
7149
7150 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7151 second character is a combining character.
7152
2fdc7d00
EZ
71532008-12-05 Eli Zaretskii <eliz@gnu.org>
7154
7155 * process.c (procfs_system_process_attributes): Don't use cmd,
7156 cmdsize, and q without initializing them first.
7157
bf6bfba8
JR
71582008-12-04 Jason Rumney <jasonr@gnu.org>
7159
7160 * w32font.c (w32font_draw): Initialize orig_clip before getting
7161 it, and delete it when finished.
7162
a3b1a468
DN
71632008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7164
7165 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7166 case when running as a daemon before detaching.
7167
8b8be8eb
JB
71682008-12-03 Juanma Barranquero <lekktu@gmail.com>
7169
805f2638 7170 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7171
b1bde622
KH
71722008-12-03 Kenichi Handa <handa@m17n.org>
7173
e500c47d
KH
7174 * font.c (font_at): Set `multibyte' at first.
7175
ca516334
KH
7176 * coding.c (decode_coding_charset): Check type of an element of
7177 vector VALIDS.
7bf1bb21 7178 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7179
4ccfa1c0 7180 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7181 (font_for_char): Likewise.
7182
1e5ecd37
CY
71832008-12-03 Chong Yidong <cyd@stupidchicken.com>
7184
d5b01609 7185 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7186 (font_update_lface): Handle fonts with corrupted size specs,
7187 i.e. non-int and non-float.
d5b01609 7188
11e3a6e4 7189 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7190 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7191 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7192
ab06788b
CY
7193 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7194
1e5ecd37 7195 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7196 underline_minimum_offset for underline position.
1e5ecd37 7197
63c125ab
DN
71982008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7199
7200 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7201
7202 * character.c (c_string_width): Specify the type for LEN.
7203
3a8406e1
KH
72042008-12-03 Kenichi Handa <handa@m17n.org>
7205
4ccfa1c0 7206 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7207 (decode_coding_utf_8): Likewise.
4ccfa1c0 7208 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7209 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7210
651df7d9
CY
72112008-12-02 Chong Yidong <cyd@stupidchicken.com>
7212
7213 * keyboard.c (make_lispy_position): Only use PT if the selected
7214 window is current.
7215
1f625c6c
AS
72162008-12-02 Andreas Schwab <schwab@suse.de>
7217
f7741ce9
AS
7218 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7219
1f625c6c
AS
7220 * doprnt.c (doprnt1): Fix size of charbuf.
7221
92bc2678
CY
72222008-12-02 Chong Yidong <cyd@stupidchicken.com>
7223
7224 * keyboard.c (timer_check): Revert last change.
7225
93b9e8cc
JB
72262008-12-02 Juanma Barranquero <lekktu@gmail.com>
7227
7228 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7229
fd7a37d5
JB
72302008-12-01 Juanma Barranquero <lekktu@gmail.com>
7231
7232 * makefile.w32-in: Update dependencies.
7233 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7234
c115043b
AS
72352008-12-01 Andreas Schwab <schwab@suse.de>
7236
7237 * font.c (register_font_driver): Use xmalloc.
7238 (font_put_frame_data): Likewise.
7239
f5668d2a
CY
72402008-12-01 Chong Yidong <cyd@stupidchicken.com>
7241
860d96be
CY
7242 * xfaces.c (realize_x_face): Make abort condition clearer.
7243
f5668d2a
CY
7244 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7245
379c17e7
CY
72462008-11-30 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * keyboard.c (timer_check): After a timer runs, ensure that the
7249 selected window's buffer is current.
7250
35f36d65
JB
72512008-11-30 Juanma Barranquero <lekktu@gmail.com>
7252
f952c61c
JB
7253 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7254 It was accidentally restored by the Unicode merge.
7255
35f36d65
JB
7256 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7257
b23077df
JB
72582008-11-29 Juanma Barranquero <lekktu@gmail.com>
7259
7260 * w32proc.c: Include "coding.h".
7261 (Fw32_short_file_name): Encode filename passed to Windows API.
7262 (Fw32_long_file_name): Encode filename passed to Windows API and
7263 decode back the result. (Bug#1433)
7264
b8ebe9dd
KH
72652008-11-29 Kenichi Handa <handa@m17n.org>
7266
8cc53f96
KH
7267 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7268 not before accessing it.
7269
b8ebe9dd
KH
7270 * charset.c (Fdefine_charset_internal): After calculating
7271 min_char, max_char, and fastmap, copy the charset structure again.
7272 (encode_char): Fix the previous change.
7273
59bc82c0
SZ
72742008-11-28 Seiji Zenitani <zenitani@mac.com>
7275
7276 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7277
7278 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7279
7280 * nsterm.m (x_set_frame_alpha): New function.
7281
32247e3d
EZ
72822008-11-27 Eli Zaretskii <eliz@gnu.org>
7283
7284 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7285
b003e5ff
JB
72862008-11-27 Juanma Barranquero <lekktu@gmail.com>
7287
7288 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7289 pointer to check_face_name.
7290
708550f5
KH
72912008-11-27 Kenichi Handa <handa@m17n.org>
7292
7293 * category.h (SET_CATEGORY_SET): Call set_category_set.
7294 (set_category_set): Extern it.
7295
7296 * category.c (hash_get_category_set): New function.
7297 (Fmodify_category_entry): Adjusted for the change of
7298 char_table_ref_and_range. Call hash_get_category_set to get a
7299 category set to store in the table.
7300
7301 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7302 Funify_charset.
7303
2ae37cf0 7304 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7305 (DECODE_CHAR): Check if the decoder vector is ready.
7306 (ENCODE_CHAR): Check if the encoder char-table is ready.
7307 (maybe_unify_char): Extern it.
7308
7309 * charset.c (Vchar_unified_charset_table): Delete it.
7310 (inhibit_load_charset_map): New variable.
7311 (temp_charset_work): New variable.
7312 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7313 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7314 New macros.
7315 (load_charset_map): Meaning of control_flag changed. If
7316 inhibit_load_charset_map is nonzero, setup a table in
7317 temp_charset_work.
7318 (load_charset): New argument control_flag.
7319 (map_charset_for_dump): New function.
7320 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7321 map_charset_for_dump.
7322 (Fdefine_charset_internal): If the charset method is MAP, load
7323 mapping tables by calling load_charset.
7324 (Funify_charset): Don't load a mapping table but directly set
7325 Vchar_unify_table.
7326 (maybe_unify_char): New function.
7327 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7328 Handle the case of inhibit_load_charset_map being nonzero.
7329 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7330 Handle the case of inhibit_load_charset_map being nonzero.
7331 (Fclear_charset_maps): Just free temp_charset_work.
7332 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7333 variable.
7334
7335 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7336 change of char_table_ref_and_range.
7337 (char_table_ref_and_range): Change the meaning of argument FROM
7338 and TO. Now the caller must provide initial values for *FROM
7339 and *TO.
7340
7341 * fontset.c (fontset_add): Adjusted for the change of
7342 char_table_ref_and_range.
7343 (fontset_get_font_group): Likewise.
7344 (Ffontset_info): Likewise.
7345
7346 * keymap.c (describe_vector): Adjusted for the change of
7347 char_table_ref_and_range. For char-table, put boundary between
7348 non-ASCII and 8-bit characters.
7349
7350 * print.c (print_object): For bool-vector, delete unnecessary
7351 check of ASCII_BYTE_P.
7352
9196133b
JR
73532008-11-26 Jason Rumney <jasonr@gnu.org>
7354
7355 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7356 leading in font height. (Bug#879)
9196133b 7357
9f688acf
GM
73582008-11-26 Glenn Morris <rgm@gnu.org>
7359
7360 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7361 redefinition with ifdef. (Bug#1383)
7362
90d19aff
AR
73632008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7364
7365 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7366
4ccfa1c0 73672008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7368
7369 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7370 New EmacsView methods.
7371 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7372 Fixes bug #1048,1357,1414.
7373
73742008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7375
7376 Fix bug #1362.
7377 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7378 is not an indexed color.
7379 * nsterm.m (free_indexed_color): Add argument checking.
7380 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7381
e7d5ecb3
CY
73822008-11-24 Chong Yidong <cyd@stupidchicken.com>
7383
7384 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7385 Document confirm-after-completion value for
7386 minibuffer-completion-confirm.
7387
c285743c
JR
73882008-11-24 Jason Rumney <jasonr@gnu.org>
7389
7390 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7391 warning.
7392
b0857706
JR
73932008-11-23 Jason Rumney <jasonr@gnu.org>
7394
7395 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7396 restored before returning.
7397
7398 * w32font.c (check_face_name): New function.
7399 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7400 fonts. (Bug#642)
b0857706 7401
ee50ff07
MR
74022008-11-22 Martin Rudalics <rudalics@gmx.at>
7403
7404 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7405 confirm-nonexistent-file-or-buffer in doc-string.
7406
b8ff72fa
SM
74072008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7408
7409 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7410 Fix copy/paste typo. Add checks.
7411
cee53ed4
KH
74122008-11-21 Kenichi Handa <handa@m17n.org>
7413
7414 * coding.c (detect_coding_iso_2022): Reject invalid composition
7415 sequence.
7416 (DECODE_COMPOSITION_START): If the current source is the last
7417 block, and the current composition doesn't end, regard this
7418 sequence as invalid.
7419 (decode_coding_iso_2022): Handle invalid composition sequence.
7420
f6ef1e65
MR
74212008-11-20 Martin Rudalics <rudalics@gmx.at>
7422
7423 * window.c (coordinates_in_window): Don't return
7424 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7425 line when the window is not the rightmost one. (Bug#1372)
7426
e08b1705
MR
74272008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7428
7429 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7430
ad98e89f
EZ
74312008-11-15 Eli Zaretskii <eliz@gnu.org>
7432
7433 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7434 and bright_bg if noninteractive is non-zero.
7435
fb098a4b
CY
74362008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7437
7438 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7439 x_draw_glyph_string_background.
7440
7441 * w32term.c (x_draw_glyph_string): Likewise.
7442
ce952b6e
CY
74432008-11-15 Chong Yidong <cyd@stupidchicken.com>
7444
7445 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7446 the next glyph string once past the overhang width.
7447
7448 * nsterm.m (ns_draw_glyph_string): Likewise.
7449
7450 * w32term.c (x_draw_glyph_string): Likewise.
7451
26ea7079
CY
74522008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7453
7454 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7455 double file close.
7456
1c33c906
MR
74572008-11-14 Martin Rudalics <rudalics@gmx.at>
7458
7459 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7460 dedicated status of window before attempting to display another
7461 buffer in it.
7462
8fc29035
JB
74632008-11-14 Juanma Barranquero <lekktu@gmail.com>
7464
7465 * msdos.c (Fmsdos_long_file_names):
7466 (syms_of_msdos) <dos-unsupported-char-glyph>:
7467 * dosfns.c (Fint86): Fix typos in docstrings.
7468
55fb4286
EZ
74692008-11-14 Eli Zaretskii <eliz@gnu.org>
7470
7471 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7472
3fda0315
KY
74732008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7474
7475 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7476
7e849c17
CY
74772008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7478
7479 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7480
7481 * frame.h: Negative alpha means "don't touch".
7482
7483 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7484
7485 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7486
b9fd67bd
DN
74872008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7488
7489 * hftctl.c:
7490 * chpdef.h:
7491 * acldef.h: Remove files used only for systems no longer supported.
7492
7493 * Makefile.in: Fix .o alphabetical ordering.
7494 (hftctl.o): Remove dependency, file removed.
7495 (keymap.o, print.o): Depend on charset.h.
7496
d5998e03
KH
74972008-11-10 Kenichi Handa <handa@m17n.org>
7498
2ae37cf0 7499 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7500
be70e183
CY
75012008-11-08 Chong Yidong <cyd@stupidchicken.com>
7502
7503 * dired.c (file_name_completion): If completion_ignore_case is
7504 enabled, ignore case when checking completion-regexp-list.
7505
7cf94eac
EZ
75062008-11-08 Eli Zaretskii <eliz@gnu.org>
7507
7508 * vm-limit.c (get_lim_data): Fix last change.
7509
ee107a89
KH
75102008-11-08 Kenichi Handa <handa@m17n.org>
7511
7512 * character.c (Fget_byte): New function.
7513 (syms_of_character): Defsubr Fget_byte.
7514
5fd15622
CY
75152008-11-07 Chong Yidong <cyd@stupidchicken.com>
7516
7517 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7518 cursor position is valid after scrolling.
7519
13d62fad
JB
75202008-11-06 Juanma Barranquero <lekktu@gmail.com>
7521
7522 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7523
a1dd2936
GM
75242008-11-06 Glenn Morris <rgm@gnu.org>
7525
7526 * xterm.c (handle_one_xevent): Don't let popup menus cause
7527 mouse-autoselect-window related window switching. (Bug#1261)
7528
860cd236
CY
75292008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7530
7531 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7532
653a3150
AS
75332008-11-04 Andreas Schwab <schwab@suse.de>
7534
7535 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7536
870f5cac
CY
75372008-11-03 Chong Yidong <cyd@stupidchicken.com>
7538
7539 * xfns.c (Fx_wm_set_size_hint): New function.
7540
1e02f3cb
MR
75412008-11-03 Martin Rudalics <rudalics@gmx.at>
7542
7543 * textprop.c (Fprevious_single_char_property_change): Return 0
7544 when there's no change in a string. (Bug#1301)
7545
e630dfc6
MR
75462008-11-02 Martin Rudalics <rudalics@gmx.at>
7547
7548 * frame.c (do_switch_frame): New argument NORECORD passed to
7549 Fselect_window.
7550 (Fselect_frame): New argument NORECORD passed to
7551 do_switch_frame.
7552 (Fset_frame_selected_window): New argument NORECORD passed to
7553 Fselect_frame.
7554 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7555 in call of do_switch_frame.
7556 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7557 Handle NORECORD argument in call of Fselect_frame.
7558 * lisp.h (do_switch_frame, Fselect_frame)
7559 (Fset_frame_selected_window): Adjust declarations.
7560 * window.c (select_frame_norecord): New function.
7561 (run_window_configuration_change_hook): Use it and call
7562 Fselect_frame with NORECORD set.
7563 (Fselect_window): Pass NORECORD to Fselect_frame.
7564 (Fset_window_configuration): Handle NORECORD argument in call of
7565 do_switch_frame.
7566 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7567 Fset_frame_selected_window.
7568 * keyboard.c (command_loop_1): Handle NORECORD in call of
7569 Fselect_frame (currently ifdefd).
7570
9020b223
GM
75712008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7572
7573 * emacs.c (USAGE2): Untabify.
7574
793ffee8
SM
75752008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7576
7577 * composite.c (fill_gstring_header): Fix copy/paste typo.
7578
ab6d1131
MR
75792008-10-31 Martin Rudalics <rudalics@gmx.at>
7580
7581 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7582 (Fother_window): Rename argument and rewrite doc-string.
7583 (select_window_norecord): Fix return value. (Bug#1276)
7584
601a9cf1
JB
75852008-10-30 Juanma Barranquero <lekktu@gmail.com>
7586
7587 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7588 new frames overriding foreground for tooltips. Based on similar patch
7589 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7590
813b0652
CY
75912008-10-29 Chong Yidong <cyd@stupidchicken.com>
7592
7593 * emacs.c (Fdaemon_initialized): Initialize nfd.
7594
4414f58f
MR
75952008-10-29 Martin Rudalics <rudalics@gmx.at>
7596
7597 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7598 (Fwindow_text_height): Clarify doc-strings.
7599 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7600 doc-string of window-scroll-functions.
7601
ecdcaa09
RS
76022008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7603
7604 * category.c (syms_of_category): Fix typo in docstring.
7605
23fe745a
JB
76062008-10-28 Juanma Barranquero <lekktu@gmail.com>
7607
7608 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7609 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7610 Fix typos in docstrings.
7611
ff808935
DN
76122008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7613
7614 * emacs.c (daemon_pipe): Make non-static.
7615 (IS_DAEMON): Move definition ...
7616 * lisp.h (IS_DAEMON): ... here.
7617 (daemon_pipe): Declare.
7618 (is_daemon): Remove.
7619 * dispnew.c (init_display): Use IS_DAEMON.
7620
fc012771
SM
76212008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7622
7623 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7624 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7625
7626 * emacs.c (is_daemon): Remove.
7627 (main): Don't set is_daemon.
7628 (IS_DAEMON): New macro.
7629 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7630 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7631 parent exits.
7632 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7633
d8bdbe6f
CY
76342008-10-27 Chong Yidong <cyd@stupidchicken.com>
7635
d1a072bf
CY
7636 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7637 over-sized glyph, draw it with the default glyph width.
7638
e2e325aa
CY
7639 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7640 glyph, draw it with the default glyph width.
7641
7642 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7643 glyph, draw it with the default glyph width.
7644
d8bdbe6f
CY
7645 * xdisp.c (try_scrolling): When computing the distance from the
7646 scroll margin to PT, try moving some distance past the window
7647 bottom before giving up.
7648
7bfac547
MR
76492008-10-27 Martin Rudalics <rudalics@gmx.at>
7650
7651 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7652 (Fset_window_buffer): Explain in doc-string that a window can be
7653 "strongly" dedicated to its buffer.
7654
4ff029f6
DN
76552008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7656
7657 * emacs.c (daemon_name): New variable.
7658 (main): Deal with --daemon=SERVER_NAME.
7659 (Fdaemonp): Return a name if one was passed to --daemon.
7660
5790ef40
DN
76612008-10-26 Romain Francoise <romain@orebokech.com>
7662
f9bd0df9 7663 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7664 (main): Create a pipe before forking, make the parent exit only after
7665 the child has closed its end of the pipe. Move closing the
7666 descriptors ...
7667 (Fdaemon_initialized): ... here. New function.
7668
f5385255
SM
76692008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7670
4d632321
SM
7671 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7672 the previous unoptimized table.
7673
f5385255
SM
7674 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7675 the distinction between non-nil and non-t value of `dedicated'.
7676
6c56a0f3
CY
76772008-10-25 Chong Yidong <cyd@stupidchicken.com>
7678
7679 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7680 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7681
fec89261
MR
76822008-10-25 Martin Rudalics <rudalics@gmx.at>
7683
7684 * window.c (Fget_buffer_window, Fdelete_windows_on)
7685 (Freplace_buffer_in_windows): Make buffer argument optional and
7686 rename to buffer_or_name.
7687
34fcddd0
CY
76882008-10-24 Chong Yidong <cyd@stupidchicken.com>
7689
f5385255
SM
7690 * xdisp.c (handle_single_display_spec, handle_display_prop):
7691 Undo 2005-05-16 change.
34fcddd0
CY
7692 (handle_stop): Pop iterator if it's loaded with an empty string.
7693 (get_overlay_strings_1): Don't save iterator if it's loaded with
7694 an empty string (bug#1201).
7695
064766f2
KH
76962008-10-24 Kenichi Handa <handa@m17n.org>
7697
7698 * ftfont.c (ftfont_otf_features): Fix previous change.
7699 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7700 calling ftfont_otf_features.
7701
f9bd0df9 77022008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7703
7704 * font.c (font_match_p): Fix for the case that a vector of
7705 characters is in script-representative-chars.
7706
1dae9197
MA
77072008-10-24 Michael Albinus <michael.albinus@gmx.de>
7708
7709 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7710 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7711 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7712 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7713 macro. (Bug#1186)
1dae9197 7714
f9bd0df9 77152008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7716
7717 * s/sol2-10.h: New file.
7718
878a4584
JB
77192008-10-23 Juanma Barranquero <lekktu@gmail.com>
7720
7721 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7722 poor beast has survived 9+ years and the jump from xterm.c!).
7723
cd265ca6
MR
77242008-10-23 Martin Rudalics <rudalics@gmx.at>
7725
7726 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7727 Reword doc-string.
f5385255 7728 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7729
472a4dc9
JB
77302008-10-23 Juanma Barranquero <lekktu@gmail.com>
7731
7732 * character.c (syms_of_character) <script-representative-chars>:
7733 <unicode-category-table>: Doc fixes.
7734
159bd5a2
NF
77352008-10-23 Noah Friedman <friedman@splode.com>
7736
7737 * coding.c (make_conversion_work_buffer): Check that
7738 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7739 Fget_buffer_create.
7740
49f9c344
KH
77412008-10-23 Kenichi Handa <handa@m17n.org>
7742
7743 * font.c (font_add_log): Check the values of extra properties.
7744
12bb3111
MR
77452008-10-22 Martin Rudalics <rudalics@gmx.at>
7746
7747 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7748 Reword doc-string.
7749 (Fset_window_parameter): Use NILP.
7750 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7751 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7752
bbeb4e99
JB
77532008-10-22 Juanma Barranquero <lekktu@gmail.com>
7754
7755 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7756
77572008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7758
7759 * nsfns.m (ns_appkit_version): New function.
7760 (x-server-version): Use it.
7761 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7762 (x-server-vendor): Don't check_ns().
7763
7764 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7765
a9b555d3
JB
77662008-10-22 Juanma Barranquero <lekktu@gmail.com>
7767
7768 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7769 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7770
4626499f
KH
77712008-10-22 Kenichi Handa <handa@m17n.org>
7772
e3681952
KH
7773 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7774 scripts.
7775
4626499f
KH
7776 * category.c (word_boundary_p): Check scripts instead of charset.
7777 Handle nil value in word-separating-categories and
7778 word-combining-categories.
7779 (syms_of_category): Fix docstrings of word-separating-categories
7780 and word-combining-categories.
7781
1560f91a
EZ
77822008-10-21 Eli Zaretskii <eliz@gnu.org>
7783
7784 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7785 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7786
f4668441
MR
77872008-10-21 Martin Rudalics <rudalics@gmx.at>
7788
7789 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7790 Rename arg "buffer" to "buffer_or_name".
7791 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7792 it optional.
7793 (no_switch_window): Remove since the return value is not used.
a9b555d3 7794 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7795 Consider window as dedicated when Fwindow_dedicated_p returns a
7796 non-nil value.
7797 * lisp.h: Remove prototype for no_switch_window.
7798
fd75ddb2
JD
77992008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7800
7801 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7802 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7803
07295713
KH
78042008-10-21 Kenichi Handa <handa@m17n.org>
7805
7806 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7807 check Vlatin_extra_code_table.
7808
712adc82
EZ
78092008-10-20 Eli Zaretskii <eliz@gnu.org>
7810
7811 * fileio.c (Fset_file_modes): Doc fix.
7812
f549eb0b
MA
78132008-10-19 Michael Albinus <michael.albinus@gmx.de>
7814
7815 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7816 in arrays.
7817
aac0c6e3
MR
78182008-10-19 Martin Rudalics <rudalics@gmx.at>
7819
7820 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7821 Mention kill-buffer in doc-string.
7822 (Fset_window_buffer): Reinsert tem check removed in last commit.
7823 (Fenlarge_window, Fshrink_window): Have argument names and
7824 doc-string follow Elisp manual more closely.
7825
78262008-10-18 Eli Zaretskii <eliz@gnu.org>
7827
7828 * fileio.c (Fset_file_modes): Doc fix.
7829
78302008-10-18 Martin Rudalics <rudalics@gmx.at>
7831
7832 * window.c (Fwindow_width, Fset_window_start)
7833 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7834 (Fdelete_windows_on, Freplace_buffer_in_windows):
7835 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7836 (Fwindow_dedicated_p): Make window argument optional.
7837 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7838 (Fset_window_buffer): Respect any non-nil dedicated value for
7839 window. Rename "buffer" argument to "buffer_or_name".
7840
78412008-10-18 Ulrich Mueller <ulm@gentoo.org>
7842
7843 * m/sh3.h: New file, machine description for SuperH.
7844
78452008-10-17 Martin Rudalics <rudalics@gmx.at>
7846
7847 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7848
78492008-10-17 Kenichi Handa <handa@m17n.org>
7850
7851 * ftfont.c (ftfont_otf_features): Fix indexing
7852 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7853
78542008-10-16 Magnus Henoch <mange@freemail.hu>
7855
7856 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7857 (Fdbus_call_method_asynchronously): Ditto.
7858 This change makes C-h f display the argument list.
7859
78602008-10-16 Chong Yidong <cyd@stupidchicken.com>
7861
7862 * fileio.c (Fexpand_file_name): Doc fix.
7863
7864 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7865 of :foreground and :background equivalent to unspecified (20.x
7866 compatibility).
7867
78682008-10-15 Eli Zaretskii <eliz@gnu.org>
7869
7870 * buffer.c (syms_of_buffer): Doc fix.
7871
78722008-10-14 Kenichi Handa <handa@m17n.org>
7873
7874 * font.c (font_clear_prop): When clearing font width, clear the
7875 average width field too.
7876
78772008-10-12 Andreas Schwab <schwab@suse.de>
7878
7879 * ftfont.c (ftfont_shape_by_flt): Make static.
7880 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7881
7882 * font.c: Don't include <m17n-flt.h>.
7883
78842008-10-10 Eli Zaretskii <eliz@gnu.org>
7885
7886 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7887
78882008-10-09 Eli Zaretskii <eliz@gnu.org>
7889
7890 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7891 away code.
7892
78932008-10-09 Chong Yidong <cyd@stupidchicken.com>
7894
7895 * dispnew.c (update_text_area): Avoid looping due to large glyph
7896 overhangs (bug#1070).
7897
78982008-10-09 Kenichi Handa <handa@m17n.org>
7899
7900 * fontset.c (face_for_char): If face->fontset is negative, just
7901 return ascii_face.
7902
f5385255
SM
7903 * font.c (font_delete_unmatched): Fix previous change.
7904 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7905
79062008-10-09 Martin Rudalics <rudalics@gmx.at>
7907
7908 * frame.c (Fraise_frame): On text-only terminals select frame in
7909 order to make it visible. (Bug#1061)
7910
79112008-10-08 Chong Yidong <cyd@stupidchicken.com>
7912
7913 * fontset.c (fontset_find_font): Check frame validity.
7914
79152008-10-07 Chong Yidong <cyd@stupidchicken.com>
7916
a9b555d3 7917 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7918 (xg_display_close): Allow Emacs to close all displays (bug#985).
7919
79202008-10-06 Andreas Schwab <schwab@suse.de>
7921
f5385255 7922 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7923
79242008-10-06 Chong Yidong <cyd@stupidchicken.com>
7925
f5385255 7926 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7927
a9b555d3 7928 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7929
7930 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7931 during initialization.
7932
79332008-10-04 Eli Zaretskii <eliz@gnu.org>
7934
7935 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7936 whole thing on MSDOS frames as well as on a TTY.
7937
7938 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7939 well as for TTY.
7940 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7941 well as on a TTY.
7942
7943 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7944 as well as for TTY.
7945
7946 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7947
7948 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7949 MSDOS frames as well.
7950
79512008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7952
7953 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7954 correct arguments.
b71ac3dd 7955 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7956
79572008-10-03 Glenn Morris <rgm@gnu.org>
7958
7959 * emacs.c (USAGE1): Add --daemon.
7960
79612008-10-02 Eli Zaretskii <eliz@gnu.org>
7962
7963 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7964 100, so it's in percents as advertised.
7965
79662008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7967
7968 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7969 (ns_output.current_cursor, ns_output.desired_cursor)
7970 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7971 (FRAME_NEW_CURSOR_COLOR): Remove.
7972
7973 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7974 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7975 enumeration (HOLLOW_BOX_CURSOR, etc.).
7976
7977 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7978 (draw_window_cursor): Simplify code.
f5385255
SM
7979 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7980 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7981 updates manually.
a9b555d3
JB
7982 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7983 Use core Emacs cursor types.
aac0c6e3 7984
b8ff72fa 7985 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7986
79872008-10-02 Martin Rudalics <rudalics@gmx.at>
7988
7989 * process.c (Faccept_process_output): Fix doc-string.
7990
79912008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7992
7993 * gmalloc.c (__sbrk): Also define for uClibc.
7994
7995 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7996 for uClibc.
7997
79982008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7999
8000 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8001 styles.
8002 (nsfont_open): Reenable the cache.
8003
80042008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8005
8006 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8007 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8008
80092008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8010
8011 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8012 a suspended terminal.
8013
80142008-09-30 Michael Albinus <michael.albinus@gmx.de>
8015
8016 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8017
80182008-09-30 Eli Zaretskii <eliz@gnu.org>
8019
8020 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8021
80222008-09-30 Chong Yidong <cyd@stupidchicken.com>
8023
8024 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8025 in a continued line coincides with a line beginning.
8026
80272008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8028
8029 * nsfont.m (nsfont_trait_distance): Fix bug.
8030 (nsfont_list): Return a list rather than a vector (syncs with Handa
8031 changes of 2008-05-14).
8032 (nsfont_open): Improve logging.
8033
80342008-09-29 Andreas Schwab <schwab@suse.de>
8035
8036 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8037
80382008-09-28 Martin Rudalics <rudalics@gmx.at>
8039
8040 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8041 name as char-resolve-modifiers.
8042 Reported by: Markus Triska <markus.triska@gmx.at>
8043
80442008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8045
8046 * dispnew.c (init_display): Return earlier when running as a daemon.
8047
80482008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8049
8050 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8051
80522008-09-27 Eli Zaretskii <eliz@gnu.org>
8053
8054 * composite.c (Fcomposition_get_gstring)
8055 (Fcompose_region_internal, Fcompose_string_internal)
8056 (Ffind_composition_internal): Doc fix.
8057 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8058 (syms_of_composite) <auto-composition-function>: Doc fix.
8059 (syms_of_composite) <composition-function-table>: Doc fix.
8060
80612008-09-25 Chong Yidong <cyd@stupidchicken.com>
8062
8063 * search.c (wordify): New argument for lax word-ends.
8064 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8065
80662008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8067
8068 * lisp.h (is_daemon): Declare.
8069 * dispnew.c (init_display): Do not try to initialize the terminal
8070 when running as a daemon.
8071
80722008-09-22 Chong Yidong <cyd@stupidchicken.com>
8073
8074 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8075 x_display_pixel_height.
8076
80772008-09-22 Martin Rudalics <rudalics@gmx.at>
8078
8079 * undo.c (record_point): Don't call Fundo_boundary for first
8080 change. (Bug#731)
8081
80822008-09-22 Juanma Barranquero <lekktu@gmail.com>
8083
8084 * emacs.c (Fdaemonp): Doc fix.
8085
80862008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8087
8088 * emacs.c (main): Place #ifdef in the proper place.
8089
80902008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8091
8092 * emacs.c (standard_args): Add --daemon.
8093 (main): Disconnect from the terminal when --daemon is passed.
8094 (is_daemon): New variable.
8095 (Fdaemonp): New function.
8096 (syms_of_emacs): Defsubr it.
8097
80982008-09-20 Chong Yidong <cyd@stupidchicken.com>
8099
8100 * xdisp.c (get_next_display_element): Handle string display
8101 correctly when checking for the end of a box run.
8102
81032008-09-20 Glenn Morris <rgm@gnu.org>
8104
8105 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8106 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8107 (Frename_file): Avoid copying to trash if a rename involves
8108 a delete. (Bug#964).
8109
81102008-09-20 Eli Zaretskii <eliz@gnu.org>
8111
8112 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8113 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8114 frames as well as termcap frames.
8115 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8116 get_named_tty.
8117
81182008-09-19 Eli Zaretskii <eliz@gnu.org>
8119
8120 * process.c (procfs_system_process_attributes): Fix cmdline in
8121 case /proc/PID/cmdline is empty.
8122
8123 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8124 x_display_pixel_height.
8125
81262008-09-19 Juanma Barranquero <lekktu@gmail.com>
8127
8128 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8129
8130 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8131 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8132
81332008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8134
8135 * dispextern.h (struct it): Move line_wrap away from the middle of
8136 bitfields. Move voffset in struct iterator_stack_entry after the
8137 bitfields. Move tab_width near after another short.
8138
81392008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8140
8141 * frame.h (struct frame): Move alpha from the middle of bitfields.
8142
8143 * window.h (struct window): Move frozen_window_start_p after the
8144 rest of the bitfields to reduce padding.
8145
81462008-09-18 Chong Yidong <cyd@stupidchicken.com>
8147
8148 * xterm.h (x_display_info): Remove `height' and `width' members.
8149
8150 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8151
8152 * w32term.h (w32_display_info): Remove `height', `width',
8153 `height_in', and `width_in' members.
8154
b8ff72fa
SM
8155 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8156 New functions.
aac0c6e3
MR
8157 (x_calc_absolute_position): Use them.
8158 (x_term_init): Omit removed `height' and `width' members.
8159
b8ff72fa
SM
8160 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8161 New functions.
aac0c6e3
MR
8162 (w32_read_socket, x_calc_absolute_position): Use them.
8163 (w32_initialize_display_info, w32_term_init): Omit removed members
8164 of w32_display_info.
8165
b8ff72fa
SM
8166 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8167 New functions.
8168 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8169
b8ff72fa
SM
8170 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8171 New functions.
aac0c6e3
MR
8172 (x_calc_absolute_position): Use them.
8173 (x_term_init): Omit removed `height' and `width' members.
8174
8175 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8176 (compute_tip_xy):
8177 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8178 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8179 x_display_pixel_width.
8180
81812008-09-18 Kenichi Handa <handa@m17n.org>
8182
8183 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8184 (composition_compute_stop_pos): Fix handling of static composition.
8185 (Fcomposition_get_gstring): Check FROM and TO at first.
8186
81872008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8188
46e722a9 8189 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8190 mixup (YAILOM).
8191
81922008-09-17 Chong Yidong <cyd@stupidchicken.com>
8193
8194 * indent.c (Fvertical_motion): Use position reported by iterator
8195 instead of PT for determining screen motion (bug#943).
8196
81972008-09-17 Romain Francoise <romain@orebokech.com>
8198
8199 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8200
82012008-09-17 Kenichi Handa <handa@m17n.org>
8202
8203 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8204
8205 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8206 if necessary.
8207
82082008-09-16 Kenichi Handa <handa@m17n.org>
8209
8210 * coding.c (make_conversion_work_buffer): Avoid calling
8211 Fget_buffer_create if it is not necessary.
8212
82132008-09-15 Martin Rudalics <rudalics@gmx.at>
8214
8215 * window.c (Fselect_window): Don't update window_select_count and
8216 use_time when norecord is not nil.
8217
82182008-09-14 Kenichi Handa <handa@m17n.org>
8219
8220 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8221 specpdl_ptr.
8222
82232008-09-12 Kenichi Handa <handa@m17n.org>
8224
8225 * indent.c (scan_for_column): Don't handle automatic composition
8226 if the current buffer is not associated with a window.
8227
8228 * composite.c (composition_reseat_it): If the current buffer is
8229 not associated with a window, ignore the automatic composition.
8230 (find_automatic_composition): Likewise.
8231
82322008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8233
8234 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8235 (Fgpm_mouse_stop): Use it.
8236 * termhooks.h (close_gpm): Declare.
8237 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8238 connection if Gpm_GetEvent fails.
8239
8240 * window.c (set_window_buffer): Always preserve current-buffer.
8241
82422008-09-12 Glenn Morris <rgm@gnu.org>
8243
8244 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8245
82462008-09-11 Glenn Morris <rgm@gnu.org>
8247
8248 * charset.c (charset-map-path): Doc fix.
8249
82502008-09-10 Kenichi Handa <handa@m17n.org>
8251
8252 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8253
8254 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8255 compose a grapheme cluster with the preceding base glyph.
8256
8257 * composite.c (composition_compute_stop_pos): Fix previous change.
8258 Reset cmp_it->id to -1 at first.
8259
82602008-09-10 Glenn Morris <rgm@gnu.org>
8261
8262 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8263
82642008-09-09 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * keyboard.c (read_key_sequence): Reapply translation maps when
8267 switching keyboards.
8268
82692008-09-09 Kenichi Handa <handa@m17n.org>
8270
8271 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8272 characters.
8273
8274 * composite.c (FORWARD_CHAR): Fix calculation
8275 of (POSITION).pos_byte.
8276 (composition_compute_stop_pos): Limit the search of composition to
8277 at most 500 characters ahead. If we reach the limit or find a
8278 newline, set cmp_it->ch to -2 and return 0.
8279 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8280
82812008-09-08 Kenichi Handa <handa@m17n.org>
8282
8283 * indent.c (Fvertical_motion): Be sure to set
8284 it_overshoot_expected if it.cmp_it.id is non-negative.
8285
82862008-09-07 Andreas Schwab <schwab@suse.de>
8287
8288 * callproc.c (Fcall_process): Don't hold references to string data
8289 across garbage collection. Move initialisation of new_argv down
8290 to avoid compiler bug.
8291
82922008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8293
8294 * process.c (Fsystem_process_attributes): Doc fix.
8295
82962008-09-07 Chong Yidong <cyd@stupidchicken.com>
8297
8298 * callproc.c (Fcall_process): Canonicalize current directory name.
8299
8300 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8301 iterator advances to the next line if the current line ends in a
8302 continued tab.
8303
83042008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8305
8306 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8307 member to point to cmp_from.
8308
8309 * xdisp.c: Doc fix for references to gidx data member.
8310
83112008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8312
8313 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8314
83152008-09-07 Kenichi Handa <handa@m17n.org>
8316
8317 * composite.c (FORWARD_CHAR): Check STOP after
8318 incrementing (POSITION).pos.
8319
83202008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8321
8322 * process.c (Fsystem_process_attributes): Doc fix.
8323
83242008-09-06 Chong Yidong <cyd@stupidchicken.com>
8325
8326 * keyboard.c (Ftop_level): Doc fix.
8327
83282008-09-06 Eli Zaretskii <eliz@gnu.org>
8329
8330 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8331 minibuffer, don't let lower part of menu invade the echo area.
8332
8333 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8334 "char *q" to access menu text and advance through it. Revert the
8335 change that displayed ">" instead of ASCII character 0x10.
8336
83372008-09-05 Eli Zaretskii <eliz@gnu.org>
8338
8339 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8340 toggle boxes and radio buttons on MS-DOS as well.
8341
83422008-09-05 Kenichi Handa <handa@m17n.org>
8343
8344 * composite.c (autocmp_chars): Check lookback count.
8345 (composition_compute_stop_pos): Set cmp_it->lookback.
8346 (composition_reseat_it): Check lookback count.
8347 (struct position_record): New struct.
8348 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8349 (find_automatic_composition): New function.
8350 (composition_adjust_point): Use find_automatic_composition.
8351
8352 * dispextern.h (struct composition_it): New member lookback.
8353
83542008-09-02 Chong Yidong <cyd@stupidchicken.com>
8355
8356 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8357 if moving by a single line.
8358
83592008-09-02 Andreas Schwab <schwab@suse.de>
8360
8361 * xterm.c (x_delete_display): Fix merge error.
8362
8363 * fileio.c (Fexpand_file_name): Remove unused variables.
8364
83652008-09-02 Eli Zaretskii <eliz@gnu.org>
8366
8367 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8368 storage on all platforms, not just on DOS_NT.
8369
83702008-09-02 Jason Rumney <jasonr@gnu.org>
8371
b8ff72fa
SM
8372 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8373 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8374
83752008-09-01 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * xfaces.c (Finternal_set_alternative_font_family_alist)
8378 (Finternal_set_alternative_font_registry_alist): Properly copy
8379 entire alist structure.
8380
83812008-09-01 Kenichi Handa <handa@m17n.org>
8382
d66c0241 8383 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8384 representative chars of the script is a vector.
d66c0241
JB
8385 (ftfont_list): Handle the case where the representative chars of
8386 the script is a vector.
aac0c6e3
MR
8387
8388 * character.c (syms_of_character): Docstring of
8389 script-representative-chars fixed.
8390
83912008-08-31 Eli Zaretskii <eliz@gnu.org>
8392
8393 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8394 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8395 the menu. Allocate larger buffer for `text', to account for
8396 possible ^C characters.
8397
83982008-08-31 Martin Rudalics <rudalics@gmx.at>
8399
8400 * xdisp.c (prepare_menu_bars): Don't call
8401 Vwindow_size_change_functions with arg Qt.
8402
84032008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8404
8405 * font.h (font_range):
8406 * fileio.c (report_file_error):
46e722a9
SM
8407 * composite.c (composition_update_it): Yet another int/Lisp_Object
8408 mixup (YAILOM).
aac0c6e3
MR
8409
84102008-08-30 Glenn Morris <rgm@gnu.org>
8411
8412 * data.c (Fmake_variable_frame_local): Doc fix.
8413
8414 * frame.c (Fmodify_frame_parameters): Doc fix.
8415
84162008-08-30 Eli Zaretskii <eliz@gnu.org>
8417
8418 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8419 needed by GetTokenInformation.
8420 (w32_system_process_attributes): Check return values of all system
8421 APIs.
8422
8423 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8424 only when the state changes.
8425 (IT_update_begin, IT_update_end): Add termscript trace.
8426
8427 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8428 clipboard is unavailable. Set dst to NULL if it doesn't point to
8429 malloc'ed data.
8430 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8431 passing random values to xfree.
8432
8433 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8434 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8435
84362008-08-29 Jason Rumney <jasonr@gnu.org>
8437
8438 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8439
84402008-08-29 Eli Zaretskii <eliz@gnu.org>
8441
8442 * composite.c (fill_gstring_body): Avoid compiler warnings.
8443
8444 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8445 LGLYPH_SET_CODE to avoid compiler warnings.
8446
2ae37cf0 8447 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8448
8449 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8450
8451 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8452 LGLYPH_SET_CODE.
8453
84542008-08-29 Kenichi Handa <handa@m17n.org>
8455
8456 * fileio.c (report_file_error): Don't downcase the first character
8457 of errstring if it is still unibyte.
8458
84592008-08-29 Kenichi Handa <handa@m17n.org>
8460
8461 These changes are to re-implement the automatic composition so
8462 that it doesn't use text properties.
8463
8464 * Makefile.in (ftfont.o): Depend on composite.h.
8465 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8466
8467 * character.h (Vunicode_category_table): Extern it.
8468
8469 * character.c (Vunicode_category_table): New variable.
8470 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8471
8472 * chartab.c (optimize_sub_char_table): Perform more greedy
8473 optimization.
8474
b8ff72fa
SM
8475 * composite.h (enum composition_method):
8476 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8477 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8478 (Vcomposition_function_table): Extern it.
8479 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8480 (composition_gstring_put_cache, composition_gstring_from_id)
8481 (composition_gstring_p, composition_gstring_width)
8482 (composition_compute_stop_pos, composition_reseat_it)
8483 (composition_update_it, composition_adjust_point): Extern them.
8484 (Fcomposition_get_gstring): EXFUN it.
8485
d66c0241 8486 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8487 (Vcomposition_function_table)
8488 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8489 (gstring_hash_table, gstring_work, gstring_work_headers):
8490 New variables.
aac0c6e3
MR
8491 (gstring_lookup_cache, composition_gstring_put_cache)
8492 (composition_gstring_from_id, composition_gstring_p)
8493 (composition_gstring_width, fill_gstring_header)
8494 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8495 (composition_reseat_it, composition_update_it)
b8ff72fa 8496 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8497 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8498 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8499 Defsubr compostion_get_gstring.
8500
8501 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8502 cmp_id.
8503 (struct glyph_string): Delete the member gidx. New members
8504 cmp_id, cmp_from, and cmp_to.
8505 (enum it_method): Delete GET_FROM_COMPOSITION.
8506 (struct composition_it): New struct.
8507 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8508 Delete c, len, cmp_id, cmp_len in u.comp.
8509
8510 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8511 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8512 (enum lglyph_indices): Likewise.
b8ff72fa 8513 (font_range): Adjust extern.
aac0c6e3
MR
8514 (font_fill_lglyph_metrics): Extern it.
8515
8516 * font.c (QCf): New variable.
8517 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8518 (font_prepare_composition): Delete this function.
8519 (font_range): Type and arguments changed.
8520 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8521 (font_fill_lglyph_metrics): New function.
b8ff72fa 8522 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8523 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8524 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8525 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8526
8527 * fontset.h (font_for_char): Extern it.
8528
8529 * fontset.c (font_for_char): New function.
8530
8531 * ftfont.c: Include composite.h.
8532 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8533 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8534
8535 * indent.c: Include composite.h and dispextern.h.
8536 (check_composition): Delete this function.
8537 (scan_for_column): Handle composition by
8538 composition_compute_stop_pos, composition_reseat_it, and
8539 composition_update_it.
8540 (compute_motion): Likewise.
8541 (Fvertical_motion): Fix checking of composition.
8542
8543 * keyboard.c (adjust_point_for_property): Check composition by
8544 composition_adjust_point.
8545
b8ff72fa 8546 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8547 struct glyph_string.
8548
b8ff72fa
SM
8549 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8550 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8551 struct glyph.
8552 (produce_composite_glyph): Likewise.
8553
b8ff72fa
SM
8554 * w32term.c (x_draw_composite_glyph_string_foreground):
8555 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8556 (x_draw_glyph_string): Likewise.
8557
8558 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8559 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8560
8561 * xdisp.c: Include font.h.
8562 (it_props): Delete the entry for Qauto_composed.
8563 (init_iterator): Initialize it->cmp_it.id to -1.
8564 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8565 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8566 (handle_auto_composed_prop): Delete it.
8567 (handle_composition_prop): Handle only static composition.
8568 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8569 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8570 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8571 (pop_it): Likewise.
8572 (get_next_element): Delete next_element_from_composition.
8573 (CHAR_COMPOSED_P): New macro.
8574 (get_next_display_element): For automatic composition, get a face
8575 from the font in the glyph-string.
8576 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8577 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8578 (next_element_from_string): Check if the character at the current
8579 position is composed by CHAR_COMPOSED_P.
8580 (next_element_from_buffer): Likewise.
d66c0241
JB
8581 (next_element_from_composition): Adjust for the change of struct it.
8582 Update it->cmp_it.
b8ff72fa
SM
8583 (dump_glyph): Adjust for the change of struct glyph.
8584 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8585 it and struct glyph. Don't handle automatic composition here.
8586 (fill_gstring_glyph_string): New function.
8587 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8588 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8589 (BUILD_GSTRING_GLYPH_STRING): New macro.
8590 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8591 automatic composition.
b8ff72fa 8592 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8593 struct glyph.
b8ff72fa 8594 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8595
b8ff72fa 8596 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8597 the change of struct glyph_string.
8598 (x_draw_glyph_string): Likewise.
8599
86002008-08-29 Glenn Morris <rgm@gnu.org>
8601
8602 * buffer.c (word-wrap): Doc fix.
8603 * xdisp.c (truncate-partial-width-windows): Doc fix.
8604 Increase default to 50.
8605
86062008-08-29 Chong Yidong <cyd@stupidchicken.com>
8607
8608 * xdisp.c (update_tool_bar_unwind): New function.
8609 (update_tool_bar): Temporarily set selected frame before building
8610 tool-bar items.
8611
86122008-08-28 Michael Albinus <michael.albinus@gmx.de>
8613
8614 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8615 snprintf, respectively.
8616 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8617
86182008-08-28 Chong Yidong <cyd@stupidchicken.com>
8619
8620 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8621 LDFLAGS to GNUstep CC invocation.
8622
86232008-08-27 Chong Yidong <cyd@stupidchicken.com>
8624
8625 * indent.c (Fvertical_motion): Revert last change. Handle the
8626 general case where we are moving forward, and PT spans multiple
8627 screen lines.
8628
8629 * eval.c (find_handler_clause): Temporarily increase
8630 max-lisp-eval-depth while printing the backtrace buffer, to
8631 guarantee that help-mode code can run.
8632
86332008-08-27 Eli Zaretskii <eliz@gnu.org>
8634
8635 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8636 colors under -rv.
8637 (IT_set_frame_parameters): Don't swap foreground and background
8638 colors if `(reverse . t)' is present in the frame properties.
8639 (internal_terminal_init): Call init_frame_faces only for the
8640 initial frame.
8641
86422008-08-27 Andreas Schwab <schwab@suse.de>
8643
8644 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8645
86462008-08-27 Andreas Schwab <schwab@suse.de>
8647
8648 * search.c (search_buffer): Set char_base to zero only at the end.
8649
86502008-08-27 Kenichi Handa <handa@m17n.org>
8651
b8ff72fa 8652 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8653
86542008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8655
8656 * xterm.c (x_term_init): Temporarily hide the partially
8657 initialized terminal while calling vendor-specific-keysyms.
8658
86592008-08-26 Eli Zaretskii <eliz@gnu.org>
8660
8661 * msdos.c (internal_terminal_init): Most initializations done only
8662 once, especially initial_screen_colors[] and termscript open.
8663
86642008-08-26 Chong Yidong <cyd@stupidchicken.com>
8665
8666 * eval.c (Fcondition_case): Doc fix.
8667
8668 * widgetprv.h (EmacsFramePart): Change font member to the new font
8669 struct.
8670
8671 * widget.c: Include character.h and font.h for XSETFONT.
8672 (setup_frame_gcs): Compute X font id from font struct, just once.
8673
86742008-08-26 Eli Zaretskii <eliz@gnu.org>
8675
8676 * term.c (get_named_tty): Fix last change.
8677
86782008-08-26 Chong Yidong <cyd@stupidchicken.com>
8679
8680 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8681 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8682
86832008-08-25 Eli Zaretskii <eliz@gnu.org>
8684
8685 * frame.c (do_switch_frame): Mark previously displayed frame as
8686 obscured for FRAME_MSDOS_P frames as well.
8687
86882008-08-24 Eli Zaretskii <eliz@gnu.org>
8689
8690 * frame.c (make_terminal_frame): Initialize f->terminal,
8691 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8692 Set the top frame to newly created frame.
8693 (Fmake_terminal_frame): Reuse the_only_display_info.
8694
8695 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8696 estimating available memory.
8697
b97439ce 86982008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8699
8700 * nsterm.m (ns_draw_window_cursor): Don't call
8701 NSDisableScreenUpdates and NSEnableScreenUpdates on
8702 non-NS_IMPL_COCOA systems.
8703
87042008-08-23 Andreas Schwab <schwab@suse.de>
8705
8706 * process.c (procfs_system_process_attributes): Fix use of
8707 uninitialized variables.
8708
87092008-08-23 Eli Zaretskii <eliz@gnu.org>
8710
8711 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8712
8713 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8714 calling tty-set-up-initial-frame-faces.
8715
b8ff72fa
SM
8716 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8717 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8718
8719 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8720 addition to output_termcap.
8721
8722 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8723
8724 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8725 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8726 highlight.
8727
8728 * process.c [!subprocesses]: Define QCname.
8729 (syms_of_process): Intern and staticpro it.
8730
8731 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8732 Adjust for changes in encoding/decoding routines.
8733 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8734 encode_coding and decode_coding.
8735
b8ff72fa 8736 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8737
8738 * dosfns.c: Include frame.h before termhooks.h.
8739 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8740 variable termscript.
8741
8742 * s/msdos.h (USER_FULL_NAME): Define.
8743 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8744
8745 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8746 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8747 pw->pw_gecos.
8748
8749 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8750 SELECTED_FRAME as additional (1st) argument.
8751 (tty_read_avail_input): Handle output_msdos_raw in
8752 addition to output_termcap.
8753
8754 * msdos.c: Include frame.h before termhooks.h.
8755 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8756 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8757 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8758 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8759 (IT_set_terminal_modes, IT_reset_terminal_modes)
8760 (IT_set_frame_parameters): Use tty->termscript instead of a global
8761 variable termscript.
8762 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8763 global variable terminal_coding. Don't refer to
8764 Vnonascii_translation_table.
8765 (internal_terminal_init): Set Vwindow_system in current_kboard.
8766 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8767 Announce date and time of session start, if termscript is open.
8768 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8769 term.c:init_tty). Open termscript only of not already open.
8770 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8771 here instead of dos_ttraw. Don't initialize display if this is an
8772 initial tty. Don't set FRAME_FONT.
8773 (Vwindow_system_version): Bump to 23.
8774 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8775 is available, set up mouse_position_hook.
8776 (dos_ttraw, IT_set_terminal_modes): If called with initial
8777 terminal, do nothing.
8778 (IT_set_frame_parameters): Handle the Qtty_type frame
8779 parameter by calling internal_terminal_init.
8780 (dos_set_window_size, show_mouse_face)
8781 (clear_mouse_face, IT_note_mode_line_highlight)
8782 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8783 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8784 (initialize_msdos_display): New function.
8785 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8786 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8787 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8788 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8789 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8790 (request_sigio, unrequest_sigio): Don't define, now defined on
8791 sysdep.c.
8792 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8793
8794 * term.c [MSDOS]: Include msdos.h.
8795 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8796 conditional to DOS_NT. Allow only one call to this function in a
8797 session. Don't allocate a new struct tty_display_info; instead,
8798 reuse the_only_display_info. Call get_tty_size to get screen
8799 dimensions. Call init_baud_rate to set bad_rate.
8800 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8801 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8802 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8803 (get_tty_terminal, get_named_tty, Ftty_type)
8804 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8805 output_termcap.
b8ff72fa
SM
8806 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8807 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8808 only when subprocesses are supported.
aac0c6e3
MR
8809
8810 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8811 f->output_data.x.
8812 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8813 terminal devices.
8814
5582fbc7 8815 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8816 x_output.
8817 (FRAME_FONT): Use output_data.tty.
8818 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8819 (struct x_display_info): Rename from display_info. Update all users in
8820 msdos.c.
aac0c6e3 8821 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8822 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8823 (dos_ttraw): Update prototype.
8824
8825 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8826 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8827
88282008-08-23 Jason Rumney <jasonr@gnu.org>
8829
8830 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8831 (fn_TIFFSetDirectory): New library function used.
8832 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8833 (tiff_load): Use :index to select among multiple images. Set count
8834 property when multiple images exist.
8835 (gif_format): Use :index, not :image.
8836
88372008-08-23 Chong Yidong <cyd@stupidchicken.com>
8838
8839 * xdisp.c (try_scrolling): Check INT_MAX instead of
8840 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8841 to obtain INT_MAX.
8842
88432008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8844
8845 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8846
88472008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8848
8849 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8850 GNUstep library location.
8851
88522008-08-21 Chong Yidong <cyd@stupidchicken.com>
8853
8854 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8855 before using it.
8856
8857 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8858
88592008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8860
8861 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8862 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8863 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8864 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8865 (EmacsApp-cursor_blink_handler): Remove declaration.
8866 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8867 match 01 Feb 2008 changes in xterm.c.
8868 (ns_read_socket): Add cast to avoid warning.
8869 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8870 GNUstep.
8871
88722008-08-20 Chong Yidong <cyd@stupidchicken.com>
8873
8874 * xselect.c (x_get_foreign_selection): Return nil if desired
8875 selection could not be obtained, instead of signalling an error.
8876
88772008-08-20 David Reitter <david.reitter@gmail.com>
8878
8879 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8880 * nsterm.m: Remove ns-specific code for cursor blinking.
8881 (ns_draw_window_cursor): Clear cursor properly rather than
8882 redrawing the area. Respect width of bar cursors.
8883 These changes enable the use of generic blink-cursor-mode and
8884 generic cursor types in NS and support smooth cursor movements (do
8885 not blink off after command).
8886 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8887 Nextstep, too.
8888
88892008-08-19 Kenichi Handa <handa@m17n.org>
8890
8891 * font.c (Vfont_log_deferred): New variable.
8892 (font_add_log): Check Vfont_log_deferred.
8893 (font_deferred_log): New function.
8894
8895 * font.h (font_deferred_log): Extern it.
8896
8897 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8898 for sorting.
8899 (face_for_char): Use deferred log.
8900
89012008-08-18 Kenichi Handa <handa@m17n.org>
8902
8903 * fontset.c (face_for_char): Add font log.
8904
8905 * font.c (font_add_log): Add the font properties :script, :lang,
8906 and :otf in the log.
8907
89082008-08-17 Chong Yidong <cyd@stupidchicken.com>
8909
8910 * xdisp.c: Remove dead code.
8911 (handle_invisible_prop, next_overlay_string): Defer call to
8912 setup_for_ellipsis.
8913 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8914
89152008-08-15 Chong Yidong <cyd@stupidchicken.com>
8916
8917 * xfaces.c (lookup_derived_face): Properly handle possible zero
8918 return value of get_lface_attributes.
8919 (merge_faces): Don't tell lookup_derived_face to signal an error
8920 if face is not found.
8921
8922 * dired.c (Fdirectory_files): Doc fix.
8923
8924 * process.c (make_process): Initialize kill_without_query struct
8925 member.
8926
89272008-08-15 Eli Zaretskii <eliz@gnu.org>
8928
8929 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8930 Alternative calculation of totphys for Visual Studio 6.
8931
8932 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8933
8934 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8935 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8936 All users changed.
8937 (stat): Only root directory passed to GetDriveType. Allow RAM
8938 disk as well as local fixed disk when w32-get-true-file-attributes
8939 is set to `local'.
8940 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8941 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8942 (w32_cached_id, w32_add_to_cache): New functions.
8943 (get_name_and_id): Look account names in the cache before calling
8944 lookup_account_sid.
8945 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8946 New initialization flags.
8947 (globals_of_w32): Initialize them to zero.
8948 (w32_system_process_attributes): Use w32_cached_id and
8949 w32_add_to_cache.
8950
89512008-08-14 Lawrence Mitchell <wence@gmx.li>
8952
8953 * lread.c (Fread_char, Fread_char_exclusive): If no character
8954 event is read before timeout is reached, return nil, rather than
8955 converting to a number.
8956
89572008-08-14 Chong Yidong <cyd@stupidchicken.com>
8958
8959 * fns.c (use_dialog_box): Doc fix.
8960
8961 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8962 on OS X.
8963
89642008-08-13 Chong Yidong <cyd@stupidchicken.com>
8965
8966 * frame.c (Qns_parse_geometry): New var.
8967 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8968
89692008-08-11 Chong Yidong <cyd@stupidchicken.com>
8970
8971 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8972 space character in calculating tabs.
8973
89742008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8975
8976 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8977
89782008-08-10 Glenn Morris <rgm@gnu.org>
8979
8980 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8981 silence gcc "limited range of data type" warnings in some
8982 make_fixnum_or_float calls.
8983
89842008-08-09 Eli Zaretskii <eliz@gnu.org>
8985
8986 * w32.c (w32_system_process_attributes): If the process does not
8987 exist, return nil.
8988
8989 * w32.c: Include thelp32.h, psapi.h and coding.h.
8990 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8991 declarations.
8992 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8993 (Process32Next_Proc): New typedefs.
8994 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8995 (g_b_init_process32_next, g_b_init_open_thread_token)
8996 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8997 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8998 (g_b_init_get_process_working_set_size)
8999 (g_b_init_global_memory_status_ex): New static variables.
9000 (globals_of_w32): Initialize them.
9001 (create_toolhelp32_snapshot, process32_first, process32_next)
9002 (open_thread_token, impersonate_self, revert_to_self)
9003 (get_process_memory_info, get_process_working_set_size)
9004 (global_memory_status, global_memory_status_ex): New wrapper
9005 functions.
9006 (w32_list_system_processes, w32_system_process_attributes)
9007 (enable_privilege, restore_privilege, ltime, process_times):
9008 New functions.
9009 (convert_time_raw): New function.
9010 (convert_time): Remove conversion of FILETIME into time in 100
9011 nsec units, call convert_time_raw instead.
9012
9013 * process.h (w32_list_system_processes, w32_system_process_attributes):
9014 Add prototypes.
9015 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9016 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9017 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9018 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9019
9020 * process.c (Fsystem_process_attributes): Doc fix.
9021
90222008-08-08 Chong Yidong <cyd@stupidchicken.com>
9023
9024 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9025 a continued multi-char glyph; if so, advance to the actual glyph.
9026
90272008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9028
9029 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9030
9031 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9032 (.m.o): Use it.
9033 * config.in: Regenerate.
9034
90352008-08-07 Chong Yidong <cyd@stupidchicken.com>
9036
9037 * xdisp.c (redisplay_window): Revert last change.
9038 (try_window): Check bottom scroll margin too.
9039
90402008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9041
9042 * config.in: Regenerate.
9043
9044 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9045 -list-load-path-shadows'.
9046 (nsgui.h): Reduce number of things depending on it.
9047
90482008-08-06 Chong Yidong <cyd@stupidchicken.com>
9049
9050 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9051 instead of window-end which does the wrong thing at eob.
9052 (try_cursor_movement): Minor optimization.
9053 (redisplay_window): If scroll margin is defined, don't assume
9054 window doesn't need scrolling.
9055
90562008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9057
9058 * config.in: Regenerate.
9059
9060 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9061 (mostlyclean): Don't delete *.d under NS.
9062
9063 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9064
90652008-08-06 Kenichi Handa <handa@m17n.org>
9066
9067 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9068
90692008-08-06 Andreas Schwab <schwab@suse.de>
9070
9071 * config.in: Regenerate.
9072
90732008-08-05 Chong Yidong <cyd@stupidchicken.com>
9074
9075 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9076 forcing a window start.
9077
9078 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9079 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9080
90812008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9082
9083 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9084 argument.
9085
90862008-08-05 Juanma Barranquero <lekktu@gmail.com>
9087
9088 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9089 <scroll-down-aggressively, before-change-functions>:
9090 <after-change-functions>: Reflow docstrings.
9091
90922008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9093 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9094
9095 Dock menu customization, based on a patch by Ken Raeburn, plus some
9096 other fixes.
9097 * nsmenu.m (dockMenu): New variable.
9098 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9099
9100 * nsterm.h (dockMenu): Declare.
9101
9102 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9103 (ns_term_init): Initialize dockMenu.
9104 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9105 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9106 left.
9107
9108 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9109
91102008-08-04 Chong Yidong <cyd@stupidchicken.com>
9111
9112 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9113
9114 * config.in: Regenerate.
9115
91162008-08-04 Seiji Zenitani <zenitani@mac.com>
9117
9118 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9119
91202008-08-04 Chong Yidong <cyd@stupidchicken.com>
9121
9122 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9123
91242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9125
9126 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9127
9128 * keyboard.h: Comment an #endif.
9129
9130 * lisp.h (have_menus_p): Adjust comment.
9131
9132 * menu.c (find_and_return_menu_selection): Fix comparison with
9133 client_data.
9134
9135 * nsmenu.m (popup_activated_flag): New variable.
9136 (popup_activated): New function.
9137 (menu-or-popup-active-p): New exported lisp definition.
9138 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9139 when popup done.
9140 (ns_popup_dialog): Set popup_activated_flag.
9141
9142 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9143 version for GNUstep (handled by conditional typedef in nsterm.m).
9144 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9145 in rgb.txt).
9146
9147 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9148
9149 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9150
9151 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9152
9153 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9154 shortcircuit if popup_activated like GTK and X toolkit.
9155
9156 * m/inter386.h: Change DARWIN to DARWIN_OS.
9157
9158 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9159 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9160 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9161 comment on NO_SOCK_SIGIO.
9162
91632008-08-03 Chong Yidong <cyd@stupidchicken.com>
9164
9165 * nsterm.m (windowDidResize): Remove stopModal call.
9166
91672008-08-03 Andreas Schwab <schwab@suse.de>
9168
9169 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9170 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9171
91722008-08-02 Chong Yidong <cyd@stupidchicken.com>
9173
9174 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9175 Don't use uninitialized pointer variable when using getrlimit.
9176
91772008-08-02 Jason Rumney <jasonr@gnu.org>
9178
9179 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9180
91812008-08-02 Eli Zaretskii <eliz@gnu.org>
9182
9183 * alloc.c (NSTATICS): Bump to 0x640.
9184
9185 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9186
9187 * lisp.h: Add prototype for directory_files_internal.
9188
9189 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9190 New functions.
9191 (syms_of_process): Defsubr them. Add initializations for various
9192 Q* symbols used in procfs_system_process_attributes.
9193 (procfs_list_system_processes, procfs_system_process_attributes)
9194 [HAVE_PROCFS]: New functions.
9195 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9196 (procfs_get_total_memory): New functions.
9197
91982008-08-01 Juanma Barranquero <lekktu@gmail.com>
9199
9200 * xfaces.c (Fx_load_color_file): Fix previous change;
9201 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9202
92032008-08-01 Michael Albinus <michael.albinus@gmx.de>
9204
9205 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9206
92072008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9208
9209 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9210
92112008-08-01 Chong Yidong <cyd@stupidchicken.com>
9212
9213 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9214
9215 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9216 define NSApplicationDelegateReplySuccess.
9217 (EmacsView -converstationIdentifier): Use long instead of
9218 NSInteger for GNUstep, since it doesn't have NSInteger.
9219
9220 * xmenu.c: Revert last change.
9221
9222 * keyboard.h: Fix last change.
9223
92242008-08-01 Juanma Barranquero <lekktu@gmail.com>
9225
9226 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9227 on Windows.
9228
92292008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9230
9231 Warning clearing and clean-up in NS port.
9232 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9233 Add prototypes.
9234 * nsgui.h (FACE_DEFAULT): Remove, unused.
9235 (XGCValues): Change colors to unsigned long.
9236 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9237 nsterm.m.
9238 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9239 (ns_list_fonts): Remove, unused.
9240 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9241 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9242 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9243 (nsfont_draw): Compare face colors to 0, not nil.
9244 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9245 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9246 (-addSubmenuWithTitle:): Use NSMenuItem class.
9247 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9248 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9249 (ns_clip_to_row): Make gc arg a BOOL.
9250 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9251 ns_clip_to_row() call.
9252 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9253 used). Cast FRAME_FONT assignments.
9254 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9255 (ns_string_to_lispmod): Change arg to const char.
9256 (ns_term_init): Use NSMenuItem class.
9257 (EmacsApp -openFile:): Move to different section of file.
9258 (EmacsApp -application:openFiles:): Don't return a value, call
9259 -replyToOpenOrPrint:.
9260 (EmacsView -keyDown:): Fix up cast.
9261 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9262 (EmacsView -menuDown:): Cast tag in call to
9263 find_and_call_menu_selection().
9264 (ns_list_fonts): Remove, unused.
9265 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9266 (ns_fontname_to_xlfd): Make static.
9267 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9268 Remove prototypes (now in keyboard.h).
9269 (next_menubar_widget_id): Remove, unused.
9270 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9271 Remove prototypes (now in keyboard.h).
9272 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9273
92742008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9275
9276 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9277 (floatfns.o): Depend on syssignal.h.
9278 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9279
9280 * systty.h: Fix previous change that removed BSD_TERMIOS.
9281 Add comments to #ifdefs.
9282
92832008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9284
9285 * w32fns.c (w32-load-color-file): Remove.
9286 (x-open-connection): Use renamed Fx_load_color_file.
9287 * xfaces.c (x-load-color-file): Add.
9288 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9289 Emacs.clr.
9290 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9291
92922008-07-31 Michael Albinus <michael.albinus@gmx.de>
9293
9294 * dbusbind.c (Fdbus_call_method_asynchronously)
9295 (Fdbus_method_error_internal): New defuns.
9296 (xd_read_message): Handle also reply messages.
9297 (Vdbus_registered_functions_table): Extend docstring.
9298
92992008-07-31 Juanma Barranquero <lekktu@gmail.com>
9300
9301 * keyboard.c (gobble_input): Fix previous change.
9302
93032008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9304
9305 * bitmaps/README:
9306 * xfns.c:
9307 * termcap.c:
9308 * term.c:
9309 * syswait.h:
9310 * systty.h:
9311 * systime.h:
9312 * syssignal.h:
9313 * sysdep.c:
9314 * process.h:
9315 * process.c:
9316 * print.c:
9317 * ndir.h:
9318 * lread.c:
9319 * keyboard.c:
9320 * getpagesize.h:
9321 * floatfns.c:
9322 * fileio.c:
9323 * emacs.c:
9324 * doc.c:
9325 * dispnew.c:
9326 * dired.c:
9327 * data.c:
9328 * callproc.c:
9329 * buffer.c:
9330 * README:
9331 * Makefile.in:
9332 * s/template.h:
9333 * s/msdos.h:
9334 * m/vax.h: Remove VMS support.
9335 * s/vms.h:
9336 * vlimit.h:
9337 * uaf.h:
9338 * temacs.opt:
9339 * param.h:
9340 * ioctl.h: Remove file.
9341
93422008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9343
9344 * s/ms-w32.h (MULTI_KBOARD): Remove.
9345 * xterm.c:
9346 * xselect.c:
9347 * xfns.c:
9348 * window.c:
9349 * w32term.c:
9350 * w32fns.c:
9351 * terminal.c:
9352 * termhooks.h:
9353 * term.c:
9354 * sysdep.c:
9355 * keyboard.h:
9356 * keyboard.c:
9357 * frame.h:
9358 * frame.c:
9359 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9360 * config.in: Regenerate.
9361
93622008-07-30 Jason Rumney <jasonr@gnu.org>
9363
9364 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9365
9366 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9367 (w32font_open_internal): Get unicode version of textmetrics.
9368 Don't enable or disable glyph indices here.
9369 (w32font_open): Disable use of glyph indices.
9370
9371 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9372
93732008-07-30 Chong Yidong <cyd@stupidchicken.com>
9374
9375 * minibuf.c (Vread_buffer_function): Doc fix.
9376
93772008-07-30 John Paul Wallington <jpw@pobox.com>
9378
9379 * minibuf.c (read_buffer_completion_ignore_case): New var.
9380 (Fread_buffer): Use it.
9381
93822008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9383
9384 * systty.h (sensemode): Remove empty #if. Remove reference to
9385 BSD_TERMIOS, unused.
9386
9387 * sysdep.c: Remove reference to DGUX.
9388 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9389
9390 * config.in: Regenerate.
9391
93922008-07-30 Jason Rumney <jasonr@gnu.org>
9393
9394 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9395
93962008-07-29 Jason Rumney <jasonr@gnu.org>
9397
9398 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9399 is populated.
9400 (uniscribe_encode_char): Always use uniscribe.
9401 Avoid using context if cache is populated.
9402
94032008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9404
9405 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9406 open menu.
9407
9408 * gtkutil.c (menu_nav_ended): Remove.
9409 (create_menus): Remove signal connect for menu_nav_ended.
9410
94112008-07-28 Chong Yidong <cyd@stupidchicken.com>
9412
9413 * xdisp.c (redisplay_window): Check return value of
9414 compute_window_start_on_continuation_line before forcing a window
9415 start.
9416
94172008-07-28 Jason Rumney <jasonr@gnu.org>
9418
9419 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9420
9421 * w32term.c (w32_enable_unicode_output, cleartype_active):
9422 Remove obsolete display options.
9423 (x_draw_glyph_string_background): Don't use old cleartype_active
9424 workaround.
9425 (w32_initialize): Remove cleartype_active initialization.
9426 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9427
94282008-07-28 Andreas Schwab <schwab@suse.de>
9429
9430 * lisp.h (init_weak_hash_tables, syms_of_font)
9431 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9432 (remove_hash_entry): Don't declare.
9433 * eval.c (maybe_call_debugger): Make static and move before use.
9434 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9435 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9436 * xterm.h (x_set_frame_alpha): Declare.
9437
94382008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9439
9440 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9441 (create_menus): Connect selection-done to menu_nav_ended.
9442
94432008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9444
9445 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9446 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9447 parameter with read of 'alpha' one.
9448 (Qns_frame_parameter): Remove.
5582fbc7 9449 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9450 (next-selection-coding-system, Vselection_coding_system)
9451 (Vnext_selection_coding_system): Drop.
9452
94532008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9454
9455 * nsfns.m (do-applescript, do_applescript): Rename to
9456 ns-do-applescript, ns_do_applescript, and move within file.
9457
94582008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9459
9460 Remove support for Mac Carbon.
9461 * mactoolbox.c:
9462 * macterm.h:
9463 * macterm.c:
9464 * macselect.c:
9465 * macmenu.c:
9466 * macgui.h:
9467 * macfns.c:
9468 * mac.c: Remove file.
9469 * s/darwin.h:
9470 * m/intel386.h:
9471 * xfaces.c:
9472 * xdisp.c:
9473 * window.c:
9474 * tparam.c:
9475 * termhooks.h:
9476 * termcap.c:
9477 * term.c:
9478 * syssignal.h:
9479 * sysselect.h:
9480 * sysdep.c:
9481 * process.c:
9482 * lread.c:
9483 * lisp.h:
9484 * keyboard.c:
9485 * image.c:
9486 * fringe.c:
9487 * frame.h:
9488 * frame.c:
9489 * fontset.c:
9490 * font.h:
9491 * font.c:
9492 * fns.c:
9493 * fileio.c:
9494 * emacs.c:
9495 * dispnew.c:
9496 * dispextern.h:
9497 * config.in:
9498 * atimer.c:
2ae37cf0 9499 * Makefile.in: Remove code for Carbon.
aac0c6e3 9500
f0131492 95012008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9502
9503 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9504
95052008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9506
9507 * macterm.h (kCGBitmapByteOrder32Host): New define for
9508 non-universal SDKs.
9509
9510 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9511 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9512
9513 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9514 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9515
95162008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9517
9518 * w32inevt.c: Include dispextern.h.
9519
95202008-07-26 Andreas Schwab <schwab@suse.de>
9521
9522 * print.c (print_object): Fix off-by-one in last change.
9523
95242008-07-25 Juanma Barranquero <lekktu@gmail.com>
9525
9526 * term.c (syms_of_term): Don't initialize default_orig_pair,
9527 default_set_foreground and default_set_background on Windows.
9528
95292008-07-25 Jason Rumney <jasonr@gnu.org>
9530
9531 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9532 ScriptItemize. Clean up return value checking. Remove unused
9533 variables.
9534 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9535 shaping engine.
9536
9537 * w32font.c (w32font_has_char): Handle the case where we can't
9538 determine the script for a character.
9539
95402008-07-25 Chong Yidong <cyd@stupidchicken.com>
9541
9542 * term.c (syms_of_term): Initialize default_orig_pair,
9543 default_set_foreground, and default_set_background.
9544
9545 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9546 clash (bug#86).
9547 (getloadavg): Callers changed.
9548
9549 * image.c (svg_load_image): Fix last change.
9550 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9551 image size is valid. Use g_object_unref instead of deprecated
9552 rsvg_handle_free to free rsvg handle.
9553 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9554
95552008-07-25 Jason Rumney <jasonr@gnu.org>
9556
9557 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9558 surrogates before looking up glyph index.
9559 (w32font_text_extents): Encode as surrogates if falling back to
9560 functions that need UTF-16 wide chars.
9561
9562 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9563 BMP as surrogates before looking up glyph index.
9564
95652008-07-25 Chong Yidong <cyd@stupidchicken.com>
9566
9567 * image.c (svg_load_image): Check for failure in return value of
9568 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9569
95702008-07-25 Jason Rumney <jasonr@gnu.org>
9571
9572 * w32font.c (Fx_select_font): Reverse sense of second arg.
9573
95742008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9575
9576 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9577 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9578
9579 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9580 (PURESIZE): Use it.
9581
95822008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9583
9584 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9585 * m/alpha.h (TEXT_END):
9586 * m/ibmrs6000.h (TEXT_END):
9587 * m/macppc.h (TEXT_END):
9588 * s/darwin.h (TEXT_END):
9589 * s/msdos.h (TEXT_END): Remove, unused.
9590 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9591 * s/cygwin.h: Remove comment.
9592
9593 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9594 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9595 * m/intel386.h (DOT_GLOBAL_START):
9596 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9597 (USG): Remove, file not used on USG platforms.
9598
9599 * Makefile.in (HAVE_X11): Remove empty #else.
9600
96012008-07-24 Andreas Schwab <schwab@suse.de>
9602
9603 * fileio.c (Finsert_file_contents): Properly adjust undo list
9604 after format conversion.
9605
96062008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9607
9608 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9609 (menu_nav_ended): Remove.
9610 (create_menus): Remove signal connect for menu_nav_ended.
9611 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9612 create_menus.
9613 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9614
96152008-07-23 Jason Rumney <jasonr@gnu.org>
9616
9617 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9618 with opened font.
9619 (w32font_open): Set font type to gdi.
9620
9621 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9622
96232008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9624
9625 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9626 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9627 defines it.
9628 * unexec.c (ADDR_CORRECT): Define unconditionally.
9629
9630 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9631
9632 * unexec.c: Remove code depending on !COFF and USG, the file is
9633 not used for such systems.
9634
9635 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9636 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9637 (LD_SWITCH_SYSTEM_1): Remove, update users.
9638
9639 * s/darwin.h (DATA_END):
9640 * m/intel386.h (DATA_END):
9641 * m/ibmrs6000.h (DATA_END):
9642 * m/alpha.h (DATA_END): Remove, unused.
9643
9644 * config.in: Regenerate.
9645 * s/ms-w32.h (subprocesses): Define unconditionally.
9646 * s/template.h (subprocesses): Update comment.
9647 * s/vms.h (subprocesses):
9648 * s/usg5-4.h (subprocesses):
9649 * s/hpux10-20.h (subprocesses):
9650 * s/gnu-linux.h (subprocesses):
9651 * s/cygwin.h (subprocesses):
9652 * s/bsd-common.h (subprocesses):
9653 * s/aix4-2.h (subprocesses):
9654 * s/darwin.h (subprocesses): Do not define, defined by default now.
9655
9656 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9657 Remove all references.
9658 (temacs): Add GNUstep specific ld flags.
9659
9660 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9661 similarly to what X does.
9662
96632008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9664
9665 * nsfns.m (x-list-fonts): Remove.
9666 (syms_of_nsfns): Drop the x-list-fonts declaration.
9667 * nsterm.m: Get rid of remaining "//" comments.
9668
96692008-07-22 Chong Yidong <cyd@stupidchicken.com>
9670
9671 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9672
9673 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9674 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9675 (Fns_own_selection_internal, Fx_disown_selection_internal)
9676 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9677
9678 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9679 ... */' style of docstrings. Doc fixes.
9680
96812008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9682
9683 * terminfo.c (UP, BC, PC): Undo previous change.
9684
9685 * nsfns.m: Rename ns prefixed functions/variables to the
9686 corresponding x versions. Update references.
9687
96882008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9689
9690 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9691
96922008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9693
9694 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9695 Remove forwarding functions.
9696 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9697 non-static.
9698 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9699 non-static.
9700 (ns_frame_parm_handlers): Use the new names.
9701 (syms_of_nsfns): Move to the end of file.
9702
9703 * nsterm.m (syms_of_nsterm): Move to the end of file.
9704
9705 * dispnew.c (init_display): Remove code for X10.
9706
97072008-07-22 Jason Rumney <jasonr@gnu.org>
9708
9709 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9710 bare drive.
9711
97122008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9713
9714 * nsterm.m (syms_of_nsterm): Remove debugging println.
9715
97162008-07-22 David Reitter <david.reitter@gmail.com>
9717
9718 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9719 Carbon implementation of the same functionality: execute arbitrary
9720 AppleScript code.
9721
97222008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9723
9724 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9725 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9726 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9727 (Fx_display_mm_height, Fx_display_mm_width)
9728 (Fx_display_backing_store, Fx_display_visual_class)
9729 (Fx_display_save_under, Fx_open_connection)
9730 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9731 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9732 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9733 (Fx_display_pixel_width, Fx_display_pixel_height)
9734 (Fx_display_usable_bounds, Fx_display_planes)
9735 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9736 ... */' style of docstrings.
9737
97382008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9739
9740 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9741 on this platform.
9742 (mips):
9743 * m/iris4d.h (mips): Do not define.
9744 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9745
9746 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9747
9748 * image.c:
9749 * nsfns.m:
9750 * nsselect.m:
9751 * nsterm.h:
9752 * nsterm.m: Rename ns prefixed functions/variables to the
9753 corresponding x versions. Update references.
9754
9755 * m/ibms390x.h (NO_REMAP): Do not undefine.
9756
9757 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9758
97592008-07-21 Chong Yidong <cyd@stupidchicken.com>
9760
9761 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9762 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9763 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9764 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9765 (Fns_display_mm_height, Fns_display_mm_width)
9766 (Fns_display_backing_store, Fns_display_visual_class)
9767 (Fns_display_save_under, Fns_open_connection)
9768 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9769 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9770 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9771 (Fns_display_pixel_width, Fns_display_pixel_height)
9772 (Fns_display_usable_bounds, Fx_display_planes)
9773 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9774
97752008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9776
9777 * print.c (print_object): Check print_depth before searching for
9778 circularities.
9779
97802008-07-21 Michael Albinus <michael.albinus@gmx.de>
9781
9782 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9783 only sprintf.
9784
97852008-07-21 Kenichi Handa <handa@m17n.org>
9786
9787 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9788
97892008-07-20 Andreas Schwab <schwab@suse.de>
9790
9791 * syntax.c (find_start_pos, find_start_value)
9792 (find_start_value_byte, find_start_begv, find_defun_start)
9793 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9794
97952008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9796
9797 * s/sol2-3.h: Insert contents of s/sol2.h.
9798 (LD_SWITCH_SYSTEM): Remove redundant definition.
9799 * s/sol2.h: Remove, unused.
9800
98012008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9802
9803 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9804
98052008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9806
9807 * Makefile.in (ns_appdir): Fix typo in find command.
9808
98092008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9810
9811 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9812
9813 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9814 added not supported anymore.
9815
9816 * s/usg5-4-2.h (LIBS_SYSTEM):
9817 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9818
9819 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9820 * s/lynxos.h (GETPGRP_NO_ARG):
9821 * s/hpux10-20.h (NO_SIOCTL_H):
9822 * s/gnu.h (GETPGRP_NO_ARG):
9823 * s/gnu-linux.h (NO_SIOCTL_H):
9824 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9825 * s/cygwin.h (GETPGRP_NO_ARG):
9826 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9827 (C_DEBUG_SWITCH): Remove duplicate definition.
9828
9829 * m/ibms390.h: Remove boilerplate comments.
9830
9831 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9832
9833 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9834 (wait_reading_process_output): Remove code for SunOS, platform not
9835 supported anymore. Use SOLARIS2 instead of sun.
9836
98372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9838
9839 * font.c (font_open_by_name): Under NS, default lface height to zero.
9840 (font_open_for_lface): Under NS, set size based on frame fontsize.
9841 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9842 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9843
98442008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9845
9846 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9847 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9848 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9849 YES/NO.
9850 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9851 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9852 * Makefile.in (clean): Clear out build destination dir.
9853
98542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9855
9856 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9857 xterm, xselect.
9858 * lisp.h: Remove declaration of hash_remove.
9859 * nsgui.h: Remove redefinitions of hash_remove.
9860 * fns.c (hash_remove): Rename to hash_remove_from_table.
9861
98622008-07-19 Seiji Zenitani <zenitani@mac.com>
9863
9864 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9865 strdup() the family UTF8String before modifying it.
9866
98672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9868
9869 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9870 NS_FACE_BACKGROUND with 0 instead of nil.
9871 * nsfont.m (nsfont_draw): Same.
9872
98732008-07-19 Chong Yidong <cyd@stupidchicken.com>
9874
9875 * nsfns.m (ns_set_background_color): Fix crash.
9876
98772008-07-18 Chong Yidong <cyd@stupidchicken.com>
9878
9879 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9880
98812008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9882
9883 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9884
98852008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9886
9887 * gtkutil.c: Include <config.h> instead of "config.h".
9888
9889 * lisp.h (Foverlay_buffer): Add EXFUN.
9890
9891 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9892 child process to complete child_setup. Undo 2005-09-21 change.
9893
9894 * s/darwin.h: Mention setsid after vfork.
9895
98962008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9897
9898 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9899 Depend on macgui.h.
9900
9901 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9902 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9903
9904 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9905 and f19.
9906 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9907
9908 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9909 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9910 Remove enumerators.
9911
9912 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9913 Check if FACE_FROM_ID returns NULL.
9914
99152008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9916
9917 * w32inevt.c (change_frame_size): Remove extern declaration.
9918 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9919 change_frame_size.
9920
99212008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9922
9923 * getloadavg.c: Revert last change (2008-07-15).
9924
99252008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9926
9927 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9928 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9929 from configure.
9930
99312008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9932
9933 * s/sol2.h:
9934 * s/sol2-4.h: Reorganize conditionals.
9935
9936 * ecrt0.c: Remove code depending on m68000, not used anymore.
9937
9938 * fns.c (hash_remove): Make static.
9939 * lisp.h (hash_remove): Don't prototype.
9940
9941 * m/ibmrs6000.h:
9942 * m/ibms390x.h:
9943 * m/macppc.h: Remove boilerplate comments.
9944
9945 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9946 Solaris, which does not need them.
9947
9948 * m/vax.h: Remove comments about unsupported systems.
9949
9950 * s/darwin.h: Reorganize ifdefs.
9951
99522008-07-17 Andreas Schwab <schwab@suse.de>
9953
9954 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9955
99562008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9957
9958 Use SDATA. Follow coding convention of placing operators at
9959 beginning of next line rather than end of previous line, and placing
9960 spaces around infix operators.
9961
9962 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9963 in case it was defined already.
9964 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9965 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9966 ns_default.
9967 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9968 Lisp_Objects.
9969 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9970 (ns_defined_color, ns_color_to_lisp): Declare.
9971 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9972 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9973 it's accepted even with USE_LISP_UNION_TYPE.
9974 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9975 (update_frame_tool_bar): Remove apparently obsolete tests for
9976 non-integerness of f->tool_bar_lines.
9977 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9978 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9979 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9980 (nsfont_open): Don't confuse NULL for Qnil.
9981 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9982 * menu.h (find_and_call_menu_selection):
9983 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9984 (find_and_return_menu_selection): Always return something.
9985 * frame.h: Include dispextern.h for Display_Info.
9986 (display_x_get_resource): Declare.
9987
99882008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9989
9990 * syntax.c: Remove stdio.h include accidentally introduced in
9991 Emacs.app commit.
9992 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9993 NS_IMPL_COCOA.
9994 * keyboard.c (handle_async_input, input_available_signal): Remove
9995 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9996
99972008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9998
9999 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10000 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10001 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10002 Use SDATA.
10003
10004 * keymap.c: Remove all NS-specific code.
10005 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10006 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10007 where_is_preferred_modifier, return a different value depending on how
10008 preferred is the binding.
10009 (where_is_internal): Adjust accordingly.
10010 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10011 Adjust to new preferred_sequence_p.
10012 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10013 * keyboard.c (parse_solitary_modifier): Not static any more.
10014 * keyboard.h (parse_solitary_modifier): Declare.
10015
100162008-07-16 Andreas Schwab <schwab@suse.de>
10017
10018 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10019 of easymenu.
10020
100212008-07-16 Chong Yidong <cyd@stupidchicken.com>
10022
10023 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10024 that we don't move off the line.
10025
100262008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10027
10028 * keyboard.c (Qsuper): Remove.
10029 (parse_menu_item): Don't call where_is_internal specially for NS.
10030
100312008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10032
10033 * s/gnu-linux.h: Remove boilerplate comments.
10034
10035 * m/alpha.h (__ELF__): Consolidate conditions.
10036
10037 * m/m68k.h (linux): Use GNU_LINUX instead.
10038 Remove boilerplate comments.
10039
10040 * m/intel386.h: Undo refactoring from previous change.
10041 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10042 too, remove dead code.
10043 (linux): Use GNU_LINUX instead.
10044
100452008-07-16 Jason Rumney <jasonr@gnu.org>
10046
10047 * w32gui.h: Repeat 26 June changes lost by last change.
10048
100492008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10050
10051 * systty.h: Remove code for Aix on 386, unsupported platform.
10052
10053 * s/ms-w32.h: Remove boilerplate comments.
10054 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10055
10056 * s/gnu-linux.h (TERM): Remove support.
10057 (HAVE_SYSVIPC): Remove, unused.
10058 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10059 for this system.
10060
10061 * process.c: Remove support for IRIS, unused.
10062 Remove support for TERM, not relevant anymore.
10063
10064 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10065 used with the definition.
10066
10067 * s/aix4-2.h (static): Do not undef.
10068
10069 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10070 only used on Aix.
10071 (HAVE_SYSVIPC): Remove, unused.
10072
10073 * m/hp800.h (CANNOT_DUMP): Do not undef.
10074
10075 * m/alpha.h: Fix comment.
10076
10077 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10078 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10079 used by this configuration.
10080 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10081 * unexec.c: Remove code depending on HPUX and
10082 USG_SHARED_LIBRARIES, not used with this file. Remove code
10083 depending on IRIS, unused. Remove if 0-ed code.
10084
10085 * s/template.h: Remove comments about static.
10086
10087 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10088 Remove if 0-ed code.
10089 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10090 were the same as the default.
10091 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10092 Remove boilerplate comments.
10093 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10094 (HAVE_SYSVIPC): Remove, unused.
10095 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10096
10097 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10098 Remove boilerplate comments.
10099 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10100 Remove boilerplate comments.
10101 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10102 Remove boilerplate comments.
10103 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10104
10105 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10106 USG systems which do not use DATA_SEG_BITS.
10107 Refactor code. Remove boilerplate comments.
10108
10109 * m/ibms390.h:
10110 * m/m68k.h:
10111 * s/bsd-common.h:
10112 * s/cygwin.h:
10113 * s/darwin.h:
10114 * s/freebsd.h:
10115 * s/gnu.h:
10116 * s/msdos.h: Remove boilerplate comments.
10117
10118 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10119 do not use this file.
aac0c6e3
MR
10120 (IRIS_4D): Remove, unused.
10121
10122 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10123 do not use this file.
aac0c6e3
MR
10124 (SIGN_EXTEND_CHAR):
10125 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10126 * unexmips.c: Remove file, unused.
10127
10128 * editfns.c (Fuser_full_name): Replace the only use of
10129 USER_FULL_NAME with its value.
10130 * config.in: Regenerate.
10131
101322008-07-16 David Reitter <david.reitter@gmail.com>
10133
10134 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10135 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10136
101372008-07-16 Glenn Morris <rgm@gnu.org>
10138
10139 * emacs.c (system-type): Doc fix.
10140
101412008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10142
10143 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10144 If the cache doesn't work, let's fix it, rather than work around it.
10145
101462008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10147
10148 * Makefile.in: Correct additions for nsfont.o in last commit.
10149 * nsfont.m: New file (forgot last commit).
10150
101512008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10152
10153 * callproc.c (set_initial_environment): Initialize
10154 Vprocess_environment under CANNOT_DUMP (fixes crash when
10155 batch-compiling for bootstrap).
10156
101572008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10158 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10159
10160 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10161 fix crash due to different init order.
10162
101632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10164
10165 Changes and additions for NeXTstep windowing system (Cocoa and
10166 GNUstep) support.
10167
10168 * Makefile.in:
10169 * config.in: Support defines and build commands for NS port.
10170 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10171 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10172 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10173 windowing.
10174 (struct face): Add synth_ital field.
10175 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10176 (init_display): Initialize Vinitial_window_system to "ns" when so
10177 compiled.
10178 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10179 (display_arg): Use under NS.
10180 (main): Under NS, allocate autorelease pool and handle command line
10181 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10182 (standard_args): Add NS-specific args.
10183 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10184 * font.c (DEFAULT_ENCODING): New variable.
10185 (font_find_for_lface): Use it.
10186 (syms_of_font): Load syms_of_nsfont under NS.
10187 * font.h: Declare nsfont_driver when compiled under NS.
10188 * fontset.c: When compiling under NS, include nsterm.h.
10189 (fontset_from_font): Autoconstruct fontset under NS.
10190 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10191 symbol, document and use it.
10192 (do_switch_frame): When for_deletion under Cocoa, add
10193 Fraise_frame(Qnil).
10194 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10195 (x_get_arg): Allow "yes" and "no" as boolean values.
10196 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10197 Qright under Cocoa.
10198 (focus-follows-mouse): Default to 0 under NS.
10199 * frame.h (enum output_method): Add output_ns.
10200 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10201 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10202 (FRAME_WINDOW_P): NS-specific definition.
10203 * fringe.c (max_used_fringe_bitmap): Make public.
10204 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10205 (getloadavg): Use NeXT code under descendant OS's.
10206 * image.c (includes and header section, x_create_bitmap_from_data)
10207 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10208 (image_background_transparent, x_clear_image_1)
10209 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10210 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10211 (x_to_xcolors, x_from_xcolors, x_disable_image)
10212 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10213 other GUIs, including XPM support using code originally written for
10214 Carbon GUI.
10215 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10216 using NS API.
10217 (image_ascent): Use font metrics macros instead of direct struct field
10218 access.
10219 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10220 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10221 Also, handle NS as GTK for menu bar purposes.
10222 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10223 toolkit where they differ.
10224 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10225 use cachelist, still needed under NS.
10226 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10227 (struct widget_value): Define it here for menu.c.
10228 * keymap.c (includes): Include modifier internals.
10229 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10230 NS.
10231 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10232 support for preferring sequences using certain modifiers, specified by
10233 the FIRSTONLY argument.
10234 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10235 under NS GNUstep implementation.
10236 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10237 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10238 * menu.c: Include nsterm.h under NS.
10239 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10240 (free_menubar_widget_tree_value, update_submenu_strings)
10241 (find_and_call_menu_selection): Treat NS as X and NT.
10242 (find_and_return_menu_selection): New function, used for popup menus.
10243 * nsgui.h:
10244 * nsterm.h:
10245 * nsfns.m:
10246 * nsimage.m:
10247 * nsmenu.m:
10248 * nsselect.m:
10249 * nsterm.m: New files.
10250 * process.c (wait_reading_process_output): Under NS, call ns_select()
10251 instead of plain select().
10252 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10253 beginning of buffer.
10254 * sysselect.h (init_process): Rename when compiling under Cocoa to
10255 avoid name conflict.
10256 * termhooks.h (display_info): Add ns_display_info to union.
10257 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10258 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10259 COCOA environment.
10260 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10261 unexec() signature. (Note, this will dump, but the resulting file
10262 crashes; unexosx is used instead; keeping around for reference and
10263 possible aid in getting dump working under GNUstep.)
10264 * w32gui.h (button_type, widget_value): Remove definitions (now in
10265 keyboard.h).
10266 * window.c: Include nsterm.h when compiling under NS.
10267 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10268 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10269 other GUI windowing systems.
10270 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10271 GTK.
10272 (x_consider_frame_title): Under NS, set icon type and frame
10273 modified-state indicator; use ns_set_name_as_filename() when using
10274 formatted title.
10275 (update_window_cursor): Make public when compiling under NS.
10276 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10277 (hourglass_atimer, Vhourglass_delay
10278 * xfaces.c (header section, init_frame_faces, clear_font_table)
10279 (defined_color, unload_color, x_face_list_fonts)
10280 (prepare_face_for_display): Add NS support parallel to other GUIs.
10281 Emulate GCs like other non-X GUIs.
10282 (split_font_name): Don't lowercase font name under NS.
10283 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10284 under NS.
10285 * s/darwin.h: Add support for compilation under NS.
10286
102872008-07-15 Jason Rumney <jasonr@gnu.org>
10288
10289 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10290 (w32_show_hourglass): Rename from show_hourglass.
10291 (w32_hide_hourglass): Rename from hide_hourglass.
10292 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10293 (Vhourglass_delay): Declare extern.
10294 (hourglass_started): Remove.
10295
10296 * xdisp.c (Vhourglass_delay): Remove static.
10297 (hourglass_started, start_hourglass, cancel_hourglass):
10298 Don't include these versions on WINDOWSNT.
10299
103002008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10301
10302 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10303 variables (formerly in xfns.c).
10304 (show_hourglass, hide_hourglass): New prototypes (same).
10305 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10306 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10307 in xfns.c).
10308 (syms_of_xdisp): Declare/initialize display-hourglass,
10309 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10310 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10311 formerly in xfns.c.
10312 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10313 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10314 (start_hourglass, cancel_hourglass): Remove.
10315 (show_hourglass, hide_hourglass): Remove prototypes and static
10316 modifiers.
10317 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10318 hourglass_atimer, hourglass_shown_p declaration/initialization.
10319 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10320 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10321 (start_hourglass, cancel_hourglass): Remove.
10322 (show_hourglass, hide_hourglass): Remove prototypes and static
10323 modifiers.
10324 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10325 hourglass_atimer, hourglass_shown_p declaration/initialization.
10326 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10327 (DEFAULT_HOURGLASS_DELAY): Remove.
10328 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10329 hourglass_shown_p declaration/initialization.
10330
103312008-07-14 Jason Rumney <jasonr@gnu.org>
10332
10333 * w32fns.c (w32_get_arg): Remove wrapper function.
10334 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10335 directly.
10336 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10337
103382008-07-14 Kenichi Handa <handa@m17n.org>
10339
10340 * xfont.c (xfont_open): Add workaround for X's bug.
10341
103422008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10343
10344 * fontset.c: Include <stdio.h> unconditionally.
10345
103462008-07-13 Michael Albinus <michael.albinus@gmx.de>
10347
10348 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10349 for filtering.
10350
103512008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10352
10353 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10354
10355 * m/macppc.h:
10356 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10357
10358 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10359 (SPECIAL_EMACS_INT):
10360 * m/ia64.h (SPECIAL_EMACS_INT):
10361 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10362 * s/gnu.h (NLIST_STRUCT):
10363 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10364 * s/gnu-linux.h (LINUX):
10365 * s/msdos.h (HAVE_FACES):
10366 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10367
10368 * systty.h:
10369 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10370 anymore.
10371
103722008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10373
10374 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10375 always defined as int.
10376
10377 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10378 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10379 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10380 * s/freebsd.h (HAVE_WAIT_HEADER):
10381 * s/bsd-common.h (HAVE_UNION_WAIT):
10382 * s/aix4-2.h (HAVE_WAIT_HEADER):
10383 * m/mips.h (HAVE_UNION_WAIT):
10384 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10385 (COFF, static): Do not define, they are undefined later in the file.
10386
10387 * process.c (update_status): Don't use a union.
10388 (status_convert):
10389 (sigchld_handler): Use int instead of WAITTYPE.
10390
103912008-07-12 Chong Yidong <cyd@stupidchicken.com>
10392
10393 * indent.c (Fvertical_motion): Restore hscroll before moving to
10394 goal column.
10395
103962008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10397
10398 * lisp.h: Remove left over code.
10399
104002008-07-11 Andreas Schwab <schwab@suse.de>
10401
10402 * lisp.h: Fix logic in last change.
10403
10404 * menu.h: New file.
10405 * menu.c: Include it.
10406 * xmenu.c: Likewise.
10407 * Makefile.in: Update dependencies.
10408
104092008-07-11 Kenichi Handa <handa@m17n.org>
10410
10411 * fontset.c (fontset_from_font): Cancel the previous change.
10412
104132008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 * lisp.h:
10416 * w32heap.c:
10417 * emacs.c:
10418 * alloc.c: Replace all references of NO_UNION_TYPE with
10419 USE_LISP_UNION_TYPE.
10420
10421 * m/xtensa.h (NO_UNION_TYPE):
10422 * m/vax.h (NO_UNION_TYPE):
10423 * m/template.h (NO_UNION_TYPE):
10424 * m/sparc.h (NO_UNION_TYPE):
10425 * m/mips.h (NO_UNION_TYPE):
10426 * m/macppc.h (NO_UNION_TYPE):
10427 * m/m68k.h (NO_UNION_TYPE):
10428 * m/iris4d.h (NO_UNION_TYPE):
10429 * m/intel386.h (NO_UNION_TYPE):
10430 * m/ibms390x.h (NO_UNION_TYPE):
10431 * m/ibms390.h (NO_UNION_TYPE):
10432 * m/ibmrs6000.h (NO_UNION_TYPE):
10433 * m/ia64.h (NO_UNION_TYPE):
10434 * m/hp800.h (NO_UNION_TYPE):
10435 * m/arm.h (NO_UNION_TYPE):
10436 * m/amdx86-64.h (NO_UNION_TYPE):
10437 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10438 defining it the same.
10439
104402008-07-10 Chong Yidong <cyd@stupidchicken.com>
10441
10442 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10443
104442008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10445
10446 * fileio.c:
50426a04 10447 * sysdep.c:
aac0c6e3
MR
10448 * systty.h:
10449 * m/ibmrs6000.h:
10450 * m/iris4d.h:
10451 * s/aix4-2.h:
10452 * s/freebsd.h:
10453 * s/gnu-linux.h:
10454 * s/hpux10-20.h:
10455 * s/hpux11.h:
10456 * s/netbsd.h:
10457 * s/sol2-3.h:
10458 * s/sol2-4.h:
10459 * s/sol2.h:
10460 * s/usg5-4.h:
10461 * s/vms.h: Remove references to unused variables.
10462
104632008-07-10 Andreas Schwab <schwab@suse.de>
10464
10465 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10466 pattern before matching the generic family.
10467
104682008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10469
10470 * unexec.c:
10471 * s/vms.h:
10472 * s/usg5-4-2.h:
10473 * s/sol2-5.h:
10474 * s/freebsd.h:
10475 * s/darwin.h: Remove dead code.
10476
10477 * m/template.h:
10478 * m/sparc.h:
10479 * m/mips.h:
10480 * m/m68k.h:
10481 * m/iris4d.h:
10482 * m/intel386.h:
10483 * m/ibms390x.h:
10484 * m/ibms390.h:
10485 * m/ia64.h:
10486 * m/hp800.h:
10487 * m/arm.h:
10488 * m/amdx86-64.h: Remove dead code and references to unused
10489 and compiler defined symbols.
10490
10491 * unexmips.c:
10492 * unexelf.c: Remove references to desupported systems.
10493
10494 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10495
10496 * m/powermac.h: Remove boilerplate comments.
10497 (NO_REMAP): Remove unused definition.
10498
10499 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10500 define them.
10501
105022008-07-10 Kenichi Handa <handa@m17n.org>
10503
10504 * xfont.c (xfont_open): Log the reason of failure.
10505
105062008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10507
10508 * fontset.c (fontset_get_font_group):
10509 * font.c (font_check_otf): Specify argument types.
10510
105112008-07-09 Kenichi Handa <handa@m17n.org>
10512
10513 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10514 non-ASCII char is found.
10515
10516 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10517 (reorder_font_vector): Change the arg preferred_family to font.
10518 Prefer the spec matching with font.
10519 (fontset_get_font_group): New function.
10520 (fontset_find_font): Change the format of an element of a realized
10521 fontset. Use fontset_get_font_group.
10522 (fontset_font): Try the current fontset, the default fontset, the
10523 fallbacks of the current fontset, and the fallbacks of the default
10524 fontset in this order.
10525 (face_for_char): Delete the shortcut to use the current font.
10526 (fontset_from_font): Don't set fonts for Latin in the fontset.
10527
10528 * font.h (font_make_object, font_match_p): Adjust prototypes.
10529
10530 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10531
10532 * font.c (font_make_object): New arg entity and pixelsize.
10533 (font_check_otf_features, font_check_otf): New functions.
10534 (font_match_p): Check :lang, :script, and :otf properties.
10535
10536 * xfont.c (xfont_open): Adjust it for the change of
10537 font_make_object.
10538 (xfont_text_extents): Fix initial setting of metrics.
10539
10540 * ftfont.c (struct ftfont_info): New member index, delete member
10541 fc_charset_idx. Make the member order compatible with struct
10542 xftfont_info.
10543 (fc_charset_table): Change charset names to registry names.
10544 (ftfont_pattern_entity): Delete the args registry and
10545 fc_charset_idx. Change the value of :font-entity property
10546 to (FONTNAME . INDEX). Always set :registry property to
10547 `iso10646-1'.
10548 (struct ftfont_cache_data): New struct.
10549 (ftfont_lookup_cache): New arg for_face.
10550 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10551 (ftfont_driver): Set the member otf_capability.
10552 (ftfont_get_charset): Adjust it for the change of
10553 fc_charset_table.
10554 (OTF_TAG_SYM): New macro.
10555 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10556 for the change of fc_charset_table.
10557 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10558 ftfont_pattern_entity. Add FC_INDEX to objset.
10559 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10560 and ftfont_pattern_entity.
10561 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10562 font_make_object, struct ftfont_info.
10563 (ftfont_has_char): Use ftfont_get_fc_charset.
10564 (ftfont_otf_features, ftfont_otf_capability): New functions.
10565 (ftfont_shape): Use ftfont_get_otf.
10566 (ftfont_text_extents): Fix initial setting of metrics.
10567
10568 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10569 member order compatible with struct ftfont_info.
10570 (xftfont_open): Add FC_CHARSET to the pattern. Set
10571 xftfont_info->ft_size. Don't unlock the face. Check BDF
10572 properties if appropriate.
10573 (xftfont_close): Unlock the face.
10574 (xftfont_anchor_point, xftfont_shape): Deleted.
10575 (syms_of_xftfont): Don't set members anchor_point and shape of
10576 xftfont_driver.
10577
10578 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10579 font_make_object.
10580
10581 * w32font.c (w32font_open): Adjust it for the change of
10582 font_make_object.
10583 (w32font_open_internal): Don't set properties of font_object here.
10584
105852008-07-08 Chong Yidong <cyd@stupidchicken.com>
10586
10587 * macfns.c (x_create_tip_frame):
10588 * w32fns.c (x_create_tip_frame):
10589 * xfns.c (x_create_tip_frame): Pass parameter argument to
10590 face-set-after-frame-default.
10591
10592 * xfaces.c (Finternal_merge_in_global_face): Save merged
10593 attributes for the default face back into the face vector.
10594
105952008-07-08 Andreas Schwab <schwab@suse.de>
10596
10597 * fontset.h: Declare fontset_from_font. Don't declare
10598 new_fontset_from_font and fontset_from_font_name.
10599 * xterm.c: Include "fontset.h".
10600 * Makefile.in (xterm.o): Update dependencies.
10601
106022008-07-08 Glenn Morris <rgm@gnu.org>
10603
10604 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10605 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10606
106072008-07-07 Chong Yidong <cyd@stupidchicken.com>
10608
10609 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10610 (x_set_frame_parameters): Don't bind it.
10611
106122008-07-07 Juanma Barranquero <lekktu@gmail.com>
10613
10614 * w32fns.c (map_w32_filename): Declare extern.
10615
106162008-07-07 Jason Rumney <jasonr@gnu.org>
10617
10618 * w32term.c (WS_EX_LAYERED): Define if not already.
10619
106202008-07-06 Chong Yidong <cyd@stupidchicken.com>
10621
10622 * xfaces.c (set_font_frame_param): Don't try to set the font
10623 parameter if it is still unspecified in the lface.
10624
106252008-07-05 Chong Yidong <cyd@stupidchicken.com>
10626
10627 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10628 face if it didn't already exist.
10629
10630 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10631
106322008-07-05 Andreas Schwab <schwab@suse.de>
10633
10634 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10635
106362008-07-05 Chong Yidong <cyd@stupidchicken.com>
10637
10638 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10639 word-wrapping.
10640 (IT_DISPLAYING_WHITESPACE): New macro.
10641 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10642 when word-wrapping. Simplify word-wrapping logic. Use correct
10643 pixel positions when saving copies of the iterator.
10644 (display_line): Use proper wrap point if the last character on a
10645 line was preceded by whitespace.
10646
106472008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10648
10649 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10650
106512008-07-04 Kenichi Handa <handa@m17n.org>
10652
10653 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10654
10655 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10656
106572008-07-02 Jason Rumney <jasonr@gnu.org>
10658
10659 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10660 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10661
10662 * xdisp.c (next_element_from_display_vector): Move assignment out
10663 of if statement.
10664
106652008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10666
10667 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10668
10669 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10670 (syms_of_fileio): Initialize and export them.
10671 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10672
10673 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10674 (Fsystem_move_file_to_trash): New function.
10675 (syms_of_w32fns): Export it to lisp.
10676
106772008-07-01 Jason Rumney <jasonr@gnu.org>
10678
10679 * w32font.c (w32font_text_extents): Don't count overhang as part
10680 of width.
10681
106822008-06-30 Miles Bader <miles@gnu.org>
10683
10684 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10685 Add `avoid_cursor_p' field.
10686
10687 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10688 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10689 (append_glyph, append_composite_glyph, produce_image_glyph)
10690 (append_stretch_glyph): Initialize avoid_cursor_p.
10691 (get_it_property): Rename from `get_line_height_property'.
10692 (x_produce_glyphs): Use get_it_property.
10693 (handle_line_prefix, push_display_prop): New functions.
10694 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10695 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10696 New variables.
10697 (syms_of_xdisp): Initialize them.
10698
106992008-06-30 Kenichi Handa <handa@m17n.org>
10700
10701 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10702 XftDefaultSubstitute (they are called in XftFontMatch).
10703 (xftfont_open): Fix args to ftfont_font_format.
10704
10705 * ftfont.c (fc_charset_table): New member lang.
10706 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10707 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10708 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10709 (ftfont_open): Fix args to ftfont_font_format.
10710 (ftfont_font_format): New arg filename.
10711
107122008-06-30 Chong Yidong <cyd@stupidchicken.com>
10713
10714 * xfaces.c (Finternal_merge_in_global_face): If default face was
10715 modified, realize it again. Update the font face attribute.
10716
107172008-06-29 Jason Rumney <jasonr@gnu.org>
10718
10719 * w32term.c (x_set_frame_alpha): Fix logic.
10720
107212008-06-29 Kenichi Handa <handa@m17n.org>
10722
10723 * fontset.c (Finternal_char_font): Return font-object instead of
10724 font-name.
10725
10726 * composite.c (get_composition_id): Fix the width calculation for TAB.
10727
107282008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10729
10730 * indent.c (Fvertical_motion): Properly handle float column arg.
10731
107322008-06-28 Jason Rumney <jasonr@gnu.org>
10733
10734 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10735 (pfnSetLayeredWindowAttributes): New function pointer.
10736 (w32_initialize): Initialize it when supported.
10737 (x_set_frame_alpha): New function.
10738
10739 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10740 (w32_frame_parm_handlers): Set alpha handler.
10741
10742 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10743
107442008-06-27 Jason Rumney <jasonr@gnu.org>
10745
10746 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10747 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10748 (w32_to_x_charset, x_to_w32_charset)
10749 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10750 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10751 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10752 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10753 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10754 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10755 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10756 (Qw32_charset_unicode): Remove.
10757 (syms_of_w32fns): Update for above changes.
10758
10759 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10760 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10761 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10762 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10763 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10764 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10765 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10766 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10767 (syms_of_w32font): Update for above changes.
10768
107692008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10770
10771 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10772 removed #if.
10773 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10774
107752008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 10776 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
10777
10778 * makefile.w32-in (LOCAL_FLAGS):
10779 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10780
10781 * sysdep.c (_spawnlp, _getpid):
10782 Declare with explicit _cdecl instead of _CRTAPI1.
10783
10784 * editfns.c (Fget_internal_run_time):
10785 Check for WINDOWSNT with #ifdef, not #if.
10786
107872008-06-26 Jason Rumney <jasonr@gnu.org>
10788
10789 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10790
10791 * w32term.c (x_draw_glyph_string_foreground)
10792 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10793 Use FONT_HANDLE macro.
10794 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10795
10796 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10797 (uniscribe_encode_char): Use FONT_HANDLE macro.
10798
10799 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10800 (w32font_text_extents): Use precast w32_font.
10801 (w32font_close): Free cached metrics.
10802 (w32font_open_internal): Allocate space for name on stack.
10803
108042008-06-26 Chong Yidong <cyd@stupidchicken.com>
10805
10806 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10807
108082008-06-26 Jason Rumney <jasonr@gnu.org>
10809
10810 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10811 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10812
108132008-06-26 Juanma Barranquero <lekktu@gmail.com>
10814
10815 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10816
108172008-06-26 Jason Rumney <jasonr@gnu.org>
10818
10819 * w32bdf.c, w32bdf.h: Remove obsolete files.
10820
10821 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10822
10823 * w32gui.h: Don't include w32bdf.h.
10824 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10825 Remove obsolete font support.
10826
10827 * w32font.h (struct w32font_info): Remove compat_w32_font.
10828 Add hfont member.
10829 (FONT_COMPAT): Remove obsolete macro.
10830
10831 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10832 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10833 (w32font_open_internal): Remove compat code. Set new hfont member.
10834 (Fx_select_font): Use new hfont member.
10835
10836 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10837 (uniscribe_encode_char): Use new hfont member.
10838
10839 * w32term.c (x_draw_glyph_string_foreground)
10840 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10841 (x_draw_glyph_string): Use metrics in w32font_info.
10842
108432008-06-26 Kenichi Handa <handa@m17n.org>
10844
10845 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10846
108472008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10848
10849 * unexnext.c:
10850 * m/ews4800.h:
10851 * m/hp9000s300.h:
10852 * m/ibm370aix.h:
10853 * m/mips-siemens.h:
10854 * m/ncr386.h:
10855 * m/next.h:
10856 * m/pmax.h:
10857 * m/powerpcle.h:
10858 * m/tandem-s2.h:
10859 * s/386bsd.h:
10860 * s/bsd386.h:
10861 * s/bsd4-1.h:
10862 * s/bsd4-2.h:
10863 * s/bsdos2-1.h:
10864 * s/bsdos2.h:
10865 * s/bsdos3.h:
10866 * s/bsdos4.h:
10867 * s/nextstep.h:
10868 * s/ultrix4-3.h:
10869 * s/usg5-0.h:
10870 * s/usg5-2-2.h:
10871 * s/usg5-2.h:
10872 * s/usg5-4-3.h:
10873 * s/ux4800.h:
10874 * s/uxpds.h:
10875 * s/uxpv.h: Remove support for obsolete systems.
10876 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10877 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10878 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10879 Remove, insert contents in s/aix4-2.h.
10880 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10881 * s/bsd4-3.h: Rename to ...
10882 * s/bsd-common.h: ... this.
10883 * data.c:
10884 * doc.c:
10885 * ecrt0.c:
10886 * emacs.c:
10887 * fileio.c:
10888 * floatfns.c:
10889 * keyboard.c:
10890 * mem-limits.h:
10891 * print.c:
10892 * process.c:
10893 * sysdep.c:
10894 * syssignal.h:
10895 * systty.h:
10896 * syswait.h:
10897 * term.c:
10898 * unexec.c:
10899 * unexelf.c:
10900 * unexhp9k800.c:
10901 * m/hp800.h:
10902 * m/ibmrs6000.h:
10903 * m/mips.h:
10904 * m/vax.h:
10905 * s/darwin.h:
10906 * s/freebsd.h:
10907 * s/gnu.h:
10908 * s/ms-w32.h:
10909 * s/msdos.h:
10910 * s/netbsd.h:
10911 * s/template.h: Remove references to obsolete variables.
10912
10913 * Makefile.in: Add dependencies for all unexec files.
10914 (admindir): Remove unused variable.
10915 (UNEXEC_SRC): Remove references.
10916
109172008-06-25 Chong Yidong <cyd@stupidchicken.com>
10918
10919 * xfns.c (x_default_font_parameter): If Xft is available, first
10920 try Monospace-12 for the default font.
10921
109222008-06-25 Jason Rumney <jasonr@gnu.org>
10923
10924 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10925
109262008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10927
10928 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10929
10930 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10931
109322008-06-25 Juanma Barranquero <lekktu@gmail.com>
10933
10934 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10935 <scroll-conservatively>: Fix typo in docstring.
10936
10937 * xselect.c (Fx_send_client_event): Doc fix.
10938
109392008-06-25 Kenichi Handa <handa@m17n.org>
10940
10941 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10942
10943 * font.c (font_parse_fcname): Remove unused variables.
10944 (font_sort_entites): Delete the arg SPEC. Caller changed.
10945 Fix for the case of ! best_only.
10946 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10947
10948 * lisp.h (Fstring_to_unibyte): EXFUN it.
10949
10950 * character.h (str_to_unibyte): Extern it.
10951
10952 * character.c (str_to_unibyte): New function.
10953
10954 * fns.c (Fstring_to_unibyte): New function.
10955 (syms_of_fns): Defsubr it.
10956
109572008-06-24 Kenichi Handa <handa@m17n.org>
10958
10959 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10960 DPI too.
10961 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10962
109632008-06-24 Andreas Schwab <schwab@suse.de>
10964
10965 * Makefile.in (${lispsource}loaddefs.el): Rename from
10966 ../lisp/loaddefs.el.
10967 (bootstrap-clean): Do what distclean does but don't remove
10968 Makefile.
10969 (distclean): Depend on bootstrap-clean and remove Makefile.
10970
109712008-06-24 Chong Yidong <cyd@stupidchicken.com>
10972
10973 * buffer.h (struct buffer): New member word_wrap.
10974
10975 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10976 word-wrap.
10977 (init_buffer_once): Initialize them.
10978
10979 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10980 line_wrap enum possessing three possible values.
10981
10982 * termopts.h: Replace truncate_partial_width_windows with
10983 Vtruncate_partial_width_windows.
10984
10985 * dispnew.c (direct_output_for_insert): Avoid direct output when
10986 inserting a space with word wrap on.
10987
10988 * indent.c (compute_motion): Obey integer values of
10989 truncate-partial-width-windows.
10990
10991 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10992 replacing truncate_partial_width_windows.
10993 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10994 truncate only if the window width is below that integer.
10995 (start_display, resize_mini_window, produce_stretch_glyph)
10996 (display_string, move_it_in_display_line_to): Use line_wrap.
10997 (back_to_previous_visible_line_start, reseat_1): Reset
10998 string_from_display_prop_p.
10999 (display_line): Extend default face to end of line when wrapping.
11000
110012008-06-24 Kim F. Storm <storm@cua.dk>
11002
11003 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11004 to wrap continued lines at word boundaries.
11005
110062008-06-24 Jason Rumney <jasonr@gnu.org>
11007
11008 * font.c (Ffont_face_attributes): Multiply pixel size before point
11009 conversion to avoid multiplying rounding error.
11010
110112008-06-23 Jason Rumney <jasonr@gnu.org>
11012
11013 * w32term.c (x_draw_glyph_string_background)
11014 (x_draw_glyph_string): Remove old bdf font code.
11015
11016 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11017
110182008-06-22 Kenichi Handa <handa@m17n.org>
11019
11020 * font.c (font_find_for_lface): Try the adstyle specified in
11021 the property of LFACE_FONT of LFACE (if any).
11022
110232008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11024 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11025
11026 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11027
110282008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11029
11030 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11031 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11032 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11033 (witness-emacs): Remove.
11034 (lisp, shortlisp): Move loaddefs.el earlier.
11035 (mostlyclean): Forget about witness-emacs.
11036
110372008-06-22 Glenn Morris <rgm@gnu.org>
11038
11039 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11040 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11041
110422008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11043
11044 * Makefile.in (PRECOMP): Remove.
11045 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11046 (witness-emacs): Run `compile-first'.
11047 (.el.elc): Use the new compile-onefile target.
11048
110492008-06-21 Kenichi Handa <handa@m17n.org>
11050
11051 * xftfont.c (xftfont_open): Handle QCembolden only when
11052 FC_EMBOLDEN is defined.
11053
110542008-06-21 Andreas Schwab <schwab@suse.de>
11055
11056 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11057 (.el.elc): Likewise.
11058
110592008-06-21 Miles Bader <miles@gnu.org>
11060
11061 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11062 build dir, not the lisp source dir.
11063
110642008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11065
11066 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11067 (bootstrapclean): Remove.
11068 (.el.elc): New rule.
11069 (PRECOMP): New var.
11070 (../lisp/subdirs.el): Remove.
11071 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11072 (witness-emacs): New target.
11073 (mostlyclean): Remove witness-emacs as well.
11074 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11075 Add witness-emacs dependency.
11076
110772008-06-20 Chong Yidong <cyd@stupidchicken.com>
11078
11079 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11080 defined by the font.
11081
110822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11083
11084 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11085 (bootstrap-clean): New target that keeps TAGS around.
11086 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11087 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11088
110892008-06-20 Jason Rumney <jasonr@gnu.org>
11090
11091 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11092 Remove obsolete font code.
11093
11094 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11095 to determine language support.
11096
110972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11098
11099 * sysdep.c (cfsetspeed): New fun extracted from the code.
11100 (cfmakeraw): Move before first use.
11101
111022008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11103
11104 * sysdep.c (cfmakeraw): Provide fallback implementation.
11105 (serial_configure): Provide fallback implementation of cfsetspeed.
11106
111072008-06-20 Kenichi Handa <handa@m17n.org>
11108
11109 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11110 the pattern.
11111
11112 * fontset.c (fontset_from_font): Copy font_spec before changing
11113 the elements.
11114
11115 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11116
111172008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11118
11119 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11120 for explicit `font' parameters.
11121
11122 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11123
111242008-06-19 Kenichi Handa <handa@m17n.org>
11125
11126 * frame.c: Include <ctype.h>.
11127 (x_set_font_backend): Allow spacing characters in the X resource
11128 for FontBackend.
11129
111302008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11131
11132 * w32fns.c, xfns.c (Qfont_param): New var.
11133 (syms_of_w32fns): Initialize it.
11134 (x_default_font_parameter): Record explicit `font' into
11135 `font-parameter'.
11136
111372008-06-18 Kenichi Handa <handa@m17n.org>
11138
11139 * font.c (font_parse_xlfd): Fix previous change.
11140 (font_parse_fcname): Don't use :fc-unknown-spec.
11141 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11142 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11143 (font_add_log): Prepend the driver name to the resulting fonts.
11144
11145 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11146 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11147 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11148
11149 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11150 (QCembolden): New variables.
11151 (syms_of_xftfont): DEFSYM them.
11152 (xftfont_open): Call XftFontMatch. Don't trust the result of
11153 XftTextExtents8 if the pixel_size is less than 5.
11154
111552008-06-18 Andreas Schwab <schwab@suse.de>
11156
11157 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11158 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11159
111602008-06-18 Jason Rumney <jasonr@gnu.org>
11161
11162 * w32font.c (w32font_list, w32font_match): Add logging.
11163
11164 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11165
111662008-06-17 Chong Yidong <cyd@stupidchicken.com>
11167
11168 * font.c (font_parse_fcname): Store divider characters for
11169 unknown-spec list. For known key symbols, intern using correct
11170 symbol name.
11171
111722008-06-17 Kenichi Handa <handa@m17n.org>
11173
11174 * xfaces.c (realize_default_face): If the frame is not on window
11175 system, set the fontset of face to nil.
11176
111772008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11178
11179 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11180
111812008-06-16 Juanma Barranquero <lekktu@gmail.com>
11182
11183 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11184 (build_font_name_from_vector): Delete externs.
11185
11186 * xfaces.c (struct font_name): Don't declare.
11187
111882008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11189
11190 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11191
111922008-06-16 Chong Yidong <cyd@stupidchicken.com>
11193
11194 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11195
111962008-06-16 Juanma Barranquero <lekktu@gmail.com>
11197
11198 * font.c (Ffont_spec): Fix usage in docstring.
11199 (Ffont_face_attributes): Doc fix.
11200
112012008-06-16 Andreas Schwab <schwab@suse.de>
11202
11203 * font.c (Ffont_face_attributes): Fix definition.
11204
112052008-06-16 Jason Rumney <jasonr@gnu.org>
11206
11207 * font.h (font_style_symbolic_from_value): Remove.
11208
11209 * font.c (font_style_symbolic_from_value): Remove.
11210 (font_style_symbolic): Revert to pre 2008-06-13 version.
11211
11212 * w32font.c (w32_to_fc_weight): New function.
11213 (w32font_full_name, logfont_to_fcname): Use it.
11214
112152008-06-16 Kenichi Handa <handa@m17n.org>
11216
11217 * font.c (font_check_object): Delete it.
11218 (font_clear_cache): Check if a font-object is alive.
11219 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11220 font-object to nil.
11221 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11222 (font_at): Don't call font_check_object.
11223 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11224
112252008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11226
11227 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11228
112292008-06-16 Chong Yidong <cyd@stupidchicken.com>
11230
11231 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11232
112332008-06-15 Chong Yidong <cyd@stupidchicken.com>
11234
11235 * font.c (font_parse_fcname): Only one decimal point.
11236 (font_unparse_fcname): Handle data in family and foundry indices
11237 as symbols, not strings.
11238 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11239
11240 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11241
11242 * font.h (font_unparse_gtkname): Add prototype.
11243
112442008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11245
11246 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11247
112482008-06-15 Andreas Schwab <schwab@suse.de>
11249
11250 * font.c (font_update_drivers): Fix crash when no drivers match.
11251
112522008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11253
11254 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11255 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11256
112572008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11258
11259 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11260
112612008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11262
11263 * process.c (Fserial_process_configure, Fprocess_send_eof):
11264 Use EQ to compare Lisp_Objects.
11265
112662008-06-13 Jason Rumney <jasonr@gnu.org>
11267
11268 * w32fns.c (Fw32_select_font): Remove old font API function.
11269
11270 * w32font.c (logfont_to_fcname): New function.
11271 (Fx_select_font): New font dialog function compatible with
11272 GTK/fontconfig version.
11273
11274 * font.c (font_style_symbolic_from_value): New function.
11275 (font_style_symbolic): Use it.
11276
11277 * font.h (font_style_symbolic_from_value): Declare new function.
11278
112792008-06-13 Juanma Barranquero <lekktu@gmail.com>
11280
11281 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11282 <font-width-table>: Fix typos in docstrings.
11283
112842008-06-13 Daniel Engeler <engeler@gmail.com>
11285
11286 These changes add serial port access.
11287 * process.c: Add HAVE_SERIAL.
11288 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11289 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11290 (list_processes_1, select_wrapper, Fstop_process)
11291 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11292 (status_notify): Modify to handle serial processes.
11293 [HAVE_SERIAL] (Fserial_process_configure)
11294 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11295 New functions.
11296 * process.h (struct Lisp_Process): Add `type'.
11297 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11298 New functions.
11299 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11300 serial ports.
b71ac3dd 11301 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11302 * w32.h: Add FILE_SERIAL.
11303 (struct _child_process): Add ovl_read, ovl_write.
11304
113052008-06-13 Kenichi Handa <handa@m17n.org>
11306
11307 * dispextern.h (enum lface_attribute_index): New member
11308 LFACE_FOUNDRY_INDEX.
11309
11310 * font.c (font_score): Delete arg alternate_families. Check only
11311 weight, slant, width, and size. Ignore the difference of alias
11312 style symbols.
11313 (font_sort_entites): Adjust for the above change. Reflect the
11314 order of font-driver to scores.
11315 (font_list_entities): Don't check alternate_familes here.
11316 (font_clear_prop): Handle foundry.
11317 (font_update_lface): Don't parse "foundry-family" form here.
11318 Handle FONT_FOUNDRY_INDEX.
11319 (font_find_for_lface): Likewise. Handle alternate families here.
11320 If registry is nil, try iso8859-1 and ascii-0.
11321 (font_open_for_lface): Pay attention to size in ENTITY.
11322 (font_open_by_name): Simplify by calling font_load_for_lface.
11323 (free_font_driver_list): Delete it.
11324 (font_update_drivers): Preserve the order of backends.
11325 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11326 of font_score and font_sort_entites.
11327 (font_update_sort_order): Likewise.
11328
11329 * xfaces.c (LFACE_FOUNDRY): New macro.
11330 (check_lface_attrs): Check foundry.
11331 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11332 (merge_face_vectors): Check foundry.
11333 (merge_face_ref): Likewise.
11334 (Finternal_set_lisp_face_attribute): Likewise.
11335 (x_update_menu_appearance): Likewise.
11336 (Finternal_get_lisp_face_attribute): Likewise.
11337 (lface_hash): Likewise.
11338 (lface_same_font_attributes_p): Likewise.
11339 (x_supports_face_attributes_p): Likewise.
11340 (tty_supports_face_attributes_p): Likewise.
11341 (Finternal_set_alternative_font_family_alist): Intern strings.
11342 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11343 (realize_default_face): Set LFACE_FOUNDRY (lface).
11344
11345 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11346 font-driver at first.
11347
11348 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11349
113502008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11351
11352 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11353
113542008-06-12 Jim Meyering <meyering@redhat.com>
11355
11356 Make unexec_free handle NULL the same way free does.
11357 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11358
113592008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11360
11361 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11362 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11363 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11364 (WEAK_ALIAS): Simplify.
11365 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11366 when searching a unibyte buffer.
11367
113682008-06-12 Chong Yidong <cyd@stupidchicken.com>
11369
11370 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11371
113722008-06-12 Juanma Barranquero <lekktu@gmail.com>
11373
11374 * w32font.c: Include ctype.h.
11375
113762008-06-11 Jason Rumney <jasonr@gnu.org>
11377
11378 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11379 misreported as space.
11380 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11381 as aliases for registry iso10646-1.
11382
113832008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11384
11385 * buffer.c (clone_per_buffer_values): Skip `name'.
11386
113872008-06-11 Chong Yidong <cyd@stupidchicken.com>
11388
11389 * font.c (font_parse_fcname): Fix last change; accept decimal
11390 points in font size.
11391
113922008-06-10 Jason Rumney <jasonr@gnu.org>
11393
11394 * w32uniscribe.c (add_opentype_font_name_to_list):
11395 Skip non unicode fonts.
11396
113972008-06-10 Chong Yidong <cyd@stupidchicken.com>
11398
11399 * xfns.c (Fx_font_dialog): New function.
11400
11401 * gtkutil.c (xg_dialog_response_cb): Rename from
11402 xg_file_response_callback.
11403 (pop_down_dialog): Rename from pop_down_file_dialog.
11404 (xg_get_file_name): Callers changed.
11405 (xg_get_font_name): New function.
11406
11407 * gtkutil.h (xg_get_font_name): Insert prototype.
11408
114092008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11410
11411 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11412 x_underline_minimum_display_offset.
11413 (syms_of_xdisp): Declare it here rather than in xterm.c.
11414 * dispextern.h (underline_minimum_offset): Declare it.
11415 * w32term.c (x_draw_glyph_string): Use it.
11416 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11417 (syms_of_xterm): Don't declare it any more.
11418 (x_draw_glyph_string): Adjust to the new name.
11419
8719abec 114202008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11421
11422 * xterm.c (x_underline_minimum_display_offset): New var.
11423 (x_draw_glyph_string): Use it.
11424 (syms_of_xterm): Declare it.
11425
114262008-06-10 Chong Yidong <cyd@stupidchicken.com>
11427
11428 * font.c (font_parse_fcname): Accept GTK-style font names too.
11429
114302008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11431
11432 * dired.c (file_name_completion): Don't return t if the match is exact
11433 but with different capitalization.
11434 * minibuf.c (Ftry_completion): Simplify.
11435
11436 * window.c (Vwindow_point_insertion_type): New var.
11437 (set_window_buffer): Use it.
11438 (syms_of_window): Init and export it to Lisp.
11439
114402008-06-10 Kenichi Handa <handa@m17n.org>
11441
11442 * font.h (font_intern_prop): Prototype adjusted.
11443
11444 * font.c (font_intern_prop): New arg force_symbol.
11445 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11446 Adjust for the change of font_intern_prop.
11447
11448 * ftfont.c (ftfont_pattern_entity):
11449 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11450 (w32_registry):
11451 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11452 the change of font_intern_prop.
11453
114542008-06-09 Juanma Barranquero <lekktu@gmail.com>
11455
11456 * w32menu.c (digest_single_submenu): Declare extern.
11457
114582008-06-09 Jason Rumney <jasonr@gnu.org>
11459
11460 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11461
11462 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11463 (parse_single_submenu): Remove.
11464 (digest_single_submenu): Remove.
11465 (syms_of_w32menu): Don't initialise variables that have moved
11466 to menu.c.
11467 (set_frame_menubar): Sync with version in xmenu.c.
11468 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11469
11470 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11471 Make static again.
11472
114732008-06-09 Jason Rumney <jasonr@gnu.org>
11474
11475 Changes to w32 files related to the move of common menu code
11476 to menu.c on 2008-06-08 by Chong Yidong.
11477
11478 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11479 defs to w32gui.h.
11480 (single_keymap_panes, push_menu_item, push_menu_pane):
11481 Make globally visible.
11482
11483 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11484 (local_free, malloc_widget_value, free_widget_value)
11485 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11486 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11487 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11488 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11489 (menu_items, menu_items_allocated, menu_items_used)
11490 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11491 (init_menu_items, finish_menu_items, discard_menu_items)
11492 (grow_menu_items, push_submenu_start, push_submenu_end)
11493 (push_left_right_boundary, push_menu_pane, push_menu_item)
11494 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11495 (free_menubar_widget_tree_value, parse_single_submenu)
11496 (update_submenu_strings): Remove functions.
11497 (xmalloc_widget_value): Remove and declare extern.
11498
11499 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11500 (OBJ1): Build it.
11501
11502 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11503 (local_heap, local_alloc, local_free, malloc_widget_value)
11504 (free_widget_value): Define here.
11505
115062008-06-09 Kenichi Handa <handa@m17n.org>
11507
11508 * font.h (Qascii_0): Extern it.
11509
11510 * font.c (Qascii_0): New variable.
11511 (syms_of_font): DEFSYM it.
11512 (font_open_by_name): If the registry "iso8859-1" fails, try also
11513 "ascii-0".
11514
11515 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11516
115172008-06-08 Kenichi Handa <handa@m17n.org>
11518
11519 * .gdbinit (xfont): New command.
11520
115212008-06-08 Andreas Schwab <schwab@suse.de>
11522
11523 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11524 * Makefile.in (menu.o): Update dependencies.
11525
11526 * Makefile.in (obj): Always add menu.o.
11527 * emacs.c (main): Always call syms_of_menu.
11528 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11529
115302008-06-08 Chong Yidong <cyd@stupidchicken.com>
11531
11532 * Makefile.in: Compile menu.c.
11533
11534 * lisp.h: Declare syms_of_menu.
11535
11536 * emacs.c (main): Call syms_of_menu.
11537
11538 * keyboard.h: Relocate platform-independent menu definitions from
11539 xmenu.c.
11540
11541 * menu.c: New file. Relocate platform-independent menu
11542 definitions from xmenu.c. Suggested by Adrian Robert.
11543
11544 * xmenu.c: Remove platform-independent menu definitions.
11545 (menu_items menu_items_inuse, menu_items_allocated)
11546 (menu_items_used, menu_items_n_panes)
11547 (menu_items_submenu_depth): Move to keyboard.h.
11548 (init_menu_items, finish_menu_items, unuse_menu_items)
11549 (discard_menu_items, restore_menu_items, save_menu_items)
11550 (grow_menu_items, push_submenu_start, push_submenu_end)
11551 (push_left_right_boundary, push_menu_pane, push_menu_item)
11552 (keymap_panes, single_keymap_panes, single_menu_item)
11553 (list_of_panes, list_of_items, find_and_call_menu_selection)
11554 (xmalloc_widget_value, free_menubar_widget_value_tree)
11555 (parse_single_submenu, digest_single_submenu)
11556 (update_submenu_strings): Move to menu.c.
11557
115582008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11559
11560 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11561
115622008-06-06 Miles Bader <miles@gnu.org>
11563
11564 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11565 face, not frame default.
11566
115672008-06-05 Martin Rudalics <rudalics@gmx.at>
11568
11569 * window.c (pop_up_windows, pop_up_frames)
11570 (display_buffer_reuse_frames, Vpop_up_frame_function)
11571 (Vdisplay_buffer_function, Veven_window_heights)
11572 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11573 (Vspecial_display_function, Vsame_window_buffer_names)
11574 (Vsame_window_regexps, split_height_threshold)
11575 (Vsplit_window_preferred_function): Move those vars to window.el.
11576 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11577 (Fdisplay_buffer): Move those functions to window.el.
11578 (syms_of_window): Remove corresponding declarations.
11579 (display_buffer): New function.
11580 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11581 * dispnew.c (Flast_nonminibuf_frame): New function.
11582 * buffer.c (Fpop_to_buffer): Move to window.el.
11583
115842008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11585
11586 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11587
115882008-06-05 Kenichi Handa <handa@m17n.org>
11589
11590 * coding.c (detect_coding): Fix previous change.
11591 (detect_coding_system): Likewise.
11592
115932008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11594
11595 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11596
11597 * keymap.c (Vminibuffer_local_filename_must_match_map):
11598 Rename from Vminibuffer_local_must_match_filename_map.
11599 (syms_of_keymap):
11600 * minibuf.c (Fcompleting_read): Adjust accordingly.
11601 * commands.h: Rename declaration as well.
11602
116032008-06-05 Kenichi Handa <handa@m17n.org>
11604
11605 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11606 family name.
11607 (Ffont_put): Likewise.
11608
11609 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11610 current font-spec.
11611
11612 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11613 is unspecified.
11614
11615 * xfaces.c (realize_x_face): If the font-related face attributes
11616 are the same as those of default face, realize a new fontset from
11617 default->fontset.
11618 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11619
116202008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11621
11622 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11623 (move_it_in_display_line): New wrapper.
11624
11625 * window.c (window_scroll_pixel_based_preserve_x)
11626 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11627 (window_scroll_pixel_based, window_scroll_line_based):
11628 Use them to preserve column positions.
11629 (syms_of_window): Initialize them.
11630
11631 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11632 (HPOS . VPOS) pair.
11633
11634 * dispextern.h (move_it_in_display_line): Declare.
11635
116362008-06-05 Juanma Barranquero <lekktu@gmail.com>
11637
11638 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11639 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11640 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11641
116422008-06-04 Juanma Barranquero <lekktu@gmail.com>
11643
11644 * window.c (Fset_window_parameter): Doc fix.
11645 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11646
116472008-06-04 Joakim Verona <joakim@verona.se>
11648
11649 * window.h (struct window): Add new member window_parameters.
11650
11651 * window.c (Fwindow_parameters, Fwindow_parameter)
11652 (Fset_window_parameter): New defuns.
11653 (syms_of_window): Defsubr the new defuns.
11654 (make_window): Initialize window_parameters to nil.
11655
116562008-06-04 John Paul Wallington <jpw@pobox.com>
11657
11658 * eval.c (Fdefmacro): Doc fix.
11659
116602008-06-04 Kenichi Handa <handa@m17n.org>
11661
11662 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11663 Be sure to call setup_coding_system when we find a proper coding system.
11664 (detect_coding_system): Fix handling of coding->head_ascii.
11665
116662008-06-03 Andreas Schwab <schwab@suse.de>
11667
11668 * font.c (font_prop_validate_spacing): Fix last change.
11669
116702008-06-03 Kenichi Handa <handa@m17n.org>
11671
11672 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11673 (font_parse_fcname): Fix handling of unknown key.
11674
11675 * xfont.c (xfont_list): Try an alias.
11676
11677 * charset.c (char_charset): Return NULL if the arg charset_list is
11678 specified and C doesn't belong to any of them.
11679
116802008-06-02 Chip Coldwell <coldwell@redhat.com>
11681
11682 * font.c (font_pixel_size): Don't take cdr of an integer.
11683
116842008-06-02 Jim Meyering <meyering@redhat.com>
11685
11686 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11687 * alloc.c (xfree): Return right away for a NULL arg.
11688 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11689 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11690 * mac.c (create_apple_event_from_event_ref): Likewise.
11691 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11692 Likewise.
11693 * doprnt.c (doprnt1): Likewise.
11694 * frame.c (frame): Likewise.
11695 * keyboard.c (wipe_kboard): Likewise.
11696 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11697 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11698 * term.c (tty_default_color_capabilities, maybe_fatal)
11699 (delete_tty): Likewise.
11700 * w16select.c (string): Likewise.
11701 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11702 * w32bdf.c (w32_free_bdf_font): Likewise.
11703 * w32fns.c (w32_unload_font): Likewise.
11704 * w32font.c (w32font_close): Likewise.
11705 * window.c (size_window): Likewise.
11706 * xselect.c (receive_incremental_selection): Likewise.
11707 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11708 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11709 * w32.c (stat): Likewise.
11710
11711 Remove useless if-before-free tests.
11712 * editfns.c (Fset_time_zone_rule): Likewise.
11713 * lread.c (nosuffix): Likewise.
11714 * ralloc.c (get_bloc): Likewise.
11715 * regex.c (reg_free): Likewise.
11716 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11717 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11718 * xsmfns.c (smc_save_yourself_CB): Likewise.
11719
117202008-06-02 Kenichi Handa <handa@m17n.org>
11721
11722 * font.c (font_find_for_lface): Handle float font size.
11723 (font_open_for_lface): Likewise.
11724
11725 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11726 comparing the properties.
11727
117282008-06-01 Jason Rumney <jasonr@gnu.org>
11729
11730 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11731 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11732 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11733 Don't add empty script list.
11734 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11735
117362008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11737
11738 * Makefile.in (dot, dotdot): Remove, update users.
11739 ".." has been used elsewhere in the file for a long time.
11740 (LIBXT_STATIC): Remove conditional based on unused variable.
11741
117422008-06-01 Miles Bader <miles@gnu.org>
11743
11744 * xfaces.c (Vface_remapping_alist): New variable.
11745 (syms_of_xfaces): Initialize it.
11746 (enum named_merge_point_kind): New type.
11747 (struct named_merge_point): Add `named_merge_point_kind' field.
11748 (push_named_merge_point): Make cycle detection respect different
11749 named-merge-point kinds.
11750 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11751 Remove face-name alias resolution.
11752 (lface_from_face_name): New definition using
11753 `lface_from_face_name_no_resolve'.
11754 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11755 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11756 (get_lface_attributes): New definition that layers face-remapping on
11757 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11758 (lookup_basic_face): New function.
11759 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11760 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11761 `get_lface_attributes'.
11762 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11763 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11764 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11765
11766 * xdisp.c (init_iterator): Pass base_face_id through
11767 `lookup_basic_face' when we actually use it as a face-id.
11768 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11769 DEFAULT_FACE_ID.
11770
11771 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11772 lookup the initial face-id.
11773
11774 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11775
117762008-06-01 Juanma Barranquero <lekktu@gmail.com>
11777
11778 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11779 (Fremove_text_properties): Fix typos in docstrings.
11780
117812008-05-31 Kenichi Handa <handa@m17n.org>
11782
11783 * font.c (font_list_entities): Fix the car part of data to be
11784 stored in the cache.
11785
11786 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11787
117882008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11789
11790 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11791 Add a `test' argument so another predicate than `equal' can be used.
11792 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11793 (map_char_table): Remove unused vars `c' and `i'.
11794 * lisp.h (Foptimize_char_table): Adjust declaration.
11795 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11796
117972008-05-30 Kenichi Handa <handa@m17n.org>
11798
11799 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11800 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11801 defined.
11802
118032008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11804
11805 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11806 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11807 frame-local settings for the same variable.
11808
118092008-05-30 Kenichi Handa <handa@m17n.org>
11810
11811 * fontset.c (Ffont_info): Move to font.c.
11812 (syms_of_fontset): Delete defsubr of Sfont_info.
11813
11814 * font.c (font_style_to_value, font_score): Delete casting of the
11815 args to xstcasecmp.
11816 (register_font_driver): Increment num_font_drivers only when
11817 registering the driver globally.
11818 (Ffont_info): Move from fontset.c. Handle a font object too.
11819 (syms_of_font): Defsubr Sfont_info.
11820
118212008-05-29 Kenichi Handa <handa@m17n.org>
11822
11823 * coding.h (enum define_coding_utf8_arg_index): New enum.
11824 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11825 coding_attr_utf_bom.
11826 (enum utf_bom_type): Rename from utf_16_bom_type.
11827 (struct utf_16_spec): Adjust for the above change.
11828 (struct coding_system): Add utf_8_bom in `spec' union.
11829
11830 * coding.c (CODING_UTF_8_BOM): New macro.
11831 (enum coding_category): Delete coding_category_utf_8, add
11832 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11833 coding_category_utf_8_sig.
11834 (CATEGORY_MASK_UTF_8): Delete it.
11835 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11836 (CATEGORY_MASK_UTF_8_SIG): New macros.
11837 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11838 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11839 CATEGORY_MASK_UTF_8_SIG.
11840 (CATEGORY_MASK_UTF_8): New macro.
11841 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11842 (detect_coding_utf_8): Check BOM.
11843 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11844 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11845 (encode_coding_utf_16): Likewise.
11846 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11847 (detect_coding, detect_coding_system): Handle utf-8-auto.
11848 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11849 (syms_of_coding): Fix setting up of Vcoding_category_table.
11850
118512008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * process.c (Faccept_process_output): If `millisec' is non-nil,
11854 `seconds' default to 0.
11855 (wait_reading_process_output): Also return non-nil if we read output
11856 from a non-running process.
11857
118582008-05-29 Jason Rumney <jasonr@gnu.org>
11859
11860 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11861 `raster' specified.
11862 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11863 in the uniscribe backend, but disallow any font that has no
11864 unicode subrange support.
11865
118662008-05-29 Juanma Barranquero <lekktu@gmail.com>
11867
11868 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11869 Fix typos in docstrings.
11870
118712008-05-29 Kenichi Handa <handa@m17n.org>
11872
11873 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11874 (Fx_family_fonts): Set frame correctly.
11875
118762008-05-28 Jason Rumney <jasonr@gnu.org>
11877
11878 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11879
118802008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11881
11882 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11883 calling build_annotations.
11884
118852008-05-28 Juanma Barranquero <lekktu@gmail.com>
11886
11887 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11888 (Fencode_coding_string):
11889 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11890 <latin-extra-code-table>: Fix typos in docstrings.
11891 (syms_of_coding) <coding-system-alist>: Doc fix.
11892 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11893
118942008-05-28 Kenichi Handa <handa@m17n.org>
11895
11896 * fontset.c (Ffont_info): Don't call font_close_object.
11897
11898 * font.c (font_parse_family_registry): Use Ffont_put to validate
11899 foundry and family.
11900 (font_delete_unmatched): Don't check spacing.
11901 (font_list_entities): Add spacing to the spec to list fonts.
11902
11903 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11904 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11905
11906 * coding.c (encode_coding_raw_text): Fix previous change.
11907 (encode_coding_object): When the dst_object is a buffer and is
11908 different from src_object, move gap to PT.
11909
119102008-05-27 Chong Yidong <cyd@stupidchicken.com>
11911
11912 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11913
119142008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11915
11916 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11917 all branches. Compute it differently.
11918
11919 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11920
119212008-05-27 Juanma Barranquero <lekktu@gmail.com>
11922
11923 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11924 into "else if () ... else ...".
11925
119262008-05-27 Jason Rumney <jasonr@gnu.org>
11927
11928 * w32font.c (w32font_open_internal): Determine if glyph indices
11929 are likely to work here.
11930
119312008-05-27 Chong Yidong <cyd@stupidchicken.com>
11932
11933 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11934 draw overlap glyphs with appropriate highlighting.
11935
119362008-05-27 Kenichi Handa <handa@m17n.org>
11937
11938 * xfont.c (xfont_open): Fix calculation of font->average_width.
11939
119402008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11941
11942 * casefiddle.c (casify_object): Try to guess better whether the
11943 argument is a byte or a char.
11944
119452008-05-26 Andreas Schwab <schwab@suse.de>
11946
11947 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11948 Always send multiples of format size.
11949
11950 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11951
119522008-05-26 Jason Rumney <jasonr@gnu.org>
11953
11954 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11955 (compute_metrics): Don't set failure if we just cleared the cache.
11956 (w32_weight_table): Remove unused variable.
11957 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11958 backwards compatibility.
11959
119602008-05-25 Kenichi Handa <handa@m17n.org>
11961
11962 * w32term.c (x_draw_glyph_string):
11963 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11964
11965 * xfaces.c: Delete unused function prototypes.
11966 (xstrlwr, font_frame): Delete them.
11967 (clear_face_cache): Delete unused variable.
11968
11969 * xftfont.c (xftfont_open): Delete unused variable.
11970 If underline_thickness is not 1, adjust underline_position.
11971
11972 * ftxfont.c (ftxfont_open): Delete unused variable.
11973
11974 * fontset.c (face_for_char): Optimize for the case of no charset
11975 property.
11976
11977 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11978 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11979 (otf_open, font_otf_capability, generate_otf_features)
11980 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11981 Comment out by surrounding "#if 0" and "#endif" for the moment.
11982 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11983 (syms_of_font): Codes for accessing above commented out.
11984
119852008-05-24 Eli Zaretskii <eliz@gnu.org>
11986
11987 * w32proc.c: Include dispextern.h.
11988
11989 * w32.c: Include dispextern.h.
11990
119912008-05-23 Juanma Barranquero <lekktu@gmail.com>
11992
11993 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11994 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11995 Fix typos in docstrings.
11996
119972008-05-23 Jason Rumney <jasonr@gnu.org>
11998
11999 * xsmfns.c: Remove includes that are already included by config.h.
12000
120012008-05-23 Kenichi Handa <handa@m17n.org>
12002
12003 * charset.c (Qemacs, charset_emacs): New variables.
12004 (char_charset): Fix for non-Unicode characters.
12005 (syms_of_charset): Define charset_emacs.
12006
12007 * w32term.c (x_draw_glyph_string): Be sure to update
12008 s->underline_thickness and s->underline_position. Be sure to draw
12009 underline within the current line area.
12010
12011 * xterm.c (x_draw_glyph_string): Be sure to update
12012 s->underline_thickness and s->underline_position. Be sure to draw
12013 underline within the current line area.
12014
12015 * fontset.c: Delete unused variables and add casting for char *
12016 throughout the file.
12017 (fontset_font): Try the fallback fonts of the current fontset
12018 before consulting the default fontset.
12019
12020 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12021
12022 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12023
120242008-05-22 Jason Rumney <jasonr@gnu.org>
12025
12026 * font.c: Don't include strings.h.
12027
12028 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12029
12030 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12031 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12032 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12033 to call xstrcasecmp.
12034
12035 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12036
12037 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12038
12039 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12040
12041 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12042
120432008-05-22 Kenichi Handa <handa@m17n.org>
12044
12045 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12046
12047 * font.c (font_prop_validate_style): Adjust for the format
12048 change of font_style_table.
12049
12050 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12051 two args.
12052
12053 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12054 two args.
12055
120562008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12057
12058 * minibuf.c (keys_of_minibuf): Delete.
12059 * lisp.h (keys_of_minibuf): Delete.
12060 * emacs.c (main): Don't call keys_of_minibuf.
12061
120622008-05-22 Kenichi Handa <handa@m17n.org>
12063
12064 * ftfont.c (ftfont_resolve_generic_family): Rename from
12065 ftfont_list_generic_family. Return a single family for each
12066 generic family.
12067 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12068 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12069 Call font_add_log.
12070 (ftfont_match): Call font_add_log.
12071
12072 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12073 (FONT_DEBUG): Define it.
12074 (font_add_log): Extern it.
12075 (font_assert): Rename from xassert.
12076
12077 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12078 (xfont_list_family): Call font_add_log.
12079 (xfont_match): Likewise.
12080 (memq_no_quit): Delete.
12081
12082 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12083 call of Ffont_xlfd_name.
12084
12085 * xfaces.c (struct table_entry, slant_table, weight_table)
12086 (swidth_table): Move to font.c.
12087
12088 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12089 xassert are changed to font_assert. Delete many unused variables.
12090 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12091 New variables.
12092 (struct table_entry): Move from xfaces.c and modified.
12093 (weight_table, slant_table, width_table): Move from xfaces.c and
12094 contents adjusted for the change of struct table_entry.
12095 (font_style_to_value, font_style_symbolic): Adjust for the
12096 format change of font_style_table.
12097 (font_parse_family_registry): Don't overwrite existing foundry and
12098 family of font_spec.
12099 (font_score): Fix calculation of diff for sizes.
12100 (font_sort_entites): Call font_add_log.
12101 (font_delete_unmatched): Return a newly created list.
12102 (font_list_entities): Fix previous change. Call font_add_log.
12103 (font_matching_entity, font_open_entity, font_close_entity):
12104 Call font_add_log.
12105 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12106 (Finternal_set_font_style_table): Delete.
12107 (BUILD_STYLE_TABLE): New macro.
12108 (build_style_table): New function.
12109 (Vfont_log, font_log_env_checked): New variables.
12110 (font_add_log): New function.
12111 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12112 Declare Lisp variables "font-weight-table", "font-slant-table",
12113 "font-width-table", and "font-log". Initialize font_style_table.
12114
121152008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12116
12117 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12118
121192008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12120 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12121
12122 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12123 (Vframe_alpha_lower_limit): New variable.
12124 (x_set_alpha): New function.
12125
12126 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12127
12128 * xfns.c (x-create-frame, Qalpha):
12129 Initialize the frame parameter `alpha'.
12130 * xterm.c (OPAQUE, OPACITY): New.
12131 (x_set_frame_alpha): New function.
12132 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12133
12134 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12135 * w32fns.c (w32_frame_parm_handlers): Likewise.
12136
121372008-05-20 Jason Rumney <jasonr@gnu.org>
12138
12139 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12140 truetype fonts to opentype list.
12141
121422008-05-20 Juanma Barranquero <lekktu@gmail.com>
12143
12144 * fontset.c (Ffontset_info): Doc fix.
12145 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12146 <ignore-relative-composition>: Fix typos in docstrings.
12147
12148 * font.c (syms-of-font) <font-encoding-alist>:
12149 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12150 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12151 (Ffont_otf_alternates): Doc fixes.
12152
121532008-05-20 Kenichi Handa <handa@m17n.org>
12154
12155 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12156 font.h through out the file.
12157 (FONT_DRIVERS): Rename from FONTOBJ.
12158 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12159 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12160
12161 * emacs.c (main): Call syms_of_font unconditionally.
12162
12163 * font.h (find_font_encoding): Extern it.
12164
12165 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12166 fontset.c.
194d44e7 12167 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12168 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12169 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12170 only when HAVE_WINDOW_SYSTEM is defined.
12171 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12172 when HAVE_WINDOW_SYSTEM is defined.
12173
12174 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12175 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12176
12177 * xfaces.c: Include font.h unconditionally.
12178 (merge_face_ref, merge_face_vectors)
12179 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12180
121812008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12182
12183 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12184 indirect_variable.
12185 * eval.c (lisp_indirect_variable): New fun.
12186 (Fuser_variable_p): Use it.
12187
121882008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12189
12190 * lisp.h (indirect_variable):
12191 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12192 Use Lisp_Symbol pointers rather than Lisp_Object.
12193 Adjust callers.
12194 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12195 To this end, change calling-convention.
12196
12197 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12198 if some non-hidden buffers are selected by string&pred.
12199
122002008-05-19 Chong Yidong <cyd@stupidchicken.com>
12201
12202 * process.c (wait_reading_process_output): Always check status
12203 when in batch mode.
12204
122052008-05-19 Kenichi Handa <handa@m17n.org>
12206
12207 * font.c (font_list_entities): Fix handling of cache.
12208 (font_matching_entity): Likewise.
12209
12210 * ftfont.c (cs_iso8859_1): Delete.
12211 (ft_face_cache): New variable.
12212 (struct ftfont_info): New member fc_charset_idx.
12213 (ftfont_build_basic_charsets): Delete.
12214 (fc_charset_table): New variable.
12215 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12216 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12217 Callers changed.
12218 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12219 (ftfont_spec_pattern): New argument fc_charset_idx.
12220 Check registry more rigidly. Change callers.
12221 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12222 change of :font-entity property of the font.
12223
12224 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12225 property of the font.
12226
122272008-05-18 Juanma Barranquero <lekktu@gmail.com>
12228
12229 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12230 (Funencodable_char_position, Fcheck_coding_systems_region)
12231 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12232 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12233 (Ffind_operation_coding_system, Fset_coding_system_priority)
12234 (Fcoding_system_eol_type): Doc fixes.
12235
122362008-05-17 Glenn Morris <rgm@gnu.org>
12237
12238 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12239
122402008-05-16 Eli Zaretskii <eliz@gnu.org>
12241
12242 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12243 and st_gid.
12244
12245 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12246 HAVE_WINDOW_SYSTEM is not defined.
12247
12248 * xfaces.c (merge_face_ref, merge_face_vectors)
12249 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12250 HAVE_WINDOW_SYSTEM is defined.
12251 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12252
122532008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12254
12255 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12256
122572008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12258
12259 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12260
122612008-05-15 Kenichi Handa <handa@m17n.org>
12262
12263 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12264 preference.
12265
122662008-05-15 Glenn Morris <rgm@gnu.org>
12267
12268 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12269
122702008-05-15 Chong Yidong <cyd@stupidchicken.com>
12271
12272 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12273 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12274
12275 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12276
122772008-05-15 Kenichi Handa <handa@m17n.org>
12278
12279 * ftfont.c (ftfont_list): Downcase family name to check generic
12280 families.
12281
12282 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12283 font-spec for QCfont value.
12284
12285 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12286 buffer. Check the return value of it.
12287
122882008-05-14 Jason Rumney <jasonr@gnu.org>
12289
12290 * w32term.c (w32_get_glyph_overhangs): Remove.
12291 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12292
122932008-05-14 Kenichi Handa <handa@m17n.org>
12294
12295 * font.c (font_prop_validate): Make nil a valid value.
12296 (font_clear_cache): Check if the cached vector of entities is nil
12297 or not.
12298
122992008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12300
12301 * emacs.c (main_thread): Conditionalize on
12302 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12303 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12304
12305 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12306 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12307 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12308
123092008-05-14 Kenichi Handa <handa@m17n.org>
12310
12311 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12312 has no corresponding coding system.
12313
123142008-05-14 Jason Rumney <jasonr@gnu.org>
12315
12316 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12317
12318 * w32font.h (w32font_open_internal): Update declaration.
12319
12320 * w32font.c (w32font_open_internal): Change last argument from
12321 w32font_info struct to font object. Fill in font object from
12322 font_entity. Get Outline metrics if possible. Use them to
12323 calculate underline position and thickness. Use xlfd name as name
12324 property. Don't set codepage.
12325 (w32font_open): Pass font_object to w32font_open_internal. Don't
12326 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12327 (w32font_draw): Use s->font.
12328 (clear_cached_metrics): Don't clear non-existent blocks.
12329
12330 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12331 font was not found.
12332 (x_draw_glyph_string): Use underline position and thickness from font.
12333
12334 * w32uniscribe.c (uniscribe_open): Pass font_object to
12335 w32font_open_internal.
12336
123372008-05-14 Kenichi Handa <handa@m17n.org>
12338
12339 These changes are to delete all legacy font-handling codes, and
12340 make Emacs use only font-backends.
12341
12342 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12343 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12344
12345 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12346
12347 * charset.h (Vcharset_non_preferred_head)
12348 (Vcurrent_iso639_language): Extern them.
12349
12350 * charset.c (Vcharset_non_preferred_head): New variable.
12351 (Vcurrent_iso639_language): New variable.
12352 (syms_of_charset): Declare it as a Lisp variable.
12353 (char_charset): Don't check non preferred charsets. As a last
12354 resort, return charset_unicode.
12355 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12356
12357 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12358 conditionals. Don't check enable_font_backend. Delete all codes
12359 used only when USE_FONT_BACKEND is not defined.
12360
12361 * dispextern.h (struct glyph_string): Change type of `font' to
12362 `struct font *'.
12363 (struct glyph_string): New member underline_position and
12364 underline_thickness.
12365 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12366 (struct face): Change type of `font' to `struct font *'. Remove
12367 members `font_name', `font_info_id'.
12368 (per_char_metric, encode_char): Delete externs.
12369 (calc_pixel_width_or_height): Adjust the prototype.
12370
12371 * emacs.c (enable_font_backend): Delete extern.
12372 (main): Don't set enable_font_backend. Don't check the command
12373 line argument "-disable-font-backend".
12374
12375 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12376 (enum font_property_index): New members FONT_DPI_INDEX,
12377 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12378 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12379 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12380 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12381 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12382 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12383 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12384 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12385 (struct font_spec, struct font_entity): New structs.
12386 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12387 (struct font): Many members from old "struct font_info" moved to
12388 here. Members font and entity deleted.
12389 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12390 the new font-related objects.
12391 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12392 (CHECK_FONT_GET_OBJECT): Likewise.
12393 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12394 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12395 (struct font_driver): New members case_sensitive anc check. Type
12396 of the member list and open changed.
12397 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12398 (font_symbolic_width, font_find_object, font_get_spec)
12399 (font_set_lface_from_name): Delete extern.
12400 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12401
12402 * font.c: Include <strings.h>.
12403 (enable_font_backend): Delete it.
12404 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12405 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12406 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12407 (null_string): Delete it.
12408 (null_vector): Make it static.
12409 (font_family_alist): Delete it.
12410 (Qnormal): Extern it.
12411 (QCextra, QClanguage): Delete it.
12412 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12413 (font_make_spec, font_make_entity, font_make_object)
12414 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12415 the string. Callers changed.
12416 (font_pixel_size): Adjusted for the format change of font-related
12417 objects.
12418 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12419 (font_style_to_value, font_style_symbolic): New function.
12420 (build_font_family_alist): Delete it.
12421 (font_registry_charsets): Use Fassoc_string instead of
12422 assq_no_quit.
12423 (font_prop_validate_symbol): Don't return null_string.
12424 (font_prop_validate_style): Adjusted for the change of
12425 style-related values in a font vector.
12426 (font_property_table): Delete entries for QClanguage and
12427 QCantialias, add entries for QCavgwidth.
12428 (get_font_prop_index): Delete the 2nd argument FROM.
12429 (font_prop_validate): Arguments changed.
12430 (font_put_extra): Adjusted for the change of font-related objects.
12431 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12432 (font_parse_fcname, font_unparse_fcname)
12433 (font_prepare_composition): Likewise.
12434 (font_parse_family_registry): Renamed from font_merge_old_spec.
12435 (otf_open): Delete the 1st arg entity.
12436 (font_otf_capability): Adjusted for the above change.
12437 (font_score): New arg alternate_families. Adjusted for the change
12438 of font-related objects.
12439 (font_sort_entites): New arg best_only.
12440 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12441 Delete them.
12442 (font_match_p): Check alternate families.
12443 (font_find_object): Delete it.
12444 (font_check_object): New function.
12445 (font_clear_cache): Adjusted for the change of font-related objects.
12446 (font_delete_unmatched): New arg.
12447 (font_list_entities): Call font_driver->list with a spec that
12448 doesn't specify style-related properties.
12449 (font_matching_entity): Arguments changed. Caller changed.
12450 (font_open_entity): Adjusted for the change of font-related objects.
12451 (font_close_object, font_has_char, font_encode_char)
12452 (font_get_name, font_get_spec): Likewise.
12453 (font_spec_from_name, font_clear_prop, font_update_lface):
12454 New functions.
12455 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12456 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12457 (font_at): Adjusted for the change of font-related objects.
12458 (font_range): New function.
12459 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12460 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12461 (Fcopy_font_spec, Fmerge_font_spec): New function.
12462 (Ffont_family_list): Renamed from list-families.
12463 (Finternal_set_font_style_table): Arguments changed.
12464 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12465 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12466 change of font-related objects.
12467 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12468
12469 * fontset.h (struct font_info): Delete it. Most members go to
12470 struct font.
12471 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12472 (enum FONT_SPEC_INDEX): Delete it.
12473 (font_info, list_fonts_func, load_font_func, query_font_func)
12474 (set_frame_fontset_func, find_ccl_program_func)
12475 (get_font_repertory_func, new_fontset_from_font_name): Delete
12476 externs.
12477 (fontset_from_font_name): Extern it.
12478 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12479 (FONT_INFO_FROM_FACE): Deleted.
12480 (face_for_font): Adjust prototype.
12481
12482 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12483 conditionals. Don't check enable_font_backend. Delete all codes
12484 used only when USE_FONT_BACKEND is not defined.
12485 (get_font_info_func, list_font_func, load_font_func)
12486 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12487 (get_font_repertory_func): Delete them.
12488 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12489 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12490 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12491 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12492 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12493 (fontset_compare_rfontdef): New function.
12494 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12495 rfont-defs by qsort. Adjusted for the change of font-group vector.
12496 (load_font_get_repertory): Deleted.
12497 (fontset_find_font): Use new macros to ref/set elements of
12498 font-def and rfont-def.
12499 (fontset_font): Fix the timing of remembering that no font for C.
12500 (free_face_fontset): Do nothing if the face has no fontset.
12501 (face_suitable_for_char_p): Use new macros to ref/set elements of
12502 rfont-def.
12503 (face_for_char): Likewise. Call face_for_char with font_object.
12504 (fs_load_font): Delete. Delete #pragma surrounding it.
12505 (fs_query_fontset): Use strcasecmp instead of strcmp.
12506 (generate_ascii_font_name): Adjusted for the format change of
12507 font-spec.
12508 (Fset_fontset_font): Likewise. Use new macros to set elements of
12509 font-def.
12510 (Fnew_fontset): Use font_unparse_xlfd to generate
12511 FONTSET_ASCII (fontset).
12512 (new_fontset_from_font_name): Deleted.
12513 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12514 a fontset is already created for the font. FIx updating of
12515 Vfontset_alias_alist.
12516 (fontset_ascii_font): Deleted.
12517 (Ffont_info): Adjusted for the format change of font-spec.
12518 (Finternal_char_font): Likewise.
12519 (Ffontset_info): Likewise.
12520 (syms_of_fontset): Don't check load_font_func.
12521
12522 * fns.c (internal_equal): Handle PREV_FONT.
12523
12524 * frame.h: Delete USE_FONT_BACKEND conditional.
12525
12526 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12527 conditionals. Don't check enable_font_backend. Delete all codes
12528 used only when USE_FONT_BACKEND is not defined.
12529 (x_set_font): Call x_new_font, not x_new_fontset2.
12530 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12531 already set for the frame.
12532
12533 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12534 a font-entity by font_make_entity. Use font_intern_prop instead
12535 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12536 font property. If a font is scalable, set avgwidth property to 0.
12537 Set font-entity property by font_put_extra.
12538 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12539 (ffont_driver): Adjusted for the change of struct font_driver.
12540 (ftfont_spec_pattern): New function.
12541 (ftfont_list): Return a list, not vector.
12542 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12543 (ftfont_list_family): Don't downcase names.
12544 (ftfont_free_entity): Deleted.
12545 (ftfont_open): Return a font-object. Adjusted for the change of
12546 struct font. Get underline_thickness and underline_position from
12547 font property. Don't update dpyinfo->smallest_font_height and
12548 dpyinfo->smallest_char_width.
12549 (ftfont_close): Don't free `struct font'.
12550 (ftfont_has_char): Adjusted for the format change of font-entity.
12551 (ftfont_encode_char, ftfont_text_extents): Likewise.
12552
12553 * ftxfont.c (ftxfont_list): Return a list, not vector.
12554 (ftxfont_open): Return a font-object. Adjusted for the change of
12555 struct font. Get underline_thickness and underline_position from
12556 font property. Don't update dpyinfo->smallest_font_height and
12557 dpyinfo->smallest_char_width.
12558 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12559 (ftxfont_draw): Adjusted for the change of struct font.
12560
12561 * image.c (image_ascent): Don't include "charset.h". Include
12562 "character.h" and "font.h".
12563
12564 * lisp.h (enum pvec_type): New member PREV_FONT.
12565 (Fassoc_string): EXFUN it.
12566
12567 * print.c: Include font.h.
12568 (print_object): Handle font-related objects.
12569
12570 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12571 conditionals. Don't check enable_font_backend. Delete all codes
12572 used only when USE_FONT_BACKEND is not defined.
12573 (handle_auto_composed_prop): Do nothing if it->f is not on a
12574 window system. Check how many following characters can be
12575 displayed by the same font.
12576 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12577 'struct font *'.
12578 (get_char_face_and_encoding): Assign the whole encoding task to
12579 the `encode-char' method of a font driver.
12580 (fill_composite_glyph_string): Adjusted for the change of `struct
12581 face' and `struct glyph_string'.
12582 (fill_glyph_string): Likewise.
12583 (get_per_char_metric): Arguments changed.
12584 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12585 and `struct glyph_string'.
12586 (produce_stretch_glyph, calc_line_height_property)
12587 (x_produce_glyphs): Likewise.
12588
12589 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12590 conditionals. Don't check enable_font_backend. Delete all codes
12591 used only when USE_FONT_BACKEND is not defined. Use
12592 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12593 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12594 (Qp): Extern them.
12595 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12596 Deleted.
12597 (struct font_name): Deleted.
12598 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12599 (compare_fonts_by_sort_order): New function.
12600 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12601 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12602 Deleted.
12603 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12604 compare_fonts_by_sort_order.
12605 (Fx_font_family_list): Call Ffont_family_list.
12606 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12607 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12608 (face_symbolic_slant, face_symbolic_swidth)
12609 (split_font_name_into_vector, build_font_name_from_vector)
12610 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12611 (font_rescale_ratio, split_font_name, build_font_name)
12612 (free_font_names, sort_fonts, x_face_list_fonts)
12613 (face_font_available_p, sorted_font_list, cmp_font_names)
12614 (font_list_1, concat_font_list, font_list, remove_duplicates):
12615 Deleted.
12616 (Fx_list_fonts): Use Ffont_list.
12617 (LFACE_AVGWIDTH): Deleted.
12618 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12619 by FONTP.
12620 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12621 (set_lface_from_font_name): Delete it.
12622 (set_lface_from_font): Renamed from
12623 set_lface_from_font_and_fontset. Caller changed. Don't set
12624 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12625 for face.
12626 (merge_face_vectors): Copy font-spec if necessary.
12627 Clear properties of the font-spec if necessary.
12628 (merge_face_ref): Clear properties of the font-spec if necessary.
12629 (Finternal_set_lisp_face_attribute): Likewise.
12630 (set_font_frame_param): Use font_load_for_lface to load a
12631 font-object, and call Fmodify_frame_parameters with it.
12632 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12633 font name by Ffont_xlfd_name.
12634 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12635 QCslant, and QCwidth.
12636 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12637 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12638 Compare fonts by EQ.
12639 (lookup_non_ascii_face): Deleted.
12640 (face_for_font): The 2nd argument changed.
12641 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12642 Check atomic font properties by case insensitive.
12643 (realize_non_ascii_face): Set face->overstrike correctly.
12644 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12645 (dump_realized_face): Get font name from
12646 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12647
12648 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12649 conditionals. Don't check enable_font_backend. Delete all codes
12650 used only when USE_FONT_BACKEND is not defined.
12651 (xic_create_xfontset): Original code deleted and renamed from
12652 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12653 (x_make_gc): Don't set GCFont in GCs.
12654 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12655 opened by "fixed".
12656 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12657 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12658 get_font_repertory_func.
12659
12660 * xfont.c: Include <stdlib.h> and "ccl.h".
12661 (struct xfont_info): New structure.
12662 (xfont_query_font): Deleted.
12663 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12664 moved from xterm.c.
12665 (xfont_driver): Adjusted for the change of struct font_driver.
12666 (compare_font_names): New function.
12667 (xfont_list_pattern): Sort font names case insensitively. Make
12668 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12669 (xfont_list): Return a list, not vector.
12670 (xfont_match): If the font doesn't have QCname property, generate
12671 a name from the other font properties.
12672 (xfont_open): Return a font-object. Adjusted for the change of
12673 struct font. Get underline_thickness and underline_position from
12674 font property. Don't update dpyinfo->smallest_font_height and
12675 dpyinfo->smallest_char_width.
12676 (xfont_close): Don't free struct font.
12677 (xfont_prepare_face): Adjusted for the change of struct font.
12678 (xfont_done_face): Deleted.
12679 (xfont_has_char): Adjusted for the change of struct font.
12680 (xfont_encode_char, xfont_draw): Likewise.
12681 (xfont_check): New function.
12682
12683 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12684 callback function.
12685 (xftfont_match): Adjusted for the format change of font-entity.
12686 (xftfont_open): Adjusted for the format change of font-entity and
12687 font-object. Adjusted for the change of struct font. Return a
12688 font-object. Don't update dpyinfo->smallest_font_height and
12689 dpyinfo->smallest_char_width.
12690 (xftfont_close): Block input while calling XftFontClose.
12691 (xftfont_prepare_face): Don't block input while calling
12692 xftfont_get_colors. Adjusted for the change of struct font.
12693 (xftfont_shape): Return value of error case fixed.
12694
12695 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12696
12697 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12698 conditionals.
12699 (FONT_WIDTH): Return (f)->max_width.
12700 (struct x_display_info): Delete member `font'.
12701 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12702 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12703 (struct x_output): Change type of `font' to `struct font *'.
12704
12705 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12706 conditionals. Don't check enable_font_backend. Delete all codes
12707 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12708 (x_per_char_metric, x_encode_char): Deleted.
12709 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12710 (x_compute_glyph_string_overhangs): Adjusted for the change of
12711 `struct face'.
12712 (x_draw_glyph_string_foreground)
12713 (x_draw_composite_glyph_string_foreground): Likewise.
12714 (x_draw_glyph_string): Likewise. Use font->underline_position and
12715 font->underline_thickness.
12716 (x_new_font): Renamed from x_new_fontset2.
12717 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12718 (x_check_font): Call `check' method of a font driver.
12719 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12720 (x_query_font, x_get_font_repertory): Deleted.
12721 (x_find_ccl_program): Renamed and moved to xfont.c.
12722 (x_redisplay_interface): Adjusted for the change of `struct
12723 redisplay_interface'.
12724
12725 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12726 conditionals. Don't check enable_font_backend. Delete all codes
12727 used only when USE_FONT_BACKEND is not defined. Surround non-used
12728 code by "#ifdef OLD_FONT" and "endif".
12729 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12730
12731 * w32font.h (struct w32font_info): New member.
12732 (FONT_COMPAT): New macro.
12733 (w32font_open_internal): Prototype adjusted.
12734
12735 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12736 OLD_FONT" and "endif".
12737
12738 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12739 conditionals. Don't check enable_font_backend. Delete all codes
12740 used only when USE_FONT_BACKEND is not defined.
12741 (w32font_open): Return a font-object. Make a font-object by
12742 font_make_object. Adjusted for the change of struct w32font_info.
12743 (w32font_close): Don't free struct font. Adjusted for the change
12744 of struct w32font_info.
12745 (w32font_encode_char, w32font_text_extents, w32font_draw):
12746 Adjusted for the change of struct w32font_info.
12747 (w32font_draw): Likewise.
12748 (w32font_list_internal): Return a list, not vector.
12749 (w32font_open_internal): Change the 4th arg to font-object.
12750 Adjusted for the change of struct w32font_info and font-object format.
12751 (add_font_name_to_list): Don't downcase names.
12752 (w32_enumfont_pattern_entity): Make a font-entity by
12753 font_make_entity. Adjusted for the format change of font-entity.
12754 Use FONT_SET_STYLE to set a style-related font property. If a
12755 font is scalable, set avgwidth property to 0. Set font-entity
12756 property by font_put_extra.
12757 (font_matches_spec): Adjusted for the format change of font-entity.
12758 (w32_weight_table, w32_decode_weight): New variables.
12759 (w32_encode_weight): New function.
12760 (fill_in_logfont): Adjusted for the format change of font-spec.
12761 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12762 weight value.
12763 (w32font_driver): Adjusted for the change of struct font_driver.
12764
12765 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12766 conditionals. Don't check enable_font_backend. Surround non-used
12767 code by "#ifdef OLD_FONT" and "endif".
12768 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12769 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12770
12771 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12772 conditionals. Don't check enable_font_backend. Delete all codes
12773 used only when USE_FONT_BACKEND is not defined. Surround non-used
12774 code by "#ifdef OLD_FONT" and "endif".
12775
12776 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12777 (uniscribe_open): Return value changed to font-object.
12778 Adjusted for the format change of font-object.
12779 (uniscribe_otf_capability): Adjusted for the change of struct font.
12780 (add_opentype_font_name_to_list): Don't downcase names.
12781 (uniscribe_font_driver): Adjusted for the change of struct
12782 font_driver.
12783
127842008-05-13 Chong Yidong <cyd@stupidchicken.com>
12785
12786 * dispnew.c (update_frame_1): Check if tty output is still valid
12787 before flushing it.
12788
127892008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12790
12791 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12792 to Gtk+ menus.
12793
127942008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12795
12796 * dired.c (file_name_completion): Tweak the code so as to always do it
12797 in a single pass. Tighten the scope of some variables.
12798
12799 * dired.c (Qdefault_directory): New var.
12800 (file_name_completion): Use it instead of Fexpand_file_name.
12801 (syms_of_dired): Initialize it.
12802
128032008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12804
12805 * fileio.c (double_dollars): Remove dead code.
12806
128072008-05-10 Eli Zaretskii <eliz@gnu.org>
12808
12809 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12810 Mention w32-get-true-file-attributes in doc string.
12811
12812 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12813
128142008-05-09 Glenn Morris <rgm@gnu.org>
12815
12816 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12817 2008-04-23.
12818
128192008-05-09 Eli Zaretskii <eliz@gnu.org>
12820
12821 Support for reporting owner and group of each file on MS-Windows:
12822 * dired.c (stat_uname, stat_gname): New functions, with special
12823 implementation for w32.
12824 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12825
12826 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12827 (dflt_group_name): New static variable.
12828 (dflt_group): Rename from the_group.
12829 (init_user_info): Init dflt_group fields. Get user's group name
12830 from LookupAccountSid.
12831 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12832 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12833 New initialization states.
12834 (globals_of_w32): Initialize them to zero. Initialize the default
12835 group name to "None".
12836 (GetFileSecurity_Name): New global var, the name of the function
12837 to call for GetFileSecurity.
12838 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12839 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12840 (get_file_security, get_security_descriptor_owner)
12841 (get_security_descriptor_group, is_valid_sid)
12842 (get_file_security_desc, get_rid, get_name_and_id)
12843 (get_file_owner_and_group): New functions.
12844 (stat): Use get_file_security_desc and get_file_owner_and_group to
12845 report the owner and primary group of each file. Don't ignore the
12846 high 32 bits of file's size, now that st_size is 64-bit wide.
12847 Fix test when to get true file attributes.
12848 (init_user_info): Use get_rid instead of equivalent inline code.
12849 (fstat): Don't ignore the high 32 bits of file's size.
12850
128512008-05-09 Chong Yidong <cyd@stupidchicken.com>
12852
12853 * image.c (png_load): Use correct bit-depth for setting background
12854 color.
12855
128562008-05-08 Eli Zaretskii <eliz@gnu.org>
12857
12858 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12859 epa-hook.elc.
12860
128612008-05-08 Juanma Barranquero <lekktu@gmail.com>
12862
12863 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12864
128652008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12866
12867 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12868 because the original parameters are in pure storage now.
12869 (mac_window): Remove unused params. Update callers.
12870
128712008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12872
12873 * lread.c (substitute_object_recurse): Use lower-level primitives.
12874 Don't signal errors when traversing sub-char-tables.
12875 Don't loop over all the possible characters when traversing char-tables.
12876
12877 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12878 just like we do in print.c.
12879
128802008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12881
12882 * minibuf.c (Ftry_completion): Remove code left over from when we used
12883 scmp instead of Fcompare_strings.
12884
128852008-05-04 Juanma Barranquero <lekktu@gmail.com>
12886
12887 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12888
128892008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12890
12891 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12892 Create bitmap context in native byte order.
12893
12894 * macterm.c (XDrawLine)
12895 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12896 context in native byte order.
12897
128982008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12899
12900 * config.in: Regenerate.
12901
12902 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12903 New definitions for Image I/O support.
12904 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12905 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12906 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12907 (mac_data_provider_release_data, image_load_image_io)
12908 [USE_MAC_IMAGE_IO]: New functions.
12909 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12910 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12911 (init_image_func_pointer) [MAC_OSX]: Remove function.
12912 (image_load_quartz2d) [MAC_OSX]: Check availability of
12913 CGImageCreateWithPNGDataProvider at compile time.
12914 Use lowercase `false' for boolean constant.
12915 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12916 Use image_load_image_io.
12917 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12918 Don't check MyCGImageCreateWithPNGDataProvider.
12919 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12920 Don't call init_image_func_pointer.
12921
12922 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12923
12924 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12925 Make variable non-static.
12926 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12927 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12928
12929 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12930 (RED_FROM_ULONG): Mask off higher bits.
12931 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12932
12933 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12934 Include AvailabilityMacros.h.
12935 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12936 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12937
129382008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12939
12940 * chartab.c (Fset_char_table_range): If range is t, really set all
12941 chars to that value.
12942
129432008-05-03 Eli Zaretskii <eliz@gnu.org>
12944
12945 * dired.c (Ffile_attributes): Don't allow the device number become
12946 negative.
12947
129482008-05-02 Daiki Ueno <ueno@unixuser.org>
12949
12950 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12951
129522008-05-02 Juri Linkov <juri@jurta.org>
12953
12954 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12955 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12956 DEFAULT argument as a list of default values in docstrings.
12957
129582008-05-01 Chong Yidong <cyd@stupidchicken.com>
12959
12960 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12961
129622008-05-01 Martin Rudalics <rudalics@gmx.at>
12963
12964 * dispnew.c (change_frame_size_1): Preserve small windows when
12965 shrinking frames by calling set_window_height|width with third
12966 arg 2.
12967
12968 * window.h (struct window): Replace field too_small_ok by field
12969 resize_proportionally.
12970
12971 * window.c (make_window): Initialize resize_proportionally.
12972 (enlarge_window): Temporarily set resize_proportionally to make
12973 sure that shrink_windows does scale the window proportionally.
12974 (shrink_windows): When window has resize_proportionally set try
12975 to shrink it proportionally by stealing from other windows.
12976 (struct saved_window, Fset_window_configuration)
12977 (compare_window_configurations): Handle resize_proportionally.
12978 (WINDOW_TOTAL_SIZE): New macro.
12979 (window_min_size, shrink_windows, size_window): Use it.
12980 (check_min_window_sizes): Remove. Invalid values of
12981 window-min-height|width are handled by window_min_size_2 now.
12982 (size_window, Fsplit_window, enlarge_window)
12983 (adjust_window_trailing_edge, grow_mini_window): Don't call
12984 check_min_window_sizes.
12985 (window_min_size_2, window_min_size_1, window_min_size):
12986 New argument safe_p for retrieving "safe" minimum sizes.
12987 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12988 (adjust_window_trailing_edge, grow_mini_window):
12989 Adjust arguments of window_min_size... functions.
12990 (shrink_windows): Argument min_size removed. New argument
12991 safe_p allows shrinking windows to their safe minimum sizes.
12992 Calculate minimum size and decide whether a window shall be
12993 deleted for each window individually.
12994 (size_window): When nodelete_p equals 2, tell shrink_windows to
12995 delete windows only if their new minimum size is no more safe.
12996 (shrink_window_lowest_first): Call window_min_size_1 to make
12997 sure to preserve modeline of bottom-most window when resizing
12998 the minibuffer.
12999 (Fset_window_configuration, Fcurrent_window_configuration)
13000 (compare_window_configurations): Do not handle
13001 window-min-height|width any more.
13002 (syms_of_window): Clarify window-min-height|width doc-strings.
13003
130042008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13005
13006 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13007 some more. Copy some of the code from Ftry_completions.
13008 Remove special case code that dates back to initial revision when the
13009 slash was only added when necessary and that can't trigger nowadays.
13010
130112008-04-27 Kenichi Handa <handa@m17n.org>
13012
13013 * font.c (font_prop_validate): Signal `error' instead of `font'.
13014
130152008-04-29 Jason Rumney <jasonr@gnu.org>
13016
13017 * w32fns.c (Fw32_battery_status): New defun.
13018 (syms_of_w32fns): Defsubr it.
13019
130202008-04-28 Andreas Schwab <schwab@suse.de>
13021
13022 * dired.c (file_name_completion): Fix another mixing of encoded
13023 and decoded names.
13024
130252008-04-28 Juanma Barranquero <lekktu@gmail.com>
13026
13027 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13028
130292008-04-27 Juanma Barranquero <lekktu@gmail.com>
13030
13031 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13032
130332008-04-27 Andreas Schwab <schwab@suse.de>
13034
13035 * dired.c (file_name_completion): Fix inappropriate mixing of
13036 encoded and decoded names.
13037
13038 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13039
13040 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13041
130422008-04-26 Eli Zaretskii <eliz@gnu.org>
13043
13044 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13045 2008-03-31, it's not needed anymore with `struct stat' definition
13046 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13047 for the same reasons.
13048
130492008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13050
13051 * m/sparc.h: Additional redefinitions for GNU/Linux.
13052
130532008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13054
13055 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13056 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13057 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13058 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13059 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13060 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13061 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13062 Likewise.
13063
13064 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13065 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13066 (mac_ax_number_of_characters): Add externs.
13067 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13068 [USE_MAC_TSM]: Likewise.
13069 (mac_handle_text_input_event) [MAC_OSX]:
13070 Handle kEventTextInputOffsetToPos for no active input area case.
13071 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13072 (mac_handle_document_access_event)
13073 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13074 (install_application_handler) [MAC_OSX]: Register handlers for
13075 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13076 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13077 Register mac_handle_document_access_event.
13078
13079 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13080 Make functions non-static.
13081
130822008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13083
13084 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13085 (read_file_name_completion_ignore_case, insert_default_directory)
13086 (Qdefault_directory): Move to minibuffer.el.
13087 (Fread_file_name): Call the new `read-file-name' instead.
13088
130892008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13090
13091 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13092 Make function non-static.
13093 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13094 Remove function.
13095 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13096 Move to mactoolbox.c.
13097 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13098
13099 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13100 (mac_rect_make): New macro.
13101
13102 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13103 instead of float.
13104 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13105 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13106 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13107 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13108 CGRectMake.
13109 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13110 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13111 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13112 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13113 instead of WindowRef in argument type.
13114 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13115 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13116 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13117 instead of DISPLAY. All uses changed.
13118 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13119 (x_calc_absolute_position): Simplify so as not to use
13120 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13121
13122 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13123 instead of WindowRef in argument type.
13124 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13125 [TARGET_API_MAC_CARBON]: Remove externs.
13126 (create_apple_event, mac_event_parameters_to_lisp)
13127 [TARGET_API_MAC_CARBON]: Add externs.
13128
13129 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13130 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13131 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13132 is clicked.
13133 (x_activate_menubar): Remove extern for saved_menu_event_location.
13134 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13135 Move from mac.c.
13136
131372008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13138
13139 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13140 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13141
131422008-04-23 Jason Rumney <jasonr@gnu.org>
13143
13144 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13145 attributes only for local files.
13146
13147 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13148 default to Qlocal.
13149
131502008-04-22 Juri Linkov <juri@jurta.org>
13151
13152 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13153 read-buffer-to-switch instead of using the letter "B".
13154
131552008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13156
13157 * fileio.c (Qdefault_directory): New variable.
13158 (Fread_file_name): Use it to pass `dir' to the completion functions.
13159
131602008-04-20 Chong Yidong <cyd@stupidchicken.com>
13161
13162 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13163
131642008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13165
13166 * keyboard.c (Vpre_help_message): Remove.
13167 (show_help_echo): Remove default C code.
13168
13169 * dired.c (directory_files_internal, file_name_completion):
13170 Only call ENCODE_FILE if the string is indeed decoded.
13171
131722008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13173
13174 * Makefile.in (TOOLKIT_DEFINES): Remove.
13175 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13176
131772008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13178
13179 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13180 (mactoolbox.o): New target.
13181
13182 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13183 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13184
13185 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13186 Use mac_set_frame_window_background instead of XSetWindowBackground.
13187 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13188 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13189 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13190 instead of SetWindowTitleWithCFString.
13191 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13192 Move function to mactoolbox.c.
13193 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13194 Use mac_set_window_modified instead of SetWindowModified.
13195 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13196 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13197 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13198 FrontNonFloatingWindow. Use mac_activate_window instead of
13199 ActivateWindow. Use mac_active_non_floating_window instead of
13200 ActiveNonFloatingWindow.
13201 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13202 Use mac_show_hourglass and mac_hide_hourglass.
13203 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13204 instead of GetGlobalMouse.
13205 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13206 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13207 Use mac_bring_window_to_front instead of BringToFront.
13208 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13209 mactoolbox.c.
13210 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13211 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13212 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13213 mactoolbox.c.
13214
13215 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13216 (XtPointer): Move typedef from macmenu.c.
13217 (enum button_type): Move enum from macmenu.c.
13218 (widget_value): Move typedef from macmenu.c.
13219 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13220 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13221 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13222 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13223 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13224 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13225 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13226 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13227 (Selection): Move typedef from macselect.c.
13228 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13229 macterm.c.
13230 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13231 (mac_is_window_collapsed, mac_bring_window_to_front)
13232 (mac_send_window_behind, mac_hide_window, mac_show_window)
13233 (mac_collapse_window, mac_front_non_floating_window)
13234 (mac_active_non_floating_window, mac_activate_window)
13235 (mac_move_window_structure, mac_move_window, mac_size_window)
13236 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13237
13238 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13239 (enum mac_menu_kind): Move enum to mactoolbox.c.
13240 (min_menu_id): Move variable to mactoolbox.c.
13241 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13242 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13243 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13244 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13245 [TARGET_API_MAC_CARBON]: Likewise.
13246 (XtPointer): Move typedef to macgui.h.
13247 (enum button_type): Move enum to macgui.h.
13248 (widget_value): Move typedef to macgui.h.
13249 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13250 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13251 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13252 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13253 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13254 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13255 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13256 (popup_activated_flag): Make variable non-static.
13257 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13258 (add_menu_item, fill_menu, dispose_menus):
13259 Move functions to mactoolbox.c.
13260 (restore_show_help_function, menu_target_item_handler)
13261 (install_menu_target_item_handler, mac_handle_dialog_event)
13262 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13263 [TARGET_API_MAC_CARBON]: Likewise.
13264 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13265 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13266 (find_and_call_menu_selection, name_is_separator): Make function
13267 non-static.
13268 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13269 to mactoolbox.c.
13270 (set_frame_menubar): Don't call install_menu_quit_handler.
13271 (menu_item_selection): New variable.
13272 (mac_menu_show): Use create_and_show_popup_menu.
13273 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13274 selection but set variable menu_item_selection. All uses changed.
13275 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13276 Call install_menu_quit_handler. Move to mactoolbox.c.
13277
13278 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13279 (Selection): Move typedef to macgui.h.
13280 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13281 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13282 Make variables non-static.
13283 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13284 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13285 Make functions non-static.
13286 (Vmac_service_selection) [MAC_OSX]: Likewise.
13287 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13288 (mac_valid_selection_target_p, mac_clear_selection)
13289 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13290 (mac_put_selection_value, mac_selection_has_target_p)
13291 (mac_get_selection_value, mac_get_selection_target_list)
13292 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13293 Move functions to mactoolbox.c.
13294 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13295 Likewise.
13296 (copy_scrap_flavor_data, mac_handle_service_event)
13297 (install_service_handler) [MAC_OSX]: Likewise.
13298 (syms_of_macselect) <Vmac_dnd_known_types>:
13299 Use mac_dnd_default_known_types.
13300
13301 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13302 Move to mactoolbox.c.
13303 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13304 (Fx_selection_owner_p): Add EXFUN.
13305 (install_window_handler, remove_window_handler, XSetWindowBackground):
13306 Remove externs.
13307 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13308 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13309 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13310 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13311 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13312 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13313 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13314 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13315 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13316 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13317 (mac_valid_selection_target_p, mac_clear_selection)
13318 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13319 (mac_put_selection_value, mac_selection_has_target_p)
13320 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13321 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13322 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13323 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13324 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13325 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13326 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13327 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13328 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13329
13330 * mactoolbox.c: New file.
13331
133322008-04-18 Jason Rumney <jasonr@gnu.org>
13333
13334 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13335
133362008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13337
13338 * character.c (Fmultibyte_char_to_unibyte):
13339 Return latin1 chars unchanged.
13340
13341 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13342 relocated if it points to `name'.
13343
133442008-04-17 Kenichi Handa <handa@m17n.org>
13345
13346 * data.c (Faset): Allow setting a multibyte character in an
13347 ASCII-only unibyte string.
13348
13349 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13350
133512008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13352
13353 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13354 done in config.h.
13355
133562008-04-16 Juanma Barranquero <lekktu@gmail.com>
13357
13358 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13359 (Fchar_direction): Add usage in the docstring.
13360
133612008-04-15 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * keyboard.c (read_key_sequence): Remove always-true checks.
13364
133652008-04-14 Jason Rumney <jasonr@gnu.org>
13366
13367 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13368 compatibility struct, for better underline positioning.
13369
133702008-04-13 David Hansen <david.hansen@gmx.net>
13371
13372 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13373 string.
13374
133752008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13376
13377 * m/hp800.h (XUINT, XSET): Remove.
13378
133792008-04-12 Juanma Barranquero <lekktu@gmail.com>
13380
13381 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13382 previous change.
13383
133842008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13385
13386 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13387 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13388
133892008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13390
13391 * keymap.h (map_keymap_canonical): Declare.
13392 * xmenu.c (single_keymap_panes): Use it.
13393
133942008-04-11 Glenn Morris <rgm@gnu.org>
13395
13396 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13397 set the target's value to that of the alias.
13398
133992008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13400
13401 * term.c (set_tty_color_mode): Left over typo.
13402
134032008-04-10 Michael Albinus <michael.albinus@gmx.de>
13404
13405 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13406 only after check for file name handler functions. Signal, when
13407 native functionality is not supported.
13408 (syms_of_fileio): Declare it unconditionally.
13409
134102008-04-10 Jason Rumney <jasonr@gnu.org>
13411
13412 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13413 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13414
13415 * w32.c (logon_network_drive): Also logon to remote drives that
13416 are mapped to drive letters.
13417
134182008-04-10 Glenn Morris <rgm@gnu.org>
13419
13420 * xdisp.c (truncate-partial-width-windows): Doc fix.
13421
134222008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13423
13424 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13425 Move functions to minibuffer.el.
13426 (syms_of_fileio): Don't declare them.
13427
134282008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13429
13430 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13431 (syms_of_minibuf): Remove its initialization.
13432
13433 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13434
134352008-04-09 Juanma Barranquero <lekktu@gmail.com>
13436
13437 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13438
134392008-04-09 Jason Rumney <jasonr@gnu.org>
13440
13441 * makefile.w32-in (distclean): Delete makefile too.
13442 (maintainer-clean): New target.
13443
13444 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13445
13446 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13447 for new font backend and composite cases.
13448
134492008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13450
13451 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13452 Most of the code moved to run_timers.
13453 (do_pending_atimers): Call run_timers.
13454 (run_timers): New function.
13455
13456 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13457 run atimers.
13458
13459 * process.c (wait_reading_process_output): The same as above.
13460
134612008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13462
13463 * minibuf.c (last_exact_completion): Remove variable.
13464 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13465 (complete_and_exit_1, complete_and_exit_2)
13466 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13467 (Fdisplay_completion_list, display_completion_list_1)
13468 (Fminibuffer_completion_help, Fself_insert_and_exit)
13469 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13470 minibuffer.el.
13471 (syms_of_minibuf): Remove corresponding initializations.
13472
13473 * keyboard.c (Qdeactivate_mark): New var.
13474 (command_loop_1): Use it to call `deactivate-mark'.
13475 (syms_of_keyboard): Initialize it.
13476
13477 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13478 to another frame.
13479 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13480 Don't call set_tty_color_mode.
13481 (store_frame_param): Reset previous_frame rather than call
13482 set_tty_color_mode.
13483 * term.c (set_tty_color_mode): Rewrite.
13484 * dispextern.h (set_tty_color_mode): New type.
13485 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13486
134872008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13488
13489 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13490 for generic chars, which do not exist any more in emacs-unicode.
13491
134922008-04-08 Michael Albinus <michael.albinus@gmx.de>
13493
13494 * coding.c (detect_coding_emacs_mule)
13495 (Ffind_operation_coding_system): Fix typo.
13496
134972008-04-08 Jason Rumney <jasonr@gnu.org>
13498
13499 * w32uniscribe.c (SNAME): Extract only symbol name.
13500
13501 * w32font.h (struct w32_metric_cache): New struct.
13502 (w32font_info): Use it.
13503 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13504 (CACHE_BLOCKSIZE): New constants.
13505
13506 * w32font.c (Qja, Qko, Qzh): New symbols.
13507 (syms_of_w32font): Initialise them.
13508 (font_matches_spec): Use them to filter by language.
13509 (recompute_cached_metrics): Remove function.
13510 (compute_metrics, clear_cached_metrics): New functions.
13511 (w32font_encode_char): Use them to manage metric cache.
13512 (w32font_text_extents): Cache metrics for all glyphs on demand.
13513 Delay converting glyph indices to WORD until needed.
13514 (w32font_open_internal): Initialize metric cache to empty.
13515 (registry_to_w32_charset): Charset should always be a symbol.
13516 (fill_in_logfont, list_all_matching_fonts): Family should
13517 always be a symbol.
13518
135192008-04-06 Jason Rumney <jasonr@gnu.org>
13520
13521 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13522 Give up if glyph indices not supported. Use uniscribe obtained
13523 ABC widths for individual metrics. Map glyph clusters back to
13524 characters using fClusterStart flag. Return number of glyphs
13525 produced, not chars processed.
13526 (uniscribe_shape): Map char at FROM to current glyph.
13527
135282008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13529
13530 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13531 Use SetMenuItemHierarchicalMenu.
13532
135332008-04-05 Jason Rumney <jasonr@gnu.org>
13534
13535 * image.c (pbm_load): Allow color values up to 65535.
13536 Throw an error if max_color_idx is outside the supported range.
13537 Report an error when image size is invalid.
13538 Read two bytes at a time when raw images have max_color_idx above 255.
13539
135402008-04-05 Eli Zaretskii <eliz@gnu.org>
13541
13542 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13543 cFileName a file name that includes `?' characters, use the 8+3
13544 alias in cAlternateFileName instead.
13545
135462008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13547
13548 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13549 append "CCL: Quitted" when the CCL program is quitted.
13550 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13551
13552 * ccl.h (struct ccl_program): New member quit_silently.
13553
135542008-04-05 Chong Yidong <cyd@stupidchicken.com>
13555
13556 * search.c (compile_pattern_1): Treat non-nil and non-string of
13557 search-spaces-regexp as nil.
13558
13559 * minibuf.c (Fassoc_string): Tweak docstring.
13560
135612008-04-05 Eli Zaretskii <eliz@gnu.org>
13562
13563 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13564 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13565 2008-03-14 to force inode be positive.
13566
13567 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13568 _S_* ones, since we now use our own sys/stat.h.
13569 (stat, fstat): Don't mangle the inode number.
13570 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13571
135722008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13573
13574 * frame.h (struct frame): Give one more bit to `visible' since we use
13575 values larger than 1 to indicate obscured frames on ttys.
13576
13577 * keymap.c (Qkeymap_canonicalize): New var.
13578 (Fmap_keymap_internal): New fun.
13579 (describe_map): Use keymap-canonicalize.
13580
13581 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13582 (Fundo_boundary): Set them.
13583 (syms_of_undo): Initialize them.
13584 (record_point): Use them instead of last_point_position*.
13585 (last_undo_buffer): Change type.
13586
135872008-04-04 Jason Rumney <jasonr@gnu.org>
13588
13589 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13590 (recompute_cached_metrics): Don't set ascent and descent per char.
13591
13592 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13593 (uniscribe_check_otf): Add GC protection before consing.
13594 Rearrange loop for counting features.
13595
135962008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13597
13598 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13599 buffer with byte-size of source buffer.
13600
136012008-04-03 Chong Yidong <cyd@stupidchicken.com>
13602
13603 * callint.c (Fcall_interactively): Handle temporary region even
13604 when shift-select-mode is off.
13605
136062008-04-03 Jason Rumney <jasonr@gnu.org>
13607
13608 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13609
136102008-04-03 Kenichi Handa <handa@m17n.org>
13611
13612 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13613 (CATEGORY_MASK_UTF_16): Likewise.
13614 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13615 binary file.
13616 (detect_coding): Add null-byte detection for a binary file.
13617 (detect_coding_system): Likewise.
13618
136192008-04-03 Jason Rumney <jasonr@gnu.org>
13620
13621 * w32uniscribe.c: New file.
13622
13623 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13624
13625 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13626
13627 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13628 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13629 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13630 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13631 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13632 (Qphonetic): New symbols.
13633 (syms_of_w32font): Initialize them.
13634 (font_supported_scripts): Use them.
13635 (w32font_list_family): List all charsets.
13636 (w32font_text_extents, recompute_cached_metrics): Fix metric
13637 calculations.
13638 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13639 Give opentype fonts their own format.
13640 (font_matches_spec): New arguments backend and logfont.
13641 Handle :otf spec for uniscribe backend.
13642 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13643 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13644
13645 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13646 font backend.
13647 (globals_of_w32fns): Initialize uniscribe font backend.
13648
13649 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13650 dependencies.
13651 (w32uniscribe.$(O)): New file to build.
13652 (FONT_OBJ): Include w32uniscribe.$(O).
13653 (LIBS): Add uniscribe libraries.
13654
13655 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13656
136572008-04-02 Chong Yidong <cyd@stupidchicken.com>
13658
13659 * callint.c (Vshift_select_mode): New var.
13660 (Finteractive): Document new ^ spec.
13661 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13662 is present.
13663
13664 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13665 (command_loop_1): Avoid running the direct display versions of
13666 forward-char and backward-char if shift-selection may occur.
13667 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13668 shift-translation takes place.
13669
13670 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13671 avoid clobbering by define-minor-mode.
13672
13673 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13674 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13675
13676 * syntax.c (Fforward_word): Add ^ interactive spec.
13677
13678 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13679 (Fscroll_right): Add ^ interactive spec.
13680
136812008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13682
13683 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13684
13685 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13686
13687 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13688
136892008-03-31 Juri Linkov <juri@jurta.org>
13690
13691 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13692
136932008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13694
13695 * gtkutil.c (xg_set_geometry): Fix indentation.
13696 (xg_resize_outer_widget): Remove.
13697 (x_wm_size_hint_off): Fix indentation.
13698 (xg_frame_set_char_size): Call flush_and_sync after
13699 gtk_window_resize.
13700 (x_wm_set_size_hint): Pass NULL as geometry window to
13701 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13702 Add menu bar and tool bar height to base height.
13703 (xg_update_frame_menubar, free_frame_menubar)
13704 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13705 (update_frame_tool_bar, free_frame_tool_bar):
13706 Change xg_resize_outer_widget to xg_frame_set_char_size.
13707
137082008-03-30 Michael Albinus <michael.albinus@gmx.de>
13709
13710 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13711 (Fdbus_call_method): New parameter TIMEOUT.
13712 (dbus-send-signal): Optimize UNGCPRO call.
13713
137142008-03-29 Juri Linkov <juri@jurta.org>
13715
13716 * window.c (Fdisplay_buffer): Move call to
13717 Vsplit_window_preferred_function out of conditions that check
13718 if window is eligible for vertical splitting.
13719 When Vsplit_window_preferred_function is non-nil, call it and use
13720 its non-nil return value as window. Otherwise, continue doing
13721 vertical splitting using Fsplit_window with arg horflag=nil.
13722 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13723 default value from `split-window' to nil.
13724
137252008-03-29 Juri Linkov <juri@jurta.org>
13726
13727 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13728 for interactive code letters 'b' and 'B'.
13729
137302008-03-29 Eli Zaretskii <eliz@gnu.org>
13731
13732 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13733 multibyte string.
13734
137352008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13736
13737 * keyboard.c (pending_funcalls): New var.
13738 (timer_check): Run it.
13739 (syms_of_keyboard): Initialize it.
13740 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13741 (Vdelete_terminal_functions): New vars.
13742 (syms_of_terminal): Initialize them.
13743 (Fdelete_terminal): Run delete-terminal-functions.
13744 * xdisp.c (safe_eval): Rewrite.
13745 (safe_call2): New fun.
13746 * frame.c (Qdelete_frame_functions): New var.
13747 (syms_of_frame): Initialize it.
13748 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13749 * lisp.h (safe_call2, pending_funcalls): Declare.
13750
137512008-03-28 Andreas Schwab <schwab@suse.de>
13752
13753 * indent.c (Fmove_to_column): Move declaration before statements.
13754
137552008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13756
13757 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13758 (struct frame): Use bit fields for boolean vars.
13759
13760 * process.c (server_accept_connection): Simplify naming.
13761 (emacs_get_tty_pgrp): Use SDATA.
13762
13763 * coding.c (decode_coding_object): Fix last change.
13764
137652008-03-27 Jason Rumney <jasonr@gnu.org>
13766
13767 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13768
137692008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13770
13771 * charset.c (Fdefine_charset_internal): Change the way of
13772 registering charsets in Vcharset_order_list.
13773 (syms_of_charset): Make the charset `eight-bit' supplementary.
13774
137752008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13776
13777 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13778 operations, to avoid having the difference between pointers
13779 overflow.
13780
137812008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13782
13783 * indent.c (check_display_width): New fun.
13784 (scan_for_column): Use it.
13785
13786 * data.c (syms_of_data): Mark most-positive-fixnum and
13787 most-negative-fixnum as constants.
13788
13789 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13790
13791 * indent.c (scan_for_column): Extract from current_column_1.
13792 Merge with the same code from Fmove_to_column.
13793 (current_column_1, Fmove_to_column): Use it.
13794
137952008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13796
13797 * keymap.c (map_keymap_internal): New fun.
13798 (map_keymap): Use it.
13799 (Fmap_keymap_internal): New fun.
13800 (Fmap_keymap): Remove left-out test from before make_save_value.
13801
13802 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13803
13804 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13805 Use XCAR/XCDR.
13806
13807 * process.h (struct Lisp_Process): Remove filter_multibyte.
13808 * process.c (QCfilter_multibyte): Remove.
13809 (setup_process_coding_systems): Don't use filter_multibyte.
13810 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13811 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13812 (Fset_process_filter_multibyte): Change the coding-system to
13813 approximate the previous behavior.
13814 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13815 coding-system.
13816
13817 * coding.c (decode_coding_object): When not decoding into a buffer,
13818 obey the coding system's preference of (uni|multi)byte.
13819
138202008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13821
13822 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13823 every char is changed and has a different byte-length.
13824 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13825 Fix int -> EMACS_INT.
13826
138272008-03-23 David Hansen <david.hansen@gmx.net>
13828
13829 * dbusbind.c (xd_read_message): Remove extra copying of message
13830 strings. Check for NULL `interface' or `member'.
13831
138322008-03-22 Eli Zaretskii <eliz@gnu.org>
13833
13834 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13835 cFileName a file name that includes `?' characters, use the 8+3
13836 alias in cAlternateFileName instead.
13837
138382008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13839
13840 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13841
138422008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13843
13844 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13845 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13846 work on current_buffer only instead (that was already the case
13847 for some of the code anyway).
13848 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13849 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13850 (SET_PT, SET_PT_BOTH): Adjust.
13851 * intervals.h (set_point, temp_set_point, set_point_both)
13852 (temp_set_point_both): Remove redundant declarations.
13853
138542008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13855
13856 * fileio.c (Finsert_file_contents):
13857 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13858 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13859 when buffer != current_buffer anyway.
13860
138612008-03-20 Andreas Schwab <schwab@suse.de>
13862
13863 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13864 as default.
13865
138662008-03-19 Jason Rumney <jasonr@gnu.org>
13867
13868 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13869 (syms_of_w32fns): Initialize them.
13870 (HOURGLASS_ID): New constant.
13871 (x_window_to_frame): Don't check hourglass_window.
13872 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13873 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13874 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13875 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13876 Only change the cursor if hourglass is not active.
13877 (Fx_create_frame): Initialize frame's current_cursor.
13878 (hourglass_atimer): Remove.
13879 (hourglass_started): New function.
13880 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13881 (show_hourglass): Adapt to w32, changing argument to frame.
13882
13883 * w32term.h (struct w32_output): Remove hourglass_window.
13884 Add current_cursor.
13885
13886 * eval.c (call_debugger, Fsignal):
13887 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13888 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13889 (Fexecute_extended_command, cancel_hourglass_unwind):
13890 * minibuf.c (read_minibuf):
13891 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13892
138932008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13894
13895 * window.c (run_funs): New fun.
13896 (run_window_configuration_change_hook): Use it to run the buffer-local
13897 and the global part of the hook.
13898
13899 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13900 (unwind_format_mode_line): Restore selected window.
13901 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13902
139032008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13904
13905 * editfns.c (Fchar_equal): Check they are valid characters.
13906
13907 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13908
139092008-03-17 Andreas Schwab <schwab@suse.de>
13910
13911 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13912 against a charset.
13913
13914 * lisp.h (Fbuffer_list): Declare.
13915
139162008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13917
aac0c6e3
MR
13918 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13919 handlebox_widget is != 0.
13920
139212008-03-16 Juri Linkov <juri@jurta.org>
13922
13923 * callint.c (Fcall_interactively): For interactive code letters
13924 'b' and 'B' put the buffer list into the list of default "future"
13925 values of the minibuffer.
13926
139272008-03-16 Andreas Schwab <schwab@suse.de>
13928
13929 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13930 modifiers.
13931
13932 * regex.c (re_match_2_internal): Correct matching of a charset
13933 against latin-1 characters.
13934
139352008-03-16 Kenichi Handa <handa@m17n.org>
13936
13937 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13938 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13939 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13940 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13941 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13942 CHAR_STRING_ADVANCE.
13943 (produce_chars): Fix for the case that the source and the
13944 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13945 instead of CHAR_STRING_ADVANCE.
13946 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13947 STRING_CHAR_ADVANCE.
13948
139492008-03-15 Andreas Schwab <schwab@suse.de>
13950
13951 * regex.c (re_match_2_internal): Correct matching of eight bit
13952 characters in unibyte strings.
13953
139542008-03-15 Martin Rudalics <rudalics@gmx.at>
13955
13956 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13957 at end of range when it coincides with the end of the buffer.
13958
139592008-03-14 Eli Zaretskii <eliz@gnu.org>
13960
13961 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13962
13963 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13964
139652008-03-14 Jason Rumney <jasonr@gnu.org>
13966
13967 * editfns.c (initial_tz): New variable.
13968 (syms_of_editfns): Initialize it.
13969 (Fset_time_zone_rule): Set it when first called.
13970 Use it when TZSTRING is nil.
13971
13972 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13973 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13974 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13975 (globals_of_w32fns): Initialize them.
13976 (compute_tip_xy): Use them to position tooltips.
13977
139782008-03-14 Glenn Morris <rgm@gnu.org>
13979
13980 * emacs.c (main): Revert previous change.
13981 (standard_args): Revert -internal-script back to -scriptload,
13982 and remove the long-option form.
13983
139842008-03-13 Glenn Morris <rgm@gnu.org>
13985
13986 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13987 Remove option -enable-font-backend.
13988
139892008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13990
13991 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13992
139932008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13994
13995 * xterm.c (x_connection_closed): For GTK: If this is the last
13996 terminal just exit without closing the display.
13997
139982008-03-11 Jason Rumney <jasonr@gnu.org>
13999
14000 * w32font.c (w32font_full_name): Use floor to round.
14001
f0131492 140022008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14003
14004 * sound.c (alsa_configure): Declare vol at beginning of block.
14005
14006 * fontset.c (Ffontset_info): Remove extra semicolon.
14007
140082008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14009
14010 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14011 size of resulting string.
14012
140132008-03-10 Jason Rumney <jasonr@gnu.org>
14014
14015 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14016
140172008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14018
14019 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14020 Don't pretend as if characters with display property haven't been
14021 consumed for string-replacing-string case.
14022
140232008-03-08 Kim F. Storm <storm@cua.dk>
14024
14025 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14026 (get_next_display_element, next_element_from_string)
14027 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14028
140292008-03-08 Andreas Schwab <schwab@suse.de>
14030
14031 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14032
140332008-03-06 Jason Rumney <jasonr@gnu.org>
14034
14035 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14036 when charset not specified. Only translate ANSI to unicode when
14037 font_type is truetype.
14038 (w32font_coverage_ok): New function.
14039 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14040
140412008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14042
14043 * lread.c (Fread_char): Resolve modifiers.
14044 (Fread_char_exclusive): Likewise.
14045
14046 * character.c (char_resolve_modifier_mask): New function.
14047 (char_string): Use char_resolve_modifier_mask.
14048 (Fchar_resolve_modifiers): New function.
14049 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14050 function.
14051
140522008-03-04 Jason Rumney <jasonr@gnu.org>
14053
14054 * makefile.w32-in: Always include w32font.c in the build.
14055 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14056
140572008-03-04 Andreas Schwab <schwab@suse.de>
14058
14059 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14060 (versionclean): Likewise.
14061
140622008-03-04 Juanma Barranquero <lekktu@gmail.com>
14063
14064 * .cvsignore: Add oo.
14065
140662008-03-03 Andreas Schwab <schwab@suse.de>
14067
14068 * coding.c (decode_coding_object): Inhibit gap shrinking while
14069 decoding in place.
14070
140712008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14072
14073 * w32term.c: Remove unused include "gnu.h".
14074 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14075
14076 * gnu.h: Rename to ...
14077 * emacs-icon.h: ... this.
14078 * xterm.c: Use emacs-icon.h instead of gnu.h.
14079 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14080
140812008-03-03 Juanma Barranquero <lekktu@gmail.com>
14082
14083 * w32font.c: Include math.h.
14084
140852008-03-03 Jason Rumney <jasonr@gnu.org>
14086
14087 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14088 Compute options separately.
14089 (w32font_open_internal): Set glyph_idx before caching metrics.
14090
14091 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14092 Define if system headers don't.
14093 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14094 (w32font_encode_char): Don't declare here.
14095
14096 * w32font.c (Quniscribe, QCformat): New symbols.
14097 (syms_of_w32font): Define them.
14098 (w32font_has_char): Indicate uncertainty.
14099 (w32font_encode_char): Encode as glyph point. Make static.
14100 (recompute_cached_metrics): New function.
14101 (w32font_open_internal): Use it. Set font to use glyph points
14102 initially. Set format based on type of font.
14103 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14104 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14105 on it. Set format based on information available here.
14106 (add_font_entity_to_list): Identify backend based on opentype_only.
14107
141082008-03-02 Andreas Schwab <schwab@suse.de>
14109
14110 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14111
14112 * coding.c (decode_coding_big5, produce_chars):
14113 Fix typos in last change.
14114
141152008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14116
14117 * gnu.h: New icon.
14118
141192008-03-02 Kenichi Handa <handa@m17n.org>
14120
14121 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14122 `dos', don't decode '\r' if that is the last in the source.
14123 (decode_coding_utf_16, decode_coding_emacs_mule)
14124 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14125 (decode_coding_raw_text, decode_coding_charset): Likewise.
14126 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14127
141282008-03-01 Jason Rumney <jasonr@gnu.org>
14129
14130 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14131
141322008-03-01 Kim F. Storm <storm@cua.dk>
14133
14134 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14135
141362008-03-01 Jason Rumney <jasonr@gnu.org>
14137
14138 * w32font.c (w32font_full_name): New function.
14139 (w32font_open_internal): Use it.
14140
141412008-03-01 Kim F. Storm <storm@cua.dk>
14142
14143 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14144
141452008-03-01 Jason Rumney <jasonr@gnu.org>
14146
14147 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14148
141492008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14150
14151 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14152 xg_frame_resized when the event is for the edit widget.
14153
14154 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14155
14156 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14157 set_char_size.
14158 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14159 operations on widgets here. Just set frame size if needed.
14160 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14161 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14162 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14163 the whole frame.
14164 (xg_create_tool_bar): Move attachment of the tool bar to
14165 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14166 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14167
141682008-03-01 Jason Rumney <jasonr@gnu.org>
14169
14170 * w32fns.c (w32_msg_pump): Disable debug code.
14171
141722008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14173
14174 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14175
141762008-02-29 Chong Yidong <cyd@stupidchicken.com>
14177
14178 * xdisp.c (next_overlay_string): Don't set
14179 overlay_strings_at_end_processed_p if we're currently reading from
14180 a display string.
14181
141822008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14183
14184 * xdisp.c (get_overlay_strings_1): Fix typo.
14185
141862008-02-29 Chong Yidong <cyd@stupidchicken.com>
14187
14188 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14189
141902008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14191
14192 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14193
14194 * xdisp.c (display_mode_element): Cancel the previous change.
14195 (decode_mode_spec): Likewise.
14196 (handle_auto_composed_prop): Don't make composition if it->string
14197 is a string.
14198
141992008-02-27 Kim F. Storm <storm@cua.dk>
14200
14201 * lisp.h (GLYPH): Change type from int to struct with separate char
14202 and face_id members.
14203 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14204 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14205 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14206 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14207 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14208 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14209 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14210 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14211 handle new Lisp glyph code encoding, either an integer or a cons.
14212
14213 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14214 (GLYPH_ALIAS): Delete.
14215 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14216 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14217 (GLYPH_FROM_CHAR): Replace macro by ...
14218 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14219
14220 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14221 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14222 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14223 (GLYPH_INVALID_P): New macro.
14224 (spec_glyph_lookup_face): Update prototype.
14225
14226 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14227 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14228 new glyph code encoding.
14229 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14230 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14231
14232 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14233 Adapt to new glyph type and new glyph code encoding.
14234
14235 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14236
14237 * indent.c (current_column, current_column_1, Fmove_to_column)
14238 (compute_motion): Adapt to new glyph code encoding.
14239
14240 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14241
142422008-02-27 Chong Yidong <cyd@stupidchicken.com>
14243
14244 * process.c (wait_reading_process_output): Check for window
14245 changes caused by timers.
14246 Suggested by Johan Bockgård.
14247
142482008-02-27 Glenn Morris <rgm@gnu.org>
14249
14250 * emacs.c (USAGE1): Add `--disable-font-backend'.
14251
142522008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14253
14254 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14255 is made to the buffer.
14256
142572008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14258
14259 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14260 (face_at_string_position):
14261 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14262 (face_at_string_position):
14263 * xdisp.c (display_string, next_overlay_change):
14264 * buffer.h (overlays_at):
14265 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14266 Update callers.
14267
142682008-02-26 Chong Yidong <cyd@stupidchicken.com>
14269
14270 * editfns.c (Fformat): Doc fix.
14271
142722008-02-26 Juanma Barranquero <lekktu@gmail.com>
14273
14274 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14275 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14276 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14277
142782008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14279
14280 * buffer.c (Fbuffer_swap_text): New function.
14281 (syms_of_buffer): Defsubr it.
14282
142832008-02-25 Chong Yidong <cyd@stupidchicken.com>
14284
14285 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14286
142872008-02-25 Jason Rumney <jasonr@gnu.org>
14288
14289 * w32font.c (w32font_draw): Draw one character at a time when padding.
14290
142912008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14292
14293 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14294 Handle a nil arg. Use run_window_configuration_change_hook.
14295 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14296 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14297 Use run_window_configuration_change_hook.
14298
142992008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14300
14301 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14302 1-pixel width.
14303
143042008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14305
14306 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14307 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14308 if the glyph in the font is zero pixel with.
14309
14310 * dispextern.h (struct glyph_string): New member padding_p.
14311
14312 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14313
14314 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14315
14316 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14317
14318 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14319
14320 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14321
143222008-02-25 Jason Rumney <jasonr@gnu.org>
14323
14324 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14325
143262008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14327
14328 Allow fine-grained image-cache flushing.
14329 * dispextern.h (struct image): Add `dependencies' field.
14330 (clear_image_caches): Change arg to Lisp_Object.
14331 * image.c (make_image): Initialize `dependencies' field.
14332 (clear_image_cache): Change arg to allow fine-grained flushing.
14333 Perform the flush even if image-cache-eviction-delay is nil.
14334 (clear_image_caches): Change arg to Lisp_Object.
14335 (Fclear_image_cache): Expand meaning of the argument.
14336 (mark_image): Mark `dependencies' field.
14337 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14338 (lface_hash): Use XHASH rather than XFASTINT.
14339 (face_at_buffer_position): Fix int -> EMACS_INT position.
14340 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14341 (select_frame_for_redisplay): Remove code duplication.
14342 (redisplay_internal): Adapt arg to call to clear_image_caches.
14343
143442008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14345
14346 * s/vms4-0.h:
14347 * s/vms4-2.h:
14348 * s/vms4-4.h:
14349 * s/vms5-5.h: Remove, unused.
14350
14351 * s/irix5-2.h:
14352 * s/irix6-0.h:
14353 * s/riscos5.h:
14354 * s/mach-bsd4-3.h:
14355 * m/mips4.h: Remove files for obsolete systems.
14356
14357 * Makefile.in:
14358 * filelock.c:
14359 * unexmips.c:
14360 * m/hp9000s300.h:
14361 * m/iris4d.h:
14362 * s/aix3-1.h:
14363 * s/hpux.h:
14364 * s/msdos.h:
14365 * s/usg5-0.h:
14366 * s/usg5-2-2.h:
14367 * s/usg5-2.h:
14368 * s/usg5-3.h: Remove references to obsolete variables.
14369
14370 * s/irix5-0.h: Remove, move all the contents ...
14371 * s/irix6-5.h: ... here. Simplify.
14372 * config.in: Regenerate.
14373
143742008-02-24 Jason Rumney <jasonr@gnu.org>
14375
14376 * w32term.c (x_draw_glyph_string_background): Clear the background
14377 manually when cleartype is in use.
14378 (x_draw_glyph_string_foreground): Draw text transparently when
14379 cleartype is in use.
14380
14381 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14382 a font into it unless we have to.
14383
143842008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14385
14386 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14387 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14388
aac0c6e3
MR
143892008-02-18 Jason Rumney <jasonr@gnu.org>
14390
14391 * w32fns.c (Fw32_shell_execute): Encode parameters.
14392
143932008-02-09 Eli Zaretskii <eliz@gnu.org>
14394
14395 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14396
143972008-02-05 Juanma Barranquero <lekktu@gmail.com>
14398
14399 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14400
144012008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14402
14403 * xterm.c (x_set_offset): Don't change the gravity if
14404 CHANGE_GRAVITY is -1.
14405
144062008-02-23 Chong Yidong <cyd@stupidchicken.com>
14407
14408 * fileio.c (auto_save_error_occurred): New var.
14409 (auto_save_error): Set it.
14410 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14411 error occurred.
14412
144132008-02-23 Eli Zaretskii <eliz@gnu.org>
14414
14415 * w32.c (globals_of_w32): Add initializations for
14416 g_b_init_get_sid_sub_authority and
14417 g_b_init_get_sid_sub_authority_count.
14418
144192008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14420
14421 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14422 (font_parse_xlfd): Use them for sanity check.
14423 (Finternal_set_font_style_table): Make sure the table is bijective.
14424
14425 Consolidate the image_cache to the terminal struct.
14426 * termhooks.h (P_): Remove redundant def.
14427 (struct terminal): New field `image_cache'.
14428 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14429 of FRAME_X_IMAGE_CACHE.
14430 * xterm.h (struct x_display_info): Remove image_cache field.
14431 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14432 * w32term.h (struct w32_display_info): Remove image_cache field.
14433 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14434 * macterm.h (struct mac_display_info): Remove image_cache field.
14435 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14436 * xterm.c (x_term_init):
14437 * w32term.c (w32_term_init):
14438 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14439 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14440 Remove declarations.
14441 (clear_image_caches, mark_image_cache): New declarations.
14442 * xfaces.c (clear_face_cache):
14443 * xdisp.c (redisplay_internal): Use clear_image_caches.
14444 * image.c (clear_image_cache): Don't check that a frame is on
14445 a window-system before checking if it shares the same cache.
14446 (clear_image_caches): New function.
14447 (Fclear_image_cache): Use it.
14448 (mark_image): Move from allo.c.
14449 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14450 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14451 (mark_object): Don't call mark_image_cache for frames.
14452 (mark_terminals): Call mark_image_cache.
14453
14454 * lisp.h (Fdelete_terminal): Declare.
14455
14456 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14457 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14458 wrong_type_argument.
14459
144602008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14461
14462 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14463 malayalam.el, and tamil.el. Add sinhala.el.
14464
144652008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14466
14467 * xterm.c (x_connection_closed): Consolidate identical tests.
14468 (x_delete_terminal): Don't crash if called via x_connection_closed.
14469
144702008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14471
14472 * xdisp.c (decode_mode_spec): New arg string.
14473 (display_mode_element): Adjust for the above change.
14474
144752008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14476
14477 * callint.c (Fcall_interactively): Use AREF.
14478
144792008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14480
14481 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14482
144832008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14484
14485 * xfns.c (Fx_show_tip): Set string to " " if empty.
14486
144872008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14488
14489 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14490 with Qt.
14491
144922008-02-17 Kenichi Handa <handa@m17n.org>
14493
14494 * ftfont.c (ftfont_shape): Return Lispy number.
14495
14496 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14497 for GCs.
14498 (Finternal_set_font_selection_order): Call font_update_sort_order
14499 only when enable_font_backend is set.
14500 (realize_x_face): Set face->font_info to that of default face only
14501 when enable_font_backend is set.
14502
14503 * xdisp.c (handle_composition_prop): Set it->c to the fist
14504 character of the composed region.
14505 (fill_composite_glyph_string): Set base_face->font_info to
14506 s->font_info. Get a face for ascii from base_face->ascii_face.
14507 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14508 with a face already decided.
14509 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14510 non-negative.
14511 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14512 call font_prepare_composition unconditionally.
14513
14514 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14515
14516 * xterm.h (struct x_display_info): New member font.
14517
14518 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14519 (x_set_mouse_face_gc, x_new_font): Likewise.
14520 (x_term_init): Setup display_info->font.
14521 (x_delete_terminal): Free display_info->font.
14522
14523 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14524
14525 * ftxfont.c (ftxfont_default_fid): Delete it.
14526 (ftxfont_open): Set xfont->fid to 0.
14527 (ftxfont_end_for_frame): Clear data specific to the frame and the
14528 font-driver.
14529
14530 * xftfont.c (xftfont_default_fid): Delete it.
14531 (xftfont_open): Set xfont->fid to 0.
14532
14533 * fontset.c (FONTSET_OBJLIST): New macro.
14534 (fontset_find_font): Update font-object list of the fontset.
14535 (free_realized_fontset): New function.
14536 (free_face_fontset): Call free_realized_fontset.
14537 (Ffont_info): Call font_close_object only when enable_font_backend
14538 is set.
14539
14540 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14541 [HAVE_NTGUI]: Include w32term.h.
14542 [MAC_OS]: Include macterm.ch.
14543 (font_otf_ValueRecord): Use make_number.
14544 (font_finish_cache): Fix handling of reference count.
14545 (font_clear_cache): Update num_fonts.
14546 (font_open_entity): Update smallest_char_width and
14547 smallest_font_height of the frame.
14548 (font_close_object): Update num_fonts.
14549 (Fclear_font_cache): Fix finding the target cache data.
14550
145512008-02-16 Glenn Morris <rgm@gnu.org>
14552
14553 * fontset.c (Finternal_char_font): Fix compilation warning.
14554
145552008-02-16 Eli Zaretskii <eliz@gnu.org>
14556
14557 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14558 instead of char arrays. Enlarge the size of array passed to
14559 get_token_information.
14560
14561 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14562 warnings.
14563
145642008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14565
14566 * .gdbinit: Don't set `args', it breaks gdb --args.
14567
145682008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14571 within a narrowed buffer.
14572
145732008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14574
14575 * coding.c (decode_coding_object, encode_coding_object):
14576 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14577
145782008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14579
14580 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14581 hardcoding 1.
14582 (detect_coding_system):
14583 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14584 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14585 * insdel.c (insert_from_gap):
14586 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14587 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14588 (string_to_multibyte):
14589 * character.c (chars_in_text, multibyte_chars_in_text):
14590 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14591
14592 * character.h (FETCH_STRING_CHAR_ADVANCE)
14593 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14594 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14595 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14596
14597 * casefiddle.c (casify_region): Only call after-change and composition
14598 functions on the part of the region that was changed.
14599
14600 * keyboard.c (read_avail_input):
14601 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14602
146032008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14604
14605 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14606 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14607
146082008-02-11 Juanma Barranquero <lekktu@gmail.com>
14609
14610 * w32menu.c (push_submenu_start, push_submenu_end)
14611 (push_left_right_boundary, push_menu_pane, push_menu_item):
14612 * keyboard.c (read_key_sequence): Don't pass args with side effects
14613 to AREF, it fails when compiling with -DENABLE_CHECKING.
14614
146152008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14616
14617 * Makefile.in (${lispsource}international/charprop.el):
14618 Delete this target.
14619
14620 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14621 emacs-unicode-2.
14622
146232008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14624
14625 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14626
146272008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14628
14629 * frame.c (Qnoelisp): New symbol.
14630 (syms_of_frame): Initialize it.
14631 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14632 harmless Elisp code, from a strong `force' from x_connection_closed.
14633 * frame.h (Qnoelisp): Declare.
14634 * xterm.c (x_connection_closed): Pass `noelisp'.
14635
14636 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14637 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14638 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14639 rather than `int' for the type of `type'.
14640
146412008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14642
14643 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14644
14645 * Makefile.in (GNUC): Remove support for gcc-1.x.
14646
146472008-02-10 Richard Stallman <rms@gnu.org>
14648
14649 * lisp.h (ASET): Use AREF, not ASLOT.
14650
146512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14652
14653 * lisp.h (ASET): Check bounds.
14654
146552008-02-10 Glenn Morris <rgm@gnu.org>
14656
14657 * buffer.c (mode-name): Doc fix.
14658
146592008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14660
14661 * Makefile.in:
14662 * emacs.c:
14663 * gmalloc.c:
14664 * keyboard.c:
14665 * lisp.h:
14666 * m/ibm370aix.h:
14667 * process.c:
14668 * regex.c:
14669 * s/hpux.h:
14670 * sysdep.c:
14671 * sysselect.h:
14672 * systty.h:
14673 * unexec.c:
14674 * w32term.c:
14675 * xsmfns.c:
14676 * xterm.c: Remove code that deals with obsolete variables.
14677
14678 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14679
14680 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14681 nothing else needs it anymore.
14682
146832008-02-09 Eli Zaretskii <eliz@gnu.org>
14684
14685 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14686 instead of unibyte_char_to_multibyte.
14687
146882008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14689
14690 * s/gnu-linux.h: Remove commented out code.
14691
14692 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14693
14694 * Makefile.in: Update what RMS says about using autoconf.
14695 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14696 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14697 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14698 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14699
147002008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14701
14702 * keymap.c (Fkey_description): Move side effect outside of macro call.
14703
14704 * xfaces.c (Finternal_make_lisp_face):
14705 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14706
14707 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14708 (syms_of_fontset): Use ASET.
14709
14710 * fns.c (concat): Move side effect outside of macro call.
14711 (hash_clear): Use ASET.
14712
147132008-02-08 Richard Stallman <rms@gnu.org>
14714
14715 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14716 If FORCE, and frame has a surrogate minibuffer for another frame,
14717 delete the other frame first.
14718
147192008-02-07 Timo Savola <timo.savola@iki.fi>
14720
14721 * xterm.c (x_detect_focus_change): Handle embed client message.
14722 (handle_one_xevent): Ditto.
14723 (handle_one_xevent): If embedded and we get a button press/release,
14724 request focus.
14725 (xembed_set_info, xembed_send_message): New functions.
14726 (x_make_frame_visible): Call xembed_set_info if embedded.
14727 (x_make_frame_invisible): Call xembed_set_info if embedded.
14728 (x_term_init): Initialize Xatom_XEMBED.
14729 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14730 (x_iconify_frame): Ditto.
14731
14732 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14733 (enum xembed_info, enum xembed_message, enum xembed_focus)
14734 (enum xembed_modifier, enum xembed_accelerator): New.
14735 (xembed_set_info, xembed_send_message): Declare.
14736 (FRAME_X_EMBEDDED_P): New.
14737
14738 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14739 gtk_plug_new.
14740
14741 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14742 window ID of a frame.
14743 (x_window): Reparent frame if embedded.
14744 (Fx_create_frame): Don't set border width if embedded.
14745
14746 * emacs.c (USAGE3): Add --parent-id.
14747 (standard_args): Ditto.
14748
147492008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14750
14751 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14752
147532008-02-07 Jim Meyering <meyering@redhat.com>
14754
14755 Use "do...while (0)", not "if (1)...else" in macro definitions.
14756 The latter provokes a warning from gcc about the empty else, when
14757 followed by ";". Also, without that trailing semicolon, it would
14758 silently swallow up any following statement.
14759 * syntax.h (SETUP_SYNTAX_TABLE)
14760 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14761 * buffer.h (DECODE_POSITION): Likewise.
14762 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14763 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14764 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14765 (FETCH_CHAR_ADVANCE): Likewise.
14766 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14767
147682008-02-07 Jim Meyering <meyering@redhat.com>
14769
14770 * lread.c [lint]: Don't include <sys/inode.h>.
14771
147722008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14773
14774 * xselect.c (x_handle_dnd_message):
14775 * xmenu.c (digest_single_submenu, xmenu_show):
14776 * xdisp.c (with_echo_area_buffer_unwind_data)
14777 (format_mode_line_unwind_data, unwind_format_mode_line)
14778 (display_menu_bar):
14779 * eval.c (Ffetch_bytecode):
14780 * doc.c (store_function_docstring):
14781 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14782 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14783 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14784
147852008-02-07 Kenichi Handa <handa@m17n.org>
14786
14787 * ftxfont.c (ftxfont_open): Don't set
14788 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14789
14790 * ftfont.c (ftfont_open): Fix previous change.
14791
147922008-02-06 Jason Rumney <jasonr@gnu.org>
14793
14794 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14795 Use cached metrics for ASCII characters.
14796 (w32font_open_internal): Don't set font's owning_frame.
14797 Cache metrics for ASCII characters.
14798
14799 * w32font.h (struct w32font_info): Add ascii_metrics.
14800 Remove owning_frame.
14801
148022008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14803
14804 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14805 to negative value.
14806
14807 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14808
14809 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14810
14811 * charset.c (syms_of_charset): Set QCtest and Qeq.
14812
148132008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14814
14815 * process.c (Fstart_process):
14816 * callproc.c (Fcall_process): Handle the case where
14817 Funhandled_file_name_directory returns nil.
14818
14819 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14820 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14821 * font.c (check_gstring): Use them and AREF to access the vector before
14822 we know it's really a gstring.
14823 (Ffont_shape_text): Fix typo.
46e722a9 14824 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14825
14826 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14827 Declare.
14828
14829 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14830
148312008-02-05 Jason Rumney <jasonr@gnu.org>
14832
14833 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14834 Set smallest_font_height and smallest_char_width in display info.
14835
148362008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14837
14838 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14839
148402008-02-05 Miles Bader <miles@gnu.org>
14841
14842 * xfaces.c (get_lface_attributes, merge_named_face)
14843 (lookup_named_face, lookup_derived_face, realize_named_face):
14844 Revert 2008-02-01 change by cyd@stupidchicken.com.
14845
148462008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14847
14848 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14849 fallback fonts.
14850 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14851
148522008-02-04 Jason Rumney <jasonr@gnu.org>
14853
14854 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14855 set full_name.
14856 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14857
148582008-02-03 Jason Rumney <jasonr@gnu.org>
14859
14860 * makefile.w32-in (OBJ1): Include font.o here.
14861 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14862
148632008-02-02 Jason Rumney <jasonr@gnu.org>
14864
14865 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14866
148672008-02-01 Jason Rumney <jasonr@gnu.org>
14868
14869 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14870
14871 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14872
148732008-02-01 Andreas Schwab <schwab@suse.de>
14874
14875 * Makefile.in (shortlisp, lisp): Update for rename of
14876 ../lisp/language/myanmar.el.
14877
148782008-02-01 Chong Yidong <cyd@stupidchicken.com>
14879
14880 * xfaces.c (get_lface_attributes): Delete function.
14881 (merge_named_face, lookup_named_face, lookup_derived_face)
14882 (realize_named_face): Call lface_from_face_name directly, and use
14883 the fact that merge_face_vectors does not alter its FROM argument.
14884
148852008-02-01 Jason Rumney <jasonr@gnu.org>
14886
14887 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14888 input in the default locale. Handle non-Unicode multibyte input.
14889
148902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14891
14892 * fontset.c (reorder_font_vector): Exclude nil elements from the
14893 font group. Don't try multiple fonts.
14894 (fontset_font): Adjust for the above change.
14895 (Finternal_char_font): Return nil if the found font doesn't
14896 contain the character ch.
14897
14898 * Makefile.in (lisp, shortlisp): Add cham.el.
14899
149002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14901
14902 * font.h (FONTP): Make it return 1 also for a font-object.
14903
14904 * .gdbinit (xfontset): New function.
14905
14906 * font.c (font_find_for_lface): Check if the character C is
14907 supported or not only for the first font.
14908
14909 * fontset.c (reorder_font_vector): Fix typo.
14910 (fontset_find_font): Don't add a font-spec specifying a script.
14911 Use 0 (not Qt) for the indication of empty font-group. Change the
14912 format of RFONT-DEF. Return Qt if no font in the font-group
14913 support the character.
14914 (fontset_font): Adjust for the above change. If no font was
14915 found the character, remember that.
14916 (face_for_char): Adjust for the change of RFONT-DEF.
14917 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14918 no font for the target.
14919 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14920
149212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14922
14923 * font.c (font_load_for_face): Handle the case that the font in
14924 face->lface is a string.
14925
149262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14927
14928 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14929
149302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14931
14932 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14933 Fix previous change. If the frame is not on a window system,
14934 signal an error.
14935
149362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14937
14938 * coding.c (decode_coding_object, encode_coding_object): Adjust
14939 marker positions after conversion.
14940
14941 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14942
149432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14944
14945 * font.c (font_find_for_lface): Fix the handling of the return
14946 value of font_has_char.
14947 (Ffont_shape_text): Fix previous change.
14948
14949 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14950 (fontset_ref_and_range): Delete it.
14951 (fontset_find_font): Call char_table_ref_and_range instead of
14952 FONTSET_REF_AND_RANGE.
14953 (make_fontset): Don't setup font groups of Latin here.
14954 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14955 (new_fontset_from_font): Make the specified font the default for
14956 all Latin characters.
14957
149582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14959
14960 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14961 is on a window system before accessing the fontset of the frame.
14962
149632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14964
14965 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14966
14967 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14968 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14969
14970 * font.c (Ffont_shape_text): If the font driver doesn't have a
14971 shaper function, make zero-width glyphs to have at least one-pixel
14972 width. Fix setting of `to' field of glyphs.
14973
149742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14975
14976 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14977 glyphs.
14978
14979 * font.h (struct font_driver): Improve docstring of member `shape'.
14980
149812008-02-01 Kenichi Handa <handa@m17n.org>
14982
14983 * composite.c (syms_of_composite): Fix docstring of
14984 auto-composition-function.
14985
14986 * font.h (LGLYPH_SIZE): New macro.
14987
14988 * font.c (Ffont_fill_gstring): Stop filling when a character not
14989 supported by the font is found.
14990 (Ffont_shape_text): When a shape callback function returns nil,
14991 try at most two more times with larger gstring.
14992 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14993
14994 * xdisp.c (handle_auto_composed_prop): Change the argument to
14995 auto-composition-function.
14996
14997 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14998 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14999 Lispy glyph and store it in the lgstring.
15000
15001 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15002
15003 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15004
150052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15006
15007 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15008
15009 * fontset.c (Vfont_encoding_charset_alist): New variable.
15010 (syms_of_fontset): DEFVAR it.
15011 (reorder_font_vector, fontset_find_font): Optimize for the case of
15012 no need of reordering.
15013 (face_for_char): Map the charset property by
15014 Vfont_encoding_charset_alist.
15015
150162008-02-01 Jason Rumney <jasonr@gnu.org>
15017
15018 * w32font.c (logfonts_match): Don't check adstyle here.
15019 (font_matches_spec): Check here against physical font instead.
15020 (add_font_entity_to_list): Avoid some substitutions.
15021
15022 * font.c (font_parse_fcname): Default weight and slant to normal.
15023 (font_score): Prefer normal fonts if weight or slant unspecified.
15024 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15025 match freetype scores.
15026
150272008-02-01 Jason Rumney <jasonr@gnu.org>
15028
15029 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15030 font, as it may have been deleted.
15031 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15032 most common hyphenless variation.
15033 (logfonts_match): Check generic family.
15034 (font_matches_spec): Don't check generic family here.
15035 (fill_in_logfont): Set generic family based on adstyle.
15036
15037 * w32font.h (w32font_get_cache): Update declaration.
15038
150392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15040
15041 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15042
15043 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15044 If none of the new drivers are available, call font_update_drivers
15045 with the old drivers.
15046
15047 * w32font.c (w32font_get_cache): Adjust the argument type.
15048
15049 * xfont.c (xfont_get_cache): Adjust the argument type.
15050
15051 * font.h (struct font_driver): Change argument type of get_cache.
15052
15053 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15054
15055 * font.c (Ffont_get): Fix arguments to Fassoc.
15056 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15057 (font_clear_cache): New function.
15058 (font_list_entities, font_matching_entity): Use font_get_cache.
15059 (font_update_drivers): Call font_clear_cache when finishing a driver.
15060
15061 * fontset.c (fontset_find_font): Fix previous change.
15062
150632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15064
15065 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15066 dpyinfo->font_table.
15067 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15068 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15069
15070 * font.c (font_at): Handle the case that the arg C is negative.
15071 Handle the unibyte case.
15072 (Ffont_at): Call font_at with the arg C -1.
15073
15074 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15075 the position here, and call font_at with the arg C -1.
15076 Don't check the range of the existing composition at the point.
15077
150782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15079
15080 * fontset.c (fontset_add): New args charset_id and family.
15081 Change caller.
15082 (load_font_get_repertory, fontset_find_font): Assume that
15083 font_spec is always a font-spec object.
15084 (Fset_fontset_font): Always store a font-spec object in a fontset.
15085
15086 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15087 instead of get_property_and_range.
15088
150892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15090
15091 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15092 (xftfont_open): Don't keep locking face.
15093 (xftfont_close): Don't unlock face.
15094 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15095
15096 * fontset.c (fontset_find_font): Don't prefer a font of
15097 supplementary charset.
15098
150992008-02-01 Kenichi Handa <handa@m17n.org>
15100
15101 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15102 script, langsys_tag to langsys, new member script.
15103 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15104 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15105 listing to the script specified in that property. Fix arg to
15106 OTF_check_features.
15107
151082008-02-01 Jason Rumney <jasonr@gnu.org>
15109
15110 * w32font.h: New file.
15111
15112 * w32font.c: Include it.
15113 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15114 (w32font_open): Set owning_frame.
15115 (w32font_text_extents): Use owning_frame.
15116 (struct font_callback_data): Add opentype_only field.
15117 (add_font_entity_to_list): Use it to filter fonts.
15118 Don't check against full name.
15119 (w32font_list_internal): New function.
15120 (w32font_list): Use it.
15121 (w32font_match_internal): New function.
15122 (w32font_match): Use it.
15123 (w32font_open_internal): New function.
15124 (w32font_open): Use it.
15125 (w32font_get_cache, w32font_close, w32font_has_char)
15126 (w32font_encode_char, w32font_text_extents, w32font_draw):
15127 Make non-static.
15128
15129 * makefile.w32-in (w32font.o): Depend on w32font.h.
15130
151312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15132
15133 * charset.c (Fdefine_charset_internal): Record a supplementary
15134 charset at the tail of Vcharset_order_list.
15135
15136 * font.c (Ffont_shape_text): Fix the return value.
15137
15138 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15139
15140 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15141
151422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15143
15144 * ftfont.c (struct OpenTypeSpec): New struct.
15145 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15146 (ftfont_get_open_type_spec): New function.
15147 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15148
15149 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15150
151512008-02-01 Jason Rumney <jasonr@gnu.org>
15152
15153 * w32font.c (add_font_entity_to_list): Compare only the beginning
15154 of full name.
15155
151562008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15159 Never return HANDLED_RECOMPUTE_PROPS.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * font.c (font_gstring_produce): Delete it.
15164
15165 * composite.h (COMPOSITION_METHOD):
15166 Handle COMPOSITION_WITH_GLYPH_STRING.
15167
151682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15169
15170 * xfont.c (Qx): Delete.
15171 (syms_of_xfont): Don't initialize Qx.
15172
15173 * composite.h (enum composition_method):
15174 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15175
151762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15177
15178 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15179 (choose_face_font): Accept new form of font-spec.
15180
15181 * frame.h (font_driver_list): Declare it unconditionally.
15182 (struct frame): Define members font_driver_list and font_data_list
15183 unconditionally.
15184
15185 * fontset.c: Include "font.h" unconditionally.
15186 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15187 (Fset_fontset_font): Accept a font-spec object.
15188
15189 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15190 PIXEL_SIZE part a wild card.
15191
15192 * dispextern.h (struct glyph_string): Define members clip and
15193 num_clips unconditionally.
15194 (struct face): Define members font_info and extra unconditionally.
15195
15196 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15197 ftfont_info only when HAVE_LIBOTF is defined.
15198
151992008-02-01 Andreas Schwab <schwab@suse.de>
15200
15201 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15202 and end.
15203
152042008-02-01 Jason Rumney <jasonr@gnu.org>
15205
15206 * w32font.c (w32font_driver): Add new fields.
15207
152082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15209
15210 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15211 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15212 (LIBES): Add @M17N_FLT_CFLAGS@.
15213
15214 * composite.c (compose_text): Don't treat the new style
15215 composition specially.
15216
15217 * emacs.c (main): Call syms_of_font unconditionally.
15218
15219 * font.h (FONT_ENTITY_NOT_LOADABLE)
15220 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15221 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15222 (struct font_driver): New member shape.
15223 (font_registry_charsets): Extern it.
15224 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15225 (font_otf_capability, font_drive_otf): Delete their externs.
15226
15227 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15228 (font_charset_alist, font_registry_charsets): Move from xfont.c
15229 and rename.
15230 (font_prop_validate_otf): New function.
15231 (font_property_table): Register it for QCotf.
15232 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15233 (font_drive_otf): Delete.
15234 (font_prepare_composition): New arg F. Adjust for the change of
15235 lispy gstring.
15236 (font_find_for_lface): New arg C.
15237 (font_load_for_face): Adjust for the change of font_find_for_lface.
15238 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15239 lispy gstring.
15240 (Ffont_shape_text): New function.
15241 (Fopen_font): If the font size is not given, use 12-pixel.
15242 (Ffont_at): New arg STRING.
15243 (syms_of_font): Initalize font_charset_alist.
15244 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15245 conditionally.
15246
15247 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15248 fonts of the same font-spec. Change the format of RFONT-DEF.
15249 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15250 Adjust for the change of RFONT-DEF.
15251 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15252
15253 * ftfont.h: New file.
15254
15255 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15256 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15257 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15258 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15259 font_otf_capability and font_drive_otf, set ftfont_shape.
15260 (ftfont_list): Adjust for the change of :otf property value.
15261 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15262 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15263 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15264 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15265 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15266 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15267
15268 * w32term.c (x_draw_composite_glyph_string_foreground):
15269 Adjust for the change of lispy gstring.
15270
15271 * xdisp.c (handle_composition_prop): Adjust for the change of
15272 lispy gstring. Call a function for auto-composition with the
15273 third arg it->window.
15274 (fill_composite_glyph_string): Adjust for the change of lispy string.
15275 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15276
15277 * xfaces.c (set_font_frame_param): Adjust for the change of
15278 font_find_for_lface.
15279
15280 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15281 (xfont_registry_charsets): Likewise. Change caller.
15282 (syms_of_xfont): Don't handle x_font_charset_alist.
15283
15284 * xftfont.c: Include "ftfont.h".
15285 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15286 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15287 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15288 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15289 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15290 Set xftfont_driver.shape to xftfont_shape.
15291
15292 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15293 the change of lispy gstring.
15294
152952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15296
15297 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15298
152992008-02-01 Jason Rumney <jasonr@gnu.org>
15300
15301 * w32font.c (w32font_draw): Fill background manually.
15302
153032008-02-01 Jason Rumney <jasonr@gnu.org>
15304
15305 * font.c (Qfontp): Remove unused symbol.
15306 (QCantialias): New symbol.
15307 (syms_of_font): Define it.
15308 (font_property_table): Set a validator for QCantialias.
15309
15310 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15311 Define if not already.
15312 (QCfamily): Share with xfaces.c.
15313 (Qstandard, Qsubpixel, Qnatural): New symbols.
15314 (syms_of_w32font): Define them. Don't define QCfamily here.
15315 (w32_antialias_type, lispy_antialias_type): New functions.
15316 (w32_enumfont_pattern_entity): New arg requested_font.
15317 Set antialias parameter if non-default was requested.
15318 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15319
153202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15321
15322 * lread.c (read1): Undo the previous change.
15323
153242008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15325
15326 * frame.c (Fdelete_frame): Call font_update_drivers only when
15327 USE_FONT_BACKEND is defined.
15328
153292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15330
15331 * font.h (struct font_bitmap): New member bits_per_pixel.
15332 (struct font_driver): New members start_for_frame and end_for_frame.
15333 (struct font_data_list): New struct.
15334 (font_put_frame_data, font_get_frame_data): Extern them.
15335
15336 * frame.h (struct frame): New member font_data_list.
15337
15338 * font.c (font_update_drivers): Call driver->start_for_frame and
15339 driver->end_for_frame at proper timings.
15340 (font_put_frame_data, font_get_frame_data): New functions.
15341 (Ffont_spec): Add usage in the docstring.
15342
15343 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15344 (Fdelete_frame): Call font_update_drivers.
15345
15346 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15347 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15348 (xftfont_get_xft_draw): New function.
15349 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15350 (xftfont_end_for_frame): New function.
15351 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15352
15353 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15354 Change argument. Cache GCs in the per-frame data.
15355 (struct ftxfont_frame_data): New struct.
15356 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15357 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15358 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15359 (ftxfont_end_for_frame): New function.
15360 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15361
15362 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15363
153642008-02-01 Kenichi Handa <handa@m17n.org>
15365
15366 * xselect.c (Vselection_coding_system)
15367 (Vnext_selection_coding_system): Delete them.
15368 (syms_of_xselect): Don't declare selection-coding-system and
15369 next-selection-coding-system. They are declared in select.el.
15370
153712008-02-01 Jason Rumney <jasonr@gnu.org>
15372
15373 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15374
15375 * w32fns.c: Include imm.h.
15376 (get_composition_string_fn, get_ime_context_fn): New optional
15377 system functions.
15378 (globals_of_w32fns): Load them from imm32.dll.
15379 (ignore_ime_char): New flag.
15380 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15381 WM_IME_ENDCOMPOSITION messages.
15382
15383 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15384 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15385
153862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15387
15388 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15389 (READCHAR_REPORT_MULTIBYTE): New macro.
15390 (readchar): New 2nd arg MULTIBYTE.
15391 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15392 Make symbol's name multibyte according to the multibyteness of the
15393 source.
15394
153952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15396
15397 * xfaces.c (face_for_overlay_string): Call lookup_face with
15398 correct arguments (fix of synching with the trunk).
15399
154002008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15403 (font_prop_validate_non_neg, font_prop_validate_spacing):
15404 Delete argument prop_index.
15405 (font_property_table): Change arguments to validater. Change Callers.
15406 (font_lispy_object): Delete.
15407 (font_at): Use font_find_object instead fo font_lispy_object.
15408
154092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15410
15411 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15412 and file names.
15413
154142008-02-01 Jason Rumney <jasonr@gnu.org>
15415
15416 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15417 (font_matches_spec): Remove debug output.
15418 (add_font_entity_to_list): Avoid using substituted fonts.
15419
154202008-02-01 Jason Rumney <jasonr@gnu.org>
15421
15422 * doc.c (Fsnarf_documentation):
15423 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15424
154252008-02-01 Miles Bader <miles@gnu.org>
15426
15427 * dispextern.h (struct glyph_row): Only define "clip" field if
15428 HAVE_WINDOW_SYSTEM is defined.
15429
154302008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15431
15432 Fix up multi-tty merge.
15433
15434 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15435 and indentation.
15436
15437 * xfaces.c (free_realized_face, clear_face_gcs):
15438 Include font_done_for_face in the input_blocked section, just in case.
15439
15440 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15441 (get_char_face_and_encoding): Undo last change and remove the *other*
15442 duplicate definition (i.e. keep the one that's better scoped and that
15443 includes code for the font-backend).
15444
15445 * terminal.c (create_terminal): Default keyboard_coding to
15446 `no-conversion' and terminal_coding to `undecided'.
15447
15448 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15449
15450 * fontset.c (free_realized_fontsets): Check that the table entry does
15451 contain a fontset before trying to compare it to `base'.
15452
15453 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15454 syms_of_charset, and syms_of_coding earlier because init_window_once
15455 now needs Vcoding_system_hash_table to be setup.
15456
15457 * coding.h (default_buffer_file_coding): Remove.
15458
15459 * coding.c (default_buffer_file_coding): Remove.
15460 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15461 than ->symbol, and use the terminal-local coding system.
15462 (syms_of_coding): Don't setup the coding-systems that are not
15463 terminal-local.
15464 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15465
15466 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15467 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15468
15469 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15470 in chartab.c and were re-added here by mistake.
15471 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15472
15473 * doc.c (Fsnarf_documentation):
15474 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15475 src to etc.
15476
15477 * ChangeLog.10: Add mistakenly removed entry.
15478
154792008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15480
15481 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15482
154832008-02-01 Miles Bader <miles@gnu.org>
15484
15485 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15486 Add extra args to FACE_FOR_CHAR.
15487
154882008-02-01 Kenichi Handa <handa@m17n.org>
15489
15490 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15491 in sequence.
15492
15493 * chartab.c (map_sub_char_table, map_char_table): If the range
15494 contains just one character, call the function with that character
15495 even if the depth is not 3.
15496
154972008-02-01 Jason Rumney <jasonr@gnu.org>
15498
15499 * w32font.c (w32font_text_extents): Calculate metrics for the
15500 whole string.
15501
155022008-02-01 Jason Rumney <jasonr@gnu.org>
15503
15504 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15505
155062008-02-01 Jason Rumney <jasonr@gnu.org>
15507
15508 * w32term.c (x_set_glyph_string_clipping): Use
15509 get_glyph_string_clip_rects.
15510 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15511 Adjust for the change of struct glyph_string.
15512
15513 * w32font.c (w32font_draw): Do clipping here.
15514
155152008-02-01 Kenichi Handa <handa@m17n.org>
15516
15517 * xftfont.c (xftfont_draw): Adjust for the change of struct
15518 glyph_string.
15519
15520 * xterm.c (x_set_glyph_string_clipping): Use
15521 get_glyph_string_clip_rects.
15522 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15523 Adjust for the change of struct glyph_string.
15524
15525 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15526 the resulting clip(s}.
15527 (expose_overlaps): Add arg r. Change callers. Set it to
15528 row->clip temporarily.
15529 (expose_window): Redraw rows overlapping the exposed area.
15530
15531 * dispextern.h (struct glyph_row): New member clip.
15532 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15533 clip_height, new member clip, and num_clips.
15534
155352008-02-01 Kenichi Handa <handa@m17n.org>
15536
15537 * data.c (Fchar_or_string_p): Fix docstring.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15542 create a temporary XftDraw object.
15543
155442008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * font.c (Ffontp): Fix docstring.
15547
15548 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15549 strong evidence of ISO-2022.
15550
155512008-02-01 Kenichi Handa <handa@m17n.org>
15552
15553 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15554 SYNTAX_ENTRY_FOLLOW_PARENT.
15555
155562008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15557
15558 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15559 its type.
15560 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15561 Update to the new type of weak_hash_tables and next_weak.
15562
15563 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15564 a plain C pointer to Lisp_Hash_Table.
15565
15566 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15567 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15568 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15569 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15570 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15571 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15572 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15573 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15574 (GC_EQ): Remove since they've been identical to their non-GC_
15575 alter-egos ever since the markbit was eradicated.
15576
15577 * alloc.c:
15578 * buffer.c:
15579 * buffer.h:
15580 * data.c:
15581 * fileio.c:
15582 * filelock.c:
15583 * fns.c:
15584 * frame.h:
15585 * lisp.h:
15586 * macterm.c:
15587 * print.c:
15588 * process.c:
15589 * w32fns.c:
15590 * w32menu.c:
15591 * w32term.c:
15592 * xfns.c:
15593 * xmenu.c:
15594 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15595
155962008-02-01 Kenichi Handa <handa@m17n.org>
15597
15598 * chartab.c (map_sub_char_table): Make it work for the top-level
15599 char-table. Fix handling of parent char-table.
15600 (map_char_table): Adjust for the above change.
15601
156022008-02-01 Jason Rumney <jasonr@gnu.org>
15603
15604 * w32font.c (Qgdi): Rename from Qw32.
15605
156062008-02-01 Jason Rumney <jasonr@gnu.org>
15607
15608 * w32bdf.c (get_quoted_string): Make function static.
15609
156102008-02-01 Kenichi Handa <handa@m17n.org>
15611
15612 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15613 bigger ascent and descent than those of the font, use them as
15614 font's ascent and descent.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * Makefile.in (${lispsource}international/charprop.el): Move this
15619 target within "#ifdef HAVE_UNIDATA" and "#endif".
15620
156212008-02-01 Kenichi Handa <handa@m17n.org>
15622
15623 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15624 (shortlisp): Add ../lisp/language/tai-viet.el.
15625
156262008-02-01 Ulrich Mueller <ulm@gentoo.org>
15627
15628 * Makefile.in (${lispsource}international/charprop.el): Depend on
15629 temacs${EXEEXT}.
15630
156312008-02-01 Jason Rumney <jasonr@gnu.org>
15632
15633 * w32font.c (w32font_close): Delete the GDI font object.
15634
15635 * w32menu.c: Include character.h.
15636
15637 * w32proc.c: Likewise.
15638
15639 * w32select.c: Likewise.
15640
15641 * makefile.w32-in (w32proc.o): Depend on character.h.
15642
156432008-02-01 Jason Rumney <jasonr@gnu.org>
15644
15645 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15646
15647 * w32menu.c (syms_of_w32menu): Likewise.
15648
15649 * w32proc.c (syms_of_ntproc): Likewise.
15650
15651 * w32select.c (syms_of_w32select): Likewise.
15652
15653 * w32term.c (syms_of_w32term): Likewise.
15654
156552008-02-01 Jason Rumney <jasonr@gnu.org>
15656
15657 * w32font.c (w32font_draw): Delete brush after using it.
15658
156592008-02-01 Jason Rumney <jasonr@gnu.org>
15660
15661 * w32font.c (w32font_open): Don't set font_idx.
15662 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15663 to font settings.
15664 (w32font_draw): Fill background explicitly.
15665
156662008-02-01 Jason Rumney <jasonr@gnu.org>
15667
15668 * w32term.c (w32_initialize): Don't call w32font_initialize.
15669
15670 * w32font.c (w32font_info): Remove subranges.
15671 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15672 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15673 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15674 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15675 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15676 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15677 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15678 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15679 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15680 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15681 New symbols.
15682 (font_callback_data): New struct.
15683 (w32font_list, w32font_match): Use it.
15684 (w32font_open): Don't populate subranges.
15685 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15686 (w32font_encode_char): Always return unicode code-point as-is.
15687 (w32font_text_extents): Supply a transformation matrix to
15688 GetGlyphOutline. Never look up by glyph index. Avoid looping
15689 twice. Use unicode version of GetTexExtentPoint32 instead of
15690 glyph index version.
15691 (set_fonts_frame): Remove.
15692 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15693 set frame parameter. Use backward compatible fake foundries.
15694 Save generic family in extra slot under QCfamily. Make width slot
15695 constant. Save QCspacing value. Save list of scripts instead of
15696 binary subranges.
15697 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15698 (add_font_entity_to_list): Use font_callback_data struct. Filter
15699 unwanted fonts.
15700 (add_one_font_entity_to_list): Use font_callback_data struct.
15701 (w32_registry): Default to iso10646_1.
15702 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15703 string font registries. Don't fill in font name if it is a generic
15704 family name, fill family instead. Use spacing, family and script
15705 extra info to fill pitch, family and charset fields.
15706 (list_all_matching_fonts): Use font_callback_data struct.
15707 (unicode_range_for_char): Remove.
15708 (font_supported_scripts): New function.
15709 (w32font_initialize): Remove.
15710 (syms_of_w32font): Update which symbols are defined.
15711
157122008-02-01 Jason Rumney <jasonr@gnu.org>
15713
15714 * font.c (font_pixel_size): Reverse assq_no_quit args.
15715
15716 * w32term.h (FONT_WIDTH): Report max width, not average.
15717 (FONT_MAX_WIDTH): Remove.
15718 (FONT_AVG_WIDTH): New macro.
15719
15720 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15721 redefinition of FONT_WIDTH.
15722
15723 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15724 (w32_cache_char_metrics): Use FONT_WIDTH.
15725
15726 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15727
157282008-02-01 Jason Rumney <jasonr@gnu.org>
15729
15730 * w32font.c (w32font_open): Make lfHeight negative.
15731
15732 * w32fns.c (x_default_font_parameter): Use new style font name.
15733 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15734
157352008-02-01 Jason Rumney <jasonr@gnu.org>
15736
15737 * w32font.c (QCsubranges): New symbol.
15738 (w32font_open, w32font_has_char): Get subranges from subproperty
15739 of extra.
15740 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15741 (syms_of_w32font): Define :subranges symbol.
15742
15743 * font.c (font_put_extra): Expose externally.
15744
15745 * font.h (font_put_extra): Move declaration from font.c.
15746
15747 * font.c (Ffont_get): Use font driver to determine otf capability.
15748 (adjust_anchor): Check if driver defines anchor_point before using.
15749
15750 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15751 (w32font_draw): Use options.
15752 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15753 Fix detection of truetype fonts.
15754 (registry_to_w32_charset): Handle charsets other than iso8859-1
15755 expressed as lisp symbols.
15756 (w32_registry): Express charset as lisp symbol.
15757 (fill_in_logfont): Reverse pixel and point height logic.
15758 Don't set width here. Set quality to default.
15759
15760 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15761 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15762
15763 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15764 Remove redundant loop and allocation.
15765
15766 * makefile.w32-in (font.o, w32font.o): New objects.
15767 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15768 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15769
15770 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15771 STORE_XCHARB a valid l-value.
15772
15773 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15774 calculations for non-Truetype fonts.
15775 (x_draw_glyph_string): Sync with xterm.c.
15776 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15777 Remove redundant code.
15778 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15779
15780 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15781 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15782
15783 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15784 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15785
15786 * w32font.c: New file for w32 font backend.
15787
157882008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * term.c: Don't include "buffer.h" twice.
15791
157922008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * character.c (Funibyte_string): New function.
15795 (syms_of_character): Defsubr it.
15796
157972008-02-01 Jason Rumney <jasonr@gnu.org>
15798
15799 * w32term.c [USE_FONT_BACKEND]:
15800 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15801 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15802 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15803 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15804 (x_free_frame_resources): Sync with xterm.c.
15805
158062008-02-01 Andreas Schwab <schwab@suse.de>
15807
15808 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15809 char-table size.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15818 font_otf_gpos, add font_drive_otf.
15819
15820 * fontset.c (fontset_find_font): Pay attention to font size
15821 specified for a font.
15822 (reorder_font_vector): Check contents of font_def.
15823
15824 * font.c (struct otf_list): Delete it.
15825 (otf_list): Make it a lisp variable.
15826 (otf_open): Use lispy otf_list.
15827 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15828 (check_otf_features): New function.
15829 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15830 New functions.
15831 (font_drive_otf): New function merging font_otf_gsub and
15832 font_otf_gpos.
15833 (font_open_for_lface): New arg spec. Change argument order.
15834 (font_load_for_face): Adjust for the change of font_open_for_lface.
15835 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15836 Ffont_otf_gpos.
15837 (syms_of_font): Staticpro otf_list. Delete defsubr of
15838 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15839
15840 * xfaces.c (set_font_frame_param): Adjust for the change of
15841 font_open_for_lface.
15842
15843 * font.h (font_open_for_lface): Adjust prototype.
15844 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15845 member otf_drive.
15846 (font_otf_gsub, font_otf_gpos): Delete externs.
15847 (font_drive_otf): Extern it.
15848
158492008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * font.c (font_at): If the window W is not on a window system,
15852 return Qnil.
15853
15854 * coding.c (produce_chars, encode_coding): Don't call
15855 insert_from_gap if no characters to produce.
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15860 Fclear_face_cache.
15861
15862 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15863
158642008-02-01 Miles Bader <miles@gnu.org>
15865
15866 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15867 Parse "--disable-font-backend" option.
15868 (standard_args): Add "--disable-font-backend" option.
15869
158702008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * fontset.c (fontset_find_font): New function.
15873 (fontset_font): Use fontset_find_font.
15874 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15875 Register the specified font for all Latin characters.
15876 (new_fontset_from_font): Register the specified font for all Latin
15877 characters.
15878 (dump_fontset): For a realized fontset, include the base fontset
15879 name in the returned vector.
15880
158812008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * character.h (CHAR_STRING): Cast C to unsigned on calling
15884 char_string.
15885
15886 * character.c (char_string): Type of arg C changed to unsigned.
15887 Signal an error if C is an invalid character code.
15888
15889 * editfns.c (general_insert_function, Fchar_to_string):
15890 Use CHARACTERP, not INTEGERP.
15891
158922008-02-01 Kenichi Handa <handa@m17n.org>
15893
15894 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15895 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15896
15897 * regex.c (analyse_first): Fix for multibyte characters in "case
15898 charset:" and "case categoryspec:".
15899
159002008-02-01 Andreas Schwab <schwab@suse.de>
15901
15902 * Makefile.in (LIBES): Move standard libraries to the end.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15907 nonzero, don't shrink the buffer nextb.
15908
15909 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15910
15911 * coding.c (coding_alloc_by_making_gap): New arg offset.
15912 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15913 offset.
15914 (decode_coding_iso_2022): Update coding->safe_charsets.
15915 (decode_coding_gap): Temporarily set
15916 current_buffer->text->inhibit_shrinking to 1.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15921 indexing into elements of s->cmp and s->char2b.
15922
159232008-02-01 Juanma Barranquero <lekktu@gmail.com>
15924
15925 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15926
159272008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15930 target_multibyte instead of multibyte.
15931 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15932 (bcmp_translate): Change the argument name from multibyte to
15933 target_multibyte.
15934
159352008-02-01 Kenichi Handa <handa@m17n.org>
15936
15937 These changes are to compile a regexp into a pattern that can be
15938 used both for multibyte and unibyte targets.
15939
15940 * Makefile.in (search.o): Depend on charset.h.
15941
15942 * character.c (multibyte_char_to_unibyte_safe): New function.
15943
15944 * search.c: Include "charset.h".
15945 (compile_pattern_1): Delete argument multibyte. Don't set
15946 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15947 (compile_pattern): Don't compare cp->buf.target_multibyte.
15948 Compare cp->buf.charset_unibyte.
15949 (compile_pattern): Set cp->buf.target_multibyte.
15950
15951 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15952
15953 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15954
15955 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15956 multibyte. Change callers.
15957 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15958 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15959 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15960 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15961 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15962 (regex_compile): Make the compiled pattern usable both for
15963 multibyte and unibyte targets.
15964 (analyse_first): Make the fastmap usable both for multibyte and
15965 unibyte targets.
15966 (TRANSLATE_VIA_MULTIBYTE): Delete.
15967 (re_match_2_internal): Pay attention to the case that the
15968 multibyteness of bufp and target may be different.
15969
159702008-02-01 Kenichi Handa <handa@m17n.org>
15971
15972 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15973 empty box occupy at least one column width.
15974
159752008-02-01 Miles Bader <miles@gnu.org>
15976
15977 * Makefile.in: Remove redundant HAVE_XFT clause.
15978
159792008-02-01 Kenichi Handa <handa@m17n.org>
15980
15981 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15982
159832008-02-01 Kenichi Handa <handa@m17n.org>
15984
15985 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15986 being nil.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15991
159922008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * search.c (simple_search): Fix previous change.
15999
160002008-02-01 Kenichi Handa <handa@m17n.org>
16001
16002 * xftfont.c (ftfont_font_format): Extern declaration.
16003
16004 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16005
16006 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16007 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16008
16009 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16010 (ftfont_font_format): Fix previous change.
16011
16012 * font.h (Ffont_xlfd_name): EXFUN it.
16013
16014 * font.c (font_parse_xlfd): Fix the array size of `f'.
16015 (register_font_driver): Use EQ to compare driver->type.
16016
16017 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16018 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16019 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16020
160212008-02-01 Kenichi Handa <handa@m17n.org>
16022
16023 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16024 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16025
160262008-02-01 Kenichi Handa <handa@m17n.org>
16027
16028 * xfont.c (xfont_open): Set font->format.
16029
16030 * xftfont.c (xftfont_open): Set font->format.
16031
16032 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16033 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16034 (ftfont_open): Set font->format.
16035 (ftfont_font_format): New function.
16036
16037 * font.h (struct font): New member format.
16038
16039 * font.c (Qopentype): New variable.
16040 (syms_of_font): Defsym it.
16041 (Fquery_font): Change the format of the last element of the return
16042 value.
16043
160442008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16047 last resort.
16048
160492008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * coding.c (detect_coding_charset): Fix detection of multi-byte
16052 charset.
16053
160542008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16055
16056 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16057
160582008-02-01 Kenichi Handa <handa@m17n.org>
16059
16060 * xdisp.c (get_next_display_element): Set it->face_id for the
16061 first component of a composition.
16062 (x_produce_glyphs): Check if the font is changed or not for composition.
16063
160642008-02-01 Kenichi Handa <handa@m17n.org>
16065
16066 * fontset.c (Qlatin): New variable.
16067 (syms_of_fontset): Define it as a lisp symbol.
16068 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * font.c (font_unparse_fcname): Pay attention to the case that
16073 some of font property is a null string.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * term.c: Include "composite.h".
16078 (encode_terminal_code): Output all components of composition.
16079 Check the size of encode_terminal_src.
16080 (produce_glyphs): For composition, call produce_composite_glyph.
16081 (append_composite_glyph, produce_composite_glyph): New functions.
16082
16083 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16084 is not found, get font_info from the current ascii face.
16085
160862008-02-01 Kenichi Handa <handa@m17n.org>
16087
16088 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16089 buffer-file-name to Qnil before calling insert_from_buffer.
16090
16091 * font.c (font_unparse_fcname): Pay attention to the case that
16092 foundry is a null string.
16093
160942008-02-01 Kenichi Handa <handa@m17n.org>
16095
16096 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16097
16098 * font.c (Qunicode_sip): New variable.
16099 (syms_of_font): Declare it as a Lisp symbol.
16100
16101 * font.h (Qunicode_sip): Extern it.
16102
161032008-02-01 Kenichi Handa <handa@m17n.org>
16104
16105 * composite.c (get_composition_id): Pay attention to TAB component.
16106
16107 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16108 TAB. Adjust for the change of s->char2b which always points to
16109 the first element of allocated memory.
16110
16111 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16112
16113 * xdisp.c (handle_composition_prop): Set it->c to the first
16114 non-TAB component.
16115 (fill_composite_glyph_string): Change argument.
16116 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16117 (x_produce_glyphs): Fix handling of left/right padding.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * coding.c (detect_coding_system): Fix for handling off
16122 inhibit_iso_escape_detection. Fix for the case that no coding
16123 system is defined for a specific coding category.
16124
161252008-02-01 Kenichi Handa <handa@m17n.org>
16126
16127 * font.c (font_matching_entity): Delete unused local var.
16128
16129 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16130 opening a font.
16131
16132 * fileio.c (Finsert_file_contents): On recovering a file, assume
16133 Unix-like eol.
16134 (choose_write_coding_system): On auto-saving a file, force
16135 Unix-like eol.
16136
16137 * coding.c (setup_coding_system): Fix setting of
16138 coding->common_flags based on eol_type.
16139 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16140 inherit from it.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * alloc.c (NSTATICS): Increas to 0x600.
16145
161462008-02-01 Kenichi Handa <handa@m17n.org>
16147
16148 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16149 (ftfont_list): Don't check :name property.
16150 (ftfont_match): New function.
16151 (ftfont_pattern_entity): If the pattern doesn't contain
16152 FC_SPACING, don't assume FC_MONO.
16153
16154 * font.h (struct font_driver): New member `match'.
16155 (font_update_drivers): Adjust prototype.
16156
16157 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16158 property of FONT.
16159 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16160 them unconditionally.
16161 (font_matching_entity): New function.
16162 (font_open_by_name): Try font_matching_entity if exact match is
16163 not found.
16164 (font_update_drivers): Delete the arg FONT. Return a list of
16165 actually used backends. Don't free faces, font caches here.
16166 Don't store data in frame parameters. Don't call x_set_font.
16167 (Ffont_spec): Store :name property as is.
16168 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16169 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16170 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16171 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16172 Call font->driver->otf_gsub instead of font_otf_gsub.
16173
16174 * frame.c (x_set_font_backend): Do more works that were done in
16175 font_update_drivers before.
16176
16177 * xfont.c (xfont_match): New function.
16178 (xfont_driver): Set xfont_driver.match to xfont_match.
16179 (xfont_draw): Set font in GC if necessary.
16180
16181 * ftxfont.c (ftxfont_match): New function.
16182 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16183
16184 * xftfont.c (xftfont_match): New function.
16185 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16186
161872008-02-01 Kenichi Handa <handa@m17n.org>
16188
16189 * font.h (struct font): New member scalable.
16190 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16191 (font_otf_gsub): Adjust prototype.
16192
16193 * font.c (font_otf_capability): Fix handling of the default langsys.
16194 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16195 Check the contents of SPEC.
16196 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16197 (check_gstring): New function.
16198 (REPLACEMENT_CHARACTER): New macro.
16199 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16200 glyph codes of GSTRING.
16201 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16202 (font_prepare_composition): Set cmp->glyph_len.
16203 (font_open_entity): Set font->scalable.
16204 (Ffont_get): Handle :otf property.
16205 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16206 functions.
16207 (Fquery_font): Use font->font.full_name.
16208 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16209 Sfont_otf_alternates.
16210
16211 * ftfont.c (ftfont_open): Set font->font.full_name and
16212 font->font.name properly. Fix calculation of font->font.height
16213 and font->min_width.
16214
16215 * ftxfont.c (ftxfont_create_gcs): New function.
16216 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16217 (ftxfont_draw_backgrond): Fix filling region.
16218 (ftxfont_default_fid): New function.
16219 (ftxfont_open): Set xfont->fid to the return value of
16220 ftxfont_default_fid.
16221 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16222 (ftxfont_done_face): Free only GCs that are created by
16223 ftxfont_create_gcs.
16224 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16225
16226 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16227 Clip to src->width, etc (not src->clip_XXX).
16228
16229 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16230 FontBackend frame parameter.
16231
162322008-02-01 Kenichi Handa <handa@m17n.org>
16233
16234 * font.h (struct font_driver_list): New member `on'.
16235 (Fclear_font_cache): EXFUN it.
16236 (font_update_drivers): Extern it.
16237
16238 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16239 (font_list_entities): Check driver_list->on.
16240 (register_font_driver): Initalize `on' member to 0.
16241 (font_update_drivers): New function.
16242 (Fclear_font_cache): Check driver_list->on.
16243
16244 * frame.h (Qfont_backend): Extern it.
16245 (x_set_font_backend): Extern it.
16246
16247 * frame.c (Qfont_backend): New variable.
16248 (frame_parms): New element for font-backend.
16249 (x_set_font_backend): New function.
16250
16251 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16252 FontBackend frame parameter.
16253 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16254 x_set_font_backend.
16255
16256 * xfont.c (xfont_list): Don't try listing by :name property if the
16257 name is not for XLFD.
16258
162592008-02-01 Kenichi Handa <handa@m17n.org>
16260
16261 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16262 (LGLYPH_SET_TO): New macros.
16263 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16264 element of G is vector or not.
16265 (font_at): Extern it.
16266
16267 * font.c: Include window.h.
16268 (font_lispy_object): New function.
16269 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16270 end of valid glyph.
16271 (font_close_object): Fix getting (struct font *).
16272 (font_at): New function.
16273 (Ffont_get): If FONT is a font-object, get entity from it.
16274 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16275 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16276 range check.
16277 (Ffont_at): New function.
16278 (syms_of_font): Defsubr Sfont_at.
16279
16280 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16281 before the entry for Qcomposition.
16282 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16283 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16284 the font in gstring.
16285 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16286 LGLYPH_FORM (g) to detect the end of valid glyph.
16287 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16288 we are composing with gstring.
16289
16290 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16291 Check if adjustment is vector or not.
16292
16293 * Makefile.in (font.o): Make it depends on window.h.
16294
162952008-02-01 Kenichi Handa <handa@m17n.org>
16296
16297 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16298 adjustment is vector or not.
16299
163002008-02-01 Miles Bader <miles@gnu.org>
16301
16302 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16303
163042008-02-01 Kenichi Handa <handa@m17n.org>
16305
16306 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16307 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16308 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16309
16310 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16311 (DEVICE_DELTA): Fix typo.
16312 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16313 LGLYPH format.
16314
16315 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16316 the change of LGLYPH format.
16317
163182008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * ftfont.c (ftfont_list): Fix typo.
16321 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16322
163232008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16324
16325 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16326
16327 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16328 xftface_info is non-NULL.
16329
163302008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16331
16332 * ftfont.c (ftfont_list): Move misplaced #endif.
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * ftfont.c (ftfont_list): Pay attention to the case that
16337 FC_CAPABILITY is not defined.
16338
163392008-02-01 Kenichi Handa <handa@m17n.org>
16340
16341 * xftfont.c (xftfont_open): Set charset related members to -1.
16342
16343 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16344 QCname.
16345 (ftfont_open): Set charset related members to -1.
16346
16347 * fontset.c (Votf_script_alist): New variable.
16348 (syms_of_fontset): Initialize it.
16349 (fontset_font): Delete unused variable.
16350
16351 * fontset.h (Votf_script_alist): Extern it.
16352
16353 * font.c (font_find_for_lface): Optimize code.
16354
16355 * font.h (font_close_object, font_merge_old_spec): Extern them.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16360 (syms_of_font): Initialize them.
16361 (font_pixel_size): Allow float value in dpi.
16362 (font_prop_validate_type): Delete.
16363 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16364 Change caller.
16365 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16366 (font_prop_validate_extra): Delete.
16367 (font_prop_validate_spacing): New function.
16368 (font_property_table): Add elements for all known properties.
16369 (get_font_prop_index): Rename from check_font_prop_name. New
16370 argument FROM. Change caller.
16371 (font_prop_validate): Validate all known properties.
16372 (font_put_extra): Delete argument force. Change caller.
16373 (font_expand_wildcards): Make it static. Fix the way of shrinking
16374 the possible range.
16375 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16376 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16377 Change caller.
16378 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16379 (font_parse_fcname): Delete argument merge. Fix parsing of point
16380 size. Don't validate properties values here. Change caller.
16381 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16382 (font_open_by_name): Delete unused variable.
16383 (Ffont_spec): Likewise. Validate property values.
16384 (Ffont_match_p): New function.
16385
16386 * font.h (QCscalable): Extern it.
16387 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16388
16389 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16390
16391 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16392 (xfont_list_pattern): New function.
16393 (xfont_list): Use xfont_list_pattern.
16394
163952008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * font.h (Flist_fonts): EXFUN it.
16398
163992008-02-01 Jason Rumney <jasonr@gnu.org>
16400
16401 * w32term.c (w32_initialize): Add back smoothing_type and
16402 smoothing_enabled definitions.
16403
164042008-02-01 Kenichi Handa <handa@m17n.org>
16405
16406 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16407 s->face->font on determining underline position.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16412 (font_has_char): Accept font-object too.
16413 (font_find_for_lface): Try at first with a size specified in face.
16414
164152008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16418 font_open_by_name.
16419
164202008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * font.h (QCspacing, QCdpi): Extern them.
16423 (enum font_spacing): New enum.
16424 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16425
16426 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16427 (QCspacing, QCdpi): New variables.
16428 (syms_of_font): Initialize them.
16429 (font_pixel_size): New function.
16430 (font_put_extra): New function.
16431 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16432 in FONT_EXTRA.
16433 (font_parse_fcname): Handle enumerated values (e.g. bold).
16434 Fix handling font size. Add QCname property that contains only
16435 unknown properties.
16436 (font_score): Change argument. Change caller. Pay attention to
16437 FONT_PIXEL_SIZE_QUANTUM.
16438 (font_sort_entites, font_list_entities, font_find_for_lface)
16439 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16440 (Ffont_spec): Add QCname property that contains only unknown properties.
16441
16442 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16443 include weight in listing pattern, instead check weight of each
16444 listed font. Don't include scalable in pattern. Pay attention to
16445 FONT_PIXEL_SIZE_QUANTUM.
16446
164472008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * font.c (font_parse_fcname): Fix parsing of point-size.
16450 (font_unparse_fcname): Produce symbolic names for style properties.
16451 (font_list_entities): Handle float size correctly.
16452 (font_open_by_name): Prefer `normal' property values if the name
16453 doesn't specify them.
16454
16455 * fontset.c (Finternal_char_font): Use font_get_name, not
16456 Ffont_xlfd_name.
16457
16458 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16459 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16460 pattern. Don't force scalable.
16461
16462 * xftfont.c (xftfont_open): For generating a name, start from
16463 96-byte buffer.
16464
164652008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16466
16467 * frame.h (x_new_fontset2): Fix prototype.
16468
164692008-02-01 Kenichi Handa <handa@m17n.org>
16470
16471 * font.h (struct font_driver): Delete member parse_name.
16472 (font_match_p, font_get_spec, font_parse_fcname)
16473 (font_unparse_fcname): Extern them.
16474 (font_get_name): Adjust prototype.
16475
16476 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16477 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16478 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16479 unnecessary checks for weight, slant, and swidth.
16480 (font_parse_fcname): New function.
16481 (font_unparse_fcname): New function.
16482 (font_parse_name): New function.
16483 (font_match_p): New function.
16484 (font_get_name): Change return value to Lisp string.
16485 (font_get_spec): New function.
16486 (Qunspecified, Qignore_defface): Don't extern them.
16487 (font_find_for_lface): Assume that LFACE is fully specified.
16488 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16489 object, use it for FACE.
16490 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16491 driver->parse_name.
16492 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16493
16494 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16495 prototype.
16496
16497 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16498 argument F. Don't call Fnew_fontset. Instead, directly call
16499 make_fontset.
16500
16501 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16502
16503 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16504 of x_new_fontset2.
16505
16506 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16507 (Qsans__serif): New variables.
16508 (ftfont_generic_family_list): New variable.
16509 (syms_of_ftfont): Initialize the above variables.
16510 (ftfont_pattern_entity): Delete argument NAME.
16511 (ftfont_list_generic_family): New function.
16512 (ftfont_parse_name): Delete this function.
16513 (ftfont_list): Try generic family only when FcFontList found no font.
16514 (ftfont_list_family): Fix args to FcObjectSetBuild.
16515
16516 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16517 object in attrs[LFACE_FONT_INDEX].
16518 (set_lface_from_font_name): Cancel all changes for font-backend.
16519 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16520 function.
16521 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16522 font object in QCfont attribute.
16523 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16524 (realize_default_face) [USE_FONT_BACKEND]: Call
16525 set_lface_from_font_and_fontset.
16526
16527 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16528 "fixed", and signal error here if no suitable font was found.
16529
16530 * xfont.c (xfont_parse_name): Delete this function.
16531
16532 * xftfont.c (xftfont_open): Change coding style of error
16533 handling. Generate fontconfig's fontname pattern.
16534
16535 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16536 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16537
16538 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16539 Both args FONTSET and FONT_OBJECT must be existing ones.
16540
165412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16542
16543 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16544
165452008-02-01 Kenichi Handa <handa@m17n.org>
16546
16547 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16548
16549 * font.h (struct font): Fix typo.
16550
16551 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16552 XLFD_XXX_INDEX.
16553 (enum xlfd_field_mask): New enum.
16554 (intern_font_field): Changed argument. Change caller. If digits
16555 are followed by non-digits, return a symbol.
16556 (font_expand_wildcards): New function.
16557 (font_parse_xlfd): Fix wildcard handling.
16558 (Ffont_spec): If :name is specified, reflect the info in the other
16559 properties.
16560
16561 * ftfont.c (ftfont_pattern_entity): Fix typo.
16562 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16563 locale.
16564
165652008-02-01 Kenichi Handa <handa@m17n.org>
16566
16567 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16568
16569 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16570 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16571 registry doesn't specify encoding part.
16572 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16573 (font_open_by_name): At first try parsing the name.
16574 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16575 as Lisp symbols.
16576
16577 * fontset.c (reorder_font_vector): Pay attention to the case that
16578 the 3rd element of font_def is nil.
16579 (fontset_font): For the default fontset, append one more fontset
16580 elements for a script-based font specification. Don't add script
16581 attribute on finding a font.
16582 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16583 font name.
16584 (fontset_ascii_font): If a font can't be opened, return nil.
16585
16586 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16587 (ftfont_pattern_entity): New function.
16588 (ftfont_get_cache): Assume that freetype_font_cache is already
16589 initialized.
16590 (ftfont_list): Handle the case that a file is specified in font
16591 name. Use ftfont_pattern_entity to generate entities.
16592 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16593 (syms_of_ftfont): Initialize freetype_font_cache.
16594
16595 * xftfont.c (xftfont_open): Make the font name fontconfig's
16596 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16597 (xftfont_close): Free font->font.name if not NULL.
16598
16599 * xfont.c (xfont_list): If script is specified for a font, return
16600 null_vector.
16601 (xfont_list_family): Declare argument type.
16602
16603 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16604 name, set LFACE_FONT (lface) to nil.
16605
16606 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16607 return Qnil.
16608
166092008-02-01 Kenichi Handa <handa@m17n.org>
16610
16611 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16612 (standard_args): Add "-enable-font-backend".
16613
166142008-02-01 Kenichi Handa <handa@m17n.org>
16615
16616 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16617 (struct xftdraw_list, xftdraw_list): Delete them.
16618 (register_xftdraw, check_xftdraw): Delete them.
16619 (xftfont_prepare_face): Don't call register_xftdraw.
16620 (xftfont_done_face): Don't call check_xftdraw.
16621 (xftfont_draw): Get background color only when with_background is
16622 nonzero.
16623
16624 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 These changes are for the new font handling codes.
16629
16630 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16631 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16632 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16633 (FONTSRC, FONTOBJ): New variables.
16634 (obj): Add $(FONTOBJ).
16635 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16636 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16637 @LIBOTF_LIBS@.
16638 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16639 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16640
16641 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16642
16643 * character.h (Vscript_representative_chars): Extern it.
16644
16645 * character.c (Vscript_representative_chars): New variable.
16646 (syms_of_character): Declare it as a Lisp variable.
16647
16648 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16649 enable_font_backend is nonzero, accept the composition method
16650 COMPOSITION_WITH_GLYPH_STRING.
16651
16652 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16653 enumeration COMPOSITION_WITH_GLYPH_STRING.
16654
16655 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16656 members clip_x, clip_y, clip_width, and clip_height.
16657 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16658
16659 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16660 --enable-font-backend. Call syms_of_font.
16661
16662 * fns.c (assoc_no_quit): New function.
16663
16664 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16665 (face_for_font, new_fontset_from_font)
16666 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16667
16668 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16669 (fontset_font, fontset_ascii, face_for_char)
16670 (make_fontset_for_ascii_face, Ffont_info)
16671 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16672 is nonzero, use font-backend mechanism.
16673 (find_font_encoding): Make it non-static.
16674 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16675 New functions.
16676
16677 * frame.h (struct frame): New members resx and resy.
16678 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16679 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16680
16681 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16682 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16683
16684 * lisp.h (assoc_no_quit): Extern it.
16685
16686 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16687 Through out the file, use FONT_INFO_FROM_FACE instead of
16688 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16689 rif->per_char_metric.
16690 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16691 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16692 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16693 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16694 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16695 nonzero, use font-backend mechanism.
16696 (get_per_char_metric): New function.
16697
16698 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16699 (set_lface_from_font_name)
16700 (set_font_frame_param, free_realized_face)
16701 (prepare_face_for_display, clear_face_gcs)
16702 (Finternal_set_font_selection_order, realize_x_face)
16703 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16704 font-backend mechanism.
16705 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16706 (load_face_font) [USE_FONT_BACKEND]: Abort.
16707 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16708 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16709
16710 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16711 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16712 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16713 nonzero, register all available font drivers. Call
16714 x_default_font_parameter for deciding a font.
16715 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16716
16717 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16718 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16719 (x_set_glyph_string_clipping_exactly)
16720 (x_compute_glyph_string_overhangs)
16721 (x_draw_glyph_string_foreground)
16722 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16723 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16724 enable_font_backend is nonzero, use font-backend mechanism.
16725 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16726
167272008-02-01 Kenichi Handa <handa@m17n.org>
16728
16729 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16730 system_eol_type.
16731 (syms_of_coding): Initialize system_eol_type.
16732
16733 * process.c (Fset_process_coding_system): Inherit system's eol
16734 format if necessary.
16735
167362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16737
16738 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16739
167402008-02-01 Kenichi Handa <handa@m17n.org>
16741
16742 * coding.c (decode_eol): Pay attention to buffer relocation in
16743 del_range_2.
16744 (decode_coding): Call decode_eol before restoring undo_list.
16745
167462008-02-01 Kenichi Handa <handa@m17n.org>
16747
16748 * charset.c (Fdefine_charset_internal): Fix setting of
16749 emacs_mule_bytes.
16750
167512008-02-01 Kenichi Handa <handa@m17n.org>
16752
16753 * keyboard.c (read_char): Check if C is a character or not before
16754 looking up Vkeyboard_translate_table.
16755
167562008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16759 condition to terminate the loop.
16760
167612008-02-01 Kenichi Handa <handa@m17n.org>
16762
16763 * coding.c (produce_composition): Compare charbuf[i] instead of
16764 args[i] against 0.
16765 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16766
167672008-02-01 Kenichi Handa <handa@m17n.org>
16768
16769 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16770 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16771 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16772 detect_coding.
16773 (emacs_mule_char): Handle old style (Emacs 20) component character
16774 of a composition.
16775 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16776 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16777 composition rule.
16778 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16779
167802008-02-01 Kenichi Handa <handa@m17n.org>
16781
16782 * coding.c (encode_coding_ccl): Allocate destination dynamically
16783 when necessary.
16784
167852008-02-01 Kenichi Handa <handa@m17n.org>
16786
16787 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16788 the loop. When quitted, show a proper error message.
16789
167902008-02-01 Kenichi Handa <handa@m17n.org>
16791
16792 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16793 src->clip_head and src->clip_tail temporarily instead of src->hl.
16794
16795 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16796 character sequence.
16797 (Fccl_execute_on_string): Use ASET, not XSET.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16802
168032008-02-01 Kenichi Handa <handa@m17n.org>
16804
16805 * coding.c (decode_coding): Fix the condition of terminating the
16806 decoding loop.
16807
168082008-02-01 Kenichi Handa <handa@m17n.org>
16809
16810 * data.c (Faset): On setting a character bigger than 255 in a
16811 unibyte string, signal an error instead of make the string multibyte.
16812
168132008-02-01 Kenichi Handa <handa@m17n.org>
16814
16815 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16816 made by a mapping table.
16817
168182008-02-01 Kenichi Handa <handa@m17n.org>
16819
16820 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16821 not.
16822 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16823 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16824
16825 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16826 s->face is NULL or not.
16827
168282008-02-01 Kenichi Handa <handa@m17n.org>
16829
16830 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16831 (x_draw_glyph_string): Fix drawing of right_overhang and
16832 left_overhang around/on cursor.
16833
16834 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16835
168362008-02-01 Kenichi Handa <handa@m17n.org>
16837
16838 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16839
168402008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * coding.c (Fdefine_coding_system_internal)
16843 (Fdefine_coding_system_alias): Avoid a duplicated element in
16844 Vcoding_system_alist.
16845
168462008-02-01 Kenichi Handa <handa@m17n.org>
16847
16848 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16849
16850 * coding.c (Qcoding_system_define_form): New variable.
16851 (syms_of_coding): Intern and staticpro it.
16852 (Fcoding_system_p): Check Qcoding_system_define_form.
16853 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16854
16855 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16856 Fcoding_system_p.
16857 (CHECK_CODING_SYSTEM): If ID is not available, call
16858 Fcheck_coding_system.
16859 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16860 Try also Fcheck_coding_system.
16861
168622008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * coding.c (code_conversion_restore): GCPRO arg.
16865
168662008-02-01 Kenichi Handa <handa@m17n.org>
16867
16868 * character.c (lisp_string_width): Check multibyteness of STRING.
16869
168702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16871
16872 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16873 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16874 (decode_mac_font_name): Use decode_coding_c_string instead of
16875 decode_coding.
16876 (x_load_font): Initialize fontp->fontset to -1. Set
16877 fontp->encoding_type.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * search.c (search_buffer): Give up BM search on case-fold-search
16882 if one of a target character has a case-equivalence of different
16883 byte length even if that target charcter is an ASCII.
16884 (simple_search): Fix calculation of byte length of matched text.
16885 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16886
168872008-02-01 Kenichi Handa <handa@m17n.org>
16888
16889 * coding.c (decode_coding): Fix handling of invalid bytes.
16890
168912008-02-01 Kenichi Handa <handa@m17n.org>
16892
16893 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16894 Unicode characters.
16895
168962008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * coding.c (encode_coding_object): If a pre-write-conversion
16899 function makes a new buffer, kill it.
16900
169012008-02-01 Kenichi Handa <handa@m17n.org>
16902
16903 * coding.c (QCascii_compatible_p): New variable.
16904 (syms_of_coding): Initialize it.
16905 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16906 calling string_char.
16907 (record_conversion_result): Add `default:' case.
16908 (coding_charset_list): Delete unused variable `coding_type'.
16909 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16910 property in the plist of the coding system.
16911 (Fcoding_system_put): Check QCascii_compatible_p.
16912
169132008-02-01 Miles Bader <miles@gnu.org>
16914
16915 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16916 removed calculation of frame `f', as it's now used.
16917
169182008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16921 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16922 (UNIDATA): New variable.
16923 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16924 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16925 $(RUN_TEMACS) unconditionally.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16930 (admindir): New variable.
16931 ($(lispsource)international/charprop.el): New target.
16932
169332008-02-01 Miles Bader <miles@gnu.org>
16934
16935 * character.c (chars-in-region): Remove obsolete function.
16936 (syms_of_character): Remove its initialization.
16937
169382008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16939
16940 * w32select.c (validate_coding_system)
16941 (setup_windows_coding_system): New functions.
16942 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16943 setup_windows_coding_system.
16944 (setup_config, Fw32_get_clipboard_data): Use
16945 validate_coding_system.
16946 (Fx_selection_exists): Move call to setup_config to a place
16947 where signals are allowed.
16948
16949 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16950 (Fcheck_coding_system): Add declarations.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16955
169562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16957
16958 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16959 string as the second argument for x_new_fontset.
16960
169612008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16964 (encode_coding_object): Use safe_call instead of call2.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16969
16970 * Makefile.in (lisp): Include charprop.el.
16971
169722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16973
16974 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16975 Not sure if it's unnecessary.
16976
169772008-02-01 Steven Tamm <steventamm@mac.com>
16978
16979 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16980 some possibly unnecessary fontset checking code that crashed
16981 when creating a new frame.
16982
169832008-02-01 Kenichi Handa <handa@m17n.org>
16984
16985 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16986 lookup_face.
16987
16988 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16989
16990 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16991
169922008-02-01 Kenichi Handa <handa@m17n.org>
16993
16994 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16995 (coding_charset_list): New function.
16996
16997 * coding.h (coding_charset_list): Extern it.
16998
169992008-02-01 Kenichi Handa <handa@m17n.org>
17000
17001 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17002 concatenation of family and registry.
17003
170042008-02-01 Kenichi Handa <handa@m17n.org>
17005
17006 * character.h (BYTE8_STRING): Fix typo.
17007
17008 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17009 string to multibyte (sync to HEAD).
17010
17011 * casefiddle.c (casify_region): Handle changes in byte-length
17012 using replace_range_2 (sync to HEAD).
17013
170142008-02-01 Andreas Schwab <schwab@suse.de>
17015
17016 * chartab.c (map_char_table): GCPRO table and arg.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17021 already at limit.
17022
170232008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17026 instead of fast_c_string_match_ignore_case.
17027 (find_font_encoding): Change argument to Lisp_Object. Use
17028 fast_string_match_ignore_case instead of
17029 fast_c_string_match_ignore_case. Change caller.
17030
170312008-02-01 Kenichi Handa <handa@m17n.org>
17032
17033 * xdisp.c (get_next_display_element): In unibyte case, decide to
17034 display in octal form by checking a character by
17035 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17036
17037 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17038
17039 * character.c (unibyte_has_multibyte_table): New variable.
17040
17041 * character.h (unibyte_has_multibyte_table): Extern it.
17042 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * coding.c (encode_coding_iso_2022): Fix handling of charset
17047 annotation.
17048
170492008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * coding.c (setup_coding_system): If coding_system is nil, use
17052 Qundecided.
17053 (Fterminal_coding_system): Return nil if terminal coding system is
17054 `undecided'.
17055 (syms_of_coding): Define coding-system `undecided' here. Setup
17056 terminal_coding as `undecided'.
17057
170582008-02-01 Kenichi Handa <handa@m17n.org>
17059
17060 * xdisp.c (message_dolog, set_message_1): Call
17061 unibyte_char_to_multibyte with arg type int.
17062
17063 * lread.c (read1): Fix reading of a char-table.
17064
17065 * print.c (print_object): Include sub char-table in circularities
17066 detection.
17067
170682008-02-01 Kenichi Handa <handa@m17n.org>
17069
17070 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17071 Append the found sequences in car of ARGS instead of prepending.
17072
170732008-02-01 Kenichi Handa <handa@m17n.org>
17074
17075 * fileio.c (report_file_error): Make a unibyte string from
17076 strerror (errorno).
17077 (Fsubstitute_in_file_name): Fix the arg to
17078 unibyte_char_to_multibyte. It is evaluated twice.
17079
170802008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17083
170842008-02-01 Kenichi Handa <handa@m17n.org>
17085
17086 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17087 BOM is not found.
17088 (detect_coding, detect_coding_system): Optimization for ISO-2022
17089 when no 8-bit data is found.
17090
170912008-02-01 Jason Rumney <jasonr@gnu.org>
17092
17093 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17094
170952008-02-01 Kenichi Handa <handa@m17n.org>
17096
17097 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17098 CHARS.
17099
171002008-02-01 Steven Tamm <steventamm@mac.com>
17101
17102 * macterm.c (mac_encode_char): Add charset argument and update
17103 to use encoding_type.
17104 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17105 switch to pure fontset.
17106 (decode_mac_font_name): Temporarily remove decoding.
17107 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17108 (x_load_font): Temporarily remove encoding.
17109
171102008-02-01 Kenichi Handa <handa@m17n.org>
17111
17112 * xfaces.c (Fface_font): If frame is not on a window system,
17113 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17114 refer to face->font.
17115 (split_font_name_into_vector, build_font_name_from_vector)
17116 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17117 when HAVE_WINDOW_SYSTEM is defined.
17118
171192008-02-01 Kenichi Handa <handa@m17n.org>
17120
17121 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17122 (x_produce_glyphs): Fix setting of members of cmp in case
17123 cmp->glyph_len is zero.
17124
17125 * fontset.c (Fset_fontset_font): Fix docstring.
17126 (Ffontset_info): Make it backward compatible. New arg ALL.
17127
171282008-02-01 Kim F. Storm <storm@cua.dk>
17129
17130 * process.c (read_process_output): Grow decoding_buf when needed;
17131 this could cause a crash in allocate_string and compact_small_strings.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17136
171372008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * coding.c (setup_coding_system): Set coding->common_flags
17140 correctly for raw-text.
17141 (consume_chars): On encoding unibyte text by raw-text, don't check
17142 multibyte form.
17143 (encode_coding): On encoding by raw-text, never use translation tables.
17144
17145 * fileio.c (e_write): Short cut for the case of no encoding.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * coding.c (detect_coding, detect_coding_system): Delete unused
17150 variables.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17155 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * coding.c (Ffind_coding_systems_region_internal): Include
17160 raw-text and no-conversion in the result.
17161
171622008-02-01 Kenichi Handa <handa@m17n.org>
17163
17164 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17165 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17166 FONT_DEF.
17167 (font_def_arg, add_arg, from_arg, to_arg): New args.
17168 (set_fontset_font): Change argument.
17169 (Fset_fontset_font): Fix for the case that TARGET is a script
17170 name and charset name.
17171 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17172
171732008-02-01 Kenichi Handa <handa@m17n.org>
17174
17175 * fontset.c (fontset_font): Rename from fontset_face. Change return
17176 value.
17177 (face_suitable_for_char_p, face_for_char): Adjust for the change
17178 of fontset_font.
17179 (make_fontset_for_ascii_face): Fix setting of the fontset element
17180 for ASCII.
17181 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17182 to get a font name.
17183 (Ffontset_info): Adjust for the change of fontset_font.
17184
17185 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17186
17187 * character.h (LEADING_CODE_LATIN_1_MIN)
17188 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17189
171902008-02-01 Kenichi Handa <handa@m17n.org>
17191
17192 * editfns.c (check_translation): New function.
17193 (Ftranslate_region_internal): Handle M:N mapping.
17194
171952008-02-01 Kenichi Handa <handa@m17n.org>
17196
17197 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17198
171992008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17202 goto invalid_code.
17203 (decode_coding_iso_2022): Fix handling of invalid designation.
17204
17205 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17206 after calling code_conversion_save.
17207
172082008-02-01 Kenichi Handa <handa@m17n.org>
17209
17210 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17211
17212 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17213
17214 * fontset.c: Include "intervals.h".
17215 (fontset_face): Fix comparing of Lisp_Objects.
17216 (free_face_fontset, new_fontset_from_font_name): Fix
17217 Lisp_Object/int mixup.
17218
17219 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17220
17221 * coding.c: Add many prototypes for static functions.
17222 (get_translation_table): Allow max_lookup to be NULL.
17223 (decode_coding, Ffind_coding_systems_region_internal)
17224 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17225 get_translation_table with max_lookup NULL.
17226
172272008-02-01 Kenichi Handa <handa@m17n.org>
17228
17229 * coding.c (get_translation_table): Declare it as Lisp_Object.
17230 (LOOKUP_TRANSLATION_TABLE): New macro.
17231 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17232 instead of CHAR_TABLE_REF.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17237 annotation data format.
17238 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17239 Change arguments FROM and TO to single argument NCHARS. Change caller.
17240 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17241 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17242 (decode_coding_ccl, decode_coding_charset): Pay attention to
17243 coding->charbuf_used.
17244 (get_translation): New function.
17245 (produce_chars): New arguments translation_table and last_block.
17246 Translate characters here. Return number of carryover chars.
17247 Change caller.
17248 (produce_composition): New argument pos. Change caller.
17249 Adjust for the change of annotation data format.
17250 (produce_charset, produce_annotation): Likewise.
17251 (decode_coding, encode_coding): Don't call translate_chars.
17252 (consume_chars): New arg translation_table. Change caller.
17253 (translate_chars): Delete.
17254 (syms_of_coding): Make translation-table's number of extra slots 2.
17255
172562008-02-01 Kenichi Handa <handa@m17n.org>
17257
17258 * search.c (simple_search): Fix setting this_pos_byte in backward
17259 search.
17260
17261 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17262 byte sequence.
17263 (detect_coding_ccl): Fix setting of the variable valids.
17264
172652008-02-01 Kenichi Handa <handa@m17n.org>
17266
17267 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17268
17269 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17270
17271 * editfns.c (Ftranslate_region_internal): Rename from
17272 Ftranslate_region. Accept a char-table in TABLE.
17273 (syms_of_editfns): Defsubr Stranslate_region_internal.
17274
17275 * xfaces.c (set_lface_from_font_name): If a font is specified for
17276 a frame, generate a fontset from the font.
17277 (build_scalable_font_name): If the scalable font is requested for
17278 a specific size, don't change that size.
17279 (try_font_list): Try a scalable font also in the case that a
17280 pattern string is specified.
17281
172822008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * xfaces.c (Fface_font): New optional arg CHARACTER.
17285
172862008-02-01 Kenichi Handa <handa@m17n.org>
17287
17288 * charset.h (CHARSET_OFFSET): New macro.
17289
172902008-02-01 Kenichi Handa <handa@m17n.org>
17291
17292 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17293
17294 * fontset.c (fontset_face): Handle the case that repertory is a
17295 char-table.
17296 (find_font_encoding): Return nil for unknown encoding.
17297 (Fset_fontset_font): Ignore a font of unknown encoding.
17298
172992008-02-01 Kenichi Handa <handa@m17n.org>
17300
17301 * keymap.c (describe_vector): Handle default value of a char table.
17302
17303 * fontset.c (fontset_face): Handle fallback fonts correctly.
17304 (Ffontset_info): Return infomation about fallback fonts.
17305
173062008-02-01 Kenichi Handa <handa@m17n.org>
17307
17308 * fontset.c (FONTSET_DEFAULT): New macro.
17309 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17310 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17311 the case that it is nil.
17312 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17313 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17314
17315 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17316 subset or superset.
17317
173182008-02-01 Kenichi Handa <handa@m17n.org>
17319
17320 * emacs.c (main): Call init_charset after syms_of_XXX.
17321
17322 * charset.c (Vcharset_map_directory): Delete.
17323 (Vcharset_map_path): New variable.
17324 (load_charset_map_from_file): Use Vcharset_map_path instead.
17325 (init_charset): Initialize Vcharset_map_path.
17326 (syms_of_charset): Delete declaration of "charset-map-directory",
17327 add declaration of "charset-map-path".
17328
173292008-02-01 Kenichi Handa <handa@m17n.org>
17330
17331 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17332 ASCII only string.
17333
17334 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17335
17336 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17337 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17338
173392008-02-01 Kenichi Handa <handa@m17n.org>
17340
17341 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17342
17343 * coding.c (QCmnemonic, QCdefalut_char)
17344 (QCdecode_translation_table, QCencode_translation_table)
17345 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17346 (get_translation_table): Return a list of translation tables if
17347 necessary.
17348 (decode_coding): Call get_translation_table with ENCODEP 0.
17349 (char_encodable_p): If translation_table is non-nil, always call
17350 translate_char.
17351 (Fdefine_coding_system_internal): Accept list of translation
17352 tables as :encode-translation-table and :decode-translation-table.
17353 (Fcoding_system_put): New function.
17354 (syms_of_coding): Declare new symbols. Defsubr
17355 Scoding_system_put.
17356 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17357 typically JISX0212.
17358
17359 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17360 when the charset is superset type.
17361
17362 * character.c (translate_char): Accept list of translation tables.
17363
173642008-02-01 Kenichi Handa <handa@m17n.org>
17365
17366 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17367 (CODING_ATTR_TRANS_TBL): New macro.
17368
17369 * coding.c (get_translation_table): New function.
17370 (translate_chars): Fix the bug of skipping annotation data.
17371 (decode_coding, encode_coding): Utilize get_translation_table.
17372 (char_encodable_p, Funencodable_char_position): Translate char if
17373 necessary.
17374 (Ffind_coding_systems_region_internal)
17375 (Fcheck_coding_systems_region): Setup translation table for encode
17376 in a coding system attribute vector in advance.
17377 (Fdefine_coding_system_internal): Allow a symbol as translation
17378 table. For shift-jis type coding system, allow 4th charset.
17379
173802008-02-01 Kenichi Handa <handa@m17n.org>
17381
17382 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17383
17384 * xdisp.c (get_next_display_element): Pass -1 as POS to
17385 FACE_FOR_CHAR if displaying a C-string.
17386
173872008-02-01 Kenichi Handa <handa@m17n.org>
17388
17389 * composite.c (get_composition_id): Handle xoff and yoff in a
17390 composition rule.
17391
17392 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17393 (struct composition): New member lbearing and rbearing.
17394
17395 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17396 (x_get_glyph_overhangs): Handle a composition glyph.
17397 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17398
17399 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17400 composition glyph.
17401
174022008-02-01 Kenichi Handa <handa@m17n.org>
17403
17404 * print.c: Include charset.h.
17405 (Vprint_charset_text_property): New variable.
17406 (Qdefault): Extern it.
17407 (PRINT_STRING_NON_CHARSET_FOUND)
17408 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17409 (print_check_string_result): New variable.
17410 (print_check_string_charset_prop): New function.
17411 (print_prune_charset_plist): New variable.
17412 (print_prune_string_charset): New function.
17413 (print_object): Call print_prune_string_charset if
17414 Vprint_charset_text_property is not t.
17415 (print_interval): Print nothing if interval->plist is nil.
17416 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17417 variable. Init and staticpro print_prune_charset_plist.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * fontset.c (new_fontset_from_font_name): Use the specified font
17422 for all characters in the new fontset.
17423
17424 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17425 OBJECT args.
17426
17427 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17428 OBJECT args for composition too.
17429
17430 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17431 OBJECT args.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17436
17437 * fontset.c (reorder_font_vector): Adjust for the change of
17438 FONT_DEF format.
17439 (fontset_face): New arg id. Change caller.
17440 (face_for_char): New args pos and object.
17441 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17442 (fs_query_fontset): Check NAME by Fassoc too.
17443 (Fset_fontset_font): Allow non-XLFD font name.
17444 (Ffontset_info): Adjust for the change of FONT_DEF format.
17445
17446 * fontset.h (face_for_char): Adjust prototype.
17447
17448 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17449 (append_space, extend_face_to_end_of_line)
17450 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17451 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17452
17453 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17454 POS and OBJECT args.
17455
17456 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17457 POS and OBJECT args.
17458
174592008-02-01 Jason Rumney <jasonr@gnu.org>
17460
17461 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17462 of GlobalAlloc'ed memory.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17467
17468 * charset.h (charset_table_used): Delete extern.
17469
17470 * charset.c (charset_table_used): Make it static.
17471 (map_charset_chars): Fix args to c_function with.
17472
17473 * chartab.c (map_sub_char_table_for_charset): Fix args to
17474 c_function with.
17475
17476 * coding.h (enum coding_result_code): Delete
17477 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17478
17479 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17480 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17481 (Vlast_code_conversion_error): New variables.
17482 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17483 (ONE_MORE_BYTE): Record error if any instead of signaling an
17484 error. If non-ASCII multibyte char is found, return the negative
17485 value of the code. All callers changed to check it.
17486 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17487 (record_conversion_result): New function. Change all codes setting
17488 coding->result to call this function.
17489 (detect_coding_utf_8, decode_coding_utf_8)
17490 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17491 Don't use the local variable incomplete.
17492 (emacs_mule_char): Change the second arg to `const'.
17493 (decode_coding): Fix of flushing out unprocessed data.
17494 (make_conversion_work_buffer): Fix making of a work buffer.
17495 (decode_coding_object): Return coding->dst_object.
17496
17497 * fontset.c (set_fontset_font): Fix args.
17498
17499 * lisp.h (CHARACTERBITS): Define as 22.
17500
17501 * process.c (send_process): Be sure to set coding->src_multibyte.
17502
17503 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17504
175052008-02-01 Kenichi Handa <handa@m17n.org>
17506
17507 * xdisp.c (handle_auto_composed_prop): Give limit to
17508 Fnext_single_char_property_change.
17509
175102008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 * composite.c (syms_of_composite): Don't make the composition hash
17513 table weak.
17514
17515 * fontset.c (Fset_fontset_font): Fix docstring.
17516
17517 * lisp.h (detect_coding_system): Adjust prototype.
17518
17519 * fileio.c (kill_workbuf_unwind): Delete this function.
17520 (Finsert_file_contents): Adjust the call of detect_coding_system.
17521 Get conversion_buffer by code_conversion_save. Use the macro
17522 CODING_MAY_REQUIRE_DECODING. After decoding, update
17523 coding_system.
17524
17525 * coding.h (make_conversion_work_buffer): Delete extern.
17526 (code_conversion_save): Extern it.
17527
17528 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17529 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17530 (decode_coding_utf_8): Don't do eol converion.
17531 (detect_coding_utf_16): Check coding->src_chars, not
17532 coding->src_bytes. Add heuristics for those that have no signature.
17533 (decode_coding_emacs_mule, decode_coding_iso_2022)
17534 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17535 Don't do eol converion.
17536 (adjust_coding_eol_type): Return a new coding system.
17537 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17538 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17539 each change.
17540 (decode_coding): Pay attention to undo_list. Do eol conversion for
17541 all types of coding-systems (if necessary).
17542 (Vcode_conversion_work_buf_list): Delete it.
17543 (Vcode_conversion_reused_workbuf): Rename from
17544 Vcode_conversion_reused_work_buf.
17545 (Vcode_conversion_workbuf_name): New variable.
17546 (reused_workbuf_in_use): New variable.
17547 (make_conversion_work_buffer): Delete the arg DEPTH.
17548 (code_conversion_restore): Change argument to cons.
17549 (code_conversion_save): Delete the argument BUFFER. Change callers.
17550 (detect_coding_system): New argument src_chars. Change callers.
17551 Fix for utf-16 detection.
17552 (init_coding_once): Don't use ISO_carriage_return.
17553 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17554 reused_workbuf_in_use.
17555
175562008-02-01 Kenichi Handa <handa@m17n.org>
17557
17558 * keymap.c (store_in_keymap): Pay attention to the case that idx
17559 is a cons specifying a character range.
17560
175612008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17564 HANDLED_RECOMPUTE_PROPS.
17565
17566 * coding.c (Fdefine_coding_system_internal): Fix checking of
17567 ascii compatibility.
17568
175692008-02-01 Kenichi Handa <handa@m17n.org>
17570
17571 * charset.c (find_charsets_in_text): Delete unused locale variable.
17572 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17573
17574 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17575 Resync charset_list to Vemacs_mule_charset_list.
17576
17577 * keymap.c (store_in_keymap): Pay attention to the case that idx
17578 is a cons specifying a character range.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * composite.c (update_compositions): Bind inhibit-read-only, etc
17583 to t before calling remove-list-of-text-properties.
17584
17585 * print.c (print_object): Always print ASCII chars as is.
17586
175872008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17590
17591 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17592 is a char table.
17593
175942008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17597
175982008-02-01 Kenichi Handa <handa@m17n.org>
17599
17600 * xfaces.c (set_lface_from_font_name): Fix for the case that
17601 FONTNAME is not fontset name.
17602
176032008-02-01 Kenichi Handa <handa@m17n.org>
17604
17605 * fns.c (base64_encode_1): Fix previous change.
17606
176072008-02-01 Kenichi Handa <handa@m17n.org>
17608
17609 * fontset.c (set_fontset_font): New function.
17610 (Fset_fontset_font): If a font is specified for a charset, use
17611 map_charset_chars to store the font spec in a fontset.
17612
176132008-02-01 Kenichi Handa <handa@m17n.org>
17614
17615 * fontset.c (fontset_face): Create a fallback fontset on demand.
17616 (make_fontset): Don't create a fallback fontset here.
17617 (free_face_fontset): Free a fallback fontset (if any) too.
17618 (n_auto_fontsets): Delete this variable.
17619 (auto_fontset_alist): New variable.
17620 (new_fontset_from_font_name): Check auto_fontset_alist.
17621 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17622 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17623 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17624 Defsubr Sfontset_list_all.
17625
176262008-02-01 Kenichi Handa <handa@m17n.org>
17627
17628 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17629
176302008-02-01 Kenichi Handa <handa@m17n.org>
17631
17632 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17633
176342008-02-01 Kenichi Handa <handa@m17n.org>
17635
17636 * editfns.c (Fgoto_char): Fix docstring.
17637
176382008-02-01 Kenichi Handa <handa@m17n.org>
17639
17640 * insdel.c (insert_from_gap): Adjust intervals correctly.
17641
176422008-02-01 Jason Rumney <jasonr@gnu.org>
17643
17644 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17645 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17646 (w32_initialize): Try to load it.
17647 (x_get_font_repertory): Use it if available.
17648 (w32_encode_char): Add shortcut for unicode output.
17649
17650 * w32fns.c (w32_load_system_font): Default charset to -1.
17651 (x_to_w32_charset): Match all fonts for unicode.
17652 (w32_to_x_charset): New parameter matching. Don't return partial
17653 or wildcard charsets.
17654 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17655 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17656 (w32_to_x_font): Match charset to real charset.
17657 (enum_font_cb2): Always list unicode versions.
17658
17659 * makefile.w32-in (temacs): Increase EMHEAP.
17660
176612008-02-01 Jason Rumney <jasonr@gnu.org>
17662
17663 * w32term.c (w32_encode_char): New charset parameter.
17664 font_info.encoding becomes encoding_type.
17665 (x_get_font_repertory): New function. Warning: stub only!
17666 (x_new_font): Return quickly if font already set.
17667 (x_new_fontset): fontsetname parameter is Lisp_Object.
17668 Use new fs_query_fontset. Try new_fontset_from_font_name.
17669 Use fontset_name for return value.
17670
17671 * w32term.h: Declare x_get_font_repertory.
17672
17673 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17674 place of find_charset_in_text. Use encode_coding_object in place
17675 of encode_coding.
17676 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17677 decode_coding.
17678
17679 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17680 of x_new_fontset.
17681 (w32_load_system_font): Initialize charset as unicode.
17682 font_info.encoding becomes encoding_type.
17683 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17684 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17685 (syms_of_w32fns): Set get_font_repertory_func.
17686
17687 * w32console.c: Include character.h. Use terminal_encode_buffer
17688 from term.c.
17689 (write_glyphs): Use new version of encode_terminal_code. Use
17690 encode_coding_object in place of encode_coding.
17691
17692 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17693 encoding becomes encoding_type.
17694
17695 * term.c (terminal_encode_buffer): Make externally visible.
17696
17697 * makefile.w32-in: Add character.h dependancies.
17698 (character.o, chartab.o): New targets.
17699
177002008-02-01 Kenichi Handa <handa@m17n.org>
17701
17702 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17703 CODING_ID_EOL_TYPE.
17704
177052008-02-01 Andreas Schwab <schwab@suse.de>
17706
17707 * coding.c (produce_chars): Revert last change.
17708
177092008-02-01 Kenichi Handa <handa@m17n.org>
17710
17711 * charset.h (charset_unicode): Extern it.
17712
17713 * charset.c (string_xstring_p): Check by (C >= 0x100).
17714 (find_charsets_in_text): Change format of the arc CHARSETS. New
17715 arg MULTIBYTE.
17716 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17717 change of find_charsets_in_text.
17718 (Fsplit_char): Fix doc. Never return unknown.
17719
17720 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17721
17722 * coding.c (Fdefine_coding_system_alias): Update
17723 Vcoding_system_list.
17724
17725 * fontset.c (load_font_get_repertory): Pay attention to the case
17726 that ENCODING of a font is specified by a char-table.
17727
17728 * xterm.c (x_get_font_repertory): Handle the case that the
17729 encoding of font is other than Unicode.
17730
177312008-02-01 Kenichi Handa <handa@m17n.org>
17732
17733 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17734 if a character is encodable by the terminal coding system. If
17735 not, produces proper number of `?'s. Update
17736 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17737 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17738
177392008-02-01 Kenichi Handa <handa@m17n.org>
17740
17741 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17742 variables.
17743 (encode_terminal_code): Change argument. Encode multiple
17744 characters at once. Store the result of encoding in
17745 terminal_encode_buffer.
17746 (write_glyphs, insert_glyphs): Adjust for the change of
17747 encode_terminal_code.
17748 (term_init): Initialize terminal_encode_buffer and
17749 terminal_encode_buf_size.
17750
17751 * coding.c (consume_chars): If coding->src_object is nil, don't
17752 check annotation.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * character.c (char_string): Use ASCII_CHAR_P instead of
17757 SINGLE_BYTE_CHAR_P.
17758
177592008-02-01 Kenichi Handa <handa@m17n.org>
17760
17761 * xdisp.c (handle_auto_composed_prop): Check if the last
17762 characters of auto-composed region is newly composed with the
17763 following characters.
17764 (handle_composition_prop): Fix checking of point being inside
17765 composition.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * fns.c (concat): Don't change multibyteness of the result by
17770 concatenating an 8-bit character.
17771
17772 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17773 multibyteness of the result when newelt is an 8-bit character.
17774
177752008-02-01 Dave Love <fx@gnu.org>
17776
17777 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17778 EMACS_INT.
17779
17780 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17781
17782 * xfaces.c (face_numeric_value): Declare dim size_t.
17783 (Finternal_lisp_face_equal_p): Remove unused f.
17784
17785 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17786 (MATRIX_ROW): Remove unused vars.
17787 (draw_glyphs, x_insert_glyphs, fast_find_position)
17788 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17789 byte/char counts.
17790
17791 * regex.c (regex_compile): Remove unused var.
17792
17793 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17794
17795 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17796 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17797
17798 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17799
17800 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17801
17802 * fileio.c (Fwrite_region): Remove unused var.
17803
17804 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17805 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17806
17807 * composite.c (Fremove_list_of_text_properties): Declare.
17808
17809 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17810 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17811 (coding_inherit_eol_type): Remove unused attrs.
17812 (detect_coding): Cast arg of detect_eol.
17813
17814 * charset.c (syms_of_charset): Remove unused var p.
17815 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17816 byte/char counts.
17817
17818 * casetab.c (set_case_table): Remove unused var.
17819
17820 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17821 unused vars.
17822
178232008-02-01 Dave Love <fx@gnu.org>
17824
17825 * xterm.c (x_bitmap_mask): Declare.
17826
178272008-02-01 Dave Love <fx@gnu.org>
17828
17829 * xterm.c (x_term_init): Fix type error.
17830
17831 * lisp.h: Add Funibyte_char_to_multibyte.
17832
17833 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17834 (Fset_coding_system_priority): Doc fix.
17835
17836 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17837
17838 * indent.c (check_composition): Make start and end EMACS_INT.
17839
17840 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17841
17842 * xdisp.c (handle_composition_prop, check_point_in_composition):
17843 Make buffer positions EMACS_INT.
17844
17845 * composite.c (find_composition, run_composition_function)
17846 (update_compositions, Ffind_composition_internal): Make buffer
17847 positions EMACS_INT.
17848
17849 * composite.h (find_composition, update_compositions): Make
17850 position args EMACS_INT.
17851
17852 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17853
17854 * intervals.c (get_property_and_range):
17855 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17856
17857 * unexalpha.c: Don't include varargs.h.
17858
178592008-02-01 Dave Love <fx@gnu.org>
17860
17861 * coding.h (ENCODE_UTF_8): New.
17862
17863 * Makefile.in (gtkutil.o): Depend on coding.h.
17864
17865 * coding.c (Fset_coding_system_priority): Doc fix.
17866
178672008-02-01 Kenichi Handa <handa@m17n.org>
17868
17869 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17870 the case of auto saving.
17871
178722008-02-01 Andreas Schwab <schwab@suse.de>
17873
17874 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17875 `range' from GC.
17876
178772008-02-01 Kenichi Handa <handa@m17n.org>
17878
17879 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17880
178812008-02-01 Kenichi Handa <handa@m17n.org>
17882
17883 * fileio.c (choose_write_coding_system): Return a decided coding system.
17884 (Fwrite_region): Set Vlast_coding_system_used to the return value
17885 of choose_write_coding_system.
17886
178872008-02-01 Kenichi Handa <handa@m17n.org>
17888
17889 * charset.c (Fset_charset_priority): Pay attention to duplicated
17890 arguments.
17891
17892 * coding.c (QCcategory): New variable.
17893 (syms_of_coding): Defsym it. Set all elements of
17894 Vcoding_category_table and their symbol values.
17895 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17896 coding-category-XXX, and coding-category-list.
17897 (Fdefine_coding_system_internal): Add category in the plist.
17898
178992008-02-01 Kenichi Handa <handa@m17n.org>
17900
17901 * callproc.c (Fcall_process): Handle carryover correctly.
17902
17903 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17904 (raw_text_coding_system): Check NILP (coding_system).
17905 (coding_inherit_eol_type): Check NILP (coding_system) and
17906 NILP (parent).
17907 (consume_chars): Fix for the case of raw-text.
17908
17909 * process.c (read_process_output): Handle carryover correctly.
17910
179112008-02-01 Dave Love <fx@gnu.org>
17912
17913 * regex.c (re_search_2): Fix last change.
17914
179152008-02-01 Kenichi Handa <handa@m17n.org>
17916
17917 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17918 target_multibyte. Even in a unibyte case, return a converted
17919 multibyte char.
17920 (GET_CHAR_AFTER): New macro.
17921 (PATFETCH): Translate via multibyte char.
17922 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17923 (SETUP_MULTIBYTE_RANGE): New macro.
17924 (regex_compile): Setup compiled code so that its multibyteness
17925 matches that of a target. Fix the handling of "[X-YZ]" using
17926 SETUP_MULTIBYTE_RANGE.
17927 (analyse_first) <charset>: For filling fastmap for all multibyte
17928 characters, don't check by BASE_LEADING_CODE_P.
17929 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17930 the same as RE_MULTIBYTE_P (bufp) now.
17931 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17932 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17933 (TRANSLATE_VIA_MULTIBYTE): New macro.
17934 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17935 It is the same as RE_MULTIBYTE_P (bufp) now.
17936 <exactn>: Translate via multibyte.
17937 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17938 translate it.
17939 <charset, charset_not>: Fetch a character by
17940 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17941 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17942 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17943 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17944 by GET_CHAR_AFTER.
17945 (bcmp_translate): Likewise.
17946
17947 * search.c (compile_pattern): Check the member target_multibyte,
17948 not the member multibyte of buf.
17949
17950 * lread.c (read1): While reading a string, set force_singlebyte
17951 and force_multibyte correctly.
17952
17953 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17954 up of unibyte_to_multibyte_table.
17955
179562008-02-01 Kenichi Handa <handa@m17n.org>
17957
17958 * coding.c (setup_coding_system): If coding has
17959 post-read-conversion or pre-write-conversion, set
17960 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17961 respectively.
17962 (decode_coding_gap): Run post-read-conversion if any.
17963
17964 * fileio.c (Finsert_file_contents): Even if we read into a
17965 unibyte buffer, check if we must decode the result or not.
17966
179672008-02-01 Kenichi Handa <handa@m17n.org>
17968
17969 * coding.c (make_conversion_work_buffer): Change the work buffer
17970 name to the same one as that of Emacs 21.
17971
179722008-02-01 Kenichi Handa <handa@m17n.org>
17973
17974 * coding.h (make_conversion_work_buffer): Adjust prototype.
17975 (code_conversion_restore): Don't extern it.
17976
17977 * coding.c (detected_mask): Delete unused variable.
17978 (decode_coding_iso_2022): Pay attention to the byte sequence of
17979 CTEXT extended segment, and retain those bytes as is.
17980 (decode_coding_ccl): Delete unused variable `valids'.
17981 (setup_coding_system): Delete unused variable `category'.
17982 (consume_chars): Delete unused variable `category'. Make it work
17983 for non-multibyte case.
17984 (make_conversion_work_buffer): Change argument.
17985 (saved_coding): Delete unused variable.
17986 (code_conversion_restore): Don't check saved_coding->destination.
17987 (code_conversion_save): New function.
17988 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17989 instead of record_unwind_protect.
17990 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17991 (detect_coding_system): Delete unused variable `mask'.
17992 (Fdefine_coding_system_internal): Delete unused variable id.
17993
17994 * fileio.c (kill_workbuf_unwind): New function.
17995 (Finsert_file_contents): On replacing, call
17996 make_conversion_work_buffer with correct args, and call
17997 record_unwind_protect with the first arg kill_workbuf_unwind.
17998
17999 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18000
180012008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18004 (fontset_add): Fix for the case that TO is less than TO1.
18005 (Ffontset_info): Don't use fallback fontset on checking the
18006 default fontset.
18007 (dump_fontset): New function for debugging.
18008
18009 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18010 coding_type is Qcharset.
18011
180122008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18015 (map_char_table): Don't inherit the value from the parent on
18016 initializing VAL. Adjust for the above change.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * coding.c (Qsignature, Qendian): Delete these variables.
18021 (syms_of_coding): Don't initialize them.
18022 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18023 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18024 detect_info->found.
18025 (decode_coding_utf_16): Don't detect BOM here.
18026 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18027 is NOT utf_16_without_bom.
18028 (setup_coding_system): For a coding system of type utf-16, check
18029 if the attribute :endian is Qbig or not (not nil or not), and set
18030 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18031 (detect_coding): If coding type is utf-16 and BOM detection is
18032 required, detect it.
18033 (Fdefine_coding_system_internal): For a coding system of type
18034 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18035
180362008-02-01 Kenichi Handa <handa@m17n.org>
18037
18038 * coding.c (coding_set_source): Fix for the case that the current
18039 buffer is different from coding->src_object.
18040 (decode_coding_object): Don't use the conversion work buffer if
18041 DST_OBJECT is a buffer.
18042
180432008-02-01 Dave Love <fx@gnu.org>
18044
18045 * lread.c (read_emacs_mule_char) [len==2]: Index
18046 emacs_mule_charset correctly.
18047
180482008-02-01 Dave Love <fx@gnu.org>
18049
18050 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18051 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18052 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18053 treated specially.)
18054 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18055 (detected_mask): Remove Big5 bits.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 The following changes are to make the font rescaling facility
18060 compatible with Emacs 21.
18061
18062 * xfaces.c (Vface_font_rescale_alist): Rename from
18063 Vface_resizing_fonts.
18064 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18065 (font_rescale_ratio): Rename from font_resizing_ratio.
18066 (split_font_name): Set font->rescale_ratio.
18067 (better_font_p): Pay attention to font->rescale_ratio.
18068 (build_scalable_font_name): Likewise. Change RESX, and RESY
18069 fields.
18070 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18071
180722008-02-01 Kenichi Handa <handa@m17n.org>
18073
18074 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18075 (Qutf_16_le): Remove these variables.
18076 (syms_of_coding): Don't DEFSYM them.
18077 (decode_coding_utf_16): Fix handling of BOM.
18078 (encode_coding_utf_16): Fix handling of BOM.
18079
180802008-02-01 Kenichi Handa <handa@m17n.org>
18081
18082 * fileio.c (Finsert_file_contents): On replacing, before decoding
18083 the file into the work buffer, set point of the work buffer to the end.
18084
180852008-02-01 Dave Love <fx@gnu.org>
18086
18087 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18088
180892008-02-01 Dave Love <fx@gnu.org>
18090
18091 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18092 and fix C types.
18093
180942008-02-01 Kenichi Handa <handa@m17n.org>
18095
18096 * xdisp.c (SKIP_GLYPHS): New macro.
18097 (set_cursor_from_row): Pay attention to string display properties.
18098
18099 * category.c (copy_category_entry): Fix for the case that RANGE
18100 is an integer.
18101
18102 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18103
18104 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18105
181062008-02-01 Kenichi Handa <handa@m17n.org>
18107
18108 * charset.c (Fcharset_id_internal): New function.
18109 (syms_of_charset): Defsubr it.
18110
18111 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18112 with the last arg charset_list acquired from coding.
18113 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18114 the attribute coding_attr_ccl_valids.
18115
18116 * coding.h (enum define_coding_ccl_arg_index): Set the first
18117 member coding_arg_ccl_decoder to coding_arg_max.
18118
18119 * ccl.h (ccl_driver): Adjust prototype.
18120
18121 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18122 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18123 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18124 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18125 last arg Qnil.
18126
181272008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18130 call encode_char.
18131
18132 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18133
181342008-02-01 Dave Love <fx@gnu.org>
18135
18136 * composite.c (syms_of_composite): Make composition_hash_table weak.
18137
181382008-02-01 Kenichi Handa <handa@m17n.org>
18139
18140 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18141 (font_name_registry): Don't extern them.
18142 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18143
18144 * fontset.h (Qfontset): Don't extern it.
18145 (new_fontset_from_font_name): Extern it.
18146
18147 * fontset.c: Give 8 extra slots to fontset objects.
18148 (Qfontset_info): New variable.
18149 (syms_of_fontset): Defsym it.
18150 (FONTSET_FALLBACK): New macro.
18151 (fontset_face): Try also the default fontset.
18152 (make_fontset): Realize a fallback fontset from the default fontset.
18153 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18154 using split_font_name_into_vector and build_font_name_from_vector.
18155 (Fset_fontset_font): Access the elements of font_spec by enum
18156 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18157 name by using split_font_name_into_vector.
18158 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18159 generate a proper font name from the fontset name. Update
18160 Vfontset_alias_alist.
18161 (n_auto_fontsets): New variable.
18162 (new_fontset_from_font_name): New function.
18163 (Ffont_info): Store the information about fonts generated from the
18164 default fontset in the first extra slot of the returned char-table.
18165
18166 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18167 (font_name_registry): Delete function.
18168 (split_font_name_into_vector): New function.
18169 (build_font_name_from_vector): New function.
18170 (font_list): The argument REGISTRY is now a list of registry names.
18171 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18172 specifies an explicit font name, return the name as is. Make a
18173 list of registy names.
18174
18175 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18176 of x_new_fontset.
18177 (Fx_create_frame): Don't call x_new_fontset here. Just use
18178 x_list_fonts to check the existence of fonts.
18179
18180 * xterm.h (x_new_fontset): Adjust prototype.
18181
18182 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18183 string. Use new_fontset_from_font_name to create a fontset from a
18184 font name.
18185
181862008-02-01 Kenichi Handa <handa@m17n.org>
18187
18188 * syntax.c (Vfind_word_boundary_function_table): New name for
18189 Vnext_word_boundary_function_table.
18190 (find-word-boundary-function-table): New name for
18191 next-word-boundary-function-table.
18192
181932008-02-01 Dave Love <fx@gnu.org>
18194
18195 * Makefile.in: Fix some dependencies.
18196
18197 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18198 set it to nil before returning.
18199
18200 * composite.c (update_compositions): Fix type error.
18201
18202 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18203
182042008-02-01 Kenichi Handa <handa@m17n.org>
18205
18206 * xterm.c (x_new_font): Optimize for the case that the font is
18207 already set for the frame.
18208
182092008-02-01 Kenichi Handa <handa@m17n.org>
18210
18211 * chartab.c (char_table_ascii): Check if the char table contents
18212 is sub-char-table or not.
18213 (char_table_set, char_table_set_range): Fix argument to
18214 char_table_ascii.
18215
18216 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18217 (detect_coding_utf_8, detect_coding_utf_16)
18218 (detect_coding_emacs_mule, detect_coding_iso_2022)
18219 (detect_coding_sjis, detect_coding_big5)
18220 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18221 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18222 sequence is valid in this coding system. Change callers.
18223 (MAX_ANNOTATION_LENGTH): New macro.
18224 (ADD_ANNOTATION_DATA): New macro.
18225 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18226 ADD_ANNOTATION_DATA. Change the format of annotation data.
18227 (ADD_CHARSET_DATA): New macro.
18228 (emacs_mule_char): New argument ID. Change callers.
18229 (decode_coding_emacs_mule, decode_coding_iso_2022)
18230 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18231 Produce charset annotation data in coding->charbuf.
18232 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18233 to charset annotation data in coding->charbuf.
18234 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18235 coding->common_flags if the coding system is iso-2022 based and
18236 uses designation.
18237 (produce_composition): Adjust for the new annotation data format.
18238 (produce_charset): New function.
18239 (produce_annotation): Handle charset annotation.
18240 (handle_composition_annotation, handle_charset_annotation): New
18241 functions.
18242 (consume_chars): Handle charset annotation. Utilize the above two
18243 functions.
18244 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18245 buffer, get the deleted text as a string and set
18246 coding->src_object to that string.
18247 (detect_coding, detect_coding_system): Use the new struct
18248 coding_detection_info.
18249
18250 * coding.h (struct coding_detection_info): New structure.
18251 (struct coding_system): Adjust prototype of the member `detector'.
18252 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18253
182542008-02-01 Kenichi Handa <handa@m17n.org>
18255
18256 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18257
182582008-02-01 Dave Love <fx@gnu.org>
18259
18260 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18261 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18262 to new local and nullify apropos_accumulate before returning.
18263 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18264
182652008-02-01 Kenichi Handa <handa@m17n.org>
18266
18267 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18268 correctly.
e3eea1fc 18269
aac0c6e3
MR
182702008-02-01 Dave Love <fx@gnu.org>
18271
18272 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 The following changes are to make character composition happen
18277 automatically on displaying.
18278
18279 * Makefile.in (lisp, shortlisp): Add composite.elc.
18280
18281 * composite.h (Qauto_composed, Vauto_composition_function)
18282 (Qauto_composition_function): Extern them.
18283
18284 * composite.c (Vcomposition_function_table)
18285 (Qcomposition_function_table): Delete variables.
18286 (Qauto_composed, Vauto_composition_function)
18287 (Qauto_composition_function): New variables.
18288 (run_composition_function): Don't call
18289 compose-chars-after-function.
18290 (update_compositions): Clear `auto-composed' text property.
18291 (compose_chars_in_text): Delete this function.
18292 (syms_of_composite): Staticpro Qauto_composed and
18293 Qauto_composition_function. Declare Vauto_composition_function as
18294 a Lisp variable.
18295
18296 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18297
18298 * xdisp.c (it_props): Add an entry for Qauto_composed.
18299 (handle_auto_composed_prop): New function.
18300
18301 * xselect.c (selection_data_to_lisp_data): Don't call
18302 compose_chars_in_text.
18303
183042008-02-01 Dave Love <fx@gnu.org>
18305
18306 * keyboard.c (read_char): Modify checking around use of
18307 Vkeyboard_translate_table.
18308
18309 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18310 and fix C types.
18311
183122008-02-01 Kenichi Handa <handa@m17n.org>
18313
18314 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18315 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18316 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18317 the case that the last byte is '\r' correctly.
18318 (decode_coding): Flush out the unprocessed data correctly.
18319 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18320
183212008-02-01 Dave Love <fx@gnu.org>
18322
18323 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18324 Add XK_ISO... case.
18325 (xaw_scroll_callback): Revert last change.
18326
183272008-02-01 Kenichi Handa <handa@m17n.org>
18328
18329 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18330
183312008-02-01 Kenichi Handa <handa@m17n.org>
18332
18333 * xfaces.c (Vface_resizing_fonts): New variable.
18334 (struct font_name): New member `resizing_ratio'.
18335 (font_resizing_ratio): New function.
18336 (split_font_name): Set font->resizing_ratio.
18337 (better_font_p): Pay attention to font->resizing_ratio.
18338 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18339 RESX, and RESY fields.
18340 (try_alternative_families): Try scalable fonts if
18341 Vscalable_fonts_allowed is not Qt.
18342 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18343
183442008-02-01 Dave Love <fx@gnu.org>
18345
18346 * xterm.c (xaw_scroll_callback): Cast correctly.
18347
183482008-02-01 Dave Love <fx@gnu.org>
18349
18350 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18351 (lispy_kana_keys): Comment out.
18352 (make_lispy_event) [XK_kana_A]: Comment out.
18353
18354 * xterm.c (xaw_scroll_callback): Cast call_data.
18355 (XTread_socket): Deal with ASCII keysyms.
18356 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18357
183582008-02-01 Dave Love <fx@gnu.org>
18359
18360 * xterm.c (Vx_keysym_table): New.
18361 (syms_of_xterm): Initialize it.
18362 (XTread_socket): Use it.
18363 From head: Eliminate incorrect optimization that tried to avoid
18364 decoding the output of X*LookupString.
18365 (x_get_font_repertory): Delete charset declaration.
18366
183672008-02-01 Kenichi Handa <handa@m17n.org>
18368
18369 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18370 return 0.
18371 (Fdefine_coding_system_internal): Setup
18372 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18373
183742008-02-01 Dave Love <fx@gnu.org>
18375
18376 * coding.c (Fcheck_coding_system): Doc fix.
18377
18378 * editfns.c (Finsert_byte): Return a proper value.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * coding.c (decode_coding): Fix args to translate_chars. Pay
18383 attention to Vstandard_translation_table_for_decode.
18384 (encode_coding): Fix args to translate_chars. Pay attention to
18385 Vstandard_translation_table_for_encode.
18386
18387 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18388 SINGLE_BYTE_CHAR_P.
18389
18390 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18391 not by SINGLE_BYTE_CHAR_P.
18392
18393 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18394 SINGLE_BYTE_CHAR_P.
18395
18396 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18397 SINGLE_BYTE_CHAR_P.
18398
18399 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18400 by SINGLE_BYTE_CHAR_P.
18401
18402 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18403 SINGLE_BYTE_CHAR_P.
18404
184052008-02-01 Dave Love <fx@gnu.org>
18406
18407 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18408
184092008-02-01 Dave Love <fx@gnu.org>
18410
18411 * fns.c (Flanginfo): Fix typo.
18412
18413 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18414
184152008-02-01 Kenichi Handa <handa@m17n.org>
18416
18417 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18418 (detect_coding_emacs_mule, detect_coding_iso_2022)
18419 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18420 incomplete byte sequence. Don't update *mask when correctly detected.
18421 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18422 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18423 (detect_coding, detect_coding_system): Adjust for the changes above.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * character.c (char_string): Rename from
18428 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18429 (string_char): Rename from string_char.
18430
18431 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18432 if C is greater than MAX_3_BYTE_CHAR.
18433 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18434 string_char instead of string_char_with_unification.
18435
184362008-02-01 Dave Love <fx@gnu.org>
18437
18438 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * keymap.c (push_key_description): Pay attention to force_multibyte.
18443
18444 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18445
184462008-02-01 Dave Love <fx@gnu.org>
18447
18448 * charset.c (define_charset_internal): Rename `supprementary'.
18449
18450 * Makefile.in (lisp, shortlisp): Remove latin-N.
18451
184522008-02-01 Dave Love <fx@gnu.org>
18453
18454 * xfns.c (x_window, x_window): Use use_xim.
18455
18456 * xterm.c (use_xim): Initialize.
18457 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18458 (x_term_init): Maybe set use_xim.
18459
18460 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18461
184622008-02-01 Kenichi Handa <handa@m17n.org>
18463
18464 * search.c (search_buffer): Fix case-fold-search of multibyte
18465 characters.
18466 (boyer_moore): Rename the last argument to char_high_bits.
18467
184682008-02-01 Kenichi Handa <handa@m17n.org>
18469
18470 * xdisp.c (display_string): Fix for the case of zero width glyph.
18471
18472 * xfns.c (x_set_font): Change the error message of the case that
18473 x_new_fontset returns Qt.
18474
18475 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18476 (Finternal_set_lisp_face_attribute): Use signal_error for the
18477 error of invalid fontset.
18478
18479 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18480 fontset, return Qt.
18481
184822008-02-01 Dave Love <fx@gnu.org>
18483
18484 * unexelf.c (unexec): Make .got handling not SGI-specific.
18485
18486 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18487
18488 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18489
18490 * keyboard.c (read_key_sequence): Fix type error.
18491
18492 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18493 type error.
18494
18495 * fontset.c (fontset_add): Return Lisp_Object.
18496
184972008-02-01 Dave Love <fx@gnu.org>
18498
18499 * charset.h (charset_ordered_list_tick): Declare extern.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 The following changes (and some of 2008-02-01 changes of mine) are
18504 for handling syntax, category, and case conversion for unibyte
18505 characters by converting them to multibyte on the fly. With these
18506 changes, we don't have to setup syntax and case tables for unibyte
18507 characters in each language environment.
18508
18509 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18510 multibyte if necessary.
18511
18512 * bytecode.c (Fbyte_code): Likewise.
18513
18514 * character.h (LEADING_CODE_LATIN_1_MIN)
18515 (LEADING_CODE_LATIN_1_MAX): New macros.
18516 (unibyte_to_multibyte_table): Extern it.
18517 (unibyte_char_to_multibyte): New macro.
18518 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18519 (CHAR_LEADING_CODE): New macro.
18520 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18521
18522 * character.c (unibyte_to_multibyte_table): New variable.
18523 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18524 (multibyte_char_to_unibyte): If C is an eight-bit character,
18525 convert it to the corresponding byte value.
18526
18527 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18528 not 1, signals an error. Update the elements of
18529 unibyte_to_multibyte_table.
18530 (init_charset_once): Initialize unibyte_to_multibyte_table.
18531 (syms_of_charset): Define the charset `iso-8859-1'.
18532
18533 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18534 as is without converting it to unibyte. In a unibyte buffer,
18535 convert C to multibyte before checking the syntax.
18536
18537 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18538
18539 * minibuf.c (Fminibuffer_complete_word): Use the macro
18540 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18541
18542 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18543
18544 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18545 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18546 that is zero, convert an eight-bit char to multibyte.
18547 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18548 non-emacs case.
18549 (PATFETCH): Convert an eight-bit char to multibyte.
18550 (HANDLE_UNIBYTE_RANGE): New macro.
18551 (regex_compile): Setup the compiled pattern for multibyte chars
18552 even if the given regex string is unibyte. Use PATFETCH_RAW
18553 instead of PATFETCH in many places. To handle `charset'
18554 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18555 only for ASCII chars.
18556 (analyse_first) <exactn>: Simplify because the compiled pattern
18557 is multibyte.
18558 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18559 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18560 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18561 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18562 multibyte always 1.
18563 (re_search_2): In emacs, set the locale variable multibyte to 1,
18564 otherwise to 0. New local variable target_multibyte. Check it
18565 to decide the multibyteness of STR1 and STR2. If
18566 target_multibyte is zero, convert unibyte chars to multibyte
18567 before translating and checking fastmap.
18568 (TARGET_CHAR_AND_LENGTH): New macro.
18569 (re_match_2_internal): In emacs, set the locale variable multibyte
18570 to 1, otherwise to 0. New local variable target_multibyte. Check
18571 it to decide the multibyteness of STR1 and STR2. Use
18572 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18573 <charset, charset_not>: If multibyte is nonzero, check fastmap
18574 only for ASCII chars. Call bcmp_translate with
18575 target_multibyte, not with multibyte.
18576 <begline>: Declare the local variable C as `unsigned'.
18577 (bcmp_translate): Change the last arg name to target_multibyte.
18578
18579 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18580 the regexp pattern and the matching target. Set cp->buf.multibyte
18581 to the multibyteness of the regexp pattern. Set
18582 cp->but.target_multibyte to the multibyteness of the matching target.
18583 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18584 FETCH_STRING_CHAR_ADVANCE.
18585 (Freplace_match): Convert unibyte chars to multibyte.
18586
18587 * syntax.c (char_quoted, back_comment, scan_words)
18588 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18589 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18590 unibyte chars to multibyte.
18591 (skip_chars): Delete the arg syntaxp, and move the code for
18592 handling syntaxes to skip_syntaxes. Change callers.
18593 Fix the case that the multibyteness of STRING and the current
18594 buffer doesn't match.
18595 (skip_syntaxes): New function.
18596 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18597 SINGLE_BYTE_CHAR_P.
18598
185992008-02-01 Kenichi Handa <handa@m17n.org>
18600
18601 * xfaces.c (QCfontset): New variable.
18602 (LFACE_FONTSET): New macro.
18603 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18604 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18605 (Finternal_set_lisp_face_attribute)
18606 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18607 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18608 check also LFACE_FONTSET_INDEX.
18609 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18610 attrs[LFACE_FONT_INDEX].
18611 (syms_of_xfaces): Intern and staticpro QCfontset.
18612
18613 * dispextern.h (enum lface_attribute_index): New member
18614 LFACE_FONTSET_INDEX.
18615
18616 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * coding.c (coding_set_destination): Fix coding->destination for
18621 the case converting a region.
18622 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18623 (encode_coding_object): Fix coding->dst_pos and
18624 coding->dst_pos_byte for the case converting a region.
18625
18626 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18627
18628 * character.h (BYTE8_STRING): New macro.
18629
18630 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18635 characters by octal form.
18636
18637 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18638
18639 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18640 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18641 _fetch_multibyte_char_len.
18642 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18643
18644 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18645
18646 * casefiddle.c (casify_object): Simplify. Handle the case that
18647 the case conversion change the byte length.
18648 (casify_region): Likewise.
18649
18650 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18651
18652 * character.c (_fetch_multibyte_char_len): Delete this variable.
18653 (syms_of_character): Setup Vprintable_chars.
18654
18655 * editfns.c (Fchar_equal): Fix for the unibyte case.
18656 (Finsert_byte): New function.
18657 (syms_of_editfns): Defsubr it.
18658
18659 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18660 of direct code 0x3ffff.
18661
18662 * search.c (Freplace_match): Fix for the unibyte case.
18663
186642008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * lread.c (safe_to_load_p): Fix the logic.
18667
18668 * syntax.c (scan_words): Don't treat characters belonging to
18669 different scripts as constituting a word.
18670
18671 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18672
18673 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18674
18675 * emacs.c (main): In the case of --unibyte, instead of aborting on
18676 finding non-empty buffer, make it unibyte.
18677
186782008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18681 to create a fontset.
18682
186832008-02-01 Dave Love <fx@gnu.org>
18684
18685 * character.c (Funibyte_char_to_multibyte): Doc fix.
18686
18687 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18688
186892008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * fontset.c (fontset_add): Make the type `int'.
18692 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18693
18694 * character.c (unibyte_char_to_multibyte)
18695 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18696 charset_unibyte, not charset_primary.
18697
18698 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18699
18700 * charset.c (charset_unibyte): Rename from charset_primary.
18701 (Funibyte_charset): Rename from Fprimary_charset.
18702 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18703 (syms_of_charset): Adjust for the above changes.
18704
18705 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18706 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18707 it->multibyte_p is zero.
18708
18709 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18710 Delete extern.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * coding.c (Fdefine_coding_system_internal): Fix category setting
18715 for a coding system of type iso-2022.
18716
187172008-02-01 Kenichi Handa <handa@m17n.org>
18718
18719 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * syntax.c (Vnext_word_boundary_function_table): New variable.
18724 (next-word-boundary-function-table): Declare it as a Lisp variable
18725 in syms_of_syntax.
18726 (scan_words): Call functions in Vnext_word_boundary_function_table
18727 if any.
18728
18729 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18730
18731 * fontset.c (fs_load_font): If fontp->charset is not negative,
18732 return fontp without setting its members.
18733
187342008-02-01 Dave Love <fx@gnu.org>
18735
18736 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18737
18738 * m/sparc.h (HAVE_ALLOCA): Delete.
18739
18740 * s/irix6-5.h: Don't include strings.h.
18741 (bcopy, bzero, bcmp): Don't undef.
18742
18743 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18744
18745 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18746 (TIOCSIGSEND): Don't test IRIX6.
18747 (bcopy, bzero, bcmp): Define conditionally.
18748
187492008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * buffer.c (Qas, Qmake, Qto): New variables.
18752 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18753 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18754
18755 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18756 we are inserting a process output into a multibyte buffer.
18757
18758 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18759 multibyte_char_to_unibyte.
18760
18761 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18762 by the primary charset, make it eight-bit char.
18763 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18764
18765 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18766 (charset_8_bit__control, charset_8_bit_graphic)
18767 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18768 (define_charset_internal): New function.
18769 (syms_of_charset): Call define_charset_internal for pre-defined
18770 charsets.
18771
18772 * charset.h (charset_8_bit): Extern it.
18773
18774 * coding.c (make_conversion_work_buffer): Adjust for the change
18775 of Fset_buffer_multibyte.
18776 (encode_coding_raw_text): Increment p0 in the loop.
18777
18778 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18779
18780 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18781 for the change of Fset_buffer_multibyte.
18782
18783 * fns.c (Fstring_to_multibyte): New function.
18784 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18785
187862008-02-01 Dave Love <fx@gnu.org>
18787
18788 * xfns.c (x_put_x_image): Declare args.
18789
18790 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18791 (try_font_list): Declare an arg.
18792
18793 * xdisp.c (message2_nolog, set_message): Declare an arg.
18794
18795 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18796
18797 * syntax.c (scan_sexps_forward): Declare an arg.
18798
18799 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18800 Declare an arg.
18801
18802 * lisp.h (Fnew_fontset): Declare.
18803
18804 * keymap.c (push_key_description): Call CHARACTERP correctly.
18805
18806 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18807 (face_for_char): Delete unused vars.
18808 (Fset_fontset_font): Doc fix. Delete unused vars.
18809
18810 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18811
18812 * composite.c (update_compositions): Declare arg.
18813
18814 * cm.c (calccost, cmgoto): Declare args.
18815
18816 * charset.c: Remove `emacs' conditional. Doc fixes.
18817 (map_char_table_for_charset): Declare.
18818
18819 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18820
18821 * ccl.c: Remove `emacs' conditional.
18822
188232008-02-01 Kenichi Handa <handa@m17n.org>
18824
18825 The following changes are to allow specifying multiple font
18826 patterns for a character range (specified by script or charset).
18827
18828 * Makefile.in (abbrev.o): Depend on syntax.h.
18829 (xfaces.o): Depend on charset.h.
18830
18831 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18832 SINGLE_BYTE_CHAR_P.
18833
18834 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18835
18836 * character.h (Vchar_script_table): Extern it.
18837
18838 * character.c (Vscript_alist): Delete.
18839 (Vchar_script_table, Qchar_script_table): New variable.
18840 (syms_of_character): Declare Vchar_script_table as a lisp variable
18841 and initialize it.
18842
18843 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18844 have property char-table-extra-slots, make no extra slot.
18845
18846 * dispextern.h (struct face): Delete member `charset'.
18847 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18848 SINGLE_BYTE_CHAR_P.
18849 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18850 Add prototypes.
18851 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18852 (generate_ascii_font_name): Rename from generate_ascii_font.
18853
18854 * fontset.h (get_font_repertory_func): New prototype.
18855 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18856 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18857
18858 * fontset.c (Qprepend, Qappend): New variables.
18859 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18860 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18861 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18862 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18863 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18864 (load_font_get_repertory): New functions.
18865 (fontset_set): Delete.
18866 (fontset_face): New arg FACE. Return face ID, not face.
18867 Complete re-write to handle new fontset structure. Change caller.
18868 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18869 (face_for_char): Don't call lookup_face.
18870 (make_fontset_for_ascii_face): New arg FACE.
18871 (fs_load_font): New arg CHARSET_ID. Don't check
18872 Vfont_encoding_alist here.
18873 (find_font_encoding): New function.
18874 (list_fontsets): Use STRINGP, not ! NILP.
18875 (accumulate_script_ranges): New function.
18876 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18877 re-written to handle new fontset structure.
18878 (Ffontset_font): Return a copy of element.
18879 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18880 docstring of font-encoding-alist.
18881
18882 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18883 (Fset_fotset_font): Fix arguments to 5.
18884
18885 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18886
18887 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18888 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18889 (highlight_trailing_whitespace): Adjust for the change of
18890 lookup_named_face.
18891
18892 * xfaces.c: Include charset.h.
18893 (load_face_font): Delete argument C. Change caller.
18894 (generate_ascii_font_name): Rename from generate_ascii_font.
18895 (font_name_registry): New function.
18896 (cache_face): Store ascii faces before non-ascii faces in buckets.
18897 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18898 Lookup only ascii faces.
18899 (lookup_non_ascii_face): New function.
18900 (lookup_named_face): Delete argument C. Change caller.
18901 (lookup_derived_face): Delete argument C. Change caller.
18902 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18903 a string, just call font_list with it.
18904 (choose_face_font): Delete arguments FACE and C. New arg
18905 FONT_SPEC. Change caller.
18906 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18907 Change caller.
18908 (realize_non_ascii_face): New function.
18909 (realize_x_face): Call load_face_font here.
18910 (realize_tty_face): Delete argument C. Change caller.
18911 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18912 get a face ID.
18913 (dump_realized_face): Don't print charset of FACE.
18914
18915 * xfns.c (x_set_font): Always call x_new_fontset and
18916 store_frame_parameter.
18917 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18918 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18919
18920 * xterm.h (x_get_font_repertory): Extern it.
18921
18922 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18923 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18924 it->multibyte_p is zero.
18925 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18926 (x_new_fontset): If FONTSETNAME doesn't match any existing
18927 fontsets, create a new one.
18928 (x_get_font_repertory): New function.
18929
189302008-02-01 Kenichi Handa <handa@m17n.org>
18931
18932 * coding.c (Ffind_coding_systems_region_internal): Detect an
18933 ASCII only string correctly.
18934
18935 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18936 version is 0.
18937
189382008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * lread.c: Include "coding.h".
18941 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18942 (load_each_byte, unread_char): New variables.
18943 (readchar_backlog): Delete.
18944 (readchar): Return a character unless load_each_byte is nonzero.
18945 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18946 cons. If unread_char is not -1, simply return it.
18947 (unreadchar): Handle the case that readcharfun is
18948 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18949 (read_multibyte): Delete.
18950 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18951 (read_emacs_mule_char): New functions.
18952 (Fload): Even if the file doesn't have the extension ".elc", if
18953 safe_to_load_p returns a positive version number, assume that the
18954 file contains bytecompiled code. If the version is less than 22,
18955 load the file while decoding multibyte sequences by emacs-mule.
18956 (readevalloop): Don't use readchar_backlog.
18957 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18958 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18959 (read_escape): Delete the arg BYTEREP.
18960 (read1): Set load_each_byte to 1 temporarily while handling
18961 #@NUMBER. Don't call read_multibyte.
18962 (read_vector): Call Fread with a cons. If readcharfun is
18963 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18964 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18965 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18966 and Qload_force_doc_strings.
18967
189682008-02-01 Kenichi Handa <handa@m17n.org>
18969
18970 * xdisp.c (face_before_or_after_it_pos): Call
18971 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * character.h (TRAILING_CODE_P): New macro.
18976 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18977 (string_char_with_unification): Fix prototype.
18978 (Vscript_alist): Extern it.
18979
18980 * character.c (Vscript_alist): New variable.
18981 (string_char_with_unification, str_as_unibyte)
18982 (string_escape_byte8): Add `const' to local variables.
18983 (syms_of_character): Declare script-alist as a Lisp variable.
18984
18985 * charset.h (Vcharset_ordered_list): Extern it.
18986 (charset_ordered_list_tick): Extern it.
18987 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18988 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18989 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18990 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18991 (Funify_charset): Adjust for the change of Funify_charset.
18992
18993 * charset.c (charset_ordered_list_tick): New variable.
18994 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18995 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18996 deunify intead of unify a charset.
18997 (string_xstring_p): Add `const' to local variables.
18998 (find_charsets_in_text): Add `const' to arguments and local variables.
18999 (encode_char): Adjust for the change of Funify_charset. Fix
19000 detecting of invalid code.
19001 (Fset_charset_priority): Increment charset_ordered_list_tick.
19002 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19003 and TO_CODE.
19004
19005 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19006 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19007 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19008 (decode_coding_ccl, consume_chars)
19009 (Ffind_coding_systems_region_internal)
19010 (Fcheck_coding_systems_region): Add `const' to local variables.
19011
19012 * print.c (print_object): Use octal form for printing the
19013 contents of a bool vector.
19014
190152008-02-01 Dave Love <fx@gnu.org>
19016
19017 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19018 <version == 20>: Refuse to load.
19019
190202008-02-01 Dave Love <fx@gnu.org>
19021
19022 * fns.c: Move coding.h.
19023 (Qcodeset, Qdays, Qmonths): New.
19024 (concat): Use CHARACTERP instead of INTEGERP.
19025 (Flocale_codeset): Delete.
19026 (Flanginfo): New function.
19027 (syms_of_fns): Change accordingly.
19028
19029 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19030
190312008-02-01 Dave Love <fx@gnu.org>
19032
19033 * casetab.c (init_casetab_once, init_casetab_once): Fix
19034 CHAR_TABLE_SET call.
19035
19036 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19037
19038 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19039
19040 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19041 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19042 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19043
19044 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19045
19046 * coding.c (ENCODE_DESIGNATION, decode_eol)
19047 (make_conversion_work_buffer, code_conversion_restore)
19048 (Fdefine_coding_system_internal): Convert Lisp types.
19049 (code_conversion_restore): Use EQ, not ==.
19050 (Fencode_coding_string): Fix code_convert_string call.
19051
19052 * coding.h (code_convert_region): Fix prototype.
19053
19054 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19055
19056 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19057 (Ffontset_info): Convert Lisp types.
19058
19059 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19060
19061 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19062
19063 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19064
19065 * chartab.c: Include "...h", not <...h> in some cases.
19066
19067 * callproc.c (Fcall_process): Remove unused variables.
19068
190692008-02-01 Dave Love <fx@gnu.org>
19070
19071 * coding.c (Fset_coding_system_priority): Allow null arg list.
19072
190732008-02-01 Dave Love <fx@gnu.org>
19074
19075 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19076 (Fself_insert_and_exit): Use CHARACTERP.
19077
19078 * callproc.c (Fcall_process): Remove unused vars.
19079
19080 * xterm.c (XTread_socket): Add extra dead keysyms.
19081
19082 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19083
19084 * dispextern.h: Remove prototypes for redraw_frame,
19085 redraw_garbaged_frames.
19086
19087 * cmds.c (Fself_insert_command): Use CHARACTERP.
19088
19089 * chartab.c (make_sub_char_table): Remove unused var.
19090 (Fset_char_table_default, Fmap_char_table): Doc fix.
19091
19092 * keymap.c (access_keymap): Remove generic char code.
19093 (push_key_description): Use CHARACTERP.
19094
190952008-02-01 Dave Love <fx@gnu.org>
19096
19097 * charset.c: Doc fixes.
19098 (Funify_charset): Extra checking.
19099
191002008-02-01 Dave Love <fx@gnu.org>
19101
19102 * lread.c: Remove some unused variables.
19103 (safe_to_load_p): If safe, return the magic number version byte.
19104 (Fload): Maybe use load-with-code-conversion.
19105
191062008-02-01 Kenichi Handa <handa@m17n.org>
19107
19108 * category.c (Fmodify_category_entry): Don't modify the contents
19109 of category_set for characters out of the range. Avoid
19110 unnecessary modification.
19111
19112 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19113 Vchar_unify_table. The default value of the table is now nil.
19114
19115 * character.c (syms_of_character): Setup Vchar_width_table for
19116 eight-bit-control and raw-byte chars.
19117
19118 * charset.h (enum define_charset_arg_index): Delete
19119 charset_arg_parents and add charset_arg_subset and
19120 charset_arg_superset.
19121 (enum charset_attr_index): Delete charset_parents and add
19122 charset_subset and charset_superset.
19123 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19124 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19125 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19126 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19127 (CHARSET_SUPERSET): New macros.
19128 (charset_work): Extern it.
19129 (ENCODE_CHAR): Use charset_work.
19130 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19131 (map_charset_chars): Extern it.
19132
19133 * charset.c (load_charset_map): Set the default value of encoder
19134 and deunifier char-tables to nil.
19135 (map_charset_chars): Change argument. Change callers. Use
19136 map_char_table_for_charset instead of map_char_table.
19137 (Fmap_charset_chars): New optional args from_code and to_code.
19138 (Fdefine_charset_internal): Adjust for the change of
19139 `define-charset' (:parents -> :subset or :superset).
19140 (charset_work): New variable.
19141 (encode_char, syms_of_charset): Adjust for the change of
19142 Fdefine_charset_internal.
19143 (Ffind_charset_string): Setup the vector `charsets' correctly.
19144
19145 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19146 the previous change.
19147 (char_table_ref_and_range): Adjust for the above change.
19148 (map_sub_char_table_for_charset): New function.
19149 (map_char_table_for_charset): New function.
19150
19151 * keymap.c (describe_vector): Handle a char-table directly here.
19152 (describe_char_table): Delete.
19153
19154 * lisp.h (map_charset_chars): Delete.
19155
191562008-02-01 Dave Love <fx@gnu.org>
19157
19158 * fns.c (count_combining): Comment out (unused).
19159 (Flocale_codeset): New.
19160 (syms_of_fns): Defsubr it.
19161
19162 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19163 (size_t): Remove.
19164
191652008-02-01 Dave Love <fx@gnu.org>
19166
19167 * Makefile.in (chartab.o): Depend on charset.h.
19168
191692008-02-01 Kenichi Handa <handa@m17n.org>
19170
19171 * character.c (syms_of_character): Set the default value of
19172 Vprintable_chars to Qnil.
19173
191742008-02-01 Dave Love <fx@gnu.org>
19175
19176 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19177
191782008-02-01 Kenichi Handa <handa@m17n.org>
19179
19180 * charset.c (load_charset_map): Handle the case that from < to
19181 correctly.
19182
19183 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19184 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19185 Pay attention to raw-8-bit chars.
19186
191872008-02-01 Kenichi Handa <handa@m17n.org>
19188
19189 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19190 It is not bytecompiled now.
19191
19192 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19193 (charset_jisx0208): New variables.
19194 (Fdefine_charset_internal): Setup them if appropriate.
19195 (init_charset_once): Initialize them to -1.
19196
19197 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19198 (charset_jisx0208): Extern them.
19199
19200 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19201 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19202 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19203 (setup_iso_safe_charsets): Fix arguments to Fassq.
19204 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19205 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19206 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19207 (encode_coding_iso_2022): Change the 1st arg to
19208 ENCODE_ISO_CHARACTER to a variable.
19209
192102008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * charset.h (enum define_charset_arg_index): New enums
19213 charset_arg_min_code and charset_arg_max_code.
19214 (struct charset): New member char_index_offset.
19215
19216 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19217 Take charset->char_index_offset into account.
19218 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19219 args[charset_arg_max_code]. Setup charset.char_index_offset.
19220 (syms_of_charset): Fix args to Fdefine_charset_internal.
19221
192222008-02-01 Dave Love <fx@gnu.org>
19223
19224 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19225
192262008-02-01 Dave Love <fx@gnu.org>
19227
19228 * coding.c: Doc fixes.
19229 (Fcoding_system_aliases): Fix return value.
19230 (Qmac): Remove (duplicated) definition.
19231
192322008-02-01 Dave Love <fx@gnu.org>
19233
362654a6
JB
19234 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19235 New functions.
aac0c6e3
MR
19236
19237 * character.c (Fstring): Doc fix.
19238
19239 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19240
362654a6 19241 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19242 (font-encoding-alist): Doc fix.
19243
192442008-02-01 Dave Love <fx@gnu.org>
19245
19246 * term.c (costs_set): Declare static, non-initialized for pcc.
19247 (encode_terminal_code): Remove unused var.
19248
19249 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19250 for K&R.
19251
19252 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19253
19254 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19255 (suffixes): Move out of make_subsidiaries for K&R.
19256
19257 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19258
19259 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19260
192612008-02-01 Dave Love <fx@gnu.org>
19262
19263 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19264
19265 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19266
192672008-02-01 Yong Lu <lyongu@asia-infonet.com>
19268
19269 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19270
19271 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19276 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * coding.c (decode_coding_charset): Adjust for the change of
19281 Fdefine_coding_system_internal.
19282 (Fdefine_coding_system_internal): For a coding system of
19283 `charset' type, store a list of charset IDs in
19284 `charset_attr_charset_valids' element of coding attributes.
19285
192862008-02-01 Kenichi Handa <handa@m17n.org>
19287
19288 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19289 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19290 caller. Handle 2-byte and 3-byte charsets correctly.
19291 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19292 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19293 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19294 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19295 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19296 sequence.
19297 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19298 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19299 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19300 and alt&rule composition.
19301 (decode_coding_iso_2022): Handle composition correctly.
19302 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19303
19304 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19305 re-defining a charset. If the charset has :emacs-mule-id, setup
19306 emacs_mule_bytes.
19307 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19312 (encode_coding_big5, encode_coding_charset): If coding requires safe
19313 encoding, produce a character specified by
19314 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19315
193162008-02-01 Dave Love <fx@gnu.org>
19317
19318 * xterm.c (XSetIMValues): Declare.
19319
19320 * process.c: Conditionally include sys/wait.h, pty.h.
19321
19322 * print.c (print_object): Fix print format for 64-bit systems.
19323
19324 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19325
19326 * buffer.c (emacs_strerror): Declare.
19327
19328 * fontset.c (Fclear_face_cache): Declare.
19329 (accumulate_font_info): Comment-out (unused).
19330 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19331 variables.
19332
19333 * character.h (string_escape_byte8): Declare.
19334
19335 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19336 unused vars.
19337 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19338 (Fmap_charset_chars): Doc fix.
19339
19340 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19341 (Fset_coding_system_priority, Fset_coding_system_priority)
19342 (Fdefine_coding_system_internal): Doc fix.
19343
193442008-02-01 Dave Love <fx@gnu.org>
19345
19346 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19347
193482008-02-01 Kenichi Handa <handa@m17n.org>
19349
19350 * character.c (string_escape_byte8): Make multibyte string with
19351 correct size.
19352
19353 * charset.c (Fmake_char): Delete unnecessary code.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * xfns.c (x_encode_text): Allocate coding.destination here, and
19358 call encode_coding_object with dst_object Qnil.
19359
19360 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19361 multibyte form correctly.
19362
19363 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19364 against Vfont_encoding_alist.
19365
19366 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19367 handling of charset list.
19368 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19369 (decode_coding_object): Move point to coding->dst_pos before
19370 calling post-read-conversion function.
19371 (encode_coding_object): Give correct arguments to
19372 pre-write-conversion. Ignore the return value of
19373 pre-write-conversion function. Pay attention to the case that
19374 pre-write-conversion changes the current buffer. If dst_object is
19375 Qt, even if coding->src_bytes is zero, allocate at least one byte
19376 to coding->destination.
19377
19378 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19379
19380 * charset.c (Fmake_char): Make it more backward compatible.
19381 (Fmap_charset_chars): Fix docstring.
19382
193832008-02-01 Dave Love <fx@gnu.org>
19384
19385 * coding.c: Doc fixes.
19386 (Fdefine_coding_system_alias): Use names, not symbols, in
19387 coding-system-alist.
19388
193892008-02-01 Kenichi Handa <handa@m17n.org>
19390
19391 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19392 of calling free_realized_face.
19393
193942008-02-01 Yong Lu <lyongu@asia-infonet.com>
19395
19396 * charset.c (read_hex): Don't treat SPC as a comment starter.
19397 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19398 (Fdecode_char): Fix typo.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 * charset.h (struct charset): New member `code_space_mask'.
19403
19404 * coding.c (coding_set_source): Delete the local variable beg_byte.
19405 (encode_coding_charset, Fdefine_coding_system_internal):
19406 Delete the local variable charset.
19407 (Fdefine_coding_system_internal): Setup
19408 attrs[coding_attr_charset_valids] correctly.
19409
19410 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19411 member to check if CODE is valid or not.
19412 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19413 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19414 is within the range of charset->min_code and carset->max_code.
19415
194162008-02-01 Dave Love <fx@gnu.org>
19417
19418 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19419
19420 * dispextern.h (generate_ascii_font): Fix return type.
19421
19422 * xfaces.c (generate_ascii_font): Fix arg declaration.
19423
19424 * coding.c (coding_inherit_eol_type)
19425 (Fset_terminal_coding_system_internal)
19426 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19427
194282008-02-01 Kenichi Handa <handa@m17n.org>
19429
19430 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19431 multiple charsets correctly.
19432
194332008-02-01 Kenichi Handa <handa@m17n.org>
19434
19435 * search.c (boyer_moore): Fix handling of multibyte character
19436 translation.
19437
19438 * xdisp.c (display_mode_element): When the variable `elt' is
19439 changed, update `this' and `lisp_string'.
19440
194412008-02-01 Kenichi Handa <handa@m17n.org>
19442
19443 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19444
19445 * callproc.c (Fcall_process): Be sure to give the current buffer
19446 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19447
19448 * charset.c (struct charset_map_entries): New struct.
19449 (load_charset_map): Rename from parse_charset_map. New args
19450 entries and n_entries. Change caller.
19451 (load_charset_map_from_file): Rename from load_charset_map.
19452 Change caller. New arg control_flag. Call load_charset_map at
19453 the tail.
19454 (load_charset_map_from_vector): New function.
19455 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19456 (encode_char): If the charset is compact, change a character index
19457 to a code point.
19458
19459 * coding.c (coding_alloc_by_making_gap): Check the case that the
19460 source and destination are the same correctly.
19461 (decode_coding_raw_text): Set coding->consumed_char and
19462 coding->consumed to 0.
19463 (produce_chars): If coding->chars_at_source is nonzero, update
19464 coding->consumed_char and coding->consumed before calling
19465 alloc_destination.
19466 (Fdefine_coding_system_alias): Register ALIAS in
19467 Vcoding_system_alist.
19468 (syms_of_coding): Define `no-conversion' coding system at the tail.
19469
19470 * fileio.c (Finsert_file_contents): Set coding_system instead of
19471 val. If the current buffer is multibyte, always call
19472 decode_coding_gap.
19473
19474 * xfaces.c (try_font_list): Give higher priority to fontset's
19475 family than face's family.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * callproc.c (Fcall_process): Be sure to give the current buffer
19480 to decode_coding_c_string.
19481
19482 * xfaces.c (try_font_list): Give a family specified in a fontset
19483 higher priority than a family specified in a face.
19484
194852008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19488 Fix arguments to insert_from_buffer.
19489
19490 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19491
194922008-02-01 Kenichi Handa <handa@m17n.org>
19493
19494 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19495 (decode_coding_gap): Set coding->dst_multibyte correctly.
19496
194972008-02-01 Kenichi Handa <handa@m17n.org>
19498
19499 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19500 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19501 (encode_coding_utf_16): Substitute coding->default_char for
19502 non-Unicode characters.
19503 (decode_coding): Don't call record_insert here.
19504 (setup_coding_system): Initialize `surrogate' of
19505 coding->spec.utf_16 to 0.
19506 (EMIT_ONE_BYTE): Fix for multibyte case.
19507
19508 * insdel.c (insert_from_gap): Call record_insert.
19509
195102008-02-01 Kenichi Handa <handa@m17n.org>
19511
19512 * casefiddle.c (casify_region): Fix multibyte case.
19513
19514 * character.c (c_string_width): Add return type `int'.
19515 (char_string_with_unification): Delete arg ADVANCED.
19516
19517 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19518 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19519 (CHAR_STRING_ADVANCE): Make it do-while statement.
19520
19521 * chartab.c (sub_char_table_set_range): Optimize for the case
19522 DEPTH == 3. Add workaround code for a GCC optimization bug.
19523
19524 * charset.c (parse_charset_map): Remove an unused variable.
19525
19526 * coding.c: Delete unused variables.
19527
19528 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19529 earlier. If inserted is zero and the coding system doesn't
19530 require flushing, don't call decode_coding_gap.
19531
19532 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19533
195342008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 The following changes are for using Unicode as an internal
19537 character model, and use UTF-8 format for buffer/string
19538 representation.
19539
19540 * .gdbinit (xchartable): Adjust for the change of char table structure.
19541 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19542
19543 * Makefile.in (obj): Add character.o and chartab.o.
19544 (lisp, shortlisp): Remove utf-8.elc.
19545 (*.o): For many files, change dependency on charset.h to
19546 character.h, and add dependency on character.h.
19547 (character.o, chartab.o): New targets.
19548
19549 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19550 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19551 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19552 of "charset.h".
19553
19554 * dired.c, filelock.c: Include "character.h".
19555
19556 * alloc.c: Include "character.h" instead of "charset.h".
19557 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19558 (syms_of_alloc): Remove defsubr for Smake_char_table.
19559
19560 * buffer.c: Include "character.h" instead of "charset.h", don't
19561 include "coding.h".
19562 (Fset_buffer_multibyte): Adjust for UTF-8.
19563
19564 * buffer.h: EXFUN Fbuffer_live_p.
19565
19566 * callproc.c: Include "character.h" instead of "charset.h".
19567 (Fcall_process): Big change for the new code-conversion APIs.
19568
19569 * casetab.c: Include "character.h" instead of "charset.h".
19570 (set_canon, set_identity, shuffle): Adjust for the new
19571 map_char_table spec.
19572 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19573 accessing the char table structure.
19574
19575 * chartab.c: New file that implements char table.
19576
19577 * category.c: Include "character.h".
19578 (copy_category_entry): New function.
19579 (copy_category_table): Call map_char_table and copy_category_entry.
19580 (Fmake_category_table): Initialize all top-level slots.
19581 (char_category_set): New function.
19582 (modify_lower_category_set): Delete.
19583 (Fmodify_category_entry): Call char_table_ref_and_range.
19584
19585 * category.h (CATEGORY_SET): Just call char_category_set.
19586
19587 * ccl.c: Include "character.h".
19588 (Qccl, Qcclp): New variables.
19589 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19590 it's less than 256.
19591 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19592 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19593 and DST type.
19594 (ccl_driver): Change types of argument, adjust code accordingly.
19595 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19596 ccl_driver.
19597 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19598
19599 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19600 New members src_multibyte, dst_multibyte, consumed, and produced.
19601 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19602 (CODING_SPEC_CCL_PROGRAM): New macro.
19603 (ccl_driver): Update prototype.
19604 (Qccl, Qcclp, Fccl_program_p): Extern them.
19605 (CHECK_CCL_PROGRAM): New macro.
19606
19607 * character.c, character.h, chartab.c: New files.
19608
19609 * charset.c: Mostly re-written. Move character and multibyte sequence
19610 handling codes to character.c.
19611
19612 * charset.h: Mostly re-written. Move character and multibyte sequence
19613 handling codes to character.h.
19614
19615 * coding.c, coding.h: Mostly re-written.
19616
19617 * composite.c: Include "character.h" instead of "charset.h".
19618 (CHAR_WIDTH): Move to character.h.
19619 (HASH_KEY, HASH_VALUE): Delete.
19620
19621 * composite.h (enum composition_method): Change order of enumeration
19622 symbols.
19623
19624 * data.c: Include "character.h" instead of "charset.h".
19625 (Faref): Call CHAR_TABLE_REF for a char table.
19626 (Faset): Call CHAR_TABLE_SET for a char table.
19627
19628 * dispextern.h (free_realized_face, check_face_attribytes)
19629 (generate_ascii_font): Extern them.
19630 (free_realized_multibyte_face): Delete extern.
19631
19632 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19633 table structure.
19634
19635 * editfns.c: Include "character.h" instead of "charset.h".
19636 (Fchar_to_string): Always call CHAR_STRING.
19637
19638 * emacs.c (main): Call init_charset_once, init_charset,
19639 syms_of_chartab, and syms_of_character.
19640
19641 * fileio.c: Include "character.h" instead of "charset.h".
19642 (Finsert_file_contents): Big change for the new code-conversion API.
19643 (choose_write_coding_system, Fwrite_region): Likewise.
19644 (build_annotations_2): Delete.
19645 (e_write): Big change for the new code-conversion API.
19646
19647 * fns.c: Include "character.h" instead of "charset.h".
19648 (copy_sub_char_table): Move to chartab.c.
19649 (Fcopy_sequence): Call copy_char_table for a char table.
19650 (concat): Delete codes calling count_multibyte.
19651 (string_char_to_byte, string_byte_to_char): Adjust for the new
19652 multibyte form.
19653 (internal_equal): Adjust for the change of char table structure.
19654 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19655 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19656 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19657 (char_table_translate, optimize_sub_char_table)
19658 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19659 chartab.c.
19660 (char_table_ref_and_index): Delete.
19661 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19662 (Fmd5): Call preferred_coding_system instead of accessing
19663 Vcoding_category_list. Adjust for the new code-conversion API.
19664 (syms_of_fns): Move defsubr for char table related functions to
19665 chartab.c.
19666
19667 * fontset.c: Mostly re-written.
19668
19669 * fontset.h (struct font_info): Change type of the member encoding_type.
19670 (enum FONT_SPEC_INDEX): New enum.
19671 (fontset_font_pattern, fs_load_font): Update prototype.
19672 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19673
19674 * indent.c: Include "character.h" instead of "charset.h".
19675 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19676
19677 * insdel.c: Include "character.h" instead of "charset.h".
19678 (copy_text): Don't refer to Vnonascii_translation_table.
19679 (insert_from_gap): New function.
19680
19681 * keyboard.c: Include "character.h" instead of "charset.h".
19682 (command_loop_1): Never call direct_output_forward_char before
19683 a non-ASCII character.
19684 (read_char): If Vkeyboard_translate_table is a char table, always
19685 translate a character.
19686
19687 * keymap.c: Include "character.h".
19688 (store_in_keymap): Handle the case that IDX is a cons.
19689 (Fdefine_key): Handle the case that KEY is a cons and the car part
19690 is also a cons (range).
19691 (push_key_description): Adjust for the new character code.
19692 (describe_vector): Call describe_char_table for a char table.
19693 (describe_char_table): New function.
19694
19695 * keymap.h (describe_char_table): Extern it.
19696
19697 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19698 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19699 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19700 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19701 Delete.
19702 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19703 structure.
19704 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19705 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19706 (CHARTAB_SIZE_BITS_3): New macros.
19707 (chartab_size): Extern it.
19708 (struct Lisp_Char_Table): Re-design.
19709 (struct Lisp_Sub_Char_Table): New structure.
19710 (HASH_KEY, HASH_VALUE): Move from fns.c.
19711 (CHARACTERBITS): Define as 22.
19712 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19713 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19714 (GC_SUB_CHAR_TABLE_P): New macro.
19715 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19716 (code_convert_string_norecord): Deleted extern.
19717 (init_character_once, syms_of_character, init_charset)
19718 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19719
19720 * lread.c: Include "character.h".
19721 (read_multibyte): New arg NBYTES.
19722 (read_escape): Change the meaning of returned *BYTEREP.
19723 (to_multibyte): Delete.
19724 (read1): Adjust the handling of char table and string.
19725
19726 * print.c: Include "character.h" instead of "charset.h".
19727 (print_string): Convert 8-bit raw bytes to octal form by
19728 string_escape_byte8.
19729 (print_object): Adjust for the new multibyte form. Print 8-bit
19730 raw bytes always in octal form. Handle sub char table correctly.
19731
19732 * process.c: Include "character.h" instead of "charset.h".
19733 (read_process_output, send_process): Adjust for the new
19734 code-conversion API.
19735
19736 * puresize.h (BASE_PURESIZE): Increase.
19737
19738 * regex.c: Include "character.h" instead of "charset.h".
19739 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19740 (regex_compile): Accept a range whose starting and ending
19741 character have different leading bytes.
19742 (analyse_first): Adjust for the above change.
19743
19744 * search.c: Include "character.h" instead of "charset.h".
19745 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19746 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19747
19748 * syntax.c: Include "character.h" instead of "charset.h".
19749 (syntax_parent_lookup): Delete.
19750 (Fmodify_syntax_entry): Accept a cons as CHAR.
19751 (skip_chars): Adjust for the new multibyte form.
19752 (init_syntax_once): Call char_table_set_range instead of directly
19753 accessing the structure of a char table.
19754
19755 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19756 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19757 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19758 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19759
19760 * term.c: Include "buffer.h" and "character.h".
19761 (encode_terminal_code, write_glyphs): Adjust for the new
19762 code-conversion API.
19763 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19764
19765 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19766
19767 * xdisp.c: Include "character.h".
19768 (get_next_display_element): Adjust for the new multibyte form.
19769 (disp_char_vector): Adjust for the new char table structure.
19770 (decode_mode_spec_coding): Adjust for the new structure of
19771 coding system.
19772 (decode_mode_spec): Adjust for the new code-conversion API.
19773
19774 * xfaces.c: Include "character.h" instead of "charset.h".
19775 (load_face_font): Adjust for the change of choose_face_font and
19776 FS_LOAD_FONT.
19777 (generate_ascii_font): New function.
19778 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19779 (set_font_frame_param): Adjust for the change of choose_face_font.
19780 (free_realized_face): Make it public.
19781 (free_realized_faces_for_fontset): Rename from
19782 free_realized_multibyte_face. Free also faces realized for ASCII.
19783 (choose_face_font): Change arguments. Adjust for the change of
19784 fontset_font_pattern and FS_LOAD_FONT.
19785
19786 * xfns.c: Include "character.h".
19787 (x_encode_text): Adjust for the new code-conversion API.
19788
19789 * xselect.c: Don't include "charset.h".
19790 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19791
19792 * xterm.c: Include "character.h".
19793 (x_encode_char): New argument CHARSET. Change caller.
19794 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19795 Call ENCODE_CHAR instead of SPLIT_CHAR.
19796 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19797 CHAR_WIDTH instead of CHARSET_WIDTH.
19798 (XTread_socket): Adjust for the new code-conversion API.
19799 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19800 (x_load_font): Adjust for the change of struct font.
19801
198022008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19803
19804 * xfaces.c (face_at_buffer_position): Remove unused vars.
19805
198062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19807
19808 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19809 Fix overflow checking.
19810
198112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19812
19813 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19814 Cancel previous change.
19815
198162008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19817
19818 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19819 ccl->eight_bit_control. Fix check for buffer overflow.
19820 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19821 (ccl_driver): Initialize extra_bytes to 0.
19822
198232008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19824
19825 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19826 return it ORed with ctrl_modifier.
19827
198282008-01-29 Miles Bader <miles@gnu.org>
19829
19830 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19831
198322008-01-28 Jason Rumney <jasonr@gnu.org>
19833
19834 * w32.c (stat): Don't double check for networked drive.
19835
198362008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19837
19838 * window.c (run_window_configuration_change_hook): New function.
19839 Code extracted from set_window_buffer. Set the selected frame.
19840 (set_window_buffer): Use it.
19841 * window.h (run_window_configuration_change_hook): Declare.
19842 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19843
19844 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19845
198462008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19847
19848 * Makefile.in: Remove references to unused macros.
19849
198502008-01-26 Eli Zaretskii <eliz@gnu.org>
19851
19852 * w32.c (g_b_init_get_sid_sub_authority)
19853 (g_b_init_get_sid_sub_authority_count): New static variables.
19854 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19855 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19856 (init_user_info): Use them to retrieve uid and gid.
19857 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19858 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19859 st_uid and st_gid of the file.
19860
198612008-01-26 Jason Rumney <jasonr@gnu.org>
19862
19863 * w32.c (logon_network_drive): New function.
19864 (stat): Use it.
19865
198662008-01-26 Chong Yidong <cyd@stupidchicken.com>
19867
19868 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19869 invisible text covered with an ellipsis.
19870
198712008-01-25 Richard Stallman <rms@gnu.org>
19872
19873 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19874 jump back to beginning. Move some other initializations after that.
19875 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19876 New variables.
19877 (syms_of_xdisp): Init them.
19878
19879 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19880
19881 * buffer.c (reset_buffer_local_variables):
19882 Implement `permanent-local-hook'.
19883 (Qpermanent_local_hook): New variable.
19884 (syms_of_buffer): Init and staticpro it.
19885
198862008-01-25 Michael Albinus <michael.albinus@gmx.de>
19887
19888 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19889
198902008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19891
19892 * fns.c (Fclrhash): Return TABLE.
19893
198942008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19895
19896 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19897 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19898 is set even without positional changes.
19899 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19900
19901 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19902
199032008-01-23 Jason Rumney <jasonr@gnu.org>
19904
19905 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19906
19907 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19908 the unicode range available in MULE by locale-coding-system.
19909 Improve dbcs lead byte detection. Set event timestamp and modifiers
19910 earlier.
19911
199122008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19913
19914 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19915 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19916 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19917 when used on child processes.
19918
199192008-01-21 Michael Albinus <michael.albinus@gmx.de>
19920
19921 * dbusbind.c (Fdbus_method_return_internal): Rename from
19922 Fdbus_method_return.
19923 (Fdbus_unregister_object): Move to dbus.el.
19924 (Fdbus_call_method, Fdbus_method_return_internal)
19925 (Fdbus_send_signal): Improve debug messages.
19926
199272008-01-20 Martin Rudalics <rudalics@gmx.at>
19928
19929 * undo.c (undo_inhibit_record_point): New variable.
19930 (syms_of_undo): Initialize it.
19931 (record_point): Don't record point when undo_inhibit_record_point
19932 is set.
19933
199342008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19935
19936 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19937
19938 * xdisp.c (Qauto_hscroll_mode): New var.
19939 (syms_of_xdisp): Initialize it.
19940 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19941 window's buffer.
19942 (hscroll_windows): Don't check automatic_hscrolling_p here.
19943
19944 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19945 vscroll if we're setting window-buffer to the value it already has.
19946
199472008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19948
19949 * m/intel386.h: Remove references to XENIX.
19950
199512008-01-17 Andreas Schwab <schwab@suse.de>
19952
19953 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19954 instead of HAVE_X86_64_LIB64_DIR.
19955 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19956
199572008-01-17 Glenn Morris <rgm@gnu.org>
19958
19959 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19960 to HAVE_X86_64_LIB64_DIR.
19961
199622008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19963
19964 * s/irix3-3.h:
19965 * s/irix4-0.h:
19966 * s/386-ix.h:
19967 * s/domain.h:
19968 * s/hpux9-x11r4.h:
19969 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19970
19971 * sysdep.c: Remove code containing references to symbols defined
19972 by unsupported systems.
19973
199742008-01-16 Glenn Morris <rgm@gnu.org>
19975
19976 * coding.c (select-safe-coding-system-function): Doc fix.
19977
199782008-01-15 Glenn Morris <rgm@gnu.org>
19979
19980 * config.in: Revert 2008-01-13 change: this is a generated file.
19981
199822008-01-13 Tom Tromey <tromey@redhat.com>
19983
19984 * lisp.h: Fix typo.
19985
199862008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19987
19988 * m/sequent-ptx.h:
19989 * m/sequent.h:
19990 * s/ptx.h:
19991 * s/ptx4-2.h:
19992 * s/ptx4.h: Remove files for systems no longer supported.
19993
19994 * callproc.c (Fcall_process): Fix previous change.
19995
199962008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19997
19998 * unexsunos4.c: Remove file, system not supported anymore.
19999
20000 * m/mips.h:
20001 * m/intel386.h:
20002 * callproc.c:
20003 * config.in:
20004 * ecrt0.c:
20005 * emacs.c:
20006 * fileio.c:
20007 * frame.c:
20008 * getpagesize.h:
20009 * keyboard.c:
20010 * lread.c:
20011 * process.c:
20012 * puresize.h:
20013 * sysdep.c:
20014 * systty.h:
20015 * syswait.h:
20016 * unexec.c:
20017 * xdisp.c:
20018 * alloc.c: Remove code containing references to symbols defined by
20019 unsupported systems.
20020
200212008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20022
20023 * coding.c (detect_coding_mask): Fix previous change.
20024
200252008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20026
20027 * coding.c (detect_coding_iso2022): New arg
20028 latin_extra_code_state. Allow Latin extra codes only
20029 when *latin_extra_code_state is nonzero.
20030 (detect_coding_mask): If there is a NULL byte, detect the encoding
20031 as UTF-16 or binary. If Latin extra codes exist, detect the
20032 encoding as ISO-2022 only when there's no other proper encoding is
20033 found.
20034
200352008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20036
20037 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20038 #ifdef MAC_OS.
20039
200402008-01-08 Richard Stallman <rms@gnu.org>
20041
20042 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20043
200442008-01-06 Nick Roberts <nickrob@snap.net.nz>
20045
20046 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20047 menu bar in parentheses.
20048
200492008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20050
20051 * m/7300.h:
20052 * m/acorn.h:
20053 * m/alliant-2800.h:
20054 * m/alliant.h:
20055 * m/alliant1.h:
20056 * m/alliant4.h:
20057 * m/altos.h:
20058 * m/amdahl.h:
20059 * m/apollo.h:
20060 * m/att3b.h:
20061 * m/aviion-intel.h:
20062 * m/aviion.h:
20063 * m/celerity.h:
20064 * m/clipper.h:
20065 * m/cnvrgnt.h:
20066 * m/convex.h:
20067 * m/cydra5.h:
20068 * m/delta88k.h:
20069 * m/dpx2.h:
20070 * m/dual.h:
20071 * m/elxsi.h:
20072 * m/f301.h:
20073 * m/gould-np1.h:
20074 * m/gould.h:
20075 * m/i860.h:
20076 * m/ibmps2-aix.h:
20077 * m/ibmrt-aix.h:
20078 * m/ibmrt.h:
20079 * m/irist.h:
20080 * m/is386.h:
20081 * m/isi-ov.h:
20082 * m/mega68.h:
20083 * m/mg1.h:
20084 * m/news-r6.h:
20085 * m/news-risc.h:
20086 * m/news.h:
20087 * m/nh3000.h:
20088 * m/nh4000.h:
20089 * m/ns16000.h:
20090 * m/ns32000.h:
20091 * m/nu.h:
20092 * m/orion.h:
20093 * m/orion105.h:
20094 * m/paragon.h:
20095 * m/pfa50.h:
20096 * m/plexus.h:
20097 * m/pyramid.h:
20098 * m/pyrmips.h:
20099 * m/sh3el.h:
20100 * m/sps7.h:
20101 * m/sr2k.h:
20102 * m/stride.h:
20103 * m/sun1.h:
20104 * m/sun2.h:
20105 * m/sun3-68881.h:
20106 * m/sun3-fpa.h:
20107 * m/sun3-soft.h:
20108 * m/sun3.h:
20109 * m/sun386.h:
20110 * m/symmetry.h:
20111 * m/tad68k.h:
20112 * m/tahoe.h:
20113 * m/targon31.h:
20114 * m/tek4300.h:
20115 * m/tekxd88.h:
20116 * m/tower32.h:
20117 * m/tower32v3.h:
20118 * m/ustation.h:
20119 * m/wicat.h:
20120 * m/xps100.h:
20121 * s/cxux.h:
20122 * s/cxux7.h:
20123 * s/dgux.h:
20124 * s/dgux4.h:
20125 * s/dgux5-4-3.h:
20126 * s/dgux5-4r2.h:
20127 * s/esix.h:
20128 * s/esix5r4.h:
20129 * s/hiuxmpp.h:
20130 * s/hiuxwe2.h:
20131 * s/iris3-5.h:
20132 * s/iris3-6.h:
20133 * s/isc2-2.h:
20134 * s/isc3-0.h:
20135 * s/isc4-0.h:
20136 * s/isc4-1.h:
20137 * s/newsos5.h:
20138 * s/newsos6.h:
20139 * s/osf1.h:
20140 * s/osf5-0.h:
20141 * s/riscix1-1.h:
20142 * s/riscix12.h:
20143 * s/sco4.h:
20144 * s/sco5.h:
20145 * s/sunos4-0.h:
20146 * s/sunos4-1.h:
20147 * s/sunos413.h:
20148 * s/sunos4shr.h:
20149 * s/umax.h:
20150 * s/unipl5-2.h:
20151 * s/xenix.h:
20152 * cxux-crt0.s:
20153 * unexapollo.c:
20154 * unexconvex.c:
20155 * unexenix.c:
20156 * unexsni.c: Remove files for systems no longer supported.
20157
20158 * m/intel386.h: Remove references to unsupported systems.
20159
20160 * w32.c (get_emacs_configuration): Remove reference to i860.
20161
20162 * sysdep.c: Remove dead code.
20163
201642008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20165
20166 * s/rtu.h:
20167 * m/masscomp.h: Remove files. Platform is obsolete.
20168
201692008-01-04 Michael Albinus <michael.albinus@gmx.de>
20170
20171 * dbusbind.c (Fdbus_method_return): New function.
20172 (xd_read_message): Add the serial number to the event.
20173 (Fdbus_register_method): Activate the function.
20174
201752008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20176
20177 * keyboard.c (read_key_sequence): Fix typo.
20178
201792008-01-03 Michael Albinus <michael.albinus@gmx.de>
20180
20181 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20182 (xd_signature, xd_append_arg): Handle element type detection for
20183 empty arrays.
20184 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20185 SDATA () calls; this must be solved more general.
20186 (Fdbus_register_signal): Use SBYTES instead of strlen.
20187
201882008-01-03 Magnus Henoch <magnus@zemdatav>
20189
20190 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20191 unsigned int for byte values (necessary for big-endian platform).
20192 (Fdbus_call_method): Handle the case of no returned arguments.
20193
201942007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20195
20196 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20197
201982007-12-31 Magnus Henoch <mange@freemail.hu>
20199
20200 * dbusbind.c (xd_signature): Signature of variant is just "v".
20201
202022007-12-30 Michael Albinus <michael.albinus@gmx.de>
20203
20204 * dbusbind.c: Fix several errors and compiler warnings.
20205 Reported by Tom Tromey <tromey@redhat.com>.
20206 (XD_ERROR, XD_DEBUG_MESSAGE)
20207 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20208 (xd_append_arg): Part for basic D-Bus types rewritten.
20209 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20210 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20211 appropriate.
20212 (xd_read_message): Return Qnil. Don't signal an error; it is not
20213 useful during event reading.
20214 (Fdbus_register_signal): Signal an error if the check for
20215 FUNCTIONP fails.
20216 (Fdbus_register_method): New function. The implementation is not
20217 complete, the call of the function signals an error therefore.
20218 (Fdbus_unregister_object): New function, renamed from
20219 Fdbus_unregister_signal. The initial check signals an error, if
20220 the object is not well formed.
20221
202222007-12-30 Richard Stallman <rms@gnu.org>
20223
20224 * textprop.c (get_char_property_and_overlay):
20225 Signal error if POSITION is out of range in a buffer.
20226
202272007-12-29 Martin Rudalics <rudalics@gmx.at>
20228
20229 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20230 because the original parameters are in pure storage now.
20231
202322007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20233
20234 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20235
202362007-12-22 Eli Zaretskii <eliz@gnu.org>
20237
20238 * callint.c (syms_of_callint) <command-history>: Add reference to
20239 history-length in the doc string.
20240
202412007-12-17 Jason Rumney <jasonr@gnu.org>
20242
20243 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20244 before passing as wParam.
20245
202462007-12-22 Michael Albinus <michael.albinus@gmx.de>
20247
20248 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20249 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20250 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20251 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20252 as number.
20253 (Fdbus_call_method): Fix docstring.
20254
202552007-12-21 Michael Albinus <michael.albinus@gmx.de>
20256
20257 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20258 New macros.
20259 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20260 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20261 Simplify.
20262 (xd_signature): New function.
20263 (xd_append_arg): Compute also signatures. Major rewrite.
20264 (xd_retrieve_arg): Make debug messages friendly.
20265 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20266 Check for signatures of arguments.
20267
202682007-12-19 Michael Albinus <michael.albinus@gmx.de>
20269
20270 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20271 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20272 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20273 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20274 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20275 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20276 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20277 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20278 (xd_retrieve_value): Remove. Functionality included in ...
20279 (xd_append_arg): New function.
20280 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20281
202822007-12-16 Michael Albinus <michael.albinus@gmx.de>
20283
20284 * dbusbind.c (top): Include <stdio.h>.
20285 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20286 dbus_message_new_method_call and dbus_message_new_signal.
20287 (Fdbus_register_signal): Rename unique_name to uname.
20288 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20289 non-existing unique name. Fix typos in matching rule. Return an
20290 object which is useful in Fdbus_unregister_signal.
20291 (Fdbus_unregister_signal): Reimplementation, in order to remove
20292 only the corresponding entry.
20293 (Vdbus_registered_functions_table): Change the order of entries.
20294 Apply these changes in xd_read_message and Fdbus_register_signal.
20295
202962007-12-16 Andreas Schwab <schwab@suse.de>
20297
20298 * fileio.c (Finsert_file_contents): Fix overflow check to not
20299 depend on undefined integer overflow.
20300
203012007-12-14 Jason Rumney <jasonr@gnu.org>
20302
20303 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20304 for characters above 127.
20305
203062007-12-13 Jason Rumney <jasonr@gnu.org>
20307
20308 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20309 before dereferencing array.
20310 (lookup_vk_code): Remove zero comparison.
20311
203122007-12-14 Michael Albinus <michael.albinus@gmx.de>
20313
20314 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20315 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20316 Use `unsigned int' instead of `uint'.
20317 (xd_read_message, Fdbus_register_signal): Split expressions into
20318 multiple lines before operators "&&" and "||", according to the
20319 GNU Coding Standards.
20320
203212007-12-14 Eli Zaretskii <eliz@gnu.org>
20322
20323 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20324
203252007-12-12 Juri Linkov <juri@jurta.org>
20326
20327 * buffer.c (Frename_buffer): In interactive spec replace
20328 `read-buffer' with `read-string' that uses `buffer-name-history'
20329 as history, and the current buffer's name as default.
20330
203312007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20332
20333 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20334 manipulating the backtrace manually.
20335 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20336 (struct backtrace, backtrace_list): Remove.
20337 (command_loop_1): Remove dead var `no_direct'.
20338
20339 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20340 preserve non-built-in buffer-local variables.
20341 (Fkill_all_local_variables): Don't re-create&re-set permanent
20342 buffer-local variables.
20343
203442007-12-09 Juri Linkov <juri@jurta.org>
20345
20346 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20347 Lisp code that uses `read-buffer' with current buffer as default.
20348
203492007-12-08 Michael Albinus <michael.albinus@gmx.de>
20350
20351 * dbusbind.c (xd_read_message): Generate an event for every
20352 registered handler. There might be several handlers registered
20353 for the same signal.
20354 (Fdbus_register_signal): Don't overwrite a registration for the
20355 same signal. Add a new registration if handlers are different.
20356 (Vdbus_registered_functions_table): Rework doc string.
20357
203582007-12-07 Michael Albinus <michael.albinus@gmx.de>
20359
20360 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20361 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20362 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20363 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20364 Unify argument lists.
20365 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20366 arguments and hash table keys. Use unique name for service.
20367 (Fdbus_unregister_signal): Remove checks.
20368 (Vdbus_registered_functions_table): Fix doc string.
20369
203702007-12-05 Magnus Henoch <mange@freemail.hu>
20371
20372 * process.c (make_process): Initialize pty_flag to 0.
20373
203742007-12-05 Jason Rumney <jasonr@gnu.org>
20375
20376 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20377 specified XBMs.
20378
203792007-12-05 Richard Stallman <rms@gnu.org>
20380
20381 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20382
203832007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20384
20385 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20386 New variable.
20387 (mac_try_close_socket) [MAC_OSX]: New function.
20388 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20389 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20390
20391 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20392 Use mac_try_close_socket.
20393
203942007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20395
20396 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20397 reloc_base.
20398 (copy_dysymtab): Compute relocation base here.
20399 (rebase_reloc_address) [__ppc64__]: New function.
20400 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20401 changed.
20402
204032007-12-05 Jason Rumney <jasonr@gnu.org>
20404
20405 * w32proc.c (sys_spawnve): Quote args with wildcards.
20406
204072007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20408
20409 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20410 __objc_* sections.
20411 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20412
204132007-12-05 Michael Albinus <michael.albinus@gmx.de>
20414
20415 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20416 Move check for Vdbus_registered_functions_table to
20417 xd_read_queued_messages.
20418 (xd_read_queued_messages): Protect xd_read_message calls by
20419 internal_condition_case_1.
20420
204212007-12-04 Michael Albinus <michael.albinus@gmx.de>
20422
20423 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20424 Qdbus_system_bus and Qdbus_session_bus, respectively.
20425 (Vdbus_intern_symbols): Remove.
20426 (Vdbus_registered_functions_table): New hash table.
20427 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20428 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20429 Rewrite in order to manage registered functions by hash table
20430 Vdbus_registered_functions_table.
20431
204322007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20433
20434 * xterm.c: Update URL to Window Manager Specification in comment.
20435
204362007-12-02 Michael Albinus <michael.albinus@gmx.de>
20437
20438 * config.in (HAVE_DBUS): Add.
20439
20440 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20441 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20442 (obj): Add $(DBUS_OBJ).
20443 (LIBES): Add $(DBUS_LIBS).
20444 (dbusbind.o): New target.
20445
20446 * dbusbind.c: New file.
20447
20448 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20449
20450 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20451 (Qdbus_event): New Lisp symbol.
20452 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20453 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20454 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20455
20456 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20457
204582007-12-01 Richard Stallman <rms@gnu.org>
20459
20460 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20461
204622007-11-30 Jason Rumney <jasonr@gnu.org>
20463
20464 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20465 (w32con_reset_terminal_modes): Clear screen buffer.
20466 (w32_face_attributes): Don't use color indexes that are out of range.
20467 Only reverse the default colors.
20468
20469 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20470 WINDOWSNT.
20471
20472 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20473
204742007-11-29 Jason Rumney <jasonr@gnu.org>
20475
20476 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20477 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20478 if the terminal colors are initialized.
20479 (unspecified_fg, unspecified_bg): Remove unused declarations.
20480
204812007-11-29 Andreas Schwab <schwab@suse.de>
20482
20483 * keyboard.c (apply_modifiers): Fix typo.
20484
204852007-11-29 Richard Stallman <rms@gnu.org>
20486
20487 * keymap.c (Fcurrent_local_map): Doc fix.
20488
204892007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20490
20491 * s/gnu-kfreebsd.h: New file.
20492
204932007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20494
20495 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20496 Don't cast redundantly.
20497
20498 * keyboard.c (KEY_TO_CHAR): New macro.
20499 (parse_modifiers, apply_modifiers): Accept integer arguments.
20500 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20501 for chars and symbol keys.
20502 After doing such remapping, apply function-key-map again.
20503
205042007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20505
20506 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20507 compiled anymore.
20508
205092007-11-26 Andreas Schwab <schwab@suse.de>
20510
20511 * process.c (list_processes_1): Fix indentation level of the
20512 command column.
20513
205142007-11-23 Andreas Schwab <schwab@suse.de>
20515
20516 * editfns.c (Fformat): Handle %c specially since it requires the
20517 argument to be of type int.
20518
205192007-11-23 Markus Triska <markus.triska@gmx.at>
20520
20521 * emacs.c (main): Call init_editfns before init_process, since
20522 init_process sets Vprocess_connection_type depending on OS release.
20523
205242007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20525
20526 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20527 (find_symbol_value): Use do_symval_forwarding.
20528
20529 * data.c (set_internal): Set the value in the `cons-cell' (for
20530 Buffer_Local_values) not only for frame-local variables.
20531
205322007-11-22 Andreas Schwab <schwab@suse.de>
20533
20534 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20535 values to sprintf.
20536 * keymap.c (Fsingle_key_description): Likewise.
20537 * print.c (print_object): Likewise.
20538
205392007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20540
20541 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20542 file for image is nil.
20543
205442007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20545
20546 * term.c: Include stdarg.h.
20547 (fatal): Implement using varargs.
20548 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20549
205502007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20551
20552 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20553 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20554 Update call to buffer_slot_type_mismatch.
20555 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20556 (buffer_slot_type_mismatch): Update.
20557 * buffer.c (buffer_local_types): Remove.
20558 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20559 (defvar_per_buffer): Set the type in the buffer_objfwd.
20560
205612007-11-21 Jason Rumney <jasonr@gnu.org>
20562
20563 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20564 CreateFileMapping returns NULL on failure.
20565
205662007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20567
20568 * search.c (Fset_match_data): Remove the `evaporate' feature.
20569 (unwind_set_match_data): Don't use the `evaporate' feature.
20570
205712007-11-21 Jason Rumney <jasonr@gnu.org>
20572
20573 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20574
20575 * w32console.c (w32con_write_glyphs): Remove unused variables.
20576
205772007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20578
20579 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20580
20581 * s/darwin.h (MULTI_KBOARD): Remove.
20582
20583 * macfns.c (x_create_tip_frame, Fx_create_frame)
20584 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20585
205862007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20587
20588 * buffer.c (Fbuffer_local_value): Remove redundant test.
20589 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20590 than in `current-buffer' to match the comment.
20591 Do the swap using swap_in_global_binding.
20592
20593 * data.c (store_symval_forwarding, set_internal):
20594 * eval.c (specbind): Remove dead code.
20595
20596 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20597 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20598 Since we do not want to see internal Lisp_*fwd objects here.
20599
206002007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20601
20602 * sysdep.c (init_system_name): Use getaddrinfo if available.
20603
20604 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20605 (x_scroll_bar_note_movement): start, end, with, height in struct
20606 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20607
206082007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20609
20610 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20611
206122007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20613
20614 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20615 This undoes Richard's change of 14-Oct-2002.
20616
20617 * alloc.c (allocate_other_vector):
20618 * lisp.h (allocate_other_vector): Remove.
20619
20620 * window.c (struct save_window_data): Move non-lisp data to the end
20621 and make it `int' rather than Lisp_Object.
20622 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20623 Done wrap/unwrap integer values.
20624 (Fset_window_configuration, compare_window_configurations):
20625 Update use of fields to their new types.
20626
20627 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20628 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20629 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20630 (SET_SCROLL_BAR_X_WINDOW): Remove.
20631 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20632 Access the new x_window field directly.
20633 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20634 Don't wrap/unwrap integers into Lisp_Objects.
20635 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20636 (x_scroll_bar_report_motion):
20637 Don't wrap/unwrap integers into Lisp_Objects.
20638 (x_term_init): Use SDATA.
20639 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20640 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20641 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20642 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20643 * xfns.c (x_set_background_color):
20644 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20645 Access the new x_window field directly.
20646
20647 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20648 (allocate_pseudovector): Make non-static.
20649
20650 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20651 (allocate_pseudovector): Declare.
20652 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20653
206542007-11-15 Andreas Schwab <schwab@suse.de>
20655
20656 * editfns.c (Fformat): Correctly format EMACS_INT values.
20657 Also take precision into account when formatting an integer.
20658
20659 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20660
206612007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20662
20663 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20664 (syms_of_keyboard): Defsubr it.
20665
20666 * data.c (swap_in_global_binding): Fix longstanding bug where
20667 store_symval_forwarding was not called with the right second argument,
20668 thus causing objfwd-ing from being dropped.
20669
206702007-11-14 Juanma Barranquero <lekktu@gmail.com>
20671
20672 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20673 (Fx_display_pixel_height, Fx_display_planes)
20674 (Fx_display_color_cells, Fx_server_max_request_size)
20675 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20676 (Fx_display_visual_class, Fx_display_save_under):
20677 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20678 (Fx_display_pixel_height, Fx_display_planes)
20679 (Fx_display_color_cells, Fx_server_max_request_size)
20680 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20681 (Fx_display_mm_height, Fx_display_mm_width)
20682 (Fx_display_backing_store, Fx_display_visual_class)
20683 (Fw32_select_font, Fx_display_save_under):
20684 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20685 (Fx_display_pixel_height, Fx_display_planes)
20686 (Fx_display_color_cells, Fx_server_max_request_size)
20687 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20688 (Fx_display_save_under): Fix typos in docstrings.
20689
206902007-11-14 Juanma Barranquero <lekktu@gmail.com>
20691
20692 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20693 corresponding to deleted entries; they are an implementation detail.
20694 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20695 Remove variables.
20696 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20697 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20698 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20699 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20700 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20701 (Fw32_define_rgb_color, Fw32_load_color_file)
20702 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20703 Fix typos in docstrings.
20704 (Fx_server_version): Reflow docstring.
20705 (Fw32_shell_execute): Doc fixes.
20706
207072007-11-13 Juanma Barranquero <lekktu@gmail.com>
20708
20709 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20710 if w32_parse_hot_key returned nil.
20711
207122007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20713
20714 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20715
207162007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20717
aac0c6e3
MR
20718 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20719
20720 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20721
20722 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20723 Remove W32_SCROLL_BAR_CLICK_EVENT.
20724
20725 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20726 Add MULTIMEDIA_KEY_EVENT.
20727
20728 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20729 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20730 (make_lispy_event) [WINDOWSNT]: Use it to translate
20731 MULTIMEDIA_KEY_EVENT.
20732
20733 * w32term.h (WM_APPCOMMAND): Define if not already.
20734 (GET_APPCOMMAND_LPARAM): Likewise.
20735
20736 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20737 WM_APPCOMMAND.
20738
20739 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20740 (syms_of_w32fns): Export and initialize it.
20741 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20742
207432007-11-09 Chong Yidong <cyd@stupidchicken.com>
20744
20745 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20746 twice.
20747
20748 * xdisp.c (handle_face_prop): Fix last change.
20749
207502007-11-09 Richard Stallman <rms@gnu.org>
20751
20752 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20753 not just for after-strings and before-strings.
20754 Call face_for_overlay_string and pass the overlay to it.
20755 (handle_display_prop): Determine whether property came from an overlay.
20756 Pass OVERLAY arg to handle_single_display_spec.
20757 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20758 (load_overlay_strings): Fill in it->string_overlays.
20759 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20760
20761 * xfaces.c (face_for_overlay_string): Function renamed from
20762 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20763
20764 * dispextern.h (struct it): New elt string_overlays.
20765 New elt from_overlay, also in stack.
20766 Rearrange a few elements.
20767 (face_for_overlay_string): Decl renamed from
20768 face_at_buffer_position_no_overlays, and add argument.
20769
207702007-11-09 Richard Stallman <rms@gnu.org>
20771
20772 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20773 to get the base face for an overlay string.
20774
20775 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20776
20777 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20778
20779 * xdisp.c (handle_stop): Move some code out of loop.
20780
207812007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20782
20783 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20784 Fix conversion from Lisp object to ATSUFontID.
20785
207862007-11-09 Jason Rumney <jasonr@gnu.org>
20787
20788 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20789
207902007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20791
20792 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20793 Don't assume regions are aligned to page boundary.
20794 (print_load_command_name): Add LC_UUID if defined.
20795
207962007-11-09 Richard Stallman <rms@gnu.org>
20797
20798 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20799
208002007-11-07 Jason Rumney <jasonr@gnu.org>
20801
20802 * s/windows95.h: Remove.
20803
208042007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20805
20806 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20807 abort with a message on unhandled store_type values.
20808
208092007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20810
20811 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20812 Remove HAVE_X11R5 and HAVE_X11R4.
20813
208142007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20815
20816 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20817
208182007-11-01 Johan Bockgård <bojohan@gnu.org>
20819
20820 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20821 Don't set s->stippled_p here, since it has already been set by
20822 x_set_glyph_string_gc from x_draw_glyph_string.
20823
208242007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20825
20826 * sunfns.c: Remove file.
20827
20828 * m/sun386.h:
20829 * m/sun2.h:
20830 * m/sparc.h: Remove Sun windows code.
20831
208322007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20833
20834 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20835 (init_keyboard): Set current_kboard's window-system to nil.
20836 (tty_read_avail_input): Typo.
20837 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20838
208392007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20840
20841 * s/usg5-4.h:
20842 * s/usg5-3.h:
20843 * s/ptx.h:
20844 * m/is386.h:
20845 * m/ibmps2-aix.h:
20846 * Makefile.in: Remove all mentions of X10.
20847
20848 * dispnew.c (syms_of_display): Don't mention version 10.
20849
208502007-10-28 Juanma Barranquero <lekktu@gmail.com>
20851
20852 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20853 ($(BLD)/abbrev.$(O)): Remove.
20854
208552007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20856
20857 Rewrite abbrev.c in Elisp.
20858 * image.c (Qcount): Don't declare as extern.
20859 (syms_of_image): Initialize and staticpro `Qcount'.
20860 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20861 * emacs.c (main): Don't call syms_of_abbrev.
20862 * Makefile.in (obj): Remove abbrev.o.
20863 (abbrev.o): Remove.
20864 * abbrev.c: Remove.
20865
208662007-10-26 Martin Rudalics <rudalics@gmx.at>
20867
20868 * window.c (window_min_size_2): Don't count header-line.
20869
208702007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20871
20872 * frame.h (struct frame): Move all bit fields after the first bit
20873 field to take advantage of the available space. Group all the
20874 chars together to reduce wasted space due to padding.
20875
208762007-10-26 Juanma Barranquero <lekktu@gmail.com>
20877
20878 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20879
20880 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20881 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20882 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20883 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20884 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20885 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20886 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20887 (last_marked, mark_object_loop_halt): Make static.
20888
20889 * frame.c (syms_of_frame) <delete-frame-functions>:
20890 Fix typo in docstring.
20891
208922007-10-25 Juanma Barranquero <lekktu@gmail.com>
20893
20894 * w32.c (init_environment): Fix tiny memory leak.
20895 (w32_get_resource): Remove unused variable `ok'.
20896
208972007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20898
20899 Make `window-system' into a keyboard-local variable (rather than
20900 frame-local as done originally by multi-tty).
20901
20902 * keyboard.h (struct kboard): Add Vwindow_system.
20903 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20904 (mark_kboards): Mark Vwindow_system.
20905
20906 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20907 (init_display): Don't set the obsolete `window-system' frame-param.
20908
20909 * xterm.c (x_term_init):
20910 * w32term.c (w32_create_terminal):
20911 * term.c (init_tty): Set Vwindow_system.
20912 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20913 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20914
20915 * xfns.c (Fx_create_frame, x_create_tip_frame):
20916 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20917 * macfns.c (Fx_create_frame):
20918 Don't set the obsolete `window-system' frame-param.
20919
20920 * frame.h (Qwindow_system): Remove.
20921 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20922 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20923
209242007-10-24 Richard Stallman <rms@gnu.org>
20925
20926 * frame.c (x_figure_window_size): For fullscreen case,
20927 set USPosition | PPosition without clobbering rest of window_prompting.
20928
20929 * keyboard.c (Fcurrent_idle_time): Doc fix.
20930
20931 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20932
209332007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20934
20935 * process.c (unwind_request_sigio): Only define if __ultrix__.
20936
20937 * callproc.c (child_setup): Remove spurious *.
20938
20939 * lisp.h (Fget_text_property): Declare.
20940 (have_menus_p): Declare it here rather than in sys-dep header files.
20941 * macterm.h (have_menus_p):
20942 * msdos.h (have_menus_p):
20943 * xterm.h (have_menus_p): Remove.
20944
20945 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20946 (Fmake_variable_frame_local): Just check the variable's const-ness
20947 rather than checking nil or t.
20948
209492007-10-22 Jason Rumney <jasonr@gnu.org>
20950
20951 * w32fns.c: Include math.h.
20952 (w32_abort): Declaration moved to nt/config.nt.
20953
20954 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20955 (abort): Redefinition moved to nt/config.nt.
20956
20957 * m/windowsnt.h: Remove.
20958
209592007-10-22 Juanma Barranquero <lekktu@gmail.com>
20960
20961 * emacs.c (Fdump_emacs): Fix typo in message.
20962 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20963 <installation-directory>: Reflow docstring.
20964
209652007-10-22 Juri Linkov <juri@jurta.org>
20966
20967 * minibuf.c: Allow minibuffer default to be a list of default values.
20968 With empty input use the first element of this list as returned default.
20969 (string_to_object)
20970 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20971 (read_minibuf): If defalt is cons, set histstring to its car.
20972 (Fread_string): If default_value is cons, set val to its car.
20973 (Fread_buffer): If def is cons, use its car.
20974 (Fcompleting_read): If defalt is cons, set val to its car.
20975
209762007-10-21 Michael Albinus <michael.albinus@gmx.de>
20977
20978 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20979
209802007-10-20 Juanma Barranquero <lekktu@gmail.com>
20981
20982 * doc.c (Fdocumentation): Check for advice in all cases.
20983
209842007-10-19 Chong Yidong <cyd@stupidchicken.com>
20985
20986 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20987
209882007-10-19 Richard Stallman <rms@gnu.org>
20989
20990 * doc.c (Fdocumentation): Check for and handle an advised function.
20991
209922007-10-19 Juanma Barranquero <lekktu@gmail.com>
20993
20994 * process.c (Fset_process_filter): Doc fix.
20995
209962007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20997
20998 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20999 which caused key-translation-map to applied repeatedly (thus breaking
21000 double-mode).
21001
210022007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21003
21004 * xselect.c (x_own_selection, x_handle_selection_clear)
21005 (x_clear_frame_selections):
21006 * w32menu.c (list_of_panes, list_of_items):
21007 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21008 * textprop.c (validate_plist, interval_has_all_properties)
21009 (interval_has_some_properties, interval_has_some_properties_list)
21010 (add_properties, text_property_list):
21011 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21012 * minibuf.c (Fassoc_string):
21013 * macselect.c (x_own_selection, x_clear_frame_selections)
21014 (Fx_disown_selection_internal):
21015 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21016 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21017
210182007-10-17 Chong Yidong <cyd@stupidchicken.com>
21019
21020 * process.c: Link to libs for calling res_init() if available.
21021 (Fmake_network_process): Call res_init() before getaddrinfo or
21022 gethostbyname, if possible.
21023
210242007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21025
21026 * lread.c (read1): Set pvectype for char_tables.
21027
21028 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21029 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21030 Add type checks.
21031 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21032
21033 * alloc.c (free_misc): Use XMISCTYPE.
21034 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21035
210362007-10-17 Glenn Morris <rgm@gnu.org>
21037
21038 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21039 (syms_of_minibuf): Add Qcompletion_ignore_case.
21040 * dired.c (Qcompletion_ignore_case): Change to external.
21041 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21042 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21043 (Fread_file_name): Use it rather than intern'ing.
21044
21045 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21046 (Fread_coding_system): Ignore case of user input.
21047
210482007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21049
21050 * xdisp.c (handle_display_prop): Ignore display specs after
21051 replacing one when string text is being replaced.
21052 (handle_single_display_spec): Pretend as if characters with display
21053 property haven't been consumed only when buffer text is being replaced.
21054
210552007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21056
21057 * xfns.c (Fx_create_frame, Fx_display_list):
21058 * window.c (window_fixed_size_p, enlarge_window)
21059 (shrink_window_lowest_first):
21060 * macterm.c (init_font_name_table):
21061 * macfns.c (Fx_create_frame, Fx_display_list):
21062 * lread.c (close_load_descs):
21063 * keyboard.c (read_char_x_menu_prompt):
21064 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21065 * coding.c (code_convert_region_unwind): Test the type of an object
21066 rather than just !NILP before extracting data from it.
21067
21068 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21069
21070 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21071 (XMISCANY): New macro.
21072 (XMISCTYPE): Use it.
21073 (struct Lisp_Misc_Any): New type.
21074 (union Lisp_Misc): Use it.
21075 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21076 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21077 (find_symbol_value, set_internal, default_value, Fset_default)
21078 (Fmake_variable_buffer_local, Fmake_local_variable)
21079 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21080 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21081 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21082 * alloc.c (allocate_buffer): Set the size and tag.
21083 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21084 Use XMISCANY.
21085 (die): Follow the GNU convention for error messages.
21086 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21087 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21088 tag any more.
21089 (set_buffer_internal_1):
21090 * frame.c (store_frame_param):
21091 * eval.c (specbind):
21092 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21093
21094 * doc.c (Fsnarf_documentation): Simplify.
21095
210962007-10-14 Juanma Barranquero <lekktu@gmail.com>
21097
21098 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21099 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21100
211012007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21102
21103 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21104
211052007-10-14 Juanma Barranquero <lekktu@gmail.com>
21106
21107 * eval.c (do_autoload): Don't save autoloads.
21108
21109 * data.c (Ffset): Save autoload of the function being set.
21110
211112007-10-07 John Paul Wallington <jpw@pobox.com>
21112
21113 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21114 parameter before setting up faces.
21115
211162007-10-13 Eli Zaretskii <eliz@gnu.org>
21117
21118 * ccl.c (Fregister_code_conversion_map):
21119 * keyboard.c (append_tool_bar_item): Reformat last change.
21120
21121 * lisp.h (eabs): Rename from `abs'. All callers changed.
21122
211232007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21124
21125 * buffer.c (add_overlay_mod_hooklist):
21126 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21127 * fontset.c (make_fontset):
21128 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21129 (append_tool_bar_item):
21130 * macmenu.c (grow_menu_items):
21131 * w32menu.c (grow_menu_items):
21132 * xmenu.c (grow_menu_items): Use larger_vector.
21133
211342007-10-13 Eli Zaretskii <eliz@gnu.org>
21135
21136 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21137 selected frame'' on MSDOS).
21138
211392007-10-12 Martin Rudalics <rudalics@gmx.at>
21140
21141 * frame.c (Qexplicit_name): New variable.
21142 (x_report_frame_params): Report it in parameter alist.
21143 (syms_of_frame): Intern and staticpro it.
21144
211452007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21146
21147 * macfns.c (x_create_tip_frame): Set terminal for frame.
21148
211492007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21150
21151 * frame.c (Qenvironment): Remove.
21152 (syms_of_frame) <Qenvironment>: Don't initialize.
21153 (Fdelete_frame): Don't treat the `environment' param specially.
21154 * frame.h (Qenvironment): Don't declare.
21155 * callproc.c (set_initial_environment): Don't set unused frame param.
21156
21157 * frame.c (Fframe_with_environment): Remove.
21158 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21159
21160 * lisp.h (Fframe_with_environment): Don't declare.
21161
211622007-10-10 Juanma Barranquero <lekktu@gmail.com>
21163
21164 * indent.c (indent_tabs_mode, last_known_column)
21165 (last_known_column_modified): Make static.
21166 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21167
211682007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21169
21170 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21171
211722007-10-09 Jason Rumney <jasonr@gnu.org>
21173
21174 * w32term.c (x_set_window_size): Disable code that attempts to tell
21175 Lisp code about a size change before it actually happens.
21176
211772007-10-09 Richard Stallman <rms@gnu.org>
21178
21179 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21180 return HANDLED_RETURN.
21181
211822007-10-08 Martin Rudalics <rudalics@gmx.at>
21183
21184 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21185 when there's an unread command event.
21186
21187 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21188 window autoselection act appropriately when leaving selected frame.
21189 (syms_of_frame): Initialize focus_follows_mouse.
21190 * frame.h (focus_follows_mouse): Extern it.
21191 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21192 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21193 * msdos.c (dos_rawgetc): Likewise.
21194 * w32term.c (w32_read_socket): Likewise.
21195 * xterm.c (handle_one_xevent): Likewise.
21196 * xdisp.c (syms_of_xdisp): In doc-string of
21197 mouse-autoselect-window mention focus-follows-mouse.
21198
211992007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21200
21201 * macterm.c (mac_load_query_font): Fix missing return value.
21202 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21203 Add BLOCK_INPUT.
21204
212052007-10-08 Richard Stallman <rms@gnu.org>
21206
21207 * xdisp.c (get_window_cursor_type): Implement documented behavior
21208 for cursor-in-non-selected-windows = t.
21209
212102007-10-08 Jason Rumney <jasonr@gnu.org>
21211
21212 * w32.c (w32_get_resource): Always close registry keys.
21213
212142007-10-08 Jason Rumney <jasonr@gnu.org>
21215
21216 * makefile.w32-in (LIBS): Add COMCTL32.
21217
21218 * w32fns.c (globals_of_w32fns): Init common controls.
21219
212202007-10-08 Richard Stallman <rms@gnu.org>
21221
21222 * image.c (our_memory_buffer): Rename from omfib_buffer.
21223
212242007-10-08 Richard Stallman <rms@gnu.org>
21225
21226 * buffer.c (Foverlays_at): Doc fix.
21227
212282007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21229
21230 * fns.c (Fplist_put): Preserve uneven tail data.
21231
212322007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21233
21234 * termhooks.h (enum event_kind): Remove trailing comma.
21235
21236 * frame.h (enum): Remove trailing comma.
21237
212382007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21239
21240 * w32proc.c (delete_child): Don't terminate threads of zombies.
21241
212422007-10-08 Martin Rudalics <rudalics@gmx.at>
21243
21244 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21245
21246 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21247 last-repeatable-command.
21248 (init_kboard): Initialize Vlast_repeatable_command.
21249 (command_loop_1): Set it to real_this_command unless that was
21250 bound to an input event.
21251 (mark_kboards): Mark it.
21252
212532007-10-08 Richard Stallman <rms@gnu.org>
21254
21255 * eval.c (condition-case): Doc fix.
21256
212572007-10-08 Masatake YAMATO <jet@gyve.org>
21258
21259 * xfaces.c (tty_supports_face_attributes_p): Fix code
21260 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21261 was copied and not edited.
21262
212632007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21264
21265 Add new `input-decode-map' keymap and use it for terminal
21266 escape sequences.
21267 * keyboard.h (struct kboard): Add Vinput_decode_map.
21268 Remove Vlocal_key_translation_map.
21269 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21270 (init_kboard): Init input-decode-map.
21271 Replace local-key-translation-map back with key-translation-map.
21272 (syms_of_keyboard): Declare input-decode-map.
21273 Remove local-key-translation-map. Update docstrings.
21274 (mark_kboards): Mark Vinput_decode_map.
21275 Don't mark Vlocal_key_translation_map.
21276 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21277 Replace local-key-translation-map back with key-translation-map.
21278 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21279 Bind in input-decode-map rather than function-key-map.
21280
21281 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21282 This was made redundant by the previous introduction of XSETPVECTYPE.
21283
212842007-10-09 Richard Stallman <rms@gnu.org>
21285
21286 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21287
212882007-09-29 Richard Stallman <rms@gnu.org>
21289
21290 * eval.c (internal_condition_case_2, internal_condition_case_1)
21291 (internal_condition_case): Reenable abort if x_catching_errors ()
21292 to see if that really happens and why.
21293
212942007-10-06 Andreas Schwab <schwab@suse.de>
21295
21296 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21297
212982007-10-04 Juanma Barranquero <lekktu@gmail.com>
21299
21300 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21301
213022007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21303
21304 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21305
213062007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21307
21308 * window.h (struct window):
21309 * window.c (struct save_window_data, struct saved_window):
21310 * termhooks.h (struct terminal):
21311 * process.h (struct Lisp_Process):
21312 * frame.h (struct frame):
21313 * buffer.h (struct buffer):
21314 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21315 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21316 The size field of (pseudo)vectors is now unsigned.
21317 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21318
21319 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21320 Turn `count' into an integer.
21321
21322 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21323 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21324 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21325 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21326 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21327
21328 * alloc.c (allocate_pseudovector): New fun.
21329 (ALLOCATE_PSEUDOVECTOR): New macro.
21330 (allocate_window, allocate_terminal, allocate_frame)
21331 (allocate_process): Use it.
21332 (mark_vectorlike): New function.
21333 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21334 (mark_terminals): Use it.
21335 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21336 (Fmake_byte_code): Use XSETPVECTYPE.
21337
21338 * frame.c (Fframe_parameters): Minor simplification.
21339
21340 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21341
21342 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21343
21344 * buffer.c (Fget_buffer_create, init_buffer_once):
21345 * lread.c (defsubr):
21346 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21347
21348 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21349 defined differently in the m/*.h files.
21350 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21351 (XSETPVECTYPE): New macro.
21352 (XSETPSEUDOVECTOR): Use it.
21353
21354 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21355 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21356
21357 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21358 * lread.c (defvar_per_buffer):
21359 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21360
21361 * window.c (candidate_window_p): Only consider as visible frames that
21362 are on the same terminal.
21363
21364 * m/ibms390x.h (MARKBIT): Remove unused macro.
21365
213662007-10-01 Juanma Barranquero <lekktu@gmail.com>
21367
21368 * lread.c (Fload): Fix typo in docstring.
21369
213702007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21371
21372 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21373 of a non-zero value can't yield zero.
21374
213752007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21376
21377 * term.c (term_clear_mouse_face, term_mouse_highlight)
21378 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21379
21380 * print.c (safe_debug_print): Use XHASH.
21381
21382 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21383 Lisp elements such as tags.
21384 (XHASH): New macro.
21385 (EQ): Use it.
21386 (SREF, SSET, STRING_COPYIN): Use SDATA.
21387 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21388
21389 * alloc.c (mark_terminal): Remove left-over declaration.
21390 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21391 (allocate_vectorlike): Remove type argument. Adjust callers.
21392 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21393 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21394
21395 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21396 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21397 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21398 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21399 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21400 Use them.
21401
21402 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21403 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21404 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21405
214062007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21407
21408 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21409 loaded by default.
21410
214112007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21412
21413 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21414 on this tty.
21415 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21416
21417 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21418 Update all users.
21419 (handle_one_term_event): Use Gpm_DrawPointer.
21420 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21421 Signal errors instead of returning nil. Always return nil.
21422 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21423 Make it a noop if gpm-mouse was not activated.
21424 (syms_of_term): Update names.
21425
214262007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21427
21428 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21429 (init_sys_modes): Check that gpm_tty is the current tty.
21430
21431 * alloc.c (allocate_terminal): Set the vector size to only count the
21432 lisp fields. Initialize those to nil.
21433 (mark_object): Don't treat terminals specially.
21434 (mark_terminal): Remove.
21435 (mark_terminals): Use mark_object instead.
21436
21437 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21438 the GC to the beginning.
21439
21440 * indent.h:
21441 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21442
21443 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21444
214452007-09-25 Jason Rumney <jasonr@gnu.org>
21446
21447 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21448
21449 * w32console.c (create_w32cons_output): Remove.
21450
21451 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21452
21453 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21454 (reset_sys_modes): Use reset_terminal_modes_hook.
21455
214562007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21457
21458 * eval.c (do_autoload): Don't output any message.
21459
214602007-09-24 Juri Linkov <juri@jurta.org>
21461
21462 * emacs.c (standard_args): Change priority of "--no-splash"
21463 from 40 to 3. Add "--no-desktop" with the same priority.
21464
214652007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21466
21467 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21468 and optimize the case where they are all 1.
21469
214702007-09-23 Johannes Weiner <hannes@saeurebad.de>
21471
21472 * lisp.h (abs): Define if not defined.
21473 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21474 Don't define `abs', since it's defined in lisp.h.
21475
214762007-09-22 Eli Zaretskii <eliz@gnu.org>
21477
21478 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21479 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21480 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21481 (init_tty): Use DEV_TTY instead of "/dev/tty".
21482 [WINDOWSNT]: No need to protect from NAME arg being null.
21483
214842007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21485
21486 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21487 up the tty state.
21488
214892007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21490
21491 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21492 (gpm_tty): Change its type.
21493 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21494 (gpm_tty): Change its type and initialize it.
21495 (Fterm_open_connection): Check the frame is indeed a tty.
21496 Use the new gpm_tty.
21497 (Fterm_close_connection): Use the new gpm_tty.
21498 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21499 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21500
215012007-09-21 Juanma Barranquero <lekktu@gmail.com>
21502
21503 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21504 underline_color, to draw strike-through.
21505
215062007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21507
21508 * lisp.h (allocate_terminal): Declare.
21509
21510 * window.c (candidate_window_p): Consider frames that are being placed
21511 by the user as somewhere between visible and iconified.
21512 (window_loop): Prefer windows on the current frame.
21513 (Fselect_window): Move the use of select-frame to the beginning so we
21514 can just delegate all the work (it'll call us back anyway).
21515
21516 * frame.c (Qdisplay_environment_variable):
21517 * frame.h (Qdisplay_environment_variable): Delete.
21518
21519 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21520 of the first arg, since that value may be a union.
21521
21522 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21523 parameter rather than Qdisplay_environment_variable. If all else
21524 fails, look for DISPLAY in initial-environment.
21525
215262007-09-21 Glenn Morris <rgm@gnu.org>
21527
21528 * Makefile.in (emacstool): Remove target.
21529 (lisp, shortlisp): Remove termdev.elc.
21530
215312007-09-21 Markus Triska <markus.triska@gmx.at>
21532
21533 * xterm.c (x_delete_display): Compile session management conditionally.
21534
215352007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21536
21537 * callproc.c (getenv_internal_1): New function.
21538 (getenv_internal): Use it.
21539 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21540
21541 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21542 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21543 (Fset_terminal_parameter): Work with dead terminals as well.
21544 (Fmodify_terminal_parameters): Remove.
21545
21546 * terminal.c (get_terminal): Handle terminals.
21547 Make sure the terminal returned is live.
21548 (create_terminal): Use allocate_terminal.
21549 (mark_terminals): Move to alloc.c.
21550 (delete_terminal): Use terminal->name as liveness status.
21551 NULL out fields after freeing their contents.
21552 Don't deallocate the object.
21553 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21554 rather than an int.
21555 (Fterminal_live_p): Accept non-integer arguments.
21556 (Fterminal_list): Return terminal objects rather than an ints.
21557
21558 * alloc.c (enum mem_type): New member for `terminal' objects.
21559 (allocate_terminal): New function.
21560 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21561 Handle terminals.
21562 (mark_terminal): New fun.
21563 (mark_terminals): Move from terminal.c.
21564
21565 * term.c (get_tty_terminal): Don't treat output_initial specially.
21566 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21567 (delete_tty): Use terminal->name as liveness status.
21568
21569 * termhooks.h (struct terminal): Make it into a pseudovector.
21570 Remove `deleted' replaced by checking `name's nullness.
21571
21572 * print.c (print_object): Handle terminals.
21573
21574 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21575 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21576
21577 * frame.c (make_terminal_frame):
21578 * keyboard.c (tty_read_avail_input):
21579 * w32term.c (x_delete_terminal):
21580 * xfns.c (Fx_create_frame, x_create_tip_frame):
21581 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21582
215832007-09-20 Glenn Morris <rgm@gnu.org>
21584
21585 * process.c (Fmake_network_process): Doc fix.
21586
215872007-09-19 Jason Rumney <jasonr@gnu.org>
21588
21589 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21590
215912007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21592
21593 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21594 Fix a C warning regarding variable constness.
21595
21596 * xterm.c (handle_one_xevent): Fix a C warning.
21597
215982007-09-18 Jason Rumney <jasonr@gnu.org>
21599
21600 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21601
216022007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21603
21604 * gtkutil.c (gdpy_def): New variable.
21605 (xg_initialize): Initialize gdpy_def.
21606 (xg_display_close): If no other display exists, set gdpy_def to a
21607 new connection.
21608
216092007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21610
21611 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21612 when we have no file name for the icon.
21613 (xg_tool_bar_expose_callback): Remove.
21614 (xg_create_tool_bar): Don't connect expose signal to
21615 xg_tool_bar_expose_callback.
21616 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21617
216182007-09-16 Andreas Schwab <schwab@suse.de>
21619
21620 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21621 values instead of zapping them.
21622
216232007-09-14 Glenn Morris <rgm@gnu.org>
21624
21625 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21626 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21627 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21628 scope and rename to omfib_buffer for clarity.
21629 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21630
216312007-09-14 Kenichi Handa <handa@m17n.org>
21632
21633 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21634
216352007-09-13 Jason Rumney <jasonr@gnu.org>
21636
21637 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21638
21639 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21640
21641 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21642 (mac_term_init): Call here instead, passing rif.
21643
216442007-09-13 Glenn Morris <rgm@gnu.org>
21645
21646 * s/hpux.h: No longer define `static' as nothing.
21647
216482007-09-13 Johan Bockgård <bojohan@gnu.org>
21649
21650 * callint.c (Fcall_interactively): Remove unused var `fun'.
21651
216522007-09-12 Romain Francoise <romain@orebokech.com>
21653
21654 * window.c (prefer_window_split_horizontally, display_buffer):
21655 Revert 2007-09-08 change.
21656
216572007-09-12 Glenn Morris <rgm@gnu.org>
21658
21659 * alloca.c: Remove file.
21660 * Makefile.in (alloca): Do not undef.
21661 (allocaobj, alloca.o): Remove.
21662 (otherobj): Remove allocaobj.
21663 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21664 * regex.c (C_ALLOCA): Remove all references and code that was only
21665 used when this was defined.
21666 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21667 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21668 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21669
21670 * Makefile.in (SOURCES, unlock, relock): Delete.
21671
21672 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21673 (menu_grab_callback): All uses changed.
21674
21675 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21676 (x_reply_selection_request): All uses changed.
21677
216782007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21679
21680 * lread.c (load_warn_old_style_backquotes): Change message to look
21681 better when it appears in the middle of byte-compiler messages.
21682
216832007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21684
21685 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21686
21687 * xterm.c (x_create_terminal): Add comment.
21688
21689 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21690
216912007-09-10 Richard Stallman <rms@gnu.org>
21692
21693 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21694
216952007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21696
21697 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21698 (DEFUN): Document `intspec', use it instead of `prompt'.
21699
21700 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21701
21702 * data.c (Finteractive_form): If the interactive specification starts
21703 with a `(', use it as a Lisp form.
21704
21705 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21706 name and file modes.
21707
21708 * callint.c (Fcall_interactively): Comment fixes.
21709
217102007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21711
21712 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21713 and compiled functions.
21714
217152007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21716
21717 * window.c (prefer_window_split_horizontally): New variable.
21718 (display_buffer): Consider splitting window horizontally depending
21719 on prefer_window_split_horizontally.
21720
217212007-09-08 Eli Zaretskii <eliz@gnu.org>
21722
21723 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21724
217252007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21726
21727 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21728
21729 * frame.c (x_set_frame_parameters): Check number is positive before
21730 using XFASTINT.
21731
21732 * window.c (freeze_window_start): Don't presume selected_window holds
21733 a window object.
21734 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21735
217362007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21737
21738 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21739
217402007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21741
21742 * window.c (Vsplit_window_preferred_function): New var.
21743 (Fdisplay_buffer): Use it.
21744 (syms_of_window): Export, and initialize it.
21745
217462007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21747
21748 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21749
217502007-09-06 Glenn Morris <rgm@gnu.org>
21751
21752 * gtkutil.c (menu_grab_callback) <cnt>:
21753 * xselect.c (x_reply_selection_request) <cnt>: Move static
21754 variable to file scope.
21755
217562007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21759 consistent values of selected_frame and selected_window.
21760
217612007-09-04 Jason Rumney <jasonr@gnu.org>
21762
21763 * w32console.c (initialize_w32_display): Zero unused hooks.
21764
217652007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21766
21767 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21768 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21769
217702007-09-04 Jason Rumney <jasonr@gnu.org>
21771
21772 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21773 in w32console.c. Set up input. Remove XXX comments that have been
21774 confirmed as correct.
21775
21776 * s/ms-w32.h (MULTI_KBOARD): Define.
21777
21778 * w32console.c (one_and_only_w32cons): Remove.
21779 (initialize_w32_display): Take terminal argument.
21780
21781 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21782 initialize_w32_display.
21783 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21784
21785 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21786
21787 * keyboard.c (discard_mouse_events): Discard it.
21788 (make_lispy_event): Translate it to a lisp event.
21789 (lispy_wheel_names): Add wheel-left and right events.
21790 (syms_of_keyboard): Enlarge wheel_syms.
21791
21792 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21793 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21794
21795 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21796
21797 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21798 from WM_MOUSEHWHEEL.
21799 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21800
21801 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21802 terminal.
21803
21804 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21805 keyboard for the terminal.
21806
218072007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21808
21809 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21810 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21811 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21812 and resume-tty-function to resume-tty-hook.
21813 (Fsuspend_tty, Fresume_tty): Use new names.
21814
218152007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21816
21817 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21818 if it starts with "n:".
21819
218202007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21821
21822 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21823
218242007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21825
21826 * frame.h:
21827 * frame.c (Qterm_environment_variable): Remove.
21828 (syms_of_frame): Don't init and staticpro it.
21829
21830 * callproc.c (getenv_internal): Remove special case for $TERM.
21831
21832 * callproc.c (Vinitial_environment): New variable.
21833 (set_initial_environment): Initialize it.
21834 (syms_of_callproc): Declare it.
21835 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21836 TERM under which a process runs is never related to the TERM in which
21837 Emacs is running.
21838
218392007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21840
21841 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21842 * s/darwin.h: ... do it here.
21843
218442007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21845
21846 * lisp.h (set_initial_environment): Rename from set_global_environment.
21847
21848 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21849 removed by mistake on the multi-tty branch.
21850
21851 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21852 (Fmodify_frame_parameters): Return a value.
21853
21854 * image.c (png_load): Comment-out var only used in commented-out code.
21855
21856 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21857 before passing it to mark_object.
21858
21859 * xfaces.c (internal_resolve_face_name): Return a value.
21860 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21861
21862 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21863 (x_icon): Comment-out var only used in commented-out code.
21864
218652007-08-29 Romain Francoise <romain@orebokech.com>
21866
21867 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21868 QUIT hasn't been provided.
21869
218702007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21871
21872 * callproc.c (child_setup, getenv_internal): Use the
21873 display-environment-variable and term-environment-variable frame params.
21874 (set_initial_environment): Initialise Vprocess_environment.
21875
21876 * config.in: Disable multi-keyboard support on a mac.
21877
21878 * frame.c (Qterm_environment_variable)
21879 (Qdisplay_environment_variable): New variables.
21880 (syms_of_frame): Intern and staticpro them.
21881 (Fmake_terminal_frame): Disable output method test.
21882
21883 * frame.h: Declare them here.
21884
21885 * macfns.c (x_set_mouse_color): Get rif from the frame.
21886 (x_set_tool_bar_lines): Don't use updating_frame.
21887 (mac_window): Add 2 new parameters for consistency with other systems.
21888 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21889 frame parameters following what is done in X11 and w32. Don't use
21890 FRAME_MAC_DISPLAY_INFO.
21891 (Fx_open_connection, start_hourglass): Remove window-system check.
21892 (x_create_tip_frame): Get the keyboard from the terminal.
21893
21894 * macmenu.c: Reorder includes.
21895 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21896
21897 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21898 terminal parameter.
21899 (x_clear_frame): Add a frame parameter.
21900 (note_mouse_movement): Get rif from the frame.
21901 (mac_term_init): Initialize the terminal.
21902 (mac_initialize): Make static and move terminal initialization ...
21903 (mac_create_terminal): ... to this new function.
21904
21905 * macterm.h (struct mac_display_info): Add terminal.
21906 (mac_initialize): Delete declaration.
21907
21908 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21909
21910 * sysdep.c: Comment out text after #endif.
21911
21912 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21913 is defined. Better initialize ttys in windows. Use terminal
21914 specific mouse_position_hook.
21915
21916 * termhooks.h (union display_info): Add mac_display_info.
21917
21918 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21919 Set the default minibuffer frame, window_system and the rest of the
21920 frame parameters following what is done in X11.
21921
21922 * w32term.c (w32_initialize): Make static.
21923
21924 * xselect.c (x_handle_selection_clear): Only access
21925 terminal->kboard when MULTI_KBOARD is defined.
21926
21927 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21928 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21929
219302007-08-29 Jason Rumney <jasonr@gnu.org>
21931
21932 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21933 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21934
21935 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21936 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21937
21938 * keyboard.c (restore_kboard_configuration): Only define when
21939 MULTI_KBOARD defined.
21940
21941 * makefile.w32-in: Update dependancies from Makefile.in.
21942 (OBJ1): Add terminal.$(O)
21943
21944 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21945 Don't define function body.
21946 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21947
21948 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21949
21950 * w32.c (request_sigio, unrequest_sigio): Remove.
21951
21952 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21953 (w32con_clear_frame, w32con_clear_end_of_line)
21954 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21955 (w32con_delete_glyphs, w32con_set_terminal_window)
21956 (scroll_line, w32_sys_ring_bell): Add frame arg.
21957 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21958 Add terminal arg.
21959 (PICK_FRAME): Remove.
21960 (w32con_write_glyphs): Use frame specific terminal coding.
21961 (one_and_only_w32cons): New global variable.
21962 (initialize_w32_display): Use it for storing hooks.
21963 (create_w32cons_output): New function.
21964
21965 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21966 arg a frame.
21967
21968 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21969 Set window_system.
21970 (x_set_tool_bar_lines): Don't use updating_frame.
21971 (Fx_create_frame): Set terminal and ref count.
21972 (Fx_open_connection): Remove window-system check.
21973
21974 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21975
21976 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21977 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21978 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21979 Add frame arg.
21980 (x_delete_terminal, w32_create_terminal): New functions.
21981 (w32_term_init): Create a terminal.
21982 (w32_initialize): Move terminal specific initialization to
21983 w32_create_terminal.
21984
21985 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21986 (w32_clear_rect, w32_clear_area): Use background from frame.
21987 (w32_display_info): Add terminal.
21988 (w32_sys_ring_bell, x_delete_display): Declare here.
21989
21990 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21991
21992 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21993
219942007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21995
21996 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21997 Fix get_named_tty calls for the controlling tty.
21998
219992007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22000
194d44e7 22001 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22002
220032007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22004
22005 * term.c (tty_insert_glyphs): Add missing first parameter.
22006
220072007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22008
22009 * buffer.c (Fbuffer_list, Fbury_buffer):
22010 Take frame->buried_buffer_list into account.
22011
22012 * cm.c (current_tty): New variable, for cmputc().
22013 (cmputc): Use it.
22014 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22015 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22016 (cmgoto): Add tty parameter. Pass it on to calccost().
22017 Use emacs_tputs() instead of tputs().
22018
22019 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22020 tputs().
22021 (current_tty): New variable, for cmputc().
22022 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22023
22024 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22025 (internal_condition_case, internal_condition_case_1)
22026 (internal_condition_case_2): Don't abort when x_catching_errors.
22027
22028 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22029 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22030 prevent crashes caused by bogus longjmps in read_char.
22031
22032 * keymap.h (Fset_keymap_parent): Add EXFUN.
22033
22034 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22035 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22036 Remove redundant definition.
22037
22038 * macfns.c (x_set_mouse_color, x_make_gc):
22039 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22040
22041 * w32term.c (x_free_frame_resources):
22042 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22043 (w32_initialize): Use the accessor macros for terminal characteristics.
22044
22045 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22046 Use the accessor macros for terminal characteristics.
22047 * msdos.c (internal_terminal_init): Use the accessor macros for
22048 terminal characteristics.
22049 (ScreenVisualBell, internal_terminal_init):
22050 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22051
22052 * termopts.h (no_redraw_on_reenter): Declare.
22053
22054 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22055 (mark_terminals, mark_ttys): Declare.
22056 (Fgarbage_collect): Call them.
22057 (mark_object): Mark buried_buffer_list.
22058
22059 * prefix-args.c: Include stdlib.h for exit.
22060
22061 * syssignal.h: Add comment.
22062
22063 * indent.c: Include stdio.h.
22064
22065 * window.h (Vinitial_window_system): Declare.
22066 (Vwindow_system): Delete declaration.
22067
22068 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22069
22070 * image.c (lookup_image): Don't initialize `c' until the xasserts
22071 have been run.
22072
22073 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22074 FRAME_FOREGROUND_PIXEL.
22075
22076 * print.c (print_preprocess): Don't lose print_depth levels while
22077 iterating.
22078
22079 * widget.c (update_from_various_frame_slots):
22080 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22081
22082 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22083 frames.
22084 (window_internal_height): Remove bogus make_number call.
22085 (init_window_once): Call make_terminal_frame with two zero parameters.
22086
22087 * fileio.c (Fread_file_name): Update comment.
22088
22089 * callint.c (Fcall_interactively):
22090 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22091 Make sure it is correctly unwound.
22092
22093 * xsmfns.c (x_session_close): New function.
22094
22095 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22096 Delete declarations.
22097
22098 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22099 (x_output): Remove background_pixel and foreground_pixel fields.
22100 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22101 (x_delete_device, x_session_close): Declare.
22102
22103 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22104 (read_filtered_event): Call `read_char' with a local
22105 `wrong_kboard_jmpbuf'.
22106
22107 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22108 Don't call single_kboard_state. Use FRAME_RIF.
22109
22110 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22111 systems.
22112
22113 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22114 (Fframe_with_environment, Fset_input_meta_mode)
22115 (Fset_quit_char): EXFUN.
22116 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22117 (init_sys_modes, reset_sys_modes): Update prototypes.
22118 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22119
22120 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22121 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22122 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22123 Delete declarations.
22124 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22125 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22126 New declarations.
22127
22128 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22129 already does that during init_display(). Call syms_of_keymap
22130 before syms_of_keyboard. Call `syms_of_terminal'.
22131 Call set_initial_environment, not set_process_environment.
22132 (shut_down_emacs): Call reset_all_sys_modes() instead of
22133 reset_sys_modes().
22134
22135 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22136 (internal_resolve_face_name, resolve_face_name_error): New functions.
22137 (resolve_face_name): Protect against loops and errors thrown by Fget.
22138 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22139 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22140
22141 * scroll.c: Replace CURTTY() with local variables throughout the
22142 file (where applicable).
22143 (calculate_scrolling, calculate_direct_scrolling)
22144 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22145 characteristics.
22146
22147 * keymap.c (Vfunction_key_map): Remove.
22148 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22149 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22150 (Vkey_translation_map): Remove.
22151 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22152 (Fdescribe_buffer_bindings)
22153 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22154 Update for terminal-local key-translation-map.
22155
22156 * Makefile.in (callproc.o): Update dependencies.
22157 (lisp, shortlisp): Add termdev.elc.
22158 (obj): Add terminal.o.
22159 (terminal.o): Add dependencies.
22160 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22161 (data.o, fns.o): Add termhooks.h dependency.
22162 (SOME_MACHINE_LISP): Add dnd.elc.
22163 (minibuf.o): Fix typo.
22164 Update dependencies.
22165
22166 * data.c (do_symval_forwarding, store_symval_forwarding)
22167 (find_symbol_value): Use the selected frame's keyboard, not
22168 current_kboard.
22169
22170 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22171 Vwindow_system.
22172
22173 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22174 Fmenu_bar_open.
22175 (syms_of_xmenu): Update defsubr.
22176 (mouse_position_for_popup, Fx_popup_menu)
22177 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22178 (set_frame_menubar, free_frame_menubar)
b97439ce 22179 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22180 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22181 an X frame.
22182
22183 * xselect.c (x_own_selection): Abort if not an X frame.
22184 (some_frame_on_display): Check if it is an X frame.
22185 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22186
22187 * coding.c: Include frame.h and termhooks.h.
22188 (terminal_coding, keyboard_coding): Delete.
22189 (Fset_terminal_coding_system_internal)
22190 (Fset_keyboard_coding_system_internal)
22191 (Fkeyboard_coding_system)
22192 (Fterminal_coding_system): Add a terminal parameter.
22193 Get terminal_coding from the terminal.
22194 (init_coding_once): Don't call setup_coding_system here.
22195
22196 * dispextern.h (set_scroll_region, turn_off_insert)
22197 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22198 (tty_clear_end_of_line, tty_setup_colors)
22199 (delete_tty, updating_frame)
22200 (produce_special_glyphs, produce_glyphs, write_glyphs)
22201 (insert_glyphs): Remove.
22202 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22203 (tty_turn_off_highlight, get_tty_size): Add declaration.
22204 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22205
22206 * frame.h (enum output_method): Add output_initial.
22207 (struct x_output): Delete.
22208 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22209 Access foreground_pixel and background_pixel directly from the frame.
22210 (tty_display): Delete.
22211 (struct frame): Add buried_buffer_list, foreground_pixel,
22212 background_pixel and terminal. Delete kboard.
22213 (union output_data): Add tty.
22214 (FRAME_KBOARD): Get the kboard from the terminal.
22215 (FRAME_INITIAL_P): New macro.
22216 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22217 (Qterm_environment_variable, Qdisplay_environment_variable)
22218 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22219 New declarations.
22220
22221 * termchar.h (tty_output, tty_display_info): New structures.
22222 (tty_list): Declare.
22223 (FRAME_TTY, CURTTY): New macros.
22224 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22225 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22226 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22227 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22228
22229 * callproc.c: Include frame.h and termhooks.h, for terminal
22230 parameters.
22231 (add_env): New function.
22232 (child_setup): Use it.
22233 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22234 (getenv_internal): Fix get_terminal_param call.
22235 (Fgetenv_internal, egetenv): Update doc.
22236 (syms_of_callproc): Initialize Vprocess_environment to nil.
22237 Register and initialize them. Remove obsolete defvars. Update doc
22238 strings.
22239 (child_setup): Handle Vlocal_environment_variables.
22240 (getenv_internal): Add terminal parameter.
22241 Handle Vlocal_environment_variables.
22242 (Fgetenv_internal): Add terminal parameter.
22243 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22244 environment in a frame (not terminal) parameter. Update doc strings.
22245 (set_initial_environment): Rename from set_global_environment.
22246 Store Emacs environment in initial frame parameter.
22247
22248 * xdisp.c (redisplay_internal): Update references to
22249 `previous_terminal_frame'.
22250 (display_mode_line, Fformat_mode_line): Replace calls to
22251 `push_frame_kboard' with `push_kboard'.
22252 (get_glyph_string_clip_rects): Add extra parentheses and
22253 braces to prevent compiler warnings.
22254 (calc_pixel_width_or_height): Add xassert to check that the
22255 frame is alive. Don't call `lookup_image' on a termcap frame.
22256 (message2_nolog, message3_nolog, redisplay_internal)
22257 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22258 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22259 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22260 (Fx_display_pixel_width, Fx_display_pixel_height)
22261 (Fx_display_planes, Fx_display_color_cells)
22262 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22263 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22264 (Fx_display_backing_store, Fx_display_visual_class)
22265 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22266 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22267
22268 * xfns.c (x_set_foreground_color x_set_background_color)
22269 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22270 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22271 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22272 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22273 terminal that is being deleted.
22274 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22275 frame parameter, and make sure it overrides any user-supplied setting.
22276 (Fx_close_connection, Fx_synchronize): Unify argument names with
22277 the rest of the DEFUNs.
22278
22279 * dispnew.c (Fsend_string_to_terminal): Update call to
22280 `get_tty_terminal'.
22281 (Fredraw_frame, Fsend_string_to_terminal)
22282 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22283 FRAME_TERMCAP_P and FRAME_TTY.
22284 (window_change_signal): Don't believe width/height values that are
22285 impossibly small.
22286 (Vinitial_window_system): Rename from Vwindow_system.
22287 (termscript, Wcm, rif): Delete.
22288
22289 * termhooks.h (struct terminal): New struct containing the
22290 previously global text display hooks and new members NAME,
22291 DELETED and PARAM_ALIST.
22292 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22293 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22294 (FRAME_RIF): New macros.
22295 (get_terminal_param, get_device): New declarations.
22296 (termscript): Delete declaration.
22297
22298 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22299 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22300 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22301 FRAME_FOREGROUND_PIXEL.
22302 (x_fully_uncatch_errors): Disable definition.
22303 (x_scroll_bar_expose): Fix reference to foreground pixel.
22304 (XTread_socket): Disable loop on all X displays.
22305 (x_delete_terminal): Don't set terminal->deleted and let
22306 delete_terminal delete the frames on the terminal.
22307 (x_delete_display): Doc update to reflect changes in
22308 delete_terminal.
22309 (x_display_info) <terminal>: Move member earlier in the struct.
22310 (deleting_tty): Remove old variable.
22311 (Fsuspend_tty): Call clear_tty_hooks.
22312 (Fresume_tty, init_tty): Call set_tty_hooks.
22313 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22314 errors on X frames.
22315 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22316 (handle_one_xevent): Initialize `f' to NULL.
22317 (x_delete_terminal, x_create_terminal): New functions.
22318 (XTset_terminal_modes, XTreset_terminal_modes)
22319 (XTread_socket, x_connection_closed, x_term_init)
22320 (x_term_init, x_delete_display): Add terminal parameter.
22321 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22322 X connections.
22323
22324 * frame.c: Include termchar.h.
22325 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22326 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22327 (Qdisplay_environment_variable): New vars.
22328 (Fframep): Deal with output_initial.
22329 (Fframe-live-p): Doc fix.
22330 (Fwindow-system): New function.
22331 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22332 (make_terminal_frame): Don't create frames on a terminal that is
22333 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22334 (store_frame_param): Check for found_for_frame before calling XFRAME.
22335 (Fmake_terminal_frame): Handle NULL tty names correctly.
22336 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22337 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22338 frames to refer to a deleted frame in their 'environment parameter.
22339 (Fframe_with_environment): New function.
22340 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22341 (get_future_frame_param): New function.
22342 (Fmake_terminal_frame): Use it.
22343 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22344
22345 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22346 * sysdep.c (reset_sys_modes): Update for renames.
22347
22348 * keyboard.c (tty_read_avail_input): New function.
22349 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22350 (syms_of_keyboard): Defsubr them.
22351 (Fset_input_meta_mode, Fset_quit_char): New functions.
22352 (Fset_input_mode): Split to above functions.
22353 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22354 parameter. Use it in call to `read_char'.
22355 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22356 Set wrong_kboard_jmpbuf correctly in recursive calls.
22357 Use current_kboard to access Vkeyboard_translate_table.
22358 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22359 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22360 Update longjmp invocations. Remember the original current_kboard,
22361 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22362 changes it. Comment out unnecessary calls to
22363 `record_single_kboard_state' and `any_kboard_state'.
22364 Update recursive calls.
22365 (wrong_kboard_jmpbuf): Remove global variable.
22366 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22367 Handle deleted interrupted_kboards correctly; that is a legal
22368 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22369 and read_char calls. Abort if interrupted_kboard died in read_char.
22370 (any_kboard_state, single_kboard_state)
22371 (push_frame_kboard): Remove function.
22372 (pop_kboard): Switch out of single_kboard mode if the kboard has
22373 been deleted. Remove unused variable. Help debugging by not
22374 changing current_kboard unnecessarily. Set current_kboard to the
22375 kboard of the selected frame when the stored kboard object has
22376 been deleted before pop_kboard.
22377 (temporarily_switch_to_single_kboard): Change first parameter to a
22378 frame pointer. Throw an error when caller wants to change kboards
22379 while in single_kboard mode. Don't push_kboard if we weren't in
22380 single kboard state. Don't pop_kboard if we popped into any
22381 kboard state.
22382 (restore_kboard_configuration): Abort if pop_kboard changed the
22383 kboard in single_kboard mode. Call pop_kboard only after setting
22384 up single_kboard mode.
22385 (Frecursive_edit): Switch to single_kboard mode only in nested
22386 command loops.
22387 (cmd_error, command_loop, command_loop_1, timer_check):
22388 Comment out unnecessary call to `any_kboard_state' and
22389 `record_single_kboard_state'.
22390 (delete_kboard): Exit single_kboard mode if we have just deleted
22391 that kboard. Use FRAME_KBOARD.
22392 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22393 `fatal_error_signal'.
22394 (record_single_kboard_state): Don't push_kboard if we weren't in
22395 single kboard state. Don't pop_kboard if we popped into any
22396 kboard state.
22397 (push_frame_kboard): Rename to push_kboard.
22398 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22399 (read_avail_input): Read input from all terminals.
22400 (mark_kboards): Also mark Vkeyboard_translate_table.
22401 (kbd_buffer_store_event_hold): Simplify condition.
22402 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22403 (Vkeyboard_translate_table): Move to struct kboard.
22404 (init_kboard): Initialize Vkeyboard_translate_table.
22405 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22406 Vkeyboard_translate_table. Update doc strings. Update docs of
22407 local-function-key-map and function-key-map.
22408
22409 * terminal.c: New file.
22410
22411 * term.c: Include errno.h.
22412 (Vring_bell_function, device_list, initial_device)
22413 (next_device_id, ring_bell, update_begin, update_end)
22414 (set_terminal_window, cursor_to, raw_cursor_to)
22415 (clear_to_end, clear_frame, clear_end_of_line)
22416 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22417 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22418 (syms_of_term): Move their initialization to terminal.c.
22419 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22420 (Ftty_display_color_cells)
22421 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22422 (clear_tty_hooks, set_tty_hooks)
22423 (init_tty, maybe_fatal): New functions.
22424 (Ftty_type): Return nil if terminal is not on a tty instead of
22425 throwing an error. Doc update.
22426 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22427 Doc update. Initialize new subrs and variables.
22428 (delete_tty): Use terminal->deleted.
22429 (tty_set_terminal_modes): Rename from set_terminal_modes.
22430 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22431 (set_scroll_region): Rename to `tty_set_scroll_region'.
22432 (turn_on_insert): Rename to `tty_turn_on_insert'.
22433 (turn_off_insert): Rename to `tty_turn_off_insert'.
22434 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22435 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22436 (toggle_highligh): Rename to `tty_toggle_highlight'.
22437 (background_highlight): Rename to `tty_background_highlight'.
22438 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22439 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22440 (tty_set_scroll_region, tty_background_highlight)
22441 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22442 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22443 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22444 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22445 Add static modifier.
22446 (tty_reset_terminal_modes, tty_set_terminal_window)
22447 (tty_set_scroll_region, tty_background_highlight)
22448 (tty_highlight_if_desired, tty_cursor_to)
22449 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22450 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22451 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22452 renames.
22453
224542007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22455
22456 * keyboard.c: Qrtl is new.
22457 (parse_tool_bar_item): Handle :rtl keyword.
22458 (syms_of_keyboard): Intern :rtl keyword.
22459
22460 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22461
22462 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22463 so no Lisp code is executed.
22464 (file_for_image, find_rtl_image): New functions.
22465 (xg_get_image_for_pixmap): Use file_for_image.
22466 (update_frame_tool_bar): If direction is RTL, use RTL image if
22467 defined. Use Gtk stock images if defined.
22468
224692007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22470
22471 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22472 for nonexistent or zero-width glyph in composition glyph.
22473
224742007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22475
22476 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22477
22478 * xdisp.c (Finvisible_p): New function.
22479 (syms_of_xdisp): defsubr it.
22480
224812007-08-24 Juanma Barranquero <lekktu@gmail.com>
22482
22483 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22484 Doc fixes.
22485
224862007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22487
22488 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22489
224902007-08-24 Martin Rudalics <rudalics@gmx.at>
22491
22492 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22493 whether decoding has modified buffer contents.
22494
224952007-08-24 Jason Rumney <jasonr@gnu.org>
22496
22497 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22498 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22499 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22500 (init_svg_functions) [HAVE_NTGUI]: New function.
22501 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22502 (svg_load_image): Use them.
22503 (svg_load_image) [HAVE_NTGUI]: Implement background.
22504
225052007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22506
22507 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22508 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22509 (LIBX): Remove @RSVG_LIBS@.
22510 (LIBES): Add $(RSVG_LIBS).
22511
22512 * image.c (svg_load_image): Blend with specified background if exists.
22513 Use IMAGE_BACKGROUND. Add Mac OS Support.
22514
22515 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22516 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22517 Remove macros.
22518 [MAC_OSX] (socket_callback): Do nothing.
22519 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22520 ReceiveNextEvent.
22521 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22522 socket_callback.
22523 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22524
225252007-08-22 Glenn Morris <rgm@gnu.org>
22526
22527 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22528
225292007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22530
22531 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22532
22533 * image.c: Add support for SVG images. Some additional comments
22534 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22535 (svg_image_p): New function to test for SVG image.
22536 (svg_load): New function to load SVG image.
22537 (svg_load_image): New function, helper for svg_load.
22538 (Qsvg): New Lisp_object.
22539 (svg_keyword_index): New enum.
22540 (svg_format): New static `image_keyword' struct.
22541 (svg_type): New static `image_type' struct.
22542 (librsvg/rsvg.h): Include it.
22543
225442007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22545
22546 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22547
225482007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22549
22550 * lread.c (Qold_style_backquotes): New var.
22551 (syms_of_lread): Init and staticpro it.
22552 (load_warn_old_style_backquotes): New fun.
22553 (Fload): Use them to warn about old style backquotes.
22554 (end_of_file_error, Fload): Remove unused vars.
22555
22556 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22557
22558 * lread.c (Vold_style_backquotes): New var.
22559 (syms_of_lread): Init and export it to Elisp.
22560 (read1): Set it when we find an old-style (back)quote.
22561
225622007-08-22 Jason Rumney <jasonr@gnu.org>
22563
22564 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22565
225662007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22567
22568 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22569
225702007-08-19 Richard Stallman <rms@gnu.org>
22571
22572 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22573
225742007-08-19 Andreas Schwab <schwab@suse.de>
22575
22576 * alloc.c (pure): Round PURESIZE up.
22577
225782007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22579
22580 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22581 active frame.
22582
225832007-08-16 Richard Stallman <rms@gnu.org>
22584
22585 * eval.c (Fcommandp): Add parens to clarify.
22586
22587 * minibuf.c (Fall_completions): Use enum for type of table.
22588
22589 * emacs.c (USAGE2): Improve text.
22590
225912007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22592
22593 * term.c (tty_default_color_capabilities): Declare static
22594 variables in file scope, to avoid HPUX compiler problem.
22595
225962007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22597
22598 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22599 to gtk_toolbar_insert.
22600
226012007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22602
22603 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22604
22605 * insdel.c (reset_var_on_error): New fun.
22606 (signal_before_change, signal_after_change):
22607 Use it to reset (after|before)-change-functions to nil in case of error.
22608 Bind inhibit-modification-hooks to t.
22609 Don't bind (after|before)-change-functions to nil while they run.
22610
226112007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22612
22613 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22614 filling pixmap with stippled background.
22615
226162007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22617
22618 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22619 Don't use invisible frame as parent window for repositioning.
22620
226212007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22622
22623 * print.c (new_backquote_output): Rename from old_backquote_output.
22624 (print): Inverse its logic (according to its name) so as to match the
22625 behavior of new_backquote_flag in lread.c.
22626
226272007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22628
22629 * gmalloc.c (posix_memalign): New function.
22630
22631 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22632 ActivateControl/DeactivateControl here.
22633 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22634 frame-notice-user-settings is non-nil.
22635 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22636 for kEventParamFMFontStyle.
22637 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22638 mac_pass_command_to_system and mac_pass_control_to_system here.
22639 (XTread_socket): Call ActivateControl/DeactivateControl here.
22640 (XTread_socket) [TARGET_API_MAC_CARBON]:
22641 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22642 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22643 for window repositioning.
22644
226452007-08-08 Glenn Morris <rgm@gnu.org>
22646
22647 * Replace `iff' in doc-strings and comments.
22648
226492007-08-07 Chong Yidong <cyd@stupidchicken.com>
22650
22651 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22652
226532007-08-07 Martin Rudalics <rudalics@gmx.at>
22654
22655 * fileio.c (Finsert_file_contents): Run format-decode and
22656 after_insert_file_functions on entire buffer when REPLACE is
22657 non-nil and inhibit modification_hooks and point_motion_hooks.
22658 For consistency, run after_insert_file_functions iff something
22659 got inserted. Move signal_after_change and update_compositions
22660 after code running after_insert_file_functions. Make sure that
22661 undo_list doesn't record intermediate steps of the decoding process.
22662
226632007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22664
22665 * emacs.c (main)
22666 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22667 Call malloc_enable_thread on interactive startup.
22668
22669 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22670 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22671 [USE_PTHREAD]: Conditionalize with it.
22672 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22673 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22674 New functions.
22675
226762007-08-06 Chong Yidong <cyd@stupidchicken.com>
22677
22678 * xdisp.c (redisplay_window): When restoring original buffer
22679 position, make sure it is still valid.
22680
22681 * image.c (png_load): Ignore png-supplied background color.
22682
226832007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22684
22685 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22686 Use kCFAbsoluteTimeIntervalSince1970.
22687
22688 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22689 New variable.
22690 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22691 event loop should be quit.
22692 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22693 Quit dialog event loop if quit_dialog_event_loop is set.
22694
22695 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22696 (Selection): New typedef. Use instead of ScrapRef.
22697 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22698 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22699 (mac_clear_selection): Rename from clear_scrap.
22700 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22701 scrap_has_target_type. All uses changed.
22702 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22703 (mac_selection_has_target_p): New functions.
22704 (mac_put_selection_value): Rename from put_scrap_string.
22705 (mac_get_selection_value): Rename from get_scrap_string.
22706 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22707 (put_scrap_private_timestamp, scrap_has_target_type)
22708 (get_scrap_private_timestamp): Remove functions.
22709 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22710 (x_own_selection, x_get_local_selection):
22711 Use mac_valid_selection_value_p.
22712 (x_own_selection): Don't use put_scrap_private_timestamp.
22713 Record OWNERSHIP-INFO into Vselection_alist instead.
22714 (x_get_local_selection): Don't check type if request is local.
22715 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22716 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22717
227182007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22719
22720 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22721 add comment explaining why.
22722
227232007-08-03 Richard Stallman <rms@gnu.org>
22724
22725 * fileio.c (Fvisited_file_modtime): Use make_time.
22726
227272007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22728
22729 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22730 build.
22731
227322007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22733
22734 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22735
227362007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22737
22738 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22739
227402007-07-30 Richard Stallman <rms@gnu.org>
22741
22742 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22743
227442007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22745
22746 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22747
227482007-07-28 Nick Roberts <nickrob@snap.net.nz>
22749
22750 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22751 remote default-directory.
22752
22753 * buffer.c (mode-line-format): Update doc string.
22754
227552007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22756
22757 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22758 scroll bar gap.
22759 (x_scroll_bar_create): Set bar->fringe_extended_p.
22760 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22761 on frame edge. Check fringe background extension. Don't clear
22762 extended fringe background area.
22763
22764 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22765 (w32_fill_area): Enclose multiple statements with do ... while (0).
22766
22767 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22768 Extend fringe background to scroll bar gap.
22769 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22770 Set bar->fringe_extended_p.
22771 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22772 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22773 background extension. Don't clear extended fringe background area.
22774
22775 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22776 New member fringe_extended_p.
22777
227782007-07-25 Glenn Morris <rgm@gnu.org>
22779
22780 * Relicense all FSF files to GPLv3 or later.
22781
22782 * COPYING: Switch to GPLv3.
22783
227842007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22785
22786 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22787
22788 * data.c (Finteractive_form): Check for the presence of an
22789 `interactive-form' symbol property more thoroughly.
22790
22791 * data.c (Finteractive_form): Use an `interactive-form' property if
22792 present, analogous to the function-documentation property.
22793
227942007-07-24 Jason Rumney <jasonr@gnu.org>
22795
22796 * w32fns.c (x_real_positions): Get real position from OS instead of
22797 calculating it.
22798
227992007-07-23 Jason Rumney <jasonr@gnu.org>
22800
22801 * filelock.c (current_lock_owner): Allow for @ sign in username.
22802
228032007-07-22 Nick Roberts <nickrob@snap.net.nz>
22804
22805 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22806 remote default-directory.
22807
22808 * buffer.c (mode-line-format): Describe above case in doc string.
22809
228102007-07-20 Eli Zaretskii <eliz@gnu.org>
22811
22812 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22813 Define if not defined.
22814
228152007-07-18 Jason Rumney <jasonr@gnu.org>
22816
22817 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22818
228192007-07-18 Richard Stallman <rms@gnu.org>
22820
22821 * data.c (Fsetq_default): Doc fix.
22822
22823 * eval.c (Fsetq): Doc fix.
22824
228252007-07-18 Juanma Barranquero <lekktu@gmail.com>
22826
22827 * coding.c (Ffind_operation_coding_system):
22828 * eval.c (For, Fand): Doc fixes.
22829 Reported by Johan Bockgård.
22830
228312007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22832
22833 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22834
22835 * xterm.h: Declare x_ewmh_activate_frame.
22836
22837 * xterm.c (x_ewmh_activate_frame): New function.
22838 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22839
228402007-07-17 Martin Rudalics <rudalics@gmx.at>
22841
22842 * window.c (Fdisplay_buffer): If largest or LRU window is the
22843 only window, split it even if it is not eligible for splitting.
22844 This restores the original behavior broken by the 2007-07-15
22845 change.
22846
228472007-07-17 Glenn Morris <rgm@gnu.org>
22848
22849 * abbrev.c (abbrev_check_chars): New function.
22850 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22851 Call abbrev_check_chars to check abbrev characters are word
22852 constituents. Doc fix.
22853
228542007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22855
22856 * process.c (Fstart_process, Fmake_network_process)
22857 (read_process_output): Fix up last changes.
22858
228592007-07-16 Eli Zaretskii <eliz@gnu.org>
22860
22861 * makefile.w32-in (clean): Don't delete *~.
22862
228632007-07-16 Andreas Schwab <schwab@suse.de>
22864
22865 * window.c (Fdisplay_buffer): Use NILP.
22866 (Fset_window_scroll_bars): Likewise.
22867
228682007-07-15 Martin Rudalics <rudalics@gmx.at>
22869
22870 * window.c (window_min_size_2): New function.
22871 (window_min_size_1, size_window, Fdisplay_buffer)
22872 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22873 windows without mode- or header-lines when window-min-height is
22874 too small.
22875 (size_window): Reset nodelete_p after testing it, following an
22876 earlier note by Kim F. Storm.
22877 (display_buffer): Do not set split_height_threshold to twice the
22878 value of window_min_height to avoid changing the value of a
22879 customizable variable. Rather explicitly check whether the
22880 height of the window that shall be splitted is at least as large
22881 as split_height_threshold.
22882 (Fwindow_full_width_p): New defun.
22883 (syms_of_window): Defsubr it.
22884
22885 * window.h: Add EXFUN for Fwindow_full_width_p.
22886
228872007-07-14 Jason Rumney <jasonr@gnu.org>
22888
22889 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22890
228912007-07-14 Richard Stallman <rms@gnu.org>
22892
22893 * eval.c (maybe_call_debugger): New function.
22894 (find_handler_clause): Use maybe_call_debugger.
22895 Call it when the handler says `debug'.
22896 Eliminate DEBUGGER_VALUE_PTR.
22897 (Fsignal): Eliminate debugger_value.
22898 (Qdebug): New variable.
22899 (syms_of_eval): Initialize it.
22900
229012007-07-14 Juanma Barranquero <lekktu@gmail.com>
22902
22903 * eval.c (Fprogn):
22904 * keyboard.c (Ftrack_mouse):
22905 * print.c (Fwith_output_to_temp_buffer):
22906 * window.c (Fsave_window_excursion): Doc fix.
22907
229082007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22909
22910 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22911
229122007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22913
22914 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22915 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22916 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22917 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22918 Remove unused encoding_carryover.
22919 * process.c: Adjust all functions accordingly.
22920
229212007-07-12 Richard Stallman <rms@gnu.org>
22922
22923 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22924
229252007-07-11 Jason Rumney <jasonr@gnu.org>
22926
22927 * makefile.w32-in (LIBS): Include OLE32.
22928
22929 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22930 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22931
229322007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22933
22934 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22935 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22936 from a Lisp_Object into a bare pointer.
22937 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22938 Adjust the code correspondingly.
22939
22940 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22941
22942 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22943 (term_show_mouse_face): Remove unused var `j'.
22944 (handle_one_term_event): Remove unused vars `i' and `j'.
22945 Don't cast return value of ttyname since it's not necessary.
22946
229472007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22948
22949 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22950 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22951
22952 * fns.c (map_char_table): Use an array of int for `indices' rather than
22953 an array of Lisp_Objects (which are only ever integers anyway).
22954 (Fmap_char_table): Update caller.
22955 * lisp.h: Update prototype.
22956 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22957 * fontset.c (Ffontset_info):
22958 * casetab.c (set_case_table): Update callers.
22959
22960 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22961
22962 * keymap.c (struct accessible_keymaps_data)
22963 (struct where_is_internal_data): New structures.
22964 (accessible_keymaps_1, where_is_internal_1): Use them to change
22965 interface to adhere to the one used by map_keymap.
22966 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22967 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22968
22969 * keymap.h (map_keymap_function_t): More informative prototype.
22970
229712007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22972
22973 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22974 (looking_at_1): Don't change search_regs and last_thing_searched
22975 if `inhibit-changing-match-data' is non-nil.
22976 (string_match_1, search_buffer, set_search_regs): Likewise.
22977 (syms_of_search): Add Lisp level definition for
22978 `inhibit-changing-match-data' and set it to nil.
22979 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22980 start and end of the match, instead of using values in search_regs.
22981
229822007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22983
22984 * minibuf.c (Fcompleting_read): New value `confirm-only'
22985 for `require-match'.
22986
229872007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22988
22989 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22990 part of the 2007-06-27 change to syms_of_fileio.
22991
229922007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22993
22994 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22995 Check WINDOWP before using XWINDOW. Consolidate return statements.
22996
229972007-06-27 Richard Stallman <rms@gnu.org>
22998
22999 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23000
230012007-06-27 Juanma Barranquero <lekktu@gmail.com>
23002
23003 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23004
230052007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23006
23007 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23008 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23009 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23010 (_free_internal, memalign): Use them.
23011 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23012 Initialize to PTHREAD_MUTEX_INITIALIZER.
23013 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23014 (morecore_nolock): Rename from morecore. All uses changed.
23015 Use only nolock versions of internal allocation functions.
23016 (_malloc_internal_nolock, _realloc_internal_nolock)
23017 (_free_internal_nolock): New functions created from
23018 _malloc_internal, _realloc_internal, and _free_internal.
23019 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23020 Copy hook value to automatic variable before its use.
23021 (memalign): Copy hook value to automatic variable before its use.
23022
230232007-06-26 Kenichi Handa <handa@m17n.org>
23024
23025 * coding.c (Ffind_operation_coding_system): Docstring improved.
23026 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23027
230282007-06-25 David Kastrup <dak@gnu.org>
23029
23030 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23031 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23032 cater for additional parameter.
23033
23034 * keymap.h: Adjust number of parameters to `current-active-maps'.
23035
23036 * doc.c (Fsubstitute_command_keys): Adjust call of
23037 `current-active-maps'.
23038
230392007-06-25 David Kastrup <dak@gnu.org>
23040
23041 * callint.c (Fcall_interactively): Make the parsing of interactive
23042 specs somewhat more readable.
23043
230442007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23045
23046 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23047 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23048 if extended background has already been filled.
23049
230502007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23051
23052 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23053 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23054
23055 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23056 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23057 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23058 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23059 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23060 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23061 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23062 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23063 Run timers during dialog popup.
23064 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23065
230662007-06-21 Jason Rumney <jasonr@gnu.org>
23067
23068 * image.c (convert_mono_to_color_image): Swap fore and background.
23069
230702007-06-20 Jason Rumney <jasonr@gnu.org>
23071
23072 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23073 (w32_free_bdf_font): Unmap memory not handle.
23074
230752007-06-20 Sam Steingold <sds@gnu.org>
23076
23077 * gmalloc.c (__morecore): Fix the declaration to comply with the
23078 definition.
23079
230802007-06-20 Juanma Barranquero <lekktu@gmail.com>
23081
23082 * w32term.c (w32_delete_display): Remove leftover declaration.
23083 (w32_define_cursor, w32_initialize): Make static.
23084
23085 * w32.c (_wsa_errlist): Fix typo in error message.
23086 (init_environment): Ignore any environment variable from the
23087 registry having a null value.
23088
230892007-06-20 Glenn Morris <rgm@gnu.org>
23090
23091 * Makefile.in (LIBGIF): Default to -lgif.
23092
230932007-06-17 Jason Rumney <jasonr@gnu.org>
23094
23095 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23096 unicode strings.
23097
230982007-06-16 Juanma Barranquero <lekktu@gmail.com>
23099
23100 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23101 Fix typo in docstring.
23102
231032007-06-16 Eli Zaretskii <eliz@gnu.org>
23104
23105 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23106 and their keybindings.
23107
231082007-06-15 Chong Yidong <cyd@stupidchicken.com>
23109
23110 * composite.c (update_compositions): Fix last fix.
23111
231122007-06-14 Jason Rumney <jasonr@gnu.org>
23113
23114 * w32.c (get_process_times_fn): New function pointer.
23115 (globals_of_w32): Intialize it if present in kernel32.dll.
23116 (w32_get_internal_run_time): New function.
23117
23118 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23119
231202007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23121
23122 * composite.c (update_compositions): Check the validness of
23123 compositions.
23124
231252007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23126
23127 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23128 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23129
23130 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23131 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23132
23133 * macgui.h (USE_MAC_TOOLBAR): New define.
23134
23135 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23136 Return immediately unless popup is activated.
23137
23138 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23139 background to scroll bar gap.
23140 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23141 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23142 scroll bars on frame edge. Check fringe background extension.
23143 Don't clear extended fringe background area.
23144 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23145 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23146 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23147 [USE_MAC_TOOLBAR]: New macros.
23148 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23149 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23150 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23151 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23152 [USE_MAC_TOOLBAR]: New functions.
23153 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23154 manually if previous repositioning has failed.
23155 (mac_handle_keyboard_event): Use precomputed event kind.
23156 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23157 as tool bar item click. Handle mouse movement over tool bar items.
23158
23159 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23160 toolbar_win_gravity.
23161 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23162 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23163 Add externs.
23164
23165 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23166 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23167
231682007-06-14 Chong Yidong <cyd@stupidchicken.com>
23169
23170 * image.c (search_image_cache): Remove unused variable.
23171
231722007-06-13 Chong Yidong <cyd@stupidchicken.com>
23173
23174 * xfns.c, xmenu.c: Link to xaw3d if available.
23175
231762007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23177
23178 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23179 frame_foreground and frame_background.
23180
23181 * image.c (lookup_image): Save frame foreground and background colors.
23182 (search_image_cache): Check if saved and current frame colors match.
23183
231842007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23185
23186 * regex.c (regex_compile): Remove the `regnum' counter.
23187 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23188
231892007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23190
23191 * term.c: Include intervals.h to declare Fget_text_property.
23192
231932007-06-10 Jason Rumney <jasonr@gnu.org>
23194
23195 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23196
231972007-06-08 Juanma Barranquero <lekktu@gmail.com>
23198
23199 * callint.c (Fcall_interactively):
23200 * editfns.c (Fdelete_and_extract_region):
23201 * fileio.c (Fread_file_name):
23202 * fns.c (Fmapconcat):
23203 * keyboard.c (cmd_error_internal):
23204 * keymap.c (Fkey_description):
23205 * lread.c (openp):
23206 * minibuf.c (read_minibuf):
23207 * search.c (wordify):
23208 * sunfns.c (sel_read):
23209 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23210 * xfns.c (x_default_scroll_bar_color_parameter):
23211 * xmenu.c (menu_help_callback):
23212 * xselect.c (Fx_get_atom_name):
23213 * xterm.c (x_term_init): Use empty_unibyte_string.
23214
232152007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23216
23217 * alloc.c (init_strings): Initialize canonical empty strings.
23218 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23219 canonical empty string when the requested size is 0.
23220
23221 * emacs.c (empty_unibyte_string): Rename from empty_string.
23222 (empty_multibyte_string): New canonical empty string.
23223 (syms_of_emacs): Don't initialize empty_string.
23224
23225 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23226 string, if appropriate.
23227 (empty_unibyte_string, empty_multibyte_string): New externs.
23228 (empty_string): Remove extern.
23229
23230 * lread.c (syms_of_lread): Use empty_unibyte_string.
23231
232322007-06-07 Jason Rumney <jasonr@gnu.org>
23233
23234 * s/ms-w32.h: Don't define HAVE_TZNAME.
23235
23236 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23237
232382007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23239
23240 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23241
23242 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23243 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23244
23245 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23246 Don't call next handler.
23247 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23248 Remove argument. Install handler to application.
23249 (set_frame_menubar): Don't change deep_p.
23250 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23251 FRAME_OUTER_TO_INNER_DIFF_Y.
23252 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23253 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23254 [HAVE_DIALOGS]: New macros.
23255 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23256 Use them.
23257 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23258
23259 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23260 init_service_handler. All callers changed. Return OSStatus value.
23261
23262 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23263 All callers changed so as not to call SetPortWindowPort.
23264 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23265 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23266 mac_draw_string_common.
23267 (mac_draw_image_string_qd): Likewise.
23268 (mac_draw_string_common): Use them. Add INLINE.
23269 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23270 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23271 GetGlobalMouse.
23272 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23273 and FRAME_OUTER_TO_INNER_DIFF_Y.
23274 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23275 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23276 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23277 repositioning window to mac_handle_window_event.
23278 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23279 saving window location to mac_handle_window_event
23280 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23281 (install_menu_target_item_handler): Remove argument in extern.
23282 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23283 Also accept command events.
23284 (do_keystroke): New function created from XTread_socket.
23285 (init_command_handler): Remove functions.
23286 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23287 and save window location by kEventWindowShowing and kEventWindowHiding
23288 handlers here. Don't call next handler for window state change and
23289 focus events.
23290 (mac_handle_application_event, mac_handle_keyboard_event)
23291 [TARGET_API_MAC_CARBON]: New functions.
23292 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23293 kEventWindowShowing and kEventWindowHiding events. Move installation
23294 of mouse, font, text input and menu target item handlers to
23295 install_application_handler.
23296 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23297 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23298 New function.
23299 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23300 Register it.
23301 (XTread_socket) [TARGET_API_MAC_CARBON]:
23302 Consolidate SendEventToEventTarget calls.
23303 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23304 Move application activation handler to mac_handle_application_event.
23305 Move keyboard handler to mac_handle_keyboard_event.
23306 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23307 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23308 init_command_handler. Call install_application_handler.
23309
23310 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23311 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23312
233132007-06-07 Glenn Morris <rgm@gnu.org>
23314
23315 * emacs.c (main): Use `emacs-copyright' in --version output.
23316
233172007-06-06 Chong Yidong <cyd@stupidchicken.com>
23318
23319 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23320
233212007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23322
23323 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23324
23325 * macgui.h: Replace WindowPtr with WindowRef.
23326
23327 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23328 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23329 Replace ControlHandle with ControlRef.
23330 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23331
23332 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23333 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23334 Replace ControlHandle with ControlRef.
23335 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23336 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23337
23338 * macterm.h (struct scroll_bar): Rename member control_handle_low
23339 and control_handle_high to control_ref_low and control_ref_high.
23340 All uses changed.
23341 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23342 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23343 respectively. All uses changed.
23344 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23345 (install_window_handler, remove_window_handler): Replace WindowPtr
23346 with WindowRef in externs.
23347
233482007-06-05 Juanma Barranquero <lekktu@gmail.com>
23349
23350 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23351
233522007-06-03 Nick Roberts <nickrob@snap.net.nz>
23353
23354 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23355
23356 * frame.c (Fmouse_position, Fmouse_pixel_position):
23357 Condition on HAVE_GPM too.
23358
23359 * term.c (term_mouse_highlight): Remove unused variables.
23360 (Fterm_open_connection): Set gpm_zerobased to 1.
23361 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23362 Use zero based co-ordinates.
23363 (handle_one_term_event): Report a drag as mouse movement too.
23364
23365 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23366
233672007-06-03 Chong Yidong <cyd@stupidchicken.com>
23368
23369 * image.c (search_image_cache): New function. Require background
23370 color match if background color is unspecified in the image spec.
23371 (uncache_image, lookup_image): Use it.
23372
233732007-06-01 Juanma Barranquero <lekktu@gmail.com>
23374
23375 * window.c (Fshrink_window): Reflow docstring.
23376
233772007-06-02 Chong Yidong <cyd@stupidchicken.com>
23378
23379 * Version 22.1 released.
23380
233812007-06-01 Richard Stallman <rms@gnu.org>
23382
23383 * xfns.c (x_encode_text): Add GCPRO.
23384
233852007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23386
23387 * xfns.c (x_set_name_internal): Save encoded name before
23388 x_encode_text in case string data is relocated.
23389
233902007-05-31 Richard Stallman <rms@gnu.org>
23391
23392 * buffer.c (syms_of_buffer): Doc fix.
23393
233942007-05-30 Nick Roberts <nickrob@snap.net.nz>
23395
23396 * sysdep.c (init_sys_modes): Add rather than replace with
23397 O_NONBLOCK.
23398
23399 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23400 term_mouse_moveto.
23401
23402 * termhooks.h (term_mouse_moveto): New extern.
23403
23404 * term.c (mouse_face_window): Rename...
23405 (Qmouse_face_window): ...to this.
23406 (term_show_mouse_face, term_clear_mouse_face)
23407 (term_mouse_highlight): Use Qmouse_face_window.
23408 (term_mouse_moveto): New function.
23409 (term_mouse_position): Make it work.
23410 (syms_of_term): Uncomment assignment to mouse_position_hook.
23411 Staticpro Qmouse_face_window.
23412
234132007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23414
23415 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23416 around current_column call.
23417
234182007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23419
23420 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23421 * xdisp.c (next_element_from_buffer):
23422 * window.c (delete_window):
23423 * term.c (term_mouse_highlight):
23424 * msdos.c (getdefdir):
23425 * macterm.c (mac_create_bitmap_from_bitmap_data)
23426 (init_font_name_table):
23427 * fns.c (Fsxhash):
23428 * data.c (Fmake_local_variable):
23429 * ccl.c (ccl_driver): Likewise.
23430
234312007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23432
23433 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23434 Call mac_wakeup_from_rne on window size change.
23435
234362007-05-25 Chong Yidong <cyd@stupidchicken.com>
23437
23438 * image.c (uncache_image): Fix typo.
23439
234402007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23441
23442 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23443
234442007-05-22 Richard Stallman <rms@gnu.org>
23445
23446 * xterm.c (x_connection_closed): Remove NO_RETURN.
23447
234482007-05-22 Martin Rudalics <rudalics@gmx.at>
23449
23450 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23451
234522007-05-21 Chong Yidong <cyd@stupidchicken.com>
23453
23454 * image.c (uncache_image): New function.
23455 (Fimage_refresh): New function.
23456
234572007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23458
23459 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23460
234612007-05-20 Nick Roberts <nickrob@snap.net.nz>
23462
23463 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23464 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23465
234662007-05-20 Nick Roberts <nickrob@snap.net.nz>
23467
23468 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23469 conditional on [HAVE_GPM_H].
23470
234712007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23472
23473 * syntax.c (skip_chars): Update syntax-table only after we checked that
23474 the new location is valid.
23475
234762007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23477
23478 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23479 mac_get_window_bounds.
23480
234812007-05-20 Nick Roberts <nickrob@snap.net.nz>
23482
23483 * Makefile.in (LIBGPM): Allow it to be set from configure.
23484 If set then link Emacs with it.
23485
23486 * config.in: Regenerate.
23487
23488 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23489 New externs.
23490
23491 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23492 Include gpm.h.
23493 (handle_one_term_event, term_gpm): New externs.
23494
23495 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23496 and allow it to be interrupted by SIGIO.
23497
23498 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23499 (wait_reading_process_output): Wait on gpm_fd too.
23500 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23501 (add_gpm_wait_descriptor_called_flag): New variable.
23502 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23503
23504 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23505 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23506 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23507 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23508 (make_lispy_event): Add case GPM_CLICK_EVENT.
23509 (read_avail_input): Handle mouse input.
23510
23511 * term.c (write_glyphs_with_face): New function.
23512 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23513 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23514 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23515 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23516 (last_mouse_x, last_mouse_y): New variables.
23517 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23518 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23519 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23520 (Fterm_close_connection): New functions.
23521 (term_init): Initialise mouse_face_window.
23522
235232007-05-19 Chong Yidong <cyd@stupidchicken.com>
23524
23525 * xdisp.c (redisplay_window): If first window line is a
23526 continuation line, recompute the new window start instead of
23527 recentering.
23528
235292007-05-18 Glenn Morris <rgm@gnu.org>
23530
23531 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23532 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23533
235342007-05-17 Glenn Morris <rgm@gnu.org>
23535
23536 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23537
235382007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23539
23540 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23541 dead key repeat and up events.
23542
235432007-05-14 Chong Yidong <cyd@stupidchicken.com>
23544
23545 * image.c (pbm_load): Check image size for monochrome pbm.
23546
235472007-05-13 Chong Yidong <cyd@stupidchicken.com>
23548
23549 * xterm.c (XTread_socket): Revert last change.
23550
235512007-05-12 Chong Yidong <cyd@stupidchicken.com>
23552
23553 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23554
23555 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23556
235572007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23558
23559 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23560 mixup (YAILOM).
23561
235622007-05-07 Andreas Schwab <schwab@suse.de>
23563
23564 * keymap.c (Flookup_key): Fix typo in last change.
23565
235662007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23567
23568 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23569 mapping for unibyte strings.
23570
235712007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23572
23573 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23574 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23575
235762007-04-29 Richard Stallman <rms@gnu.org>
23577
23578 * insdel.c (replace_range): For undo, record insertion first.
23579
235802007-04-29 Andreas Schwab <schwab@suse.de>
23581
23582 * lisp.h (VECSIZE): Use OFFSETOF.
23583
235842007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23585
23586 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23587 disabled lines.
23588
235892007-04-28 Richard Stallman <rms@gnu.org>
23590
23591 * lread.c (read_escape): In a string, \s is always space.
23592
235932007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23594
23595 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23596
23597 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23598 submenu for menu bar items.
23599
23600See ChangeLog.10 for earlier changes.
23601
23602;; Local Variables:
23603;; coding: utf-8
23604;; add-log-time-zone-rule: t
aac0c6e3
MR
23605;; End:
23606
e3eb1dae 23607 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23608
23609 This file is part of GNU Emacs.
23610
23611 GNU Emacs is free software: you can redistribute it and/or modify
23612 it under the terms of the GNU General Public License as published by
23613 the Free Software Foundation, either version 3 of the License, or
23614 (at your option) any later version.
23615
23616 GNU Emacs is distributed in the hope that it will be useful,
23617 but WITHOUT ANY WARRANTY; without even the implied warranty of
23618 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23619 GNU General Public License for more details.
23620
23621 You should have received a copy of the GNU General Public License
23622 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23623
23624;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40