* configure.in (--with-gtk, --with-gcc): Remove option stubs.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ead6f8f5
EZ
12010-05-19 Eli Zaretskii <eliz@gnu.org>
2
3 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4 reallocation of the cache. (Bug#6210)
5
7f34aec3
GM
62010-05-19 Glenn Morris <rgm@gnu.org>
7
d494e8f2
GM
8 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
9
c1d0dcfd
GM
10 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
11 (GNULIB_VAR): Remove.
12 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
13
14 * m/ibms390x.h (LINKER):
15 * m/macppc.h (LINKER) [GNU_LINUX]:
16 * s/aix4-2.h (ORDINARY_LINK):
17 * s/cygwin.h (LINKER):
18 * s/darwin.h (ORDINARY_LINK):
19 * s/gnu.h (ORDINARY_LINK):
20 * s/netbsd.h (LINKER):
21 * s/usg5-4.h (ORDINARY_LINK):
22 Move to configure.
23
7f34aec3
GM
24 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
25
754790b6
CY
262010-05-18 Chong Yidong <cyd@stupidchicken.com>
27
28 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
29 prevent stack overflow if number of arguments is too large
30 (Bug#6214).
31
161e44d1
JB
322010-05-18 Juanma Barranquero <lekktu@gmail.com>
33
34 * charset.c (load_charset_map_from_file): Don't call close after fclose.
35
be4ff9da
GM
362010-05-18 Glenn Morris <rgm@gnu.org>
37
9539dc5d
GM
38 * s/gnu-linux.h: Combine two conditionals.
39
40 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
41 $(POST_ALLOC_OBJ).
42
40dc6bf4
GM
43 * Makefile.in (RALLOC_OBJ): New, set by configure.
44 (rallocobj): Replace with the previous variable.
45 (otherobj): Use $RALLOC_OBJ.
46
47 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
48 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
49
be4ff9da
GM
50 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
51 (gmallocobj, vmlimitobj): Replace with previous two variables.
52 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
53
16455a85
GM
542010-05-17 Glenn Morris <rgm@gnu.org>
55
56 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
57 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
58
5fdb7468
GM
592010-05-16 Glenn Morris <rgm@gnu.org>
60
7ca1f3f9
GM
61 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
62
7541dad5
GM
63 * Makefile.in (clean): Get rid of HAVE_NS conditional.
64
da53fab9
GM
65 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
66 trailing "/".
67
b02a6645
GM
68 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
69 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
70
8877ca0f
GM
71 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
72 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
73 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
74 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
75 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
76
5fdb7468
GM
77 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
78 Remove ${STARTFLAGS}, nothing ever sets it.
79
95adb4b1
DN
802010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
81
82 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
83
676b6304
GM
842010-05-16 Glenn Morris <rgm@gnu.org>
85
9beab9ce
GM
86 * Makefile.in (LIBX_BASE): Always define.
87
8a95f0e7
GM
88 * Makefile.in (LIBX_OTHER): Move out of cpp section.
89
676b6304
GM
90 * Makefile.in (LIBXT): Always define.
91
6e546d18
GM
922010-05-15 Glenn Morris <rgm@gnu.org>
93
4235ca47 94 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 95
6e546d18
GM
96 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
97 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
98
8c5ff6dd
KR
992010-05-15 Ken Raeburn <raeburn@raeburn.org>
100
560bb7ae 101 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
102 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
103
8b4eb796
KR
104 * emacs.c (main): Initialize initial-environment and
105 process-environment before generating from env, not after.
106
8c5ff6dd
KR
107 Handle --version reasonably in CANNOT_DUMP configuration.
108 * emacs.c (emacs_version, emacs_copyright): New string variables.
109 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
110 (syms_of_emacs): Defvar them, and initialize them from the C
111 string variables.
112 (main): If initialization hasn't been done, print initial version
113 info from the C strings, instead of starting an interactive session.
114
dbd3f723
EZ
1152010-05-15 Eli Zaretskii <eliz@gnu.org>
116
d20e1419
EZ
117 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
118 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
119 (bidi_paragraph_init): Remove redundant assertion that we are at
120 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
121
122 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
123 (syms_of_xdisp): Defsubr it.
124
dbd3f723
EZ
125 * Makefile.in: Fix MSDOS-related comments.
126
02be533b
GM
1272010-05-15 Glenn Morris <rgm@gnu.org>
128
1a82cca9
GM
129 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
130 (really-lwlib, really-oldXMenu): Always define.
131 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
132
3df7b338
GM
133 * Makefile.in: Simplify cpp conditional.
134
2b5f541b
GM
135 * Makefile.in (${ns_appdir}): Simplify using umask.
136
02be533b
GM
137 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
138
4e2db1fe
SM
1392010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
140
141 * eval.c (specbind): Remove left-over duplicate test.
142 Disallow let-binding frame-local vars. Add comment.
143
4b292a22
EZ
1442010-05-14 Eli Zaretskii <eliz@gnu.org>
145
2fe72643 146 Make the cache of bidi iterator states dynamically allocated.
1edbd309 147 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
148 (bidi_init_it): Call it.
149 (bidi_cache_iterator_state): Enlarge the cache if needed.
150
4e2db1fe 151 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
152 bidi_get_next_char_visually. All callers changed.
153
82ebc97b
KH
1542010-05-14 Kenichi Handa <handa@m17n.org>
155
156 * dispextern.h (struct composition_it): New member reversed_p.
157
158 * composite.c (composition_compute_stop_pos): Search backward if
159 ENDPOS < CHARPOS.
160 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
161 Set CMP_IT->reversed_p.
b4b6e17e 162 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 163
4e2db1fe
SM
164 * xdisp.c (set_iterator_to_next):
165 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
166 scanning backward. Call composition_compute_stop_pos if scan
167 direction is changed.
168 (next_element_from_buffer): Call composition_compute_stop_pos with
169 negative ENDPOS if we are scanning backward.
170 (next_element_from_composition): Pay attention to
171 IT->cmp_it.reversed_p.
172
0e5d7800
KH
1732010-05-14 Kenichi Handa <handa@m17n.org>
174
560bb7ae 175 * font.c (font_range): Return the range for the font found at first.
0e5d7800 176
cb027b32
GM
1772010-05-14 Glenn Morris <rgm@gnu.org>
178
177b0288
GM
179 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
180
fbc00890
GM
181 * Makefile.in (mktime, X11, register): Move undefs to configure.
182
f14d1dfd
GM
183 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
184 (MSDOS_X_OBJ): New variable.
185 (MSDOS_SUPPORT_REAL): New constant.
186 (MSDOS_SUPPORT): Set as a variable, not with cpp.
187 (obj): Use MSDOS_X_OBJ.
188 (lisp): Use MSDOS_SUPPORT as a variable.
189
11842bd8
GM
190 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
191 (GPM_MOUSE_SUPPORT): Now it's a constant.
192 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
193 not cpp.
194
489d31a4 195 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 196 (ns_appresdir): Remove, unused.
e20f1f07 197
489d31a4
GM
198 * Makefile.in (SHELL): Move outside cpp section.
199
cb027b32
GM
200 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
201
5a903aa9
GM
2022010-05-13 Glenn Morris <rgm@gnu.org>
203
3369c79f
GM
204 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
205 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
206
d5e982a6
GM
207 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
208 HAVE_WINDOW_SYSTEM must be too.
209
6192e163
GM
210 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
211 (lisp): Remove WINNT_SUPPORT.
212
472c5d6b
GM
213 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
214 Let configure set these variables (to empty) in this case as well.
215
0116466b
GM
216 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
217 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
218
5a903aa9
GM
219 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
220 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
221 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
222 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
223 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 224 the values output by configure.
5a903aa9
GM
225 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
226
1a0d7c06
GM
2272010-05-12 Glenn Morris <rgm@gnu.org>
228
b5457f14
GM
229 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
230 (LINKER_WAS_SPECIFIED): Remove.
231
1a0d7c06
GM
232 * Makefile.in (LIB_GCC): Set using configure, not cpp.
233 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
234 * m/arm.h (LIB_GCC) [GNU_LINUX]:
235 * s/cygwin.h (LIB_GCC):
236 * s/freebsd.h (LIB_GCC):
237 * s/gnu-linux.h (LIB_GCC):
238 * s/msdos.h (LIB_GCC):
239 * s/netbsd.h (LIB_GCC):
240 Move to configure.
241
3ffd4615 2422010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
243
244 * ftfont.c: Fix incorrect parentheses of #if condition for
245 definining M17N_FLT_USE_NEW_FEATURE.
246
acddf8ae
GM
2472010-05-11 Glenn Morris <rgm@gnu.org>
248
249 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
250 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
251
ae5e04fa
EZ
2522010-05-10 Eli Zaretskii <eliz@gnu.org>
253
254 * xdisp.c (init_iterator): Don't turn on bidi reordering in
255 unibyte buffers. See
256 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
257
7490175b
GM
2582010-05-10 Glenn Morris <rgm@gnu.org>
259
97efb629
GM
260 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
261 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
262 (LIBES): Use LIBS_SYSTEM as a variable.
263 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
264 * s/aix4-2.h (LIBS_SYSTEM):
265 * s/freebsd.h (LIBS_SYSTEM):
266 * s/hpux10-20.h (LIBS_SYSTEM):
267 * s/sol2-6.h (LIBS_SYSTEM):
268 * s/unixware.h (LIBS_SYSTEM):
269 Move to configure.
270
7490175b
GM
271 * s/aix4-2.h (MAIL_USE_LOCKF):
272 * s/bsd-common.h (MAIL_USE_FLOCK):
273 * s/darwin.h (MAIL_USE_FLOCK):
274 * s/gnu-linux.h (MAIL_USE_FLOCK):
275 * s/irix6-5.h (MAIL_USE_FLOCK):
276 * s/template.h (MAIL_USE_FLOCK):
277 Move to configure.
278
0235128c 2792010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
280
281 * Version 23.2 released.
282
0235128c 2832010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
284
285 * composite.c (autocmp_chars): Save point as marker before calling
286 auto-composition-function (Bug#5984).
287
288 * lisp.h (restore_point_unwind): Add prototype.
289
290 * fileio.c (restore_point_unwind): Remove static attribute.
291
0235128c 2922010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
293
294 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
295 new feature of libotf and m17n-flt.
0235128c
SM
296 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
297 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
298 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
299 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
300 that OUT is NULL. Use OTF_drive_gsub_with_log and
301 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
302 OTF_drive_gpos.
303 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
304 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
305 Setup mflt_enable_new_feature and mflt_try_otf.
306
4721152c
J
3072010-05-08 Jan Djärv <jan.h.d@swipnet.se>
308
309 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
310
311 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
312 box and toolbar (Bug #6139).
313 (xg_create_tool_bar): Remove comment (Bug #6139).
314 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
315 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
316
ee0a16cf
JB
3172010-05-08 Juanma Barranquero <lekktu@gmail.com>
318
319 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
320 Update dependencies.
321
96d79611
EZ
3222010-05-08 Eli Zaretskii <eliz@gnu.org>
323
324 * fringe.c (update_window_fringes): Set up truncation bitmaps for
325 R2L lines.
326
40c17879
GM
3272010-05-08 Glenn Morris <rgm@gnu.org>
328
7b42b29f
GM
329 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
330
40c17879
GM
331 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
332 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
333 (termcapobj): Replace with TERMCAP_OBJ.
334 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
335 (LIBES): Use LIBS_TERMCAP as a variable.
336
337 * s/freebsd.h (osreldate.h): No longer include, since this file
338 does not use __FreeBSD_version any more.
339
340 * s/aix4-2.h (TERMINFO):
341 * s/cygwin.h (TERMINFO):
342 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
343 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
344 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
345 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
346 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
347 * s/irix6-5.h (TERMINFO):
348 * s/netbsd.h (LIBS_TERMCAP):
349 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
350 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
351 * s/usg5-4.h (TERMINFO):
352 Move to configure.
353
94b612ad
SM
3542010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
355
356 * eval.c (unbind_to): Don't unbind a local binding into the global
357 binding when the local binding disappeared. Inversely, don't unbind
358 a global binding into a newly created local binding.
359 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
360 can specify the frame to use, when applicable. Adjust callers.
361
15e12598
VB
3622010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
363 Stefan Monnier <monnier@iro.umontreal.ca>
364
365 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
366
f724825e
EZ
3672010-05-07 Eli Zaretskii <eliz@gnu.org>
368
5cba3209
EZ
369 * w32fns.c: Include w32.h.
370 (Fw32_shell_execute): Decode the error message before passing it
371 to `error'. (Bug#6126)
372
d16bdfc3
EZ
373 * msdos.c (dos_set_window_size):
374 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
375 instead of `XSYMBOL (foo)->value'.
376
59d93e87
EZ
3772010-05-07 Eli Zaretskii <eliz@gnu.org>
378
9fdec8bc
EZ
379 Fix the MS-DOS build, broken by autoconfiscation.
380
381 * Makefile.in: Don't use Make-style comments past the "start of
382 cpp stuff" line.
383 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
384
385 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
386 edited directly by msdos/sed1v2.inp).
f724825e 387
2f86b22b
GM
3882010-05-07 Glenn Morris <rgm@gnu.org>
389
390 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
391 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
392 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
393 move out of cpp section.
394 * s/freebsd.h (LD_SWITCH_SYSTEM):
395 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
396 * s/netbsd.h (LD_SWITCH_SYSTEM):
397 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
398
49ebbd65
DN
3992010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
400
401 Define LIB_STANDARD and START_FILES using autoconf.
402 * s/usg5-4.h (LIB_STANDARD):
403 * s/netbsd.h (START_FILES):
404 * s/irix6-5.h (LIB_STANDARD):
405 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
406 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
407 * s/freebsd.h (START_FILES):
408 * s/darwin.h (START_FILES):
409 * s/cygwin.h (START_FILES):
410 * s/aix4-2.h (LIB_STANDARD):
411 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
412 * Makefile.in (STARTFILES): Rename to START_FILES, define using
413 autoconf, not cpp.
414
d43c06d6
DN
4152010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
416
28823648
DN
417 Remove NEED_BSDTTY and NEED_UNISTD_H.
418 * s/hpux10-20.h (NEED_BSDTTY): Remove.
419 * s/aix4-2.h (NEED_UNISTD_H): Remove.
420 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
421 <sys/ptyio.h> and <unistd.h>.
422
aca00430
DN
423 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
424
d43c06d6
DN
425 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
426 * s/gnu.h (START_FILES): Remove empty definition.
427
3e56b11d
JD
4282010-05-06 Jan Djärv <jan.h.d@swipnet.se>
429
430 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
431
e3cf0cde
GM
4322010-05-06 Glenn Morris <rgm@gnu.org>
433
434 * Makefile.in (CPP, LN_S): Remove unused variables.
435
774b9a60
SM
4362010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
437
438 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
439
4ab92842
LM
4402010-05-05 Lawrence Mitchell <wence@gmx.li>
441
442 * m/sparc.h: Fix typo in earlier change.
443
178f2507
SM
4442010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
445
446 Misc tweaks.
447 * eval.c (Fdefvaralias): Remove unintended nested if.
448 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
449
80f00217 4502010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
451
452 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
453
ef03a4e6
DN
4542010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
455
58eb6cf0
DN
456 Remove BSD_PGRPS.
457 * s/bsd-common.h (BSD_PGRPS): Remove undef.
458 * s/gnu-linux.h (BSD_PGRPS): Remove.
459 * term.c (dissociate_if_controlling_tty):
460 * sysdep.c (narrow_foreground_group, widen_foreground_group)
461 (init_sys_modes, reset_sys_modes):
462 * emacs.c (main):
463 * callproc.c (Fcall_process, child_setup): Remove code depending
464 on BSD_PGRPS.
465
ef03a4e6
DN
466 Remove POSIX_SIGNALS.
467 * s/usg5-4.h (POSIX_SIGNALS):
468 * s/netbsd.h (POSIX_SIGNALS):
469 * s/msdos.h (POSIX_SIGNALS):
470 * s/ms-w32.h (POSIX_SIGNALS):
471 * s/hpux11.h (POSIX_SIGNALS):
472 * s/gnu.h (POSIX_SIGNALS):
473 * s/gnu-linux.h (POSIX_SIGNALS):
474 * s/freebsd.h (POSIX_SIGNALS):
475 * s/darwin.h (POSIX_SIGNALS):
476 * s/cygwin.h (POSIX_SIGNALS):
477 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
478 * s/unixware.h:
479 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
480 * process.c (create_process):
481 * syssignal.h:
482 * sysdep.c (wait_for_termination, init_signals):
483 * process.c (create_process):
484 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
485 remove all code that assumes the contrary.
486
49628785
GM
4872010-05-04 Glenn Morris <rgm@gnu.org>
488
27a2cdfc
GM
489 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
490 variable.
491 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
492 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
493 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
494 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
495 LD_SWITCH_SYSTEM_tmp.
496 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
497 New variables, set by configure.
498
eb21eab5
GM
499 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
500 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
501 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
502 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
503 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
504
49628785
GM
505 * s/aix4-2.h (C_SWITCH_SYSTEM):
506 * m/alpha.h (C_SWITCH_MACHINE):
507 Move to configure.in.
508 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
509 New variables, set by configure.
510 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
511 $c_switch_machine and $c_switch_system.
512
7dff330b
DN
5132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
514
515 * s/hpux10-20.h (LIB_STANDARD): New definition.
516 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
517 on it, not used anymore.
518
53967e09
CY
5192010-05-03 Chong Yidong <cyd@stupidchicken.com>
520
521 * eval.c (internal_condition_case_n): Rename from
522 internal_condition_case_2.
523 (internal_condition_case_2): New function.
524
525 * xdisp.c (safe_call): Use internal_condition_case_n.
526
527 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
528 (internal_delete_file, Frename_file): Callers changed.
529
530 * buffer.c (Fkill_buffer):
531 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
532
533 * lisp.h: Update prototypes.
534
3dee6fdb
GM
5352010-05-03 Glenn Morris <rgm@gnu.org>
536
537 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
538 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
539 (LIBXT): Set with configure, not cpp.
540 (LIBX): Remove.
541 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
542
a101e0fb
DN
5432010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
544
545 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
546 The FreeBSD is not needed, the default works, Solaris version is
547 not needed, and the remaining case is not supported by configure.
548
f63d0028
JD
5492010-05-02 Jan Djärv <jan.h.d@swipnet.se>
550
551 * xsmfns.c (CHDIR_OPT): New define.
552 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
553 restarting emacs.
554
555 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
556 shut_down_emacs.
557
558 * emacs.c (USAGE1): Mention --chdir.
559 (main): Handle --chdir.
560 (standard_args): Add --chdir.
561 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
562 #5552).
563
e4814a9f
DN
5642010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
565
cd03c74a
DN
566 Remove LD_SWITCH_MACHINE.
567 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
568 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
569
c3a398a1
DN
570 Clean up IRIX code.
571 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
572 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
573
87e7285c
DN
574 Clean up AIX code.
575 * m/ibmrs6000.inp: Remove file, unused.
576 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
577 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
578 definition ...
579 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
580
80f00217
JB
581 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
582 unused.
e4814a9f 583
59ca28de
EZ
5842010-05-01 Eli Zaretskii <eliz@gnu.org>
585
197daef4
EZ
586 Emulate POSIX_SIGNALS on MS-Windows.
587
588 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
589 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
590
591 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
592 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
593 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
594
80f00217
JB
595 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
596 New stubs.
197daef4 597
af7c7572
EZ
598 Miscellaneous fixes of bidi display.
599
59ca28de
EZ
600 * xdisp.c (find_row_end): New function, refactored from display_line.
601 (display_line): Use it.
017ea819
EZ
602 (extend_face_to_end_of_line): In almost-filled rows, extend only
603 if the row is R2L and not continued.
166e930d 604 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 605 Preserve overlay and string info in row->end.
166e930d
EZ
606 (insert_left_trunc_glyphs): Support addition of left truncation
607 glyphs to R2L rows.
b47e0dcf 608 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
609 glyph between adjacent windows. Fix a crash when a display string
610 is continued to the next line. Don't return zero if cursor was
611 found by `cursor' property of a display string.
b47e0dcf
EZ
612 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
613 test for that explicitly.
59ca28de 614
7acac9f4
GM
6152010-05-01 Glenn Morris <rgm@gnu.org>
616
617 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
618 for clarity.
619 (OTHER_OBJ): Remove.
620 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
621 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
622
45841e65
KK
6232010-05-01 Karel Klíč <kklic@redhat.com>
624
625 * fileio.c (Ffile_selinux_context): Context functions may return null.
626
afc61943
DN
6272010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
628
80f00217 629 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 630
5a1bb006
GM
6312010-04-30 Glenn Morris <rgm@gnu.org>
632
633 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
634 (OTHER_OBJ): Define as a separate variable, for clarity.
635
210af043
J
6362010-04-30 Jan Djärv <jan.h.d@swipnet.se>
637
638 * xsettings.c: include limits.h and update file comment.
639
0a7df391
GM
6402010-04-30 Glenn Morris <rgm@gnu.org>
641
d5096f16
GM
642 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
643 Set with configure, not cpp.
644 (LIBW): Remove, replace with $TOOLKIT_LIBW.
645
7eb1ac33
GM
646 * Makefile.in (mallocobj): Remove.
647 (otherobj): Simplify using @OTHER_OBJ@.
648
517d086b
GM
649 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
650 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
651 Don't bother making nsgui.h dependency platform-specific.
652
0a7df391
GM
653 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
654
d6d23852
SM
6552010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
656
d2630aef
SM
657 * process.c (read_process_output, exec_sentinel): Don't burp if the
658 sentinel/filter kills the current buffer (bug#6060).
659
f9dddf52 660 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
661 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
662 Remove unused var `args'.
663 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
664 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
665 * doc.c (store_function_docstring): Use XSETCAR.
666
f1e3642a
GM
6672010-04-28 Glenn Morris <rgm@gnu.org>
668
faf535f8
GM
669 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
670 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
671
c40f9449
GM
672 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
673
658f86ca
GM
674 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
675 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
676
bc0b5f61
GM
677 * Makefile.in (FONT_OBJ): New, set by configure.
678 (FONT_DRIVERS): Use $FONT_OBJ.
679
294c50a0
GM
680 * Makefile.in (LIBXMU): Set with configure, not cpp.
681 * s/aix4-2.h (LIBXMU):
682 * s/hpux10-20.h (LIBXMU):
683 Remove definition, now set in configure.
684
e6ec4e99
GM
685 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
686
f1e3642a
GM
687 * m/amdx86-64.h [i386]: Move this test to configure.in.
688
c6ea2936
GM
6892010-04-27 Glenn Morris <rgm@gnu.org>
690
8fdac2c3
GM
691 * Makefile.in (LIBXTR6): Set with configure, not cpp.
692 * s/unixware.h (NEED_LIBW): Remove definition.
693
986fb647
GM
694 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
695 (TOOLKIT_LIBW): New, set by configure.
696 (@X_TOOLKIT_TYPE@): No longer define it.
697
c6ea2936
GM
698 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
699 (MOTIF_LIBW): Set with configure, not cpp.
700 * s/aix4-2.h (LIB_MOTIF):
701 * s/gnu-linux.h (LIB_MOTIF):
702 * s/unixware.h (LIB_MOTIF): Move to configure.in.
703
aaa36002
DN
7042010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
705
706 Reduce CPP usage.
707 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
708 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
709 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
710 definitions and undefs. Inline definitions in the only user.
711 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 712
b678dd8b
GM
7132010-04-27 Glenn Morris <rgm@gnu.org>
714
76cda504
GM
715 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
716 since the defaults (set by the system file) are fine in most cases.
717 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
718 * m/ibms390x.h (START_FILES, LIB_STANDARD):
719 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
720 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
721 Remove definitions, since they are set correctly in s/gnu-linux.h.
722 * s/freebsd.h (START_FILES, LIB_STANDARD):
723 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
724 * s/hpux10-20.h (START_FILES):
725 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
726 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
727
b678dd8b
GM
728 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
729 (MOTIF_LIBW): Use $LIBXP.
730 (otherobj): Use $WIDGET_OBJ.
731
9452ded1
DN
7322010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
733
7e10844c
DN
734 * Makefile.in (LIBS_MACHINE): Remove, unused.
735
9452ded1
DN
736 Use autoconf instead of cpp for LIB_MATH.
737 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
738 * s/cygwin.h (LIB_MATH): Likewise.
739 * Makefile.in (LIB_MATH): Do not define with cpp.
740 (LIBES): Use autoconf for LIB_MATH.
741
fcebfc6a
KH
7422010-04-26 Kenichi Handa <handa@m17n.org>
743
744 * composite.c (Ffind_composition_internal): Fix the return value
745 for an automatic composition.
746
39e2ad1b
DN
7472010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
748
749 Remove all NO_ARG_ARRAY uses.
750 * fns.c (concat2, concat3, nconc2):
751 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
752 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
753 * m/xtensa.h (NO_ARG_ARRAY):
754 * m/template.h (NO_ARG_ARRAY):
755 * m/sparc.h (NO_ARG_ARRAY):
756 * m/sh3.h (NO_ARG_ARRAY):
757 * m/mips.h (NO_ARG_ARRAY):
758 * m/macppc.h (NO_ARG_ARRAY):
759 * m/iris4d.h (NO_ARG_ARRAY):
760 * m/intel386.h (NO_ARG_ARRAY):
761 * m/ibms390x.h (NO_ARG_ARRAY):
762 * m/ibms390.h (NO_ARG_ARRAY):
763 * m/ibmrs6000.h (NO_ARG_ARRAY):
764 * m/ia64.h (NO_ARG_ARRAY):
765 * m/hp800.h (NO_ARG_ARRAY):
766 * m/arm.h (NO_ARG_ARRAY):
767 * m/amdx86-64.h (NO_ARG_ARRAY):
768 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
769
adf4f59c
EZ
7702010-04-25 Eli Zaretskii <eliz@gnu.org>
771
6bdf5d65
EZ
772 * xdisp.c (display_line): Don't assume 2nd call to
773 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
774 (iterate_out_of_display_property): New function, body from pop_it.
775 (pop_it): Use it.
adf4f59c 776
dfbbda83
GM
7772010-04-24 Glenn Morris <rgm@gnu.org>
778
779 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
780 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
781 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
782 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
783
2d4018aa
EZ
7842010-04-24 Eli Zaretskii <eliz@gnu.org>
785
a49884a6
EZ
786 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
787 use `get_next_display_element' and `set_iterator_to_next' to
788 advance to the next character, when looking for the character that
789 begins the next row.
790
76db6fcc 791 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
792 definition of "struct Lisp_Symbol".
793
70eab5c1
GM
7942010-04-24 Glenn Morris <rgm@gnu.org>
795
796 * Makefile.in (CRT_DIR): New variable, set by configure.
797 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
798 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
799
1ad4cc3d
DN
8002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
801
e769f484
DN
802 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
803
4196ff33
DN
804 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
805
879b0ee4
DN
806 Remove redundant flags.
807 * s/freebsd.h (C_SWITCH_SYSTEM):
808 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
809 * s/netbsd.h (C_SWITCH_SYSTEM):
810 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
811 of these.
812
03cbbcb8
DN
813 Simplify m/intel386.h.
814 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
815 user: ecrt0.c.
816 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
817 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
818 the only user: s/unixware.h.
819 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
820 from m/intel386.h.
821 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
822 moved here from m/intel386.h.
823
1ad4cc3d
DN
824 * m/mips.h: Remove #if 0 code.
825
8785b888
EZ
8262010-04-23 Eli Zaretskii <eliz@gnu.org>
827
728588cc
EZ
828 Fix display of composed characters from L2R scripts in bidi buffers.
829 * xdisp.c (set_iterator_to_next, next_element_from_composition):
830 After advancing IT past the composition, resync the bidi iterator
831 with IT's position. (Bug#5977)
832
a63f80b4
DN
8332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
834
835 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
836 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
837
ff5dec5c
SM
8382010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
839
840 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
841
8785b888
EZ
8422010-04-23 Eli Zaretskii <eliz@gnu.org>
843
58ccf243 844 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
845 * xdisp.c (pop_it): When the stack is popped after displaying
846 from a string, bidi-iterate to exit from the text portion covered
847 by the `display' property or overlay. (Bug#5988, bug#5920)
848
feeb1604
DN
8492010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
850
8e324eb6
DN
851 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
852 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
853
809fcaba
DN
854 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
855 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
856
ed710380
DN
857 Simplify STARTFILES definition.
858 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
859 relying on Makefile.in to define it.
860 * s/cygwin.h (START_FILES): Likewise.
861 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
862
feeb1604
DN
863 Clean up Solaris code.
864 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
865 (LIB_MOTIF): Remove, configure takes care of this.
866 (NOT_USING_MOTIF): Remove, unused.
867 * xrdb.c: Remove #if 0-ed #include.
868 (SYSV): Remove conditional for old SysV.
869 * sysdep.c (closedir): Remove conditional code for Solaris,
870 Solaris has closedir.
871
a0d0b563
JD
8722010-04-22 Jan Djärv <jan.h.d@swipnet.se>
873
874 * xsettings.c (read_and_apply_settings): Check if current_font is
875 NULL before strcmp (Bug#6001).
876
56bae7c7
DN
8772010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
878
879 Clean up HP-UX files.
880 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
881 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
882 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
883 * s/hpux10-20.h: ... to the only user, here.
884
372b7a95
EZ
8852010-04-21 Eli Zaretskii <eliz@gnu.org>
886
887 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
888 use buffer-local values of paragraph-start and paragraph-separate.
889 <paragraph_start_re, paragraph_separate_re>: Rename from
890 fallback_paragraph_start_re and fallback_paragraph_separate_re.
891 (Bug#5992)
892
f904c0f9
JD
8932010-04-21 Jan Djärv <jan.h.d@swipnet.se>
894
895 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
896 current_tool_bar_style are new.
897 (store_config_changed_event): Rename from store_font_changed_event.
898 (XSETTINGS_TOOL_BAR_STYLE): New define.
899 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
900 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
901 HAVE_XFT.
902 (something_changedCB): store_font_changed_event is now
903 store_config_changed_event
904 (parse_settings): Rename from parse_xft_settings. Read
905 non-xft xsettings outside #ifdef HAVE_XFT.
906 (read_settings): Renamed from read_xft_settings.
907 (apply_xft_settings): Take current settings as parameter. Do not
908 call read_(xft)_settings.
909 (read_and_apply_settings): New function.
910 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
911 read_and_apply_settings if there are settings to be read.
912 (init_xsettings): Renamed from init_xfd_settings.
913 Call read_and_apply_settings unconditionally.
914 (xsettings_initialize): Call init_xsettings.
915 (Ftool_bar_get_system_style): New function.
916 (syms_of_xsettings): Define Qmonospace_font_name and
917 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 918 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 919 dynamic-setting.
31a01b90 920 Move misplaced HAVE_GCONF
f904c0f9
JD
921
922 * xsettings.h (Ftool_bar_get_system_style): Declare.
923
924 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
925 Qtext, Qboth, Qboth_horiz are new.
926 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
927 Vtool_bar_style, tool_bar_max_label_size.
928
929 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
930
931 * keyboard.c: QClabel is new.
932 (parse_tool_bar_item): Take out QClabel from tool bar items.
933 Try to construct a label if ther is no QClabel.
934 (syms_of_keyboard): Intern :label as QClabel.
935
936 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
937 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
938 New.
939
940 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
941 dynamic-setting.el.
942
943 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
944 (xg_make_tool_item, xg_show_toolbar_item): New function.
945 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
946 Call xg_make_tool_item to make a tool bar item.
947 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
948
949 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
950 into account for toolbars.
951
c632dfda
JD
9522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
953
954 * data.c (make_blv): Declarations before code (Bug#5993).
955
10efe302
GM
9562010-04-21 Glenn Morris <rgm@gnu.org>
957
958 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
959 Define using autoconf, not cpp.
960 (LIBXSM): New variable, set by autoconf.
961 (LIBXT): Use $LIBXSM.
962
4285ac5a
DN
9632010-04-21 Dan Nicolaescu <local_user@dannlt>
964
3ec759e7
DN
965 Remove NOMULTIPLEJOBS, unused.
966 * s/template.h (NOMULTIPLEJOBS):
967 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
968
4285ac5a
DN
969 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
970 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
971 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
972 detects -znocombreloc and passes it to the linker
973 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
974
2807228d
GM
9752010-04-21 Glenn Morris <rgm@gnu.org>
976
977 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
978
574c05e2
KK
9792010-04-21 Karel Klíč <kklic@redhat.com>
980
981 * Makefile.in (LIBSELINUX_LIBS): New.
982 (LIBES): Add $LIBSELINUX_LIBS.
983 * eval.c, lisp.h (call7): New function.
984 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
985 (Ffile_selinux_context, Fset_file_selinux_context):
986 New functions.
987 (Fcopy_file): New parameter preserve-selinux-context.
988 (Frename_file): Preserve selinux context when renaming by copy-file.
989
91eac4bb 9902010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 991 Eli Zaretskii <eliz@gnu.org>
91eac4bb 992
50426a04
JB
993 Don't depend on cm.c or termcap.c on Windows, use stubs.
994 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
995 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
996 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
997 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
998 (sys_tputs, sys_tgetstr): New stubs.
999 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1000 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1001
938efb77
JB
10022010-04-20 Juanma Barranquero <lekktu@gmail.com>
1003
1004 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1005
b4bf28b7
SM
10062010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1007
8b1e1112
SM
1008 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1009 Just signal a warning rather than an error when inside a let.
1010 (Fmake_variable_frame_local): Add the same test.
1011
933ac235
SM
1012 * font.c (syms_of_font): Make the style table vars read-only.
1013
b4bf28b7
SM
1014 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1015 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1016
1017 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1018
93d68d0c
EZ
10192010-04-20 Eli Zaretskii <eliz@gnu.org>
1020
1021 Fix R2L paragraph display on TTY.
1022
1023 * xdisp.c (unproduce_glyphs): New function.
1024 (display_line): Use it when produced glyphs are discarded from R2L
1025 glyph rows.
1026 (append_composite_glyph): In R2L rows, prepend the glyph rather
1027 than appending it.
1028
1029 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1030 rather than append it. Set up the resolved_level and bidi_type
1031 attributes of the appended glyph.
283ccc18
EZ
1032 (produce_special_glyphs): Mirror the backslash continuation
1033 character in R2L lines.
93d68d0c 1034
283ccc18 1035 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1036
283ccc18
EZ
1037 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1038 append_stretch_glyph.
1039 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1040 off-by-one error in computing x at end of text in the row.
1041 (append_stretch_glyph): In reversed row, prepend the glyph rather
1042 than append it. Set resolved_level and bidi_type of the glyph.
1043 (extend_face_to_end_of_line): If the row is reversed, prepend a
1044 stretch glyph whose width is such that the rightmost glyph will be
1045 drawn at the right margin of the window. Fix off-by-one error on
1046 TTY frames in testing whether a line needs face extension. Fix
1047 face extension at ZV. If this is the last glyph row, use
1048 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1049 region face.
1050 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1051 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1052 row->continuation_lines_width.
283ccc18
EZ
1053 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1054 are at ZV. Fixes a crash when reseated to ZV by
1055 try_window_reusing_current_matrix.
45903529
EZ
1056 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1057 which happens with R2L glyph rows. Fixes a crash when inserting a
1058 character at end of an R2L line.
283ccc18
EZ
1059 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1060 treat them as having zero-width characters. Improve comments.
1061 Don't reverse pos_before and pos_after for reversed glyph rows.
1062 Set cursor.x to negative value when the cursor might be on the
1063 left fringe.
1064 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1065 left fringe, not the right one.
f951a506
EZ
1066 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1067 (erase_phys_cursor): For reversed cursor_row, support cursor on
1068 the left fringe.
1069
283ccc18
EZ
1070 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1071 of continuation indicators on the fringes.
1072 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1073 left fringe.
1074
f951a506
EZ
1075 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1076 draw cursor on the left fringe.
1077
1078 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1079 cursor on the left fringe.
1080
f951a506
EZ
1081 * dispnew.c (update_text_area): Handle reversed desired rows when
1082 the cursor is on the left fringe.
1083 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1084 below, not by 0, for when the cursor is on the left fringe.
1085
3bb49aaf
JD
10862010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1087
1088 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1089 widget is a scrollbar.
1090
c0be27fd
KH
10912010-04-20 Kenichi Handa <handa@m17n.org>
1092
1093 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1094 only when the arg CHARSET_LIST is nil.
1095
ce5b453a
SM
10962010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1097
1098 Make variable forwarding explicit rather the using special values.
1099 Basically, this makes the structure of buffer-local values and object
1100 forwarding explicit in the type of Lisp_Symbols rather than use
1101 special Lisp_Objects for that. This tends to lead to slightly more
1102 verbose code, but is more C-like, simpler, and makes it easier to make
1103 sure we handled all cases, among other things by letting the compiler
1104 help us check it.
1105 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1106 Removing forwarding objects.
1107 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1108 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1109 explicit rather than hiding them inside Lisp_Object "values".
1110 (XFWDTYPE): New macro.
1111 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1112 (XBUFFER_LOCAL_VALUE): Remove.
1113 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1114 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1115 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1116 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1117 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1118 Remove the Lisp_Misc_* header.
1119 (struct Lisp_Buffer_Local_Value): Redefine.
1120 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1121 (struct Lisp_Misc_Any): Add filler to get the right size.
1122 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1123 Lisp_Intfwd.
1124 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1125 (DEFVAR_KBOARD): Allocate a forwarding object.
1126 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1127 (let_shadows_global_binding_p): New function.
1128 (union Lisp_Val_Fwd): New type.
1129 (make_blv): New function.
1130 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1131 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1132 (swap_in_symval_forwarding, find_symbol_value, Fset)
1133 (let_shadows_buffer_binding_p, set_internal, default_value)
1134 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1135 (Fkill_local_variable, Fmake_variable_frame_local)
1136 (Flocal_variable_p, Flocal_variable_if_set_p)
1137 (Fvariable_binding_locus):
1138 * xdisp.c (select_frame_for_redisplay):
1139 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1140 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1141 * frame.c (store_frame_param):
1142 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1143 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1144 value structure.
1145 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1146 (clone_per_buffer_values): Only adjust markers into the current buffer.
1147 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1148 (Fbuffer_local_value, set_buffer_internal_1)
1149 (swap_out_buffer_local_variables):
1150 Adapt to the new symbol value structure.
1151 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1152 (defvar_per_buffer): Take a new arg for the fwd object.
1153 (buffer_lisp_local_variables): Return a proper alist (different fix
1154 for bug#4138).
1155 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1156 (Fgarbage_collect): Don't handle buffer_defaults specially.
1157 (mark_object): Handle new symbol value structure rather than the old
1158 special Lisp_Misc_* objects.
1159 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1160 * term.c (set_tty_color_mode):
1161 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1162 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1163 a buffer_local_flags.
1164 * print.c (print_object): Get rid of impossible forwarding objects.
1165
fd3998ff
EZ
11662010-04-19 Eli Zaretskii <eliz@gnu.org>
1167
1168 * bidi.c (bidi_get_type, bidi_get_category)
1169 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1170 (bidi_type_of_next_char, bidi_level_of_next_char):
1171 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1172
e42cd1a7
JB
11732010-04-19 Juanma Barranquero <lekktu@gmail.com>
1174
1175 * dired.c (Ffile_attributes): Fix typo in docstring.
1176
6e104790 11772010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1178
1179 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1180 NSInteger (Bug#5811).
1181
6e104790 11822010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1183
1184 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1185 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1186
6e104790 11872010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1188
1189 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1190
6e104790
SM
11912010-04-19 Chong Yidong <cyd@stupidchicken.com>
1192
1193 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1194 terminal frames (Bug#5837).
1195
37dcfea0
EZ
11962010-04-19 Eli Zaretskii <eliz@gnu.org>
1197
d1da276f
EZ
1198 * .gdbinit (xsubchartable): New command.
1199
37dcfea0
EZ
12002010-04-19 Eli Zaretskii <eliz@gnu.org>
1201
1202 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1203 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1204 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1205 and
1206 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1207
e9515805
SM
12082010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1209
1210 * alloc.c (Fpurecopy): Hash-cons if requested.
1211 (syms_of_alloc): Update purify-flag docstring.
1212
22aa44a8
JD
12132010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1214
1215 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1216 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1217
ebb5722e
EZ
12182010-04-17 Eli Zaretskii <eliz@gnu.org>
1219
1220 Fix a crash when an NSM character is inserted at BEGV.
1221
1222 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1223 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1224 NEUTRAL_B or UNKNOWN_BT.
1225
0f4442ef
EZ
12262010-04-16 Eli Zaretskii <eliz@gnu.org>
1227
1228 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1229 other rows with cursor unless they are different from this row and
1230 this row is part of a continued line. (Bug#5943)
1231
7d4e45f8
DN
12322010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1233
1234 * s/freebsd.h: Restore osreldate.h include.
1235 Suggested by Naohiro Aota.
1236
5ba5ec85
J
12372010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1238
1239 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1240
20af301d
CY
12412010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1242
1243 * s/cygwin.h: Avoid linking against static libgcc.
1244
a4b000fb
JL
12452010-04-15 Juri Linkov <juri@jurta.org>
1246
1247 * window.c: Add Qscroll_command.
1248 Remove Vscroll_preserve_screen_position_commands.
1249 (window_scroll_pixel_based, window_scroll_line_based): Check the
1250 `scroll-command' property on the last command instead of searching
1251 the last command in Vscroll_preserve_screen_position_commands.
1252 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1253 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1254 (scroll-preserve-screen-position): Doc fix.
1255 (Vscroll_preserve_screen_position_commands): Remove variable.
1256
bc319ba4
DN
12572010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1258
6bb24457
DN
1259 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1260
19d4c244
DN
12612010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1262
1263 Reduce cpp use in Makefile.in.
1264 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1265 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1266 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1267 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1268 (CRT0_COMPILE): Remove, inline it in the only user.
1269
32129746
JL
12702010-04-14 Juri Linkov <juri@jurta.org>
1271
1272 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1273 `scroll-up-command' and `M-v' from `scroll-down' to
1274 `scroll-down-command'.
1275
9013a7f8
JL
12762010-04-14 Juri Linkov <juri@jurta.org>
1277
1278 * window.c (Vscroll_preserve_screen_position_commands): New variable
1279 with the default value as the list of Qscroll_down and Qscroll_up.
1280 (window_scroll_pixel_based, window_scroll_line_based): Search the
1281 last command in the list Vscroll_preserve_screen_position_commands
1282 instead of comparing with Qscroll_up and Qscroll_down.
1283
4bef8d26
JD
12842010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1285
92848133
JD
1286 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1287 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1288 does that.
1289
4bef8d26
JD
1290 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1291 to zero.
1292
58b963f7
SM
12932010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1294
84164a0d
SM
1295 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1296
2b0a91e7
SM
1297 Try to solve the problem of spurious EOF chars in long lines of text
1298 sent to interactive subprocesses.
1299 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1300 (system_process_attributes): Remove unused var `ttotal'.
1301 * process.c (send_process): Don't bother breaking long line with EOF
1302 chars when talking to ttys any more.
1303 (wait_reading_process_output): Output a warning when called in such
1304 a way that it could block without being interruptible.
1305
58b963f7
SM
1306 Try to detect file modification within the same second.
1307 * buffer.h (struct buffer): New field modtime_size.
1308 * buffer.c (reset_buffer): Initialize it.
1309 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1310 (Fverify_visited_file_modtime): Check it.
1311 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1312 (Fset_visited_file_modtime): Set (or clear) it.
1313
01f5787b
SM
13142010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1315
1316 * process.c (status_notify): Remove unused var `ro'.
1317
83725342
JD
13182010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1319
1320 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1321 more than one visual (Bug#5938).
1322
b9465836
DN
13232010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1324
50426a04
JB
1325 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1326 Undefine.
b9465836 1327
8d9c8ece
DN
13282010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1329
b1f52161
DN
1330 Remove C_SWITCH_SYSTEM_TEMACS.
1331 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1332 (malloc, realloc, free): Use emacs, not temacs for conditional
1333 definition.
1334
1335 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1336 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1337
8d9c8ece
DN
1338 Use autoconf, not cpp for some variables.
1339 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1340 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1341 (ALL_CFLAGS): Use them as make variables.
1342 (really-lwlib, really-oldXMenu): Do not pass them.
1343
1ecb2d3f
JD
13442010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1345
1346 * xmenu.c (apply_systemfont_to_dialog): New.
1347 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1348
3a4fa2f2
SM
13492010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1350
97e53006
SM
1351 * process.c (exec_sentinel): Preserve current-buffer.
1352
3a4fa2f2
SM
1353 * process.c (read_process_output): Move the save-current-buffer to
1354 apply to both the filter and the non-filter branches.
1355
88df7221
DN
13562010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1357
1358 * s/msdos.h (UNEXEC): New definition.
1359
5634ff85
YM
13602010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1361
6eff5c3d
YM
1362 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1363 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1364
1365 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1366 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1367 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1368 TRY_WINDOW_CHECK_MARGINS.
1369
1370 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1371 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1372 width only when it is for padding.
5634ff85 1373
b13aef54
J
13742010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * xfns.c (Fx_show_tip): Call try_window in a loop until
1377 fonts_changed_p is zero (Bug#2423).
1378
21d28484
EZ
13792010-04-08 Eli Zaretskii <eliz@gnu.org>
1380
1381 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1382 the end of TEXT_AREA. (Bug#5856)
1383
0269ef77
JD
13842010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1385
1386 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1387 HAVE_GCONF.
1388
5930fe97
EZ
13892010-04-08 Eli Zaretskii <eliz@gnu.org>
1390
1391 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1392 prev.orig_type, for resolving type of NSM. (Bug#5858)
1393
99852628
JD
13942010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1395
1396 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1397 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1398 in current_font.
1399 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1400 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1401 New functions.
1402 (syms_of_xsettings): Initialize current_font.
1403 defsubr Sfont_get_system_normal_font.
99852628
JD
1404
1405 * xsettings.h (Ffont_get_system_normal_font,
1406 xsettings_get_system_normal_font): Declare.
1407
1408 * xfns.c (extern xlwmenu_default_font): Remove.
1409 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1410 to xlwmenu.c.
1411
1412 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1413 menu items in UTF-8.
1414
1415 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1416 (apply_systemfont_to_menu): New function.
1417 (set_frame_menubar, create_and_show_popup_menu): Call
1418 apply_systemfont_to_menu.
1419
7fc874c4
J
14202010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1421
1422 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1423 FRAME_LINE_TO_PIXEL_Y.
1424
1425 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1426 pixelwidth/height.
1427
863bf481
DN
14282010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1429
5e5a3b92
DN
1430 Simplify code for HP machines.
1431 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1432 for GNU_LINUX, not needed.
1433 (UNEXEC, NEED_BSDTTY): Move definitions...
1434 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1435
863bf481
DN
1436 * m/iris4d.h (UNEXEC): Move definition ...
1437 * s/irix6-5.h (UNEXEC): ... here.
1438
3e6bec3b
JD
14392010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1440
1441 * xfns.c (set_machine_and_pid_properties): New function.
1442 (Fx_create_frame): Call set_machine_and_pid_properties.
1443
2912322b
SM
14442010-04-03 Eli Zaretskii <eliz@gnu.org>
1445
1502b819
EZ
1446 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1447 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1448 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1449
2912322b
SM
1450 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1451 in this function. (Bug#5703)
1452
14532010-04-03 Chong Yidong <cyd@stupidchicken.com>
1454
1455 * nsterm.h: Fix last change.
1456
c435b432
DN
14572010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1458
a568f507
DN
1459 * m/intel386.h (NO_REMAP): Move definition ...
1460 * s/msdos.h (NO_REMAP): ... here.
1461
4cd9f6c2
DN
1462 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1463
c435b432
DN
1464 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1465 used on those platforms.
1466
42a2c622
DN
14672010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1468
1469 Remove extern errno declarations.
1470 * xterm.c:
1471 * xrdb.c:
1472 * w32term.c:
1473 * unexec.c:
1474 * unexaix.c:
1475 * sysdep.c:
1476 * process.c:
1477 * lread.c:
1478 * keyboard.c:
1479 * floatfns.c:
1480 * filelock.c:
1481 * fileio.c:
1482 * emacs.c (main):
1483 * ecrt0.c:
1484 * dispnew.c:
1485 * callproc.c:
1486 * buffer.c: Remove errno extern declarations.
1487 * s/netbsd.h (NEED_ERRNO): Remove.
1488
8224f93d
DN
14892010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1490
1491 Remove all uses of LIBX11_SYSTEM.
1492 * Makefile.in (LIBX11_SYSTEM): Remove.
1493 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1494 instead.
1495
814062c7
EZ
14962010-04-01 Eli Zaretskii <eliz@gnu.org>
1497
ed68db4d
EZ
1498 Remove support for DJGPP v1.x (bug#5813).
1499
1500 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1501 * s/msdos.h:
1502 * unexec.c (make_hdr, copy_text_and_data):
1503 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1504 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1505 (IT_set_terminal_modes, __write, _rename, gethostname)
1506 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1507 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1508 the value of __DJGPP__.
ed68db4d
EZ
1509 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1510 compatibility code.
8224f93d
DN
1511 * lread.c:
1512 * gmalloc.c (memalign):
1513 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1514 * emacs.c (main):
1515 * dosfns.c (init_dosfns):
ed68db4d
EZ
1516 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1517
52f4d8d5
EZ
15182010-04-01 Eli Zaretskii <eliz@gnu.org>
1519
814062c7
EZ
1520 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1521 string with `cursor' property comes from an `after-string'
1522 overlay. (Bug#5816)
1523
0dc2e11d
GM
15242010-04-01 Glenn Morris <rgm@gnu.org>
1525
1526 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1527 Define as Makefile variables.
1528 (LIBX): Use above variables rather than directly using autoconf.
1529
1d29df59
DN
15302010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1531
1532 Clean up BSD_SYSTEM use.
1533 * xterm.c:
1534 * process.c:
1535 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1536 for including <sys/ioctl.h>.
1537 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1538 code is only used for MSDOS.
1539
1546c559
JL
15402010-03-31 Juri Linkov <juri@jurta.org>
1541
1542 * image.c: Add `Qextension_data'.
1543 (syms_of_image): Initialize and staticpro `Qextension_data'.
1544 (Fimage_metadata): Rename from `Fimage_extension_data'.
1545 (gif_load): Put GIF extension data to the property
1546 `Qextension_data'.
1547
b8a1d5a1
CY
15482010-04-05 Chong Yidong <cyd@stupidchicken.com>
1549
1550 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1551 terminal frames (Bug#5837).
1552
6521c534
CY
15532010-03-31 Chong Yidong <cyd@stupidchicken.com>
1554
1555 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1556 * nsterm.h: Fix prototype.
1557
52c30783
EZ
15582010-03-31 Eli Zaretskii <eliz@gnu.org>
1559
1560 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1561 trailing whitespace in right-to-left rows.
1562
855a0da7
SM
15632010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1564
1565 Get rid of the direct_output optimizations.
1566 * keyboard.c (nonundocount): Remove extern declaration.
1567 (command_loop_1): Remove brittle optimisation for cheap and
1568 common operations.
1569 * xdisp.c (redisplay_internal): Don't bother checking
1570 redisplay_performed_directly_p any more.
1571 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1572 any more.
1573 * dispnew.c (redisplay_performed_directly_p)
1574 (direct_output_for_insert, direct_output_forward_char):
1575 * dispextern.h (redisplay_performed_directly_p)
1576 (direct_output_for_insert, direct_output_forward_char): Remove.
1577 * cmds.c (nonundocount): Make it static.
1578
85738751 15792010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1580
1581 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1582
85738751 15832010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1584
1585 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1586 invisible (Bug#5766).
1587
85738751 15882010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1589
855a0da7
SM
1590 * xdisp.c (x_consider_frame_title, update_window_cursor):
1591 Remove HAVE_NS conditionals.
194d44e7 1592 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1593
1594 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1595 filename for the title.
1596 (ns_set_doc_edited): Do nothing if the selected window is a
1597 minibuffer window.
1598
1599 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1600 ns_set_doc_edited.
1601
1602 * nsterm.m: Remove unneeded prototype.
1603
85738751 16042010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1605
1606 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1607 in the DOC file. (Bug#5336)
1608
85738751 16092010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1610
1611 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1612
75d1428c
SM
16132010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1614
1615 * window.c (keys_of_window): Remove redundant/overridden bindings.
1616
82043cfb
EZ
16172010-03-30 Eli Zaretskii <eliz@gnu.org>
1618
1619 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1620 Restore original behavior when the iterator is not bidi_p.
1621
b5dd0ae7
DN
16222010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1623
1624 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1625
bd924a5d
EZ
16262010-03-30 Eli Zaretskii <eliz@gnu.org>
1627
1628 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1629 are outside the range of cached character positions.
1630
3580374b
JB
16312010-03-30 Juanma Barranquero <lekktu@gmail.com>
1632
1633 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1634
a7b02820
EZ
16352010-03-30 Eli Zaretskii <eliz@gnu.org>
1636
1637 Initial support for bidirectional editing.
1638
1639 * Makefile.in (obj): Include bidi.o.
1640 (bidi.o): New target.
1641
1642 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1643 ($(BLD)/bidi.$(O)): New target.
1644
1645 * bidi.c: New file.
1646
1647 * buffer.h (struct buffer): New members bidi_display_reordering
1648 and bidi_paragraph_direction.
1649
1650 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1651 and bidi_paragraph_direction.
1652 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1653 and bidi-paragraph-direction.
1654 (Fbuffer_swap_text): Swap the values of
1655 bidi_display_reordering and bidi_paragraph_direction.
1656
1657 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1658 (bidi_type_t, bidi_dir_t): New types.
1659 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1660 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1661 prev_stop, base_level_stop, and eol_pos.
1662 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1663 (IT_STACK_SIZE): Enlarge to 5.
1664 (struct glyph_row): New member reversed_p.
1665 <string_buffer_position>: Update prototype.
1666 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1667 glyph_row if bidi_it.paragraph_dir == R2L.
1668 (struct glyph): New members resolved_level and bidi_type.
1669
1670 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1671 processing or buffer's direction is right-to-left.
1672 (prepare_desired_row): Preserve the reversed_p flag.
1673 (row_equal_p): Compare the reversed_p attributes as well.
1674
1675 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1676 bidi_init_it and set it->paragraph_embedding from the current
1677 buffer's value of bidi_paragraph_direction.
1678 (reseat_1): Initialize bidi_it.first_elt.
1679 (set_iterator_to_next, next_element_from_buffer): Use the value of
1680 paragraph_embedding to determine the paragraph direction.
1681 (set_iterator_to_next): Under bidi reordering, call
1682 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1683 new_paragraph flag is set in the bidi iterator.
1684 (next_element_from_buffer): If bidi_it.first_elt is set,
1685 initialize paragraph direction and find the first character to
1686 display in the visual order. If reseated to a middle of a line,
1687 prime the bidi iterator starting at the line's beginning. Handle
1688 the situation where we overstepped stop_charpos due to
1689 non-linearity of the bidi iteration. Likewise for when we back up
1690 beyond the previous stop_charpos. When moving across stop_charpos,
1691 record it in prev_stop.
1692 (display_line): Set row->end and it->start for the next row to the
1693 next character in logical order. Always extend reversed_p rows to
1694 the end of line, even if they end at ZV. Copy the reversed_p flag
1695 to the next glyph row. Keep calling set_cursor_from_row for
1696 bidi-reordered rows even if we already have a possible candidate
1697 for cursor position. Set row_end after all the row's glyphs have
1698 been produced, by looping over the glyphs. Record the position
1699 after EOL in it->eol_pos, and use it to set end_pos of the last
1700 row produced for a continued line.
1701 <Qright_to_left, Qleft_to_right>: New variables.
1702 (syms_of_xdisp): Initialize and staticpro them.
1703 (string_buffer_position_lim): New function.
1704 (string_buffer_position): Most of code moved to
1705 string_buffer_position_lim. Last argument and return value are
1706 now EMACS_INT; all callers changed.
1707 (set_cursor_from_row): Rewritten to support bidirectional text and
1708 reversed glyph rows.
1709 (text_outside_line_unchanged_p, try_window_id): Disable
1710 optimizations if we are reordering bidirectional text and the
1711 paragraph direction can be affected by the change.
1712 (append_glyph, append_composite_glyph)
1713 (produce_image_glyph, append_stretch_glyph): Set the
1714 resolved_level and bidi_type members of each glyph.
1715 (append_glyph): If the glyph row is reversed, prepend the glyph
1716 rather than appending it.
1717 (handle_stop_backwards): New function.
1718 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1719 (reseat): call handle_stop_backwards to recompute prev_stop and
1720 base_level_stop for the new position.
1721 (handle_invisible_prop): Under bidi iteration, skip invisible text
1722 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1723 paragraph direction. Update IT->prev_stop after skipping
1724 invisible text.
1725 (move_it_in_display_line_to): New variables prev_method
1726 and prev_pos. Compare for strict equality in
1727 BUFFER_POS_REACHED_P.
1728 (try_cursor_movement): Examine all the candidate rows that occlude
1729 point, to return the best match. If rows are bidi-reordered
1730 and point moved backwards, back up to the row that is not a
1731 continuation line, and start looking for a suitable row from
1732 there.
1733
1734 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1735 rather than appending, if the glyph_row's reversed_p flag is set.
1736 Set the resolved_level and bidi_type members of each glyph.
1737
1738 * .gdbinit (pbiditype): New command.
1739 (pgx): Use it to display bidi level and type of the glyph.
1740 (pitx): Display some bidi information about the iterator.
1741 (prowlims, pmtxrows): New commands.
1742
32a8894e
DN
17432010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1744
1745 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1746 * s/usg5-4.h (LIBS_DEBUG):
1747 * s/irix6-5.h (C_DEBUG_SWITCH):
1748 * s/gnu-linux.h (LIBS_DEBUG):
1749 * s/darwin.h (LIBS_DEBUG):
1750 * s/bsd-common.h (LIBS_DEBUG):
1751 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1752 * m/iris4d.h (LIBS_DEBUG):
1753 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1754
1755 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1756 (LIBS_DEBUG): Remove definition.
1757
649dbf36
CY
17582010-03-27 Chong Yidong <cyd@stupidchicken.com>
1759
1760 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1761 Windows.
1762
cad4261f
YM
17632010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1764
1765 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1766 `connect' (Bug#5723).
1767
cd591dbc
HE
17682010-03-25 Helmut Eller <eller.helmut@gmail.com>
1769
1770 * process.c (Fmake_network_process): Call `select' for interrupted
1771 `connect' rather than creating new socket (Bug#5173).
1772
e867cb5d 17732010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1774
1775 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1776
1777 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1778
1779 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1780
e867cb5d 17812010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1782
1783 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1784 XLoadQueryFont.
1785
e867cb5d 17862010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1787
1788 * coding.c (decode_coding_ccl): Fix previous change for the
1789 multibyte case.
fb608df3
KH
1790 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1791 case that the output buffer is fullfilled.
1792 (encode_coding): Setup ccl program here.
fbdc1721 1793
e867cb5d 17942010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1795
1796 * editfns.c (Fformat): Account for string precision when computing
1797 field width (Bug#5710).
1798
5845f0ed
DN
17992010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1800
814fb708
DN
1801 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1802
5845f0ed
DN
1803 Simplify LIBS_MACHINE definitions.
1804 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1805 * m/iris4d.h (LIBS_MACHINE): Likewise.
1806 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1807 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1808 * s/netbsd.h: Remove commented out code.
5845f0ed 1809
b7064064
DN
18102010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1811
df7734b2
DN
1812 Remove dead code dealing with POSIX_SIGNALS.
1813 * atimer.c (set_alarm): Remove dead code, all USG systems define
1814 POSIX_SIGNALS.
1815 * data.c (arith_error): Likewise.
1816 * keyboard.c (input_available_signal, handle_user_signal)
1817 (interrupt_signal): Likewise.
1818 * process.c (sigchld_handler): Likewise.
1819 (create_process): Remove if 0 code. Remove HPUX conditional when
1820 !defined (POSIX_SIGNALS), it cannot be true.
1821 * syssignal.h: Remove USG5_4 and USG conditionals when
1822 !POSIX_SIGNALS, they cannot be true.
1823
b7064064
DN
1824 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1825 NO_SOCK_SIGIO, not used anymore.
1826
55da5ee3
DN
18272010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1828
0be96e3a
DN
1829 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1830 support vax on BSDs.
1831
55da5ee3
DN
1832 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1833 * s/aix4-2.h (ORDINARY_LINK): ... here.
1834
c0282183
AS
18352010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1836
82c3d67a
AS
1837 * Makefile.in (abs_builddir): Define.
1838 (bootstrap_exe): Use it.
1839 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1840
3613edce
SM
18412010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1842
1843 * Makefile.in (bootstrap_exe): Use an absolute name.
1844
7f110ddc
DN
18452010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1846
22e87574
DN
1847 Remove support for old GNU/Linux using libc version 5.
1848 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1849 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1850
05a670e6
DN
1851 Consolidate redundant definitions in s/bsd-common.h.
1852 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1853 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1854 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1855 doing it in all files that include this one.
1856 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1857 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1858 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1859 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1860 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1861 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1862 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1863 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1864 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1865
2968f561
DN
1866 Consolidate redundant definitions.
1867 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1868 it's undefined in all files that include this one.
1869 (POSIX_SIGNALS): Define here instead of doing it in all files that
1870 include this one.
1871 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1872 (POSIX_SIGNALS): Do not define.
1873 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1874 (POSIX_SIGNALS): Do not define.
1875 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1876 (POSIX_SIGNALS): Do not define.
1877
15d25dc0
DN
1878 Remove support for old UNIX System V systems.
1879 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1880 * s/usg-5-4-2.h: Remove.
1881
07e339e4
DN
1882 Remove support for Solaris on PPC and for old versions.
1883 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1884 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1885 that cancel each other.
1886 * s/sol2-3.h:
1887 * s/sol2-4.h:
1888 * s/sol2-5.h: Remove.
1889 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1890 (NO_REMAP): Remove, unused.
1891 (UNEXEC): Move definition ...
1892 * s/aix4-2.h (UNEXEC): ... here.
1893
7f110ddc
DN
1894 * s/openbsd.h: Remove support for non-ELF and for systems that do
1895 not support shared libraries.
1896 * s/netbsd.h:
1897 * s/freebsd.h: Likewise.
1898
605f35cd
DN
18992010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1900
1901 Remove non-working support for lynxos 3.0.
1902 * s/lynxos.h: Remove file.
1903
1904 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1905 COFF_BSD_SYMBOLS, nothing defines it anymore.
1906
aed71cf4
DN
19072010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1908
1909 Remove obsolete uses of HAVE_SHM.
1910 * emacs.c (standard_args):
1911 (Fdump_emacs):
1912 (syms_of_emacs): Remove code depending on HAVE_SHM.
1913
1914 * alloc.c: Remove HAVE_SHM dependent definition.
1915
1916 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1917
aded53ff
GM
19182010-03-18 Glenn Morris <rgm@gnu.org>
1919
17284745
GM
1920 * emacs.c (USAGE4): Hard-code bug address.
1921 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1922 (bug_reporting_address): Remove.
1923 (main): Don't call bug_reporting_address.
1924
aded53ff
GM
1925 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1926 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1927
303500aa
CY
19282010-03-15 Chong Yidong <cyd@stupidchicken.com>
1929
1930 * xfns.c (Fx_create_frame):
1931 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1932 on left.
1933
cef3058f
CY
19342010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1935
1936 * editfns.c (Fformat): Account for string precision when computing
1937 field width (Bug#5710).
1938
a647d59d
CY
19392010-03-12 Chong Yidong <cyd@stupidchicken.com>
1940
4fa42018
CY
1941 * xfns.c (Fx_create_frame): Set default to Qright.
1942
a647d59d
CY
1943 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1944 all window systems.
1945
6da23aaa
EZ
19462010-03-12 Eli Zaretskii <eliz@gnu.org>
1947
a96f6398 1948 These changes remove termcap.c from the build on Posix platforms.
83d02def 1949 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1950 (MSDOS_OBJ): ...to here.
1951 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1952 now identical to when LIBS_TERMCAP is defined.
1953
1954 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1955
1956 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1957
a96f6398 1958 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1959
288f9fc0
CY
19602010-03-10 Chong Yidong <cyd@stupidchicken.com>
1961
1962 * Branch for 23.2.
1963
d48cd3f4
SM
19642010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1965
1966 Cleanup setup of gl_state in various parts of the code.
1967 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1968 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1969 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1970 (skip_chars):
1971 * regex.c (regex_compile): Use it.
1972 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1973 it's now set in regex_compile when/if we need it.
1974
618db430
SM
19752010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1976
c0335e02
SM
1977 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1978 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1979 (QUIT): Use it to consolidate code and remove redundancy.
1980 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1981
254c06a8
SM
1982 * regex.c (regex_compile): Setup gl_state as well.
1983
618db430
SM
1984 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1985 (in_classes): Use CONSP before XCAR/XCDR.
1986
233f0c9f
CY
19872010-03-03 Chong Yidong <cyd@stupidchicken.com>
1988
1989 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1990 definitions, so that keyboard macros are correctly handled
1991 (Bug#5481).
1992
75f80e63
EZ
19932010-03-02 Eli Zaretskii <eliz@gnu.org>
1994
1995 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1996 text that could be relocated inside the call to emacs_mule_char.
1997 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1998 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1999
dcfb9bc4
KH
20002010-03-02 Kenichi Handa <handa@m17n.org>
2001
fc9a17bc
KH
2002 * character.c (parse_str_as_multibyte): Fix handling of the
2003 multibyte form of raw-bytes.
2004 (str_as_multibyte): Likewise.
2005
dcfb9bc4
KH
2006 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2007 form of raw-bytes.
2008
412c01b6
CY
20092010-02-28 Chong Yidong <cyd@stupidchicken.com>
2010
2011 * charset.c (load_charset_map_from_file)
2012 (load_charset_map_from_vector): Zero out allocated
2013 charset_map_entries before using them.
2014
df7e1ea0
AS
20152010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2016
2017 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2018
fe69a722
CY
20192010-02-27 Chong Yidong <cyd@stupidchicken.com>
2020
4ed28cf4
CY
2021 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2022 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2023
7379cfce
KH
20242010-02-26 Kenichi Handa <handa@m17n.org>
2025
f88cc4d6
KH
2026 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2027
7379cfce
KH
2028 * xdisp.c (reseat_to_string): Fix previous change.
2029
cf2fdcfb
CY
20302010-02-26 David Reitter <david.reitter@gmail.com>
2031
2032 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2033 Lisp_Object (Bug#4736).
2034
cc6c7c75
KH
20352010-02-25 Kenichi Handa <handa@m17n.org>
2036
2037 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2038
32e737d7
JD
20392010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2040
2041 * xterm.c (XTflash): Move declarations before statements.
2042
2043 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2044 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2045 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2046 (xg_create_tool_bar): Remove unused variables.
2047 (x_wm_set_size_hint): Move declarations before statements.
2048 (xg_create_frame_widgets): Remove variable grav,
2049
676cae9f
CY
20502010-02-21 Chong Yidong <cyd@stupidchicken.com>
2051
2052 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2053
886cc2b8
SM
20542010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2055
2056 * term.c (fatal): Add a final \n if needed (bug#5596).
2057
ddb2d8e2
CY
20582010-02-18 Chong Yidong <cyd@stupidchicken.com>
2059
2060 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2061
2a4f8d3d
GM
20622010-02-18 Glenn Morris <rgm@gnu.org>
2063
2064 * callint.c (Finteractive): Doc fix.
2065
ebaf11b6
KH
20662010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2067
886cc2b8
SM
2068 * coding.c (record_conversion_result):
2069 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2070 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2071 memory allocation error.
2072
d0396581
KH
20732010-02-17 Kenichi Handa <handa@m17n.org>
2074
886cc2b8
SM
2075 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2076 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2077 (decode_coding): Setup ccl program here. Keep looping when the
2078 decoder stopped because the output buffer is
2079 fullfilled (bug#5534).
2080
2081 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2082
98599f74
JD
20832010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2084
471e4f04 2085 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2086 bug #5571.
886cc2b8 2087 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2088 overdrawn.
98599f74 2089
182659ae
JD
20902010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2091
2092 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2093 doing_interact here.
2094 (ice_connection_closed): New function.
2095 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2096 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2097 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2098 returns I/O error.
2099 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2100 bug #5512.
2101
9be32c4e 21022010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2103
2104 * nsfont.m (nsfont_open): The system's value for the font descent
2105 is negative, so round it down to avoid clipping.
2106
a2f3eb19
CY
21072010-02-06 Chong Yidong <cyd@stupidchicken.com>
2108
2109 * charset.c (load_charset_map_from_file)
2110 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2111 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2112
3088147c
CY
21132010-02-05 Chong Yidong <cyd@stupidchicken.com>
2114
2115 * charset.c (load_charset_map_from_file): Allocate large
2116 charset_map_entries structure on the heap rather than the stack.
2117 (Bug#5526).
2118
b57d9029
KH
21192010-01-31 Kenichi Handa <handa@m17n.org>
2120
2121 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2122 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2123
c67d885b
CY
21242010-01-31 Chong Yidong <cyd@stupidchicken.com>
2125
2126 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2127 <deactivated@gmail.com> (Bug#3605).
2128
8fab2362
CY
21292010-01-31 David De La Harpe Golden <david@harpegolden.net>
2130
2131 * fileio.c (Frename_file): Correctly rename symlinks to
2132 directories (Bug#5496).
2133
cb2a62f2
CY
21342010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2135
2136 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2137
944c7a26
AS
21382010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2139
2140 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2141
c024ac08
CY
21422010-01-29 Chong Yidong <cyd@stupidchicken.com>
2143
2144 * frame.c (DEFAULT_ROWS): Change default to 35.
2145
2146 * xfns.c (x_default_font_parameter): Change default XFT font to
2147 monospace-10 (Bug#3643).
2148
af93af83
EZ
21492010-01-29 Eli Zaretskii <eliz@gnu.org>
2150
2151 * w32inevt.c (key_event): Remove unnecessary comparison of
2152 event->uChar.AsciiChar with 128.
2153
ca0eb708
CY
21542010-01-28 Chong Yidong <cyd@stupidchicken.com>
2155
b242dbfc
CY
2156 * fileio.c (Frename_file): Fix last change (Bug#5487).
2157
ca0eb708
CY
2158 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2159
2160 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2161
45d45af5
JD
21622010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2163
2164 * xfns.c (Fx_create_frame): Remove window size matching code from
2165 2010-01-15.
2166 (x_get_current_desktop, x_get_desktop_workarea): Remove
2167
7e233730
JR
21682010-01-27 Jason Rumney <jasonr@gnu.org>
2169
2170 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2171 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2172
86e893e3
KH
21732010-01-27 Kenichi Handa <handa@m17n.org>
2174
2175 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2176 pattern string (Bug#4209).
86e893e3 2177
8719abec
CY
21782010-01-27 David De La Harpe Golden <david@harpegolden.net>
2179
2180 * fileio.c (Frename_file): Call copy-directory and
2181 delete-directory for directories, in order to handle cross-device
2182 renaming (Bug#3353).
2183
844794c8
JD
21842010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2185
aa3e13b5 2186 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2187 sizes 24 and 10. Bug #3643.
844794c8 2188
bd4b5750
SM
21892010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2190
8dc1adf6 2191 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2192 * keymap.c (shadow_lookup): Add `remap' arg.
2193 (describe_map, describe_vector): Update calls to shadow_lookup.
2194 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2195 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2196 perform remapping during shadow_lookup check of remapped_sequences.
2197
285d07e2
CY
21982010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2199
2200 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2201 png_check_sig, which has been removed in libpng 1.4.
2202
c6d09b8d
CY
22032010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2204
2205 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2206 lacks this header file).
2207
3d782998
YM
22082010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2209
2210 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2211 as in Emacs 22.
2212
2aff7c53
YM
22132010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2214
2215 * lisp.h (make_pure_string): String pointer arg now points to const.
2216
2217 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2218 args now point to const.
2219
74327f7a
EZ
22202010-01-22 Eli Zaretskii <eliz@gnu.org>
2221
2222 * lread.c (Fload): Don't treat files without .elc extension as
2223 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2224 them. (bug#5303)
2225
4d1e6632
KH
22262010-01-20 Kenichi Handa <handa@m17n.org>
2227
2228 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2229 treat the source as actual byte sequence.
2230
1fdede8f
AM
22312010-01-19 Alan Mackenzie <acm@muc.de>
2232
2233 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2234 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2235 `signal_after_change_p' to `coherent_change_p', and make the
2236 invocation of `modify_region' conditional on it.
2237
67477f30
JD
22382010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2239
2240 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2241 for debug purpose.
2242 (syms_of_xsettings): Declare xft-settings.
2243
244b023e
CY
22442010-01-18 Chong Yidong <cyd@stupidchicken.com>
2245
2246 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2247
617364fe
CY
22482010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2249
2250 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2251
4fe22cdf
CY
22522010-01-16 Chong Yidong <cyd@stupidchicken.com>
2253
2254 * emacs.c (standard_args): Adjust arg priorities to reflect how
2255 they are processed in startup.el.
2256
e118d2be
AS
22572010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2258
2259 * Makefile.in (lisp, shortlisp): Update.
2260
523ae620
SM
22612010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2262
2263 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2264 code, link the new kboard into all_kboard before running Lisp code,
2265 and protect the new terminal with GCPRO (Bug#5365).
2266 (x_term_init): Remove unused var `atom'.
2267 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2268
f0d13888
JD
22692010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2270
2271 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2272 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2273 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2274 this. Bug #3643.
f0d13888 2275
cc320f07
KH
22762010-01-15 Kenichi Handa <handa@m17n.org>
2277
2278 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2279
7ffdf101
CY
22802010-01-15 Chong Yidong <cyd@stupidchicken.com>
2281
2282 * nsterm.m (Qnone): Define.
2283
2284 * nsfns.m (Qnone): Move definition to nsterm.m.
2285
d12bd917
KH
22862010-01-14 Kenichi Handa <handa@m17n.org>
2287
2288 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2289 systems.
2290
d9a7c140
KH
22912010-01-14 Kenichi Handa <handa@m17n.org>
2292
2293 Make auto-composition work on all buffers even if they are
2294 fundamental mode.
2295
2296 * composite.c (Vauto_composition_mode): New variable.
2297 (composition_compute_stop_pos): Check Vauto_composition_mode
2298 instead of Vauto_composition_function.
2299 (composition_adjust_point, Ffind_composition_internal): Likewise.
2300 (syms_of_composite): Declare Lisp variable
2301 "auto-composition-mode" here.
2302
63286bb2
CY
23032010-01-13 Chong Yidong <cyd@stupidchicken.com>
2304
2305 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2306 during call to vendor-specific-keysyms (Bug#5365).
2307
c2623ee7
YM
23082010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2309
2310 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2311 Call SIGNAL_THREAD_CHECK (Bug#5333).
2312
2313 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2314 Call SIGNAL_THREAD_CHECK.
2315
0b5397c2
SM
23162010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2317
2318 Try to fix bug#5314. This is probably not the final word, tho.
2319 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2320 recent-auto-save-p as a side-effect.
2321 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2322 * buffer.c (Fkill_buffer, reset_buffer):
2323 * editfns.c (Fsubst_char_in_region):
2324 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2325 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2326
dc954cb2
KH
23272010-01-13 Kenichi Handa <handa@m17n.org>
2328
2329 Display buffer name, etc. in mode line by composing correctly.
2330
2331 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2332 STRING is not nil.
0b5397c2 2333 (display_mode_element): Adjust for the change of
dc954cb2
KH
2334 decode_mode_spec and display_line.
2335 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2336 (display_string): Handle the case that STRING is non-null and
2337 LISP_STRING is not nil.
2338
0b5397c2
SM
2339 * xterm.c (x_draw_composite_glyph_string_foreground):
2340 Pay attention to s->face->overstrike.
dc954cb2
KH
2341
2342 * composite.c (composition_reseat_it): Don't check PT if STRING is
2343 non nil.
2344
4a00eaca
YM
23452010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2346
2347 * keyboard.c (read_char): Don't apply previous change when current
2348 buffer is unchanged by command execution.
2349
60abb287
JD
23502010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2351
2352 * keyboard.c (read_char): Return after executing from special map.
2353
893db5bc
GM
23542010-01-12 Glenn Morris <rgm@gnu.org>
2355
2356 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2357 bug-gnu-emacs rather than emacs-pretest-bug.
2358
4d03ece0
CY
23592010-01-11 Chong Yidong <cyd@stupidchicken.com>
2360
2361 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2362 initializing the Lisp variables that depend on them.
2363
1df47e38
YM
23642010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2365
2366 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2367 Clear areas that will not be updated after change of menu bar lines.
2368 Clear the menu bar window's current matrix when the window gets empty.
2369
2f1c6384
CY
23702010-01-09 Chong Yidong <cyd@stupidchicken.com>
2371
e398c61c
CY
2372 * intervals.h, textprop.c (extend_property_ranges): Return value
2373 and args changed. Discard properties that begin at or after the
2374 new end (Bug#5306).
2375
2376 * editfns.c (Fformat): Caller changed.
2377
e5a29a10
CY
2378 * nsterm.m (ns_set_default_prefs): Delete function.
2379 (syms_of_nsterm): Initialize ns_command_modifier,
2380 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2381 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2382
2f1c6384
CY
2383 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2384 position (Bug#4040).
2385
d427a9fa
EZ
23862010-01-09 Eli Zaretskii <eliz@gnu.org>
2387
2388 * editfns.c (Ffloat_time): Doc fix.
2389
21b9df2f
JD
23902010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2391
2392 * xfns.c (Fx_create_frame): Don't create frame larger than display
2393 by default bug#3643.
2394
4b00d3b1
YM
23952010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2396
2397 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2398 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2399 windows above internal border.
2400
2401 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2402 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2403 windows above internal border.
2404
2405 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2406 tool bar windows specially.
2407
2408 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2409
2410 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2411 specially.
2412 (XTflash): Take account of menu bar height.
2413
2414 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2415 specially.
2416
5075d853
JD
24172010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2418
ac146f82 2419 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2420 also be true before we can return early (bug #5339).
2421
474217c8
CY
24222010-01-06 David Reitter <david.reitter@gmail.com>
2423
2424 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2425 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2426 (Bug#3233).
2427
c0e6d47d
JD
24282010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2429
d0cf45b7
JD
2430 * font.c (font_open_entity): Enable chache and call cached_font_ok
2431 for the driver if defined.
2432 (QCuser_spec): New symbol.
2433 (font_spec_from_name): Save name as user-spec.
2434 (font_load_for_lface): Keep user-spec instead of name.
2435 (font_open_by_name): Save name as user-spec.
2436 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2437 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2438
2439 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2440 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2441 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2442
2443 * font.h (struct font_driver): Add cached_font_ok.
2444
c0e6d47d
JD
2445 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2446
7c583cd8
JD
24472010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2448
2449 * xterm.c (x_new_font): Move code for setting rows/cols before
2450 resizing ...
ac146f82 2451 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2452
2453 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2454 (xg_frame_resized, xg_frame_set_char_size):
2455 Call xg_clear_under_internal_border.
7c583cd8 2456 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2457
03f77f0a
CY
24582010-01-05 Chong Yidong <cyd@stupidchicken.com>
2459
2460 * keyboard.c (read_key_sequence): Catch keyboard switch after
2461 making a new tty frame (Bug#5095).
2462
2a1ef5be
KH
24632010-01-05 Kenichi Handa <handa@m17n.org>
2464
2465 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2466
e3eb1dae
SM
24672010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2468
2469 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2470 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2471 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2472
777013f2
MA
24732010-01-03 Michael Albinus <michael.albinus@gmx.de>
2474
2475 * dbusbind.c (xd_add_watch): Improve debug message.
2476 (xd_remove_watch): Improve debug message. If DATA is the session
2477 bus, unset D-Bus session environment.
2478 (Fdbus_init_bus): Pass the bus as argument to
2479 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2480
8932b1c2
CY
24812010-01-01 Chong Yidong <cyd@stupidchicken.com>
2482
87231e2c
CY
2483 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2484
4801c5fa
CY
2485 * lread.c (syms_of_lread): Make it clearer that these are the
2486 names of loaded files (Bug#5068).
2487
8932b1c2
CY
2488 * eval.c (run_hook_with_args): Handle the case where the global
2489 value has the obsolete single-function form (Bug#5026).
2490
11e3c684
CY
24912009-12-27 Chong Yidong <cyd@stupidchicken.com>
2492
2493 * minibuf.c (Fall_completions): Minor optimization.
2494
5b28ce35
EZ
24952009-12-26 Eli Zaretskii <eliz@gnu.org>
2496
5ce6e4f4
JB
2497 * .gdbinit (pgx): Fix display of composite glyphs.
2498 Display cmp.from and cmp.to as well.
2499 (pitx): Fix last change.
5b28ce35 2500
bcffff46
KH
25012009-12-25 Kenichi Handa <handa@m17n.org>
2502
2503 * composite.h (composition_adjust_point): Update prototype.
2504
2505 * composite.c (composition_reseat_it): Don't make a composition
2506 spanning over point.
2507 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2508 composable characters.
2509 (composition_adjust_point): New arg NEW_PT. Callers changed.
2510
2511 * keyboard.c (command_loop_1): Force redisplay if the last point
2512 was within a composition.
2513 (adjust_point_for_property): Don't adjust point for automatic
2514 composition when called after buffer modification.
2515
3f670e9a
EZ
25162009-12-19 Eli Zaretskii <eliz@gnu.org>
2517
5ce6e4f4
JB
2518 * .gdbinit (pitx): Don't use enum names, use their values.
2519 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2520 (pgx): Don't use enum names, use their values.
2521 (pitmethod): New helper command.
2522 (pitx): Use it to display iteration method.
2523 (pgrowit): New command.
2524
ad903955
EZ
2525 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2526
3f670e9a
EZ
2527 Update dependencies in Makefile.in.
2528
2529 * Makefile.in (alloc.o): Depend on termhooks.h.
2530 (atimer.o): Depend on blockinput.h.
2531 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2532 and frame.h.
2533 (callint.o): Depend on systime.h, coding.h, and composite.h.
2534 (callproc.o): Depend on buffer.h.
2535 (casefiddle.o): Don't depend on charset.h.
2536 (casetab.o): Depend on character.h.
2537 (ccl.o): Depend on composite.h.
2538 (chartab.o): Depend on ccl.h.
2539 (cm.o): Depend on dispextern.h.
2540 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2541 (coding.o): Don't depend on $(INTERVALS_H).
2542 (composite.o): Don't depend on dispextern.h explicitly (it's in
2543 $(INTERVALS_H)). Depend on ccl.h.
2544 (data.o): Depend on systime.h, coding.h, composite.h,
2545 dispextern.h, font.h, and ccl.h.
2546 (dired.o): Depend on composite.h.
2547 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2548 composite.h (it's in $(INTERVALS_H)).
2549 (doc.o): Depend on systime.h, coding.h, and composite.h.
2550 (editfns.o): Don't depend explicitly on dispextern.h.
2551 (emacs.o): Depend on frame.h and coding.h.
2552 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2553 (fileio.o): Depend on frame.h and commands.h. Don't depend
2554 explicitly on dispextern.h.
2555 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2556 composite.h.
2557 (fns.o): Don't depend on termhooks.h.
2558 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2559 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2560 coding.h, $(INTERVALS_H), window.h, xterm.h.
2561 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2562 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2563 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2564 fontset.h, ccl.h, and ftfont.h.
2565 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2566 (gtkutil.o): Depend on dispextern.h and composite.h.
2567 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2568 termhooks.h, and ccl.h.
2569 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2570 (intervals.o): Depend on systime.h and coding.h.
2571 (keyboard.o): Depend on composite.h and coding.h.
2572 (keymap.o): Depend on coding.h and frame.h.
2573 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2574 (macros.o): Depend on systime.h, coding.h, and composite.h.
2575 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2576 and atimer.h.
2577 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2578 dispextern.h explicitly.
0b5397c2
SM
2579 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2580 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2581 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2582 (regex.o): Don't depend on charset.h.
2583 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2584 (search.o): Don't depend explicitly on composite.h.
2585 (sound.o): Depend on atimer.h and systime.h.
2586 (syntax.o): Don't depend explicitly on composite.h.
2587 (sysdep.o): Depend on coding.h and composite.h.
2588 (term.o): Depend on xterm.h and buffer.h.
2589 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2590 (textprop.o): Don't depend on dispextern.h explicitly.
2591 (undo.o): Depend on dispextern.h.
2592 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2593 dispextern.h and composite.h explicitly.
2594 (xdisp.o): Depend on ccl.h.
2595 (xfaces.o): Depend on coding.h and ccl.h.
2596 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2597 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2598 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2599 ftfont.h.
2600 (xgselect.o): New dependency.
2601 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2602 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2603 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2604 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2605 (xsmfns.o): Depend on frame.h and dispextern.h.
2606 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2607 sysselect.h.
2608
7a6f7fea
AS
26092009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2610
2611 * font.c (Fclear_font_cache): Pass correct cache argument to
2612 font_clear_cache.
2613
f4c21026
AS
26142009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2615
2616 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2617 twice.
2618
f7ab0997
CY
26192009-12-15 Chong Yidong <cyd@stupidchicken.com>
2620
2621 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2622 calling file-remote-p. Reported by Jim Meyering.
2623
fa8e045a
MA
26242009-12-15 Michael Albinus <michael.albinus@gmx.de>
2625
2626 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2627 avoid compiler warnings. (Bug #5217)
fa8e045a 2628
a63dba42
KH
26292009-12-14 Kenichi Handa <handa@m17n.org>
2630
2631 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2632 in 8-bit encoding.
2633
5ce6e4f4 26342009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2635
2636 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2637 tooltip windows.
2638
223e5fc6
JD
26392009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2640
36acb2a7
JD
2641 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2642 Xatom_net_window_type.
2643
2644 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2645 Xatom_net_window_type.
2646
b8f00677
JD
2647 * xterm.c (my_log_handler): New function.
2648 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2649 so we can filter out buggy messages. (Bug #5120).
b8f00677 2650
e5f0bc9a
JD
2651 * xterm.c (xg_scroll_callback): Parameter list changed,
2652 use parameter GtkScrollType to determine scroll/line/page.
2653 Only allow dragging if a button < 4 is grabbed (bug #5177).
2654 (xg_end_scroll_callback): New function.
2655 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2656 xg_create_scroll_bar.
2657
2658 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2659 (scroll_end_callback): Remove.
2660 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2661 button-release-event. Replace value-changed event with change-value,
2662 bug #5177,
2663 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2664 bug #5177.
2665
2666 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2667 (xg_create_scroll_bar): Add GCallback end_callback.
2668
223e5fc6
JD
2669 * xftfont.c (QClcdfilter): New variable.
2670 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2671 (syms_of_xftfont): Initialize QClcdfilter.
2672
3c055b77
JD
26732009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2674
2675 * xsettings.c (struct xsettings): Add member seen.
2676 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2677 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2678 (apply_xft_settings): Only update Xft settings with what member seen
2679 indicates as new.
2680
05fe33ff
EZ
26812009-12-12 Eli Zaretskii <eliz@gnu.org>
2682
2683 * dispextern.h (struct text_pos): Use EMACS_INT;
2684 (struct glyph): Use EMACS_INT for charpos.
2685 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2686 region_beg_charpos, region_end_charpos,
2687 redisplay_end_trigger_charpos, and also for
2688 iterator_stack_entry.end_charpos and
2689 iterator_stack_entry.stop_charpos.
2690
e8d7886a
JD
26912009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2692
5ce6e4f4 2693 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2694 (xg_create_scroll_bar): Call scroll_end_callback on button release
2695 event (bug #5177).
2696 (xg_event_is_for_scrollbar): != replaced with ==.
2697
d0db2ec8
KH
26982009-12-12 Kenichi Handa <handa@m17n.org>
2699
2700 * ftfont.c (struct ftfont_info): New member matrix.
2701 (ftfont_open): Setup xftfont_info->matrix.
2702 (MFLTFontFT): New member matrix.
2703 (FLOOR, CEIL, ROUND): New macros.
2704 (ftfont_get_metrics): Handle matrix transformation.
2705 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2706
2707 * xftfont.c (struct xftfont_info): New member matrix.
2708 (xftfont_open): Setup xftfont_info->matrix.
2709
27102009-12-10 Kenichi Handa <handa@m17n.org>
2711
2712 * xdisp.c (append_space_for_newline): Consider face-remapping.
2713
2cc7b62f
AS
27142009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2715
b87dd913
AS
2716 * xsettings.c: Include "keyboard.h".
2717
eba5eb94
AS
2718 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2719
2cc7b62f
AS
2720 Fix implicit function declarations.
2721 * cmds.c: Include "frame.h".
2722 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2723 * frame.h: Move declaration of delete_frame outside of
2724 HAVE_WINDOW_SYSTEM.
2725
a4ef73c8
CY
27262009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2727
2728 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2729
2730 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2731 GTK builds.
2732
944a300c
AS
27332009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2734
2735 * unexelf.c (unexec): Don't search for .data twice.
2736
022eef62
CY
27372009-12-05 Chong Yidong <cyd@stupidchicken.com>
2738
426ac949
CY
2739 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2740 if push failed.
2741 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2742 of push_display_prop (Bug#5000).
2743
022eef62
CY
2744 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2745 value of font_list_entities (Bug#5085).
2746
be95bee9
JB
27472009-12-04 Juanma Barranquero <lekktu@gmail.com>
2748
2749 Fix `string-to-number' to deal consistently with integers and floats.
2750 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2751 trailing characters, not just whitespace.
2752 (read1): Pass new arg 0 to keep old behavior.
2753 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2754 trailing chars, as it is already done for integers. Doc fixes.
2755 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2756
24c2d7ce
EZ
27572009-12-04 Eli Zaretskii <eliz@gnu.org>
2758
0b5397c2
SM
2759 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2760 Delete unused enumeration value.
24c2d7ce 2761
7e694795
EZ
27622009-12-03 Eli Zaretskii <eliz@gnu.org>
2763
2764 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2765
84b31826
SM
27662009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2767
2768 * process.c (Fmake_network_process): Fix up the tests for
2769 "connectionless socket", so they DTRT for seqpacket sockets as well.
2770
f00c449b
SM
27712009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2772
2773 * process.c (Qseqpacket): New symbol.
2774 (HAVE_SEQPACKET): New macro.
2775 (Fmake_network_process): Accept new :type `seqpacket'.
2776 (init_process): Add `seqpacket' feature when applicable.
2777 (syms_of_process): Initialize Qseqpacket.
2778
8096a0ff
YM
27792009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2780
2781 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2782 if entity is Qnil.
2783
3e0de07f
SM
27842009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2785
2786 * print.c (print_preprocess): Preprocess the key_and_value table of
2787 hashtables, even tho they're "hidden" (bug#5082).
2788
abeafb2a
JD
27892009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2790
2791 * frame.c (frame_make_pointer_invisible)
2792 (frame_make_pointer_visible): Declare f before statements.
2793
4bf47195
EZ
27942009-11-28 Eli Zaretskii <eliz@gnu.org>
2795
2796 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2797 omitted dependencies on lisp.h.
2798
c525b3f2
JD
27992009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2800
ece2d4ed
JD
2801 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2802 is NULL.
2803
2804 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2805
2806 * frame.c (frame_make_pointer_invisible)
3e0de07f 2807 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2808 frame.
2809
c525b3f2
JD
2810 * search.c (simple_search): Remove warning by making *p const.
2811
2f00e299
DN
28122009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2813
2814 * xdisp.c (power_letter): Remove duplicate const.
2815
084b049b
JD
28162009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2817
a1fadc6f
JD
2818 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2819
5ce6e4f4 2820 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2821 defaults (bug #5025).
2822
28259cac
SM
28232009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2824
2825 * insdel.c (adjust_markers_for_delete): Move it in the
2826 right direction! (bug#4803)
2827
e8e14166
YM
28282009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2829
2830 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2831
2832 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2833
86677b58
GM
28342009-11-24 Glenn Morris <rgm@gnu.org>
2835
2836 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2837
581e51e8
JD
28382009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2839
cfc86c7a
JD
2840 * Makefile.in: Must create deps for ecrt0.o in its rule.
2841
581e51e8
JD
2842 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2843 because that is what Gtk+ font dialog understands.
2844
2845 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2846 of Fcopy_sequence.
2847 (font_open_by_name): Put name given into QCname for font-object returned.
2848
2849 * frame.c (x_set_font): Save original font name as frame parameter
2850 font-parameter.
2851
2852 * xsettings.c (set_default_xft_settings): New function.
2853 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2854 is found.
2855
8b264ecb
AS
28562009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2857
2858 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2859 searching backwards through multibyte buffer.
2860
872870b2
JD
28612009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2862
2863 * xterm.c: #include xgselect.h.
2864 (x_initialize): Call xgselect_initialize.
2865
2866 * xsettings.c (something_changedCB): C++ comments => C comments.
2867 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2868 does that now.
2869
2870 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2871 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2872 (scroll_bar_button_cb): Remove.
5ce6e4f4 2873 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2874 event.
2875 (xg_create_scroll_bar): Don't bind button-press-event and
2876 button-release-event.
2877
2878 * process.c: Include xgselect.h if defined (USE_GTK) ||
2879 defined (HAVE_GCONF).
2880 (wait_reading_process_output): Call xg_select for the same condition.
2881
2882 * xgselect.c (xg_select): New function to better integrate with
2883 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2884
2885 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2886
2887 * Makefile.in (XOBJ): Add xgselect.o.
2888
62a6e103
AS
28892009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2890
0b5397c2
SM
2891 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2892 Remove ignored second argument. All callers changed.
62a6e103
AS
2893 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2894 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2895 * xdisp.c (string_char_and_length): Likewise.
2896
b0ca0f33
DN
28972009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2898
2899 * xterm.c (x_new_font):
2900 * print.c (print_object):
2901 * cmds.c (Fself_insert_command): Move declarations before statements.
2902
dd5a6279
CY
29032009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2904
2905 * s/cygwin.h: Remove unneeded linker flags.
2906
4a8e097d
JD
29072009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2908
0d1d0d26
JD
2909 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2910
2911 * xsettings.h: Declare xsettings_get_system_font.
2912
2913 * xsettings.c (xsettings_get_system_font): New function.
2914 (init_gconf): No use initiating gconf unless we have Xft also.
2915 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2916 HAVE_GCONF.
2917
4a8e097d
JD
2918 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2919 add a blank entry so it doesn't collapse into nothing.
2920
8ab1650e
SM
29212009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2922
2923 * lread.c (Funintern): Comment out last change.
2924
82c602f0
RS
29252009-11-19 Richard Stallman <rms@gnu.org>
2926
2927 * lread.c (Funintern): Error if symbol is t or nil.
2928
87e32266
SM
29292009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2930
2931 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2932 representation of Lisp integers.
2933 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2934
1b9ac145
AS
29352009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2936
2937 * lisp.h: Remove declaration of Ffont_get_system_font.
2938 * xfns.c: Move include of "xsettings.h".
2939 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2940
dfb3c4c6
JD
29412009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2942
87e32266
SM
2943 * xsettings.c (something_changedCB, Ffont_get_system_font):
2944 Check use_system_font.
dfb3c4c6
JD
2945 (syms_of_xsettings): DEFVAR font-use-system-font.
2946
9370c1d8
AS
29472009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2948
25fe851a
AS
2949 * xfns.c (x_default_font_parameter): Remove dead assignment.
2950
9370c1d8
AS
2951 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2952
637fa988
JD
29532009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2954
87e32266 2955 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2956 not have FC_LCD_*. #define them if not there.
a6eb20d8 2957
87e32266 2958 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2959
637fa988
JD
2960 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2961
2962 * xterm.c (handle_one_xevent): Call xft_settings_event for
2963 ClientMessage, PropertyNotify and DestroyNotify.
2964 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2965 Call xsettings_initialize.
2966
2967 * xftfont.c (xftfont_fix_match): New function.
2968 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2969 Call xftfont_fix_match after XftFontMatch.
2970
2971 * xfont.c (xfont_driver): Initialize all members.
2972
87e32266
SM
2973 * xfns.c (x_default_font_parameter):
2974 Try font from Ffont_get_system_font.
637fa988
JD
2975 Do not get font from x_default_parameter if we got one from
2976 Ffont_get_system_font.
87e32266 2977 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2978
2979 * w32font.c (w32font_driver): Initialize all members.
2980
2981 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2982
2983 * lisp.h: Declare syms_of_xsettings.
2984
87e32266
SM
2985 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2986 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2987
2988 * ftfont.c (ftfont_filter_properties): New function.
2989
2990 * frame.c (x_set_font): Remove unused variable lval.
2991
87e32266 2992 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2993
2994 * font.c (font_put_extra): Don't return if val is nil, it means
2995 boolean option is off.
2996 (font_parse_fcname): Collect all extra properties in extra_props
2997 and call filter_properties for all drivers with extra_props and
2998 font as parameter.
87e32266
SM
2999 (font_open_entity): Do not use cache, it does not pick up new
3000 fontconfig settings like hinting.
637fa988
JD
3001 (font_load_for_lface): If spec had a name in it, store it in entity.
3002
3003 * emacs.c (main): Call syms_of_xsettings
3004
3005 * config.in: HAVE_GCONF is new.
3006
3007 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3008 xsettings.o is new.
3009
5a942932
KH
30102009-11-17 Kenichi Handa <handa@m17n.org>
3011
3012 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3013 back to the default font in case that no suitable font is found.
3014
b7c7a4d1
SM
30152009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3016
3017 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3018 Suggested by Chad Brown <yandros@mit.edu>.
3019 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3020
072f1e39
JD
30212009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3022
3023 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3024
5d1e70a2
AS
30252009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3026
87e32266 3027 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3028
a53cfbe5
JD
30292009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3030
473a99b7
JD
3031 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3032 has a parent.
3033
a53cfbe5 3034 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3035 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3036
3037 * config.in: Generated (AUTO_DEPEND).
3038
f04bb9b2
MA
30392009-11-13 Michael Albinus <michael.albinus@gmx.de>
3040
b7c7a4d1 3041 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3042 Vdbus_registered_functions_table, because it contains also
3043 properties. Fix docstring.
b7c7a4d1 3044 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3045
8f11f7ec
SM
30462009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3047
3048 * alloc.c (mark_object): Don't reprocess marked strings.
3049 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3050 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3051
8a605fe8
KH
30522009-11-13 Kenichi Handa <handa@m17n.org>
3053
8f11f7ec 3054 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3055 semantics of Vword_combining_categories.
3056 (Vword_combining_categories): Describe the slight change of the
3057 semantics.
3058
241c4680
EZ
30592009-11-13 Eli Zaretskii <eliz@gnu.org>
3060
3061 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3062
3063 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3064
5d58e44c
SM
30652009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3066
3067 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3068
5e13f9d3
JB
30692009-11-12 Juanma Barranquero <lekktu@gmail.com>
3070
3071 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3072
cf54c754
DR
30732009-11-11 David Reitter <david.reitter@gmail.com>
3074
3075 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3076 variables to fix 2009-11-09 change.
3077
a4ada374
DN
30782009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3079
91433552
DN
3080 * process.c (ifflag_def): Make flag_sym constant.
3081 (Fnetwork_interface_info): Use a constant pointer.
3082 (ifflag_table):
3083 * xfns.c (cursor_bits):
3084 * xdisp.c (power_letter):
3085 * termcap.c (speeds, esctab):
3086 * sysdep.c (baud_convert):
3087 * keyboard.c (lispy_accent_codes, modifier_names):
3088 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3089 (jpeg_format, tiff_format, gif_format, svg_format)
3090 (interlace_start, interlace_increment, gs_format):
3091 * gtkutil.c (separator_names):
3092 * fringe.c (swap_nibble):
3093 * fns.c (base64_value_to_char, base64_char_to_value):
3094 * fileio.c (make_temp_name_tbl):
3095 * coding.c (suffixes): Make constant.
3096
f4265f6c
DN
3097 * frame.c (make_initial_frame):
3098 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3099 build_string.
3100 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3101
04420943
DN
3102 * s/freebsd.h:
3103 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3104
0a5d24ae
DN
3105 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3106 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3107
a4ada374
DN
3108 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3109 * xterm.c (syms_of_xterm):
3110 * xfaces.c (syms_of_xfaces):
3111 * xdisp.c (syms_of_xdisp):
3112 * lread.c (syms_of_lread):
3113 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3114 build_string.
91433552 3115
a4ada374
DN
3116 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3117
af98fc7f
SM
31182009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3119
8ab1650e 3120 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3121
e90292a9
JD
31222009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3123
3124 * keyboard.h: Declare timer_check.
3125
3126 * keyboard.c (timer_check_2): New function that does what the old
3127 timer_check did.
3128 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3129 returned, i.e. don't return -1 with timers pending.
3130
3131 * process.c: Remove extern declaration of timer_check.
3132
3133 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3134 even if timer_check returned -1.
3135
af98fc7f
SM
3136 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3137 xg_dialog_data.
e90292a9
JD
3138 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3139 the event loop.
3140 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3141 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3142 Destroy the dialog after xg_dialog_run.
3143
045b83c0
SM
31442009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3145
3146 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3147
1fb99a3a
JD
31482009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3149
3150 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3151
04e452cb
JB
31522009-11-09 Juanma Barranquero <lekktu@gmail.com>
3153
3154 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3155
ef7417fd
SM
31562009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3157
3158 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3159 w32menu.c, and nsmenu.m.
3160 Simplify the obsolete case where position is nil.
3161 (cleanup_popup_menu): New function, moved from nsmenu.m.
3162 (struct skp): Remove slot `notreal'.
3163 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3164 adjust callers.
3165 (single_menu_item): Adjust call to parse_menu_item.
3166 (syms_of_menu): Defsubr x-popup-menu.
3167 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3168 (keymap_panes): Don't export any more.
3169 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3170 (xmenu_show): Declare.
3171 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3172 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3173 * keyboard.h (parse_menu_item): Update declaration.
3174 * xmenu.c (Fx_popup_menu): Remove.
3175 (syms_of_xmenu): Don't defsubr x-popup-menu.
3176 * w32menu.c (Fx_popup_menu): Remove.
3177 (syms_of_w32menu): Don't defsubr x-popup-menu.
3178 * nsmenu.m (cleanup_popup_menu): Remove.
3179 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3180 moved to menu.c's Fx_popup_menu.
3181 (Fx_popup_menu): Remove.
3182 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3183 menu_items (it's done in menu.c already).
3184
424d6179
SM
31852009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3186
3187 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3188 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3189
c0df13a6 31902009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3191
3192 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3193 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3194 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3195 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3196
2de9f71c
SM
31972009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3198
3199 Let integers use up 2 tags to give them one extra bit and thus double
3200 their range.
3201 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3202 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3203 New macros.
3204 (enum Lisp_Type): Use them. Give explicit values.
3205 (Lisp_Type_Limit): Remove.
3206 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3207 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3208 Pay attention to USE_2_TAGS_FOR_INTS.
3209 (INTEGERP): Use LISP_INT_TAG_P.
3210 * fns.c (internal_equal): Simplify the default case.
3211 (sxhash): Use case_Lisp_Int.
3212 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3213 any more.
3214 (Ftype_of): Use case_Lisp_Int.
3215 (store_symval_forwarding): Take into account the fact that Ints can
3216 now have more than one tag.
3217 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3218 buffer_slot_type_mismatch):
3219 * xfaces.c (face_attr_equal_p):
3220 * print.c (print_object):
3221 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3222 Use case_Lisp_Int.
3223
323637a2
EZ
32242009-11-06 Eli Zaretskii <eliz@gnu.org>
3225
7ac65b38
EZ
3226 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3227
323637a2
EZ
3228 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3229 warning.
3230
e511451f
JD
32312009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3232
3233 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3234
3235 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3236
3237 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3238 ButtonPressRelease and MotionNotify (bug#4870).
3239
5e2327cf
DN
32402009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3241
5adc433e
DN
3242 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3243
d67b4f80
DN
3244 * xterm.c (syms_of_xterm):
3245 * xselect.c (syms_of_xselect):
3246 * xmenu.c (syms_of_xmenu):
3247 * xfns.c (syms_of_xfns):
3248 * xfaces.c (syms_of_xfaces):
3249 * xdisp.c (syms_of_xdisp):
3250 * window.c (syms_of_window):
3251 * w32fns.c (syms_of_w32fns):
3252 * undo.c (syms_of_undo):
3253 * textprop.c (syms_of_textprop):
3254 * terminal.c (syms_of_terminal):
3255 * syntax.c (syms_of_syntax):
3256 * sound.c (syms_of_sound):
3257 * search.c (syms_of_search):
3258 * print.c (syms_of_print):
3259 * minibuf.c (syms_of_minibuf):
3260 * macros.c (syms_of_macros):
3261 * keymap.c (syms_of_keymap, initial_define_key)
3262 (initial_define_lispy_key):
3263 * keyboard.c (syms_of_keyboard):
3264 * insdel.c (syms_of_insdel):
3265 * image.c (syms_of_image):
3266 * fringe.c (syms_of_fringe):
3267 * frame.c (syms_of_frame):
3268 * fontset.c (syms_of_fontset):
3269 * fns.c (syms_of_fns):
3270 * fns.c (syms_of_fns):
3271 * fileio.c (syms_of_fileio):
3272 * fileio.c (syms_of_fileio):
3273 * eval.c (syms_of_eval):
3274 * doc.c (syms_of_doc):
3275 * dispnew.c (syms_of_display):
3276 * dired.c (syms_of_dired):
3277 * dbusbind.c (syms_of_dbusbind):
3278 * data.c (syms_of_data):
3279 * composite.c (syms_of_composite):
3280 * coding.c (syms_of_coding):
3281 * cmds.c (syms_of_cmds):
3282 * charset.c (define_charset_internal, syms_of_character):
3283 * ccl.c (syms_of_ccl):
3284 * category.c (syms_of_category, init_category_once):
3285 * casetab.c (syms_of_casetab):
3286 * casefiddle.c (syms_of_casefiddle):
3287 * callint.c (syms_of_callint):
3288 * bytecode.c (syms_of_bytecode):
3289 * buffer.c (keys_of_buffer, syms_of_buffer):
3290 * alloc.c (syms_of_alloc):
3291 * process.c (syms_of_process, init_process):
3292 * lread.c (syms_of_lread, init_obarray):
3293 * font.c (build_style_table):
3294 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3295 intern_c_string, calls to make_pure_string with
3296 make_pure_c_string. Use pure_cons instead of Fcons.
3297
5e2327cf
DN
3298 * process.c (socket_options): Make it const.
3299 (set_socket_option, init_process): Use a const pointer.
3300
3301 * lread.c (intern_c_string): New function.
3302 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3303 (defvar_int): Uset it. Make the name const char*.
3304
3305 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3306 (defvar_int): Update prototypes.
3307 (DEFUN, EXFUN): Support for prototypes is now required.
3308 (intern_c_string): New prototype.
3309 (struct Lisp_Subr): Make symbol_name constant.
3310
3311 * font.c (struct table_entry): Remove unused member. Make NAMES
3312 constant.
3313 (weight_table, slant_table, width_table): Make constant.
3314
3315 * emacs.c (struct standard_args): Make name and longname constant.
3316
3317 * character.h (DEFSYM): Use intern_c_string.
3318
a56eaaef
DN
33192009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3320
3321 * alloc.c (make_pure_c_string): New function.
3322
3323 * eval.c (Fautoload): Purecopy all arguments.
3324
f6a07420
KH
33252009-11-05 Kenichi Handa <handa@m17n.org>
3326
3327 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3328 the buffer in case of replace.
3329
5d28d4b1
DN
33302009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3331
3332 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3333
b349d111
SM
33342009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3335
d528b1ce
SM
3336 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3337 when applicable (bug#4851).
3338
b349d111
SM
3339 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3340 (P_): Support for prototypes is now required.
3341
c38eb027
CY
33422009-10-31 Chong Yidong <cyd@stupidchicken.com>
3343
3344 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3345 (Bug#4827).
3346
0405f8d9
EZ
33472009-10-30 Eli Zaretskii <eliz@gnu.org>
3348
d528b1ce 3349 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3350
ca0a881a
DN
33512009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3352
3353 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3354
d528b1ce
SM
3355 * lread.c (Fload): Purecopy the file name when building
3356 Vpreloaded_file_list.
ca0a881a 3357
47e0e0e4
JR
33582009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3359
3360 * w32fns.c (syms_of_w32fns): Change default value of
3361 w32-scroll-lock-modifier to nil. (Bug#2827)
3362
057bce6f
JB
33632009-10-26 Juanma Barranquero <lekktu@gmail.com>
3364
782a943e 3365 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3366
242bc74c
AS
33672009-10-26 Andreas Schwab <schwab@redhat.com>
3368
3369 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3370
522d013a
JB
33712009-10-26 Juanma Barranquero <lekktu@gmail.com>
3372
3373 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3374 For delta < 0, skip check that only makes sense when the mini-window
3375 is going to be enlarged. (Bug#4534)
3376
18060980
CY
33772009-10-25 Chong Yidong <cyd@stupidchicken.com>
3378
3379 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3380 string in menu maps (Bug#4471).
3381
fec8f0fe
CY
33822009-10-24 Chong Yidong <cyd@stupidchicken.com>
3383
3384 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3385 FRAME_NS_VIEW on terminal frames (Bug#4765).
3386
10d66ec0
AS
33872009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3388
1cae01f7
AS
3389 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3390 DBUS_TYPE_UINTnn separately to get proper sign extension.
3391
58a12889
AS
3392 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3393 can properly handle unsigned types.
d528b1ce 3394 (make_uid, make_gid): Remove.
58a12889 3395
987c9327
AS
3396 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3397 types again.
3398
522d013a 3399 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3400 (system_process_attributes): Likewise.
3401
905a9ed3
DN
34022009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3403
3404 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3405
3406 * eval.c (Fautoload): Purecopy the filename. Simplify.
3407
3408 * category.c (Fdefine_category): Purecopy docstring.
3409
a599b3e8
AS
34102009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3411
7b792fc9
AS
3412 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3413
a599b3e8
AS
3414 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3415
b35ac83e
CY
34162009-10-23 Chong Yidong <cyd@stupidchicken.com>
3417
3418 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3419 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3420 (Bug#4775).
3421
e8903e00
SM
34222009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3423
3424 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3425 (init_fileio_once):
3426 * lisp.h (init_fileio_once): Remove.
3427 * emacs.c (main): Don't call init_fileio_once.
3428
8f43cbf3
DN
34292009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3430
3431 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3432
26898943
AS
34332009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3434
3435 * doprnt.c (doprnt): Fix overflow check.
3436
5c646d5a
JD
34372009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3438
3132a7ea
JD
3439 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3440
5c646d5a
JD
3441 * xterm.h (x_wait_for_event): Declare it.
3442
3443 * xterm.c (pending_event_wait): New variable.
3444 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3445 see pending_event_wait.eventtype.
3446 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3447 (x_new_font): Call change_frame_size with new rows/columns before we
3448 try to resize the frame.
5c646d5a 3449 (x_wait_for_event): New function.
d528b1ce
SM
3450 (x_set_window_size_1): Don't change gravity unless change_gravity
3451 is set.
5c646d5a
JD
3452 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3453 don't change frame size, instead wait for the ConfigureNotify.
3454 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3455 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3456 (x_initialize): Initialize pending_event_wait.
3457
3458 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3459 size.
3460
3461 * widget.c (EmacsFrameSetValues): Add comment.
3462 (EmacsFrameSetCharSize): Just call x_set_window_size.
3463
3464 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3465 x_wait_for_event.
d528b1ce 3466 (flush_and_sync): Remove again.
5c646d5a
JD
3467 (xg_get_font_name): Suggest monospace if no previous font is known.
3468
e9c1637d
SM
34692009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3470
3471 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3472 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3473
5a72cccb
YM
34742009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3475
3476 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3477 processing pending events when event is filtered for input method.
ab04798f 3478 (Bug#3681)
5a72cccb 3479
2629aa37
JB
34802009-10-20 Juanma Barranquero <lekktu@gmail.com>
3481
3482 * fns.c: Add #endif accidentally removed in previous change.
3483
c3417a74
DN
34842009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3485
3486 * fns.c: Remove code for unsupported system: MAC_OS.
3487 * image.c: Likewise. Include setjmp.h.
3488
9685cef2
JD
34892009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3490
3491 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3492 pixel -1 (bug #4742).
3493
d7306fe6
DN
34942009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3495
019d2c4c
DN
3496 * process.c (create_pty): Remove conditionals for no longer
3497 supported systems: UNIPLUS and RTU.
3498
ee6bacd4
DN
3499 * xterm.c:
3500 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3501
d7306fe6
DN
3502 * alloc.c: Do not define struct catchtag.
3503 * eval.c: Move struct catchtag definition ...
3504 * lisp.h: ... here.
3505
3506 * image.c: Move png.h #include earlier to avoid warnings.
3507
3508 * xterm.c:
3509 * xsmfns.c:
3510 * xselect.c:
3511 * xrdb.c:
3512 * xmenu.c:
3513 * xftfont.c:
3514 * xfont.c:
3515 * xfns.c:
3516 * xfaces.c:
3517 * xdisp.c:
3518 * window.c:
3519 * widget.c:
3520 * w32xfns.c:
3521 * w32uniscribe.c:
3522 * w32term.c:
3523 * w32select.c:
3524 * w32reg.c:
3525 * w32proc.c:
3526 * w32menu.c:
3527 * w32inevt.c:
3528 * w32heap.c:
3529 * w32font.c:
3530 * w32fns.c:
3531 * w32console.c:
3532 * w32.c:
3533 * w16select.c:
3534 * vm-limit.c:
3535 * unexsol.c:
3536 * unexec.c:
3537 * unexcw.c:
3538 * unexaix.c:
3539 * undo.c:
3540 * tparam.c:
3541 * textprop.c:
3542 * terminfo.c:
3543 * terminal.c:
3544 * termcap.c:
3545 * term.c:
3546 * syntax.c:
3547 * sound.c:
3548 * sheap.c:
3549 * search.c:
3550 * scroll.c:
3551 * region-cache.c:
3552 * regex.c:
3553 * ralloc.c:
3554 * process.c:
3555 * print.c:
b024548b
DN
3556 * nsterm.m:
3557 * nsselect.m:
3558 * nsmenu.m:
3559 * nsimage.m:
3560 * nsfont.m:
3561 * nsfns.m:
d7306fe6
DN
3562 * msdos.c:
3563 * minibuf.c:
3564 * menu.c:
3565 * marker.c:
3566 * macros.c:
3567 * keymap.c:
3568 * keyboard.c:
3569 * intervals.c:
3570 * insdel.c:
3571 * indent.c:
3572 * gtkutil.c:
3573 * ftxfont.c:
3574 * ftfont.c:
3575 * fringe.c:
3576 * frame.c:
3577 * fontset.c:
3578 * font.c:
3579 * fns.c:
3580 * floatfns.c:
3581 * filelock.c:
3582 * fileio.c:
3583 * emacs.c:
3584 * editfns.c:
3585 * dosfns.c:
3586 * doprnt.c:
3587 * doc.c:
3588 * dispnew.c:
3589 * dired.c:
3590 * dbusbind.c:
3591 * data.c:
3592 * composite.c:
3593 * coding.c:
3594 * cmds.c:
3595 * cm.c:
3596 * chartab.c:
3597 * charset.c:
3598 * character.c:
3599 * ccl.c:
3600 * category.c:
3601 * casetab.c:
3602 * casefiddle.c:
3603 * callproc.c:
3604 * callint.c:
3605 * bytecode.c:
3606 * buffer.c:
3607 * atimer.c: Include setjmp.h. (Bug#4643)
3608
fd5f21e6
SM
36092009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3610
4c0354d7
SM
3611 Remove leftover table unibyte_to_multibyte_table.
3612 * character.c (unibyte_to_multibyte_table): Remove.
3613 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3614 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3615 * character.h (UNIBYTE_TO_CHAR): New macro.
3616 (MAKE_CHAR_MULTIBYTE): Use it.
3617 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3618 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3619 (message_dolog, set_message_1):
3620 * search.c (Freplace_match):
3621 * editfns.c (Fcompare_buffer_substrings):
3622 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3623 (concat):
3624 * insdel.c (copy_text, count_size_as_multibyte):
3625 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3626 * term.c (produce_glyphs):
3627 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3628 * regex.c (RE_CHAR_TO_MULTIBYTE):
3629 * cmds.c (internal_self_insert):
3630 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3631
fd5f21e6
SM
3632 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3633
4418646e
DN
36342009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3635
3636 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3637
35f5c1d2
JB
36382009-10-16 Juanma Barranquero <lekktu@gmail.com>
3639
3640 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3641
a0cd8f6b
AR
36422009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3643
3644 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3645 still needed under Tiger.
3646
3647 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3648
3649 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3650 __Apple__.
3651
3652 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3653
01a8d3fa
KH
36542009-10-15 Kenichi Handa <handa@m17n.org>
3655
3656 * print.c (print_object): Escape a symbol like "2E10" too.
3657
bf6c75c9 36582009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3659
3660 Cleanups and changes for 64-bit compile under Snow Leopard.
3661 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3662
3663 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3664
c5959062 3665 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3666 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3667 cast argument.
3668 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3669 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3670
3671 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3672
3673 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3674 where appropriate.
3675
3676 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3677 where appropriate.
6e4780c5
JB
3678 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3679 Use stringWithUTF8String.
bf6c75c9
AR
3680 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3681
6e4780c5
JB
3682 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3683 Add formal protocol mention to inheritance.
bf6c75c9
AR
3684 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3685
6e4780c5
JB
3686 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3687 Fix printf format.
bf6c75c9
AR
3688 (ns_query_color): Use CGFloat where appropriate.
3689 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3690 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3691 argument.
3692
3d87f118
AR
3693 * config.in (NS_HAVE_NSINTEGER): Drop.
3694
a95c8102
AR
3695 * dbusbind.c (dbus-method-return-internal)
3696 (dbus-method-error-internal): Use long format in printf, and cast
3697 argument.
3698
3699 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3700 in printf, and cast argument.
3701
6873acca 3702 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3703 cast argument.
3704
9ec6f100
GM
37052009-10-11 Glenn Morris <rgm@gnu.org>
3706
3707 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3708
5be883cd
JD
37092009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3710
3711 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3712 menu bar with a small width so it doesn't enlarge the frame.
3713
d7a39b51
JB
37142009-10-08 Juanma Barranquero <lekktu@gmail.com>
3715
3716 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3717
0c2b6f8e
GM
37182009-10-06 Glenn Morris <rgm@gnu.org>
3719
3720 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3721 SOME_MACHINE_LISP (this enters indirectly via DOC).
3722
e02131a2
EZ
37232009-10-05 Eli Zaretskii <eliz@gnu.org>
3724
3725 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3726
b4744254
EZ
37272009-10-04 Eli Zaretskii <eliz@gnu.org>
3728
3729 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3730 Doc fix.
3731
dbf64827
JB
37322009-10-03 Martin Rudalics <rudalics@gmx.at>
3733
3734 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3735
e9a0aef8
MA
37362009-10-02 Michael Albinus <michael.albinus@gmx.de>
3737
d528b1ce 3738 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3739 used anymore outside fileio.c.
3740
3741 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3742
64eb2b56
JB
37432009-10-01 Juanma Barranquero <lekktu@gmail.com>
3744
3745 * lisp.h (Qdelete_directory_internal):
3746 Declare, instead of Qdelete_directory.
3747
3748 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3749
9d28c33e
SM
37502009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3751
3752 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3753
9d8f3bd9
MA
37542009-10-01 Michael Albinus <michael.albinus@gmx.de>
3755
9d28c33e 3756 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3757 Fdelete_directory. It is not a command anymore. It has no file
3758 name handler.
3759
9694740b
SM
37602009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3761
3762 * xdisp.c (get_next_display_element): Use an enum in last change.
3763
748e162f
KH
37642009-09-28 Kenichi Handa <handa@m17n.org>
3765
9694740b 3766 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3767 unibyte_display_via_language_environment in handling
3768 Vnobreak_char_display.
3769
17efd58d
AR
37702009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3771
3772 * nsterm.h (ns_app_name): New extern variable.
3773
3774 * nsterm.m (ns_app_name): New variable.
3775 (ns_term_init): Set and use it.
3776 (ns_term_shutdown): Use it.
3777
3778 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3779 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3780
3781 * nsfns.m (ns_set_name_iconic, ns_set_name)
3782 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3783 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3784
9694740b
SM
3785 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3786 Remove double-casting in client_data comparison.
31c2d412 3787
3208cb35
YM
37882009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3789
3790 * keyboard.c (make_lispy_event): Remember last wheel direction.
3791 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3792
b7d552d6
GM
37932009-09-26 Glenn Morris <rgm@gnu.org>
3794
3795 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3796 internal.elc. Add term/pc-win.elc.
3797 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3798 term/x-win.elc.
3799 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3800 term/w32-win.elc.
3801 (NS_SUPPORT): New.
3802 (lisp): Add NS_SUPPORT.
3803 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3804
4ff670a8
DR
38052009-09-25 David Reitter <david.reitter@gmail.com>
3806
3807 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3808 on Mac OS X 10.6+ (bug#4513).
3809
feabfb6c
JB
38102009-09-24 Juanma Barranquero <lekktu@gmail.com>
3811
3812 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3813 some parts of Emacs code (like font selection) don't grok them.
3814 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3815
de59072a
AS
38162009-09-24 Andreas Schwab <schwab@redhat.com>
3817
3818 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3819
a489517b
JB
38202009-09-24 Juanma Barranquero <lekktu@gmail.com>
3821
3822 * dired.c (Fdirectory_files): Fix typo in docstring.
3823
0592970c
AR
38242009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3825
3826 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3827 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3828 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3829 under GNUstep.
3830 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3831
3832 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3833 glyph advancement.
3834
48e8a88b
AR
38352009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3836
3837 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3838 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3839
3840 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3841 deleted (bug #4492).
3842
e14f0a78
AR
3843 * nsfont.m (Vns_reg_to_script): New lisp variable.
3844 (syms_of_nsfont): Declare it.
3845 (ns_registry_to_script): New function.
3846 (ns_get_req_script): Call it.
3847 (ns_findfonts): Don't give up on non-unicode registry.
3848
3849 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3850
5b650faa
SM
38512009-09-20 Tom Tromey <tromey@redhat.com>
3852
3853 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3854 batch mode (bug#4228).
3855
a489517b 38562009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3857
3858 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3859 carefully. (Bug #4339)
0bae4e09 3860
fcfe06f3
CY
38612009-09-18 Chong Yidong <cyd@stupidchicken.com>
3862
d798ba87 3863 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3864
31642728
AR
38652009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3866
3867 * emacs.c (inhibit_x_resources): Update doc string for NS.
3868 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3869 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3870
3871 * nsterm.h (ns_no_defaults): Remove.
3872
3873 * nsterm.m (ns_no_defaults): Remove.
3874 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3875 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3876 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3877 don't update the NSWindow itself.
3878 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3879 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3880
3881 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3882 ns_use_qd_smoothing.
3883
3884 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3885 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3886 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3887 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3888
8686ac71
JB
38892009-09-17 Juanma Barranquero <lekktu@gmail.com>
3890
3891 * emacs.c (inhibit_x_resources): New variable.
3892 (main) [HAVE_NS]: Don't process --quick command line option.
3893 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3894
3895 * lisp.h (inhibit_x_resources): Declare it extern.
3896
3897 * w32reg.c (x_get_string_resource):
3898 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3899
e227ba05
EZ
39002009-09-17 Eli Zaretskii <eliz@gnu.org>
3901
362654a6
JB
3902 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3903 Add lisp/term/internal.elc.
e227ba05 3904
742d40e8
SM
39052009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3906
3907 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3908 (bug#4461).
3909
005bd5a2
DN
39102009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3911
3912 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3913
3914 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3915 (OBJECTS_MACHINE): Remove, unused.
3916
f9af9719
SM
39172009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 * frame.c (x_get_resource_string): Remove unused.
3920
0307c7d2
JD
39212009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3922
3923 * xterm.c (x_new_font): Call change_frame_size before calling
3924 x_set_window_size, in case frame size won't change.
3925
3926 * frame.c (x_set_font): Remove dead code.
3927
428b13d6
SM
39282009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3929
3930 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3931
5766c380
SM
39322009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3933
3934 * lread.c (Fload): Don't output a message after loading an obsolete
3935 package any more (done in Lisp now).
3936
2fd0161b
CY
39372009-09-12 Chong Yidong <cyd@stupidchicken.com>
3938
3939 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3940
bc5e75b6
SM
39412009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3942
3943 * keymap.c (Fwhere_is_internal): Use nconc2.
3944
c31c985e
AM
39452009-09-11 Alan Mackenzie <acm@muc.de>
3946
3947 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3948 batch mode.
3949
78012bd2
AS
39502009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3951
3952 * xdisp.c (display_mode_element): Detect cycles.
3953
9d889332
SM
39542009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3955
3956 * keymap.c (where_is_internal): Don't erroneously return nil right after
3957 filling the cache.
3958 (where_is_internal_1): Fix up typo.
3959
7ab5d780
GM
39602009-09-11 Glenn Morris <rgm@gnu.org>
3961
3962 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3963 share a common doc-string.
3964
5238a749
SM
39652009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3966
66d77eda
SM
3967 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3968 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3969
5238a749
SM
3970 * keymap.c (QCadvertised_binding): New constant.
3971 (syms_of_keymap): Initialize it.
3972 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3973 if applicable.
3974
19f48442
SM
39752009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3976
50d4ba39
SM
3977 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3978 (parse_menu_item): Streamline since bindings are recomputed all the
3979 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3980 more and don't support lmenu's menu-alias any more either.
3981
a88a5372
SM
3982 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3983 (where_is_internal): Strip it down to only traverse the keymaps.
3984 Move the cache handling from Fwhere_is_internal to here.
3985 (Fwhere_is_internal): Move the handling of remapping and the choice of
3986 the best binding from where_is_internal to here.
3987 Unify the cached/noncached paths, so remapping is also handled
3988 correctly when the cache is used, and so the cache can be used to
3989 speed up remap-handling when applicable.
3990 Give preference to non-remapped bindings.
3991 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3992 non-remapped bindings.
3993 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3994 command remapping.
3995
19f48442
SM
3996 * xdisp.c (display_mode_element): Move list length limit from 50 to
3997 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3998
599498c3 39992009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4000
4001 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4002
f9b7b5ac
SM
40032009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4004
a53af587
JB
4005 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4006 (Bug#4334)
4007
f9b7b5ac
SM
4008 * keymap.c (where_is_internal): Filter out shadowed remappings.
4009 Assume that where_is_internal returns unshadowed bindings to simplify
4010 the code and get rid of the gotos. Use ASIZE.
4011
04f4b72d
JD
40122009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4013
4da146f2
JD
4014 * xterm.c (x_focus_changed): If we get a focusout and pointer
4015 is invisible, make it visible.
4016
04f4b72d
JD
4017 * xterm.h: Remove condition for declaration of
4018 x_*_window_to_frame.
4019
7cef7ce3
SM
40202009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4021
4022 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4023 initial terminal as well.
4024
a54fa5b7
JD
40252009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4026
4027 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4028 x_menubar_window_to_frame.
a54fa5b7 4029
50426a04 4030 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4031 (XTmouse_position): Do not return valid positions
4032 for clicks in the menubar and the toolbar for Gtk+.
4033
4034 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4035 if the widget for the event has the same top level as a frame,
4036 return the frame.
4037 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4038 internal windows, bug #4122.
4039 (x_non_menubar_window_to_frame): Remove.
4040
5a021dd0
GM
40412009-09-02 Glenn Morris <rgm@gnu.org>
4042
4043 * buffer.c (default-major-mode): Move most of the doc from here...
4044 (major-mode): ... to here.
4045
548fe2f3
NR
40462009-08-30 Nick Roberts <nickrob@snap.net.nz>
4047
4048 * process.c (wait_reading_process_output): Keep the descriptor
4049 when pty is used by a non-child process, e.g., in I/O buffer of
4050 GDB this allows inferior to be restarted.
4051
e0840eef
EZ
40522009-08-29 Eli Zaretskii <eliz@gnu.org>
4053
4054 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4055 both branches into one.
4056
82e98df4
SM
40572009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4058
4059 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4060 (main): Use enable-multibyte-characters rather than
4061 default-enable-multibyte-characters. Output a warning message when
4062 running a unibyte session.
4063
890617cb
YM
40642009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4065
4066 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4067 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4068 (copy_data_segment): Also copy __program_vars section.
4069 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4070 (dump_it) [LC_DYLD_INFO]: Use it.
4071
4072 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4073
e7adeadc
EZ
40742009-08-28 Eli Zaretskii <eliz@gnu.org>
4075
4076 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4077 $(SRC)/buildobj.h.
4078 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4079 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4080 $(SRC)/buildobj.h.
4081 (clean): Add buildobj.h.
4082
3ed8bbdc
TZ
40832009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4084
4085 * print.c (print_object): Set escapeflag to 1 when printing
4086 hashtable keys and values.
4087
155a6764
SM
40882009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4089
4090 * lread.c (read_integer): Use doubles (and potentially return a float
4091 number) as we do in string-to-number.
4092 (read1): Use strtol to read integers, signal errors on strtol's
4093 overflow and use floats if strtol's output is too large for
4094 Elisp integers.
4095
877610de
EZ
40962009-08-27 Eli Zaretskii <eliz@gnu.org>
4097
4098 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4099 (make-buildobj-SH): Fix last change.
4100 (SRC): Move to before where it's first used.
4101
ef73e7be
KH
41022009-08-27 Kenichi Handa <handa@m17n.org>
4103
550c8289
KH
4104 * process.c (send_process): Use encode_coding_object instead of
4105 encode_coding_string to perform eol-conversion even if the string
4106 is unibyte.
4107
60afa08d
KH
4108 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4109 character.
4110
ef73e7be 4111 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4112 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4113
7b3a82d7
DN
41142009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4115
5654bf63
DN
4116 * callproc.c (Fcall_process): Remove always true #if.
4117
7b3a82d7
DN
4118 * lisp.h: Replace #if 0 code for checking with text pointing to
4119 the --enable-checking configure flag.
4120
4121 * emacs.c (main): Mention the --enable-profiling configure flag
4122 instead of using CFLAGS.
4123
878bde49
KR
41242009-08-26 Ken Raeburn <raeburn@raeburn.org>
4125
4126 * Makefile.in (buildobj.h): New target.
4127 (doc.o): Depend on it.
4128 (temacs${EXEEXT}): Don't generate buildobj.lst.
4129 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4130 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4131 ($(BLD)/doc.$(O)): Depend on it.
4132 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4133 provided by Eli Zaretskii.)
4134 ($(TEMACS)): Don't generate buildobj.lst.
4135 * doc.c: Include buildobj.h.
4136 (buildobj): New static variable.
4137 (Fsnarf_documentation): Use it, instead of opening and reading
4138 buildobj.lst.
4139
1574224c
MA
41402009-08-25 Michael Albinus <michael.albinus@gmx.de>
4141
4142 * dbusbind.c (Fdbus_call_method)
4143 (Fdbus_call_method_asynchronously): Use English numeric format for
4144 timeout values in doc string.
4145
d9da2f45
KH
41462009-08-25 Kenichi Handa <handa@m17n.org>
4147
ef73e7be
KH
4148 * alloc.c (mark_char_table): New function.
4149 (mark_object): Use mark_char_table for a char-table.
4150
d9da2f45
KH
4151 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4152 (CHAR_TABLE_REF): Use it.
4153
c8edcc01
KR
41542009-08-23 Ken Raeburn <raeburn@raeburn.org>
4155
4156 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4157 before invoking the newly build emacs to check for load-path
4158 shadowing.
4159
7763401b
GM
41602009-08-22 Glenn Morris <rgm@gnu.org>
4161
4162 * Makefile.in (bootstrap_exe): New variable.
4163 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4164 Use ${bootstrap_exe}.
4165
729eadda
EZ
41662009-08-22 Eli Zaretskii <eliz@gnu.org>
4167
4168 * coding.h (encode_coding_string): Don't encode unibyte strings.
4169 (Bug#4047)
4170
eb4c6ace
MA
41712009-08-22 Michael Albinus <michael.albinus@gmx.de>
4172
4173 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4174
4175 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4176 intended as hotfix only.
4177 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4178
36e34d1b
AR
41792009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4180
4181 * nsterm.m (ns_get_color): Update documentation properly for last
4182 change, and clean up loose ends in the code left by it. Fix
4183 longstanding bug with 16-bit hex parsing, and add support for
4184 yet another X11 format (rgb:r/g/b) for compatibility.
4185 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4186 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4187
f983eb8a
SM
41882009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4189
4190 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4191
3f56d3c6
MA
41922009-08-20 Michael Albinus <michael.albinus@gmx.de>
4193
4194 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4195 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4196 (xd_initialize, xd_pending_messages): Check, whether
4197 $DBUS_SESSION_BUS_ADDRESS is set.
4198
fb641d68
YM
41992009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4200
4201 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4202
4203 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4204
cf59a374
GM
42052009-08-20 Glenn Morris <rgm@gnu.org>
4206
4207 * emacs.c (system-type): Doc fix.
4208
1373f3be
SM
42092009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4210
4211 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4212 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4213
058ed861
MA
42142009-08-18 Michael Albinus <michael.albinus@gmx.de>
4215
1373f3be
SM
4216 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4217 New functions.
058ed861
MA
4218 (xd_initialize): Revert change from 2009-08-16.
4219
563a866e 42202009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4221
4222 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4223 font-group vector, return nil.
5fc05db0 4224
e42bdf01
CY
42252009-08-17 Chong Yidong <cyd@stupidchicken.com>
4226
4227 * process.c (status_notify): Don't perform redisplay.
4228 (Fdelete_process, list_processes_1, process_send_signal):
4229 Expliticly perform redisplay.
4230 (wait_reading_process_output): Always check process status, but
4231 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4232
4230ab74
KR
42332009-08-17 Ken Raeburn <raeburn@raeburn.org>
4234
1373f3be 4235 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4236 (XFLOAT_INIT): New macro for storing a float value.
4237 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4238 * fns.c (sxhash): Copy out the value of a float in order to
4239 examine its bytes.
4240 * dbusbind.c (xd_append_arg): Likewise.
4241
4230ab74
KR
4242 * emacs.c (main): Don't call syms_of_data twice.
4243
a0645cdd
MA
42442009-08-16 Michael Albinus <michael.albinus@gmx.de>
4245
4246 * dbusbind.c (xd_initialize): Add connection file descriptor to
4247 input_wait_mask, in order to let select() detect, whether a new
4248 message has been arrived.
ca4f31ea 4249 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4250
485db0ba
MA
42512009-08-15 Michael Albinus <michael.albinus@gmx.de>
4252
1373f3be
SM
4253 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4254 New functions.
485db0ba
MA
4255
4256 * lisp.h (xd_pending_messages): Declare.
4257
4258 * keyboard.c (readable_events): Call xd_pending_messages.
4259
b5b98ff4
CY
42602009-08-15 Chong Yidong <cyd@stupidchicken.com>
4261
1373f3be 4262 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4263
f8354c6e
CY
4264 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4265
b5b98ff4
CY
4266 * buffer.c (set_buffer_internal_1)
4267 (swap_out_buffer_local_variables): Check for unbound local
4268 variables (Bug#4138).
4269
8b9fc636
EZ
42702009-08-14 Eli Zaretskii <eliz@gnu.org>
4271
4272 * process.c (create_pty): Fix last change.
4273
ce959360
CY
42742009-08-13 Chong Yidong <cyd@stupidchicken.com>
4275
4276 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4277 (xbm_load_image): Caller changed.
64b807c9 4278 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4279
c7baf7e9
NR
42802009-08-13 Nick Roberts <nickrob@snap.net.nz>
4281
4282 * process.c (create_pty): New function.
4283 (Fstart_process): Use it to allow Emacs to just associate a pty
4284 with the buffer. See associated change in gdb-mi.el.
4285 (list_processes_1): Deal with no program name.
4286 (start_process_unwind): Use pid == -2 to mean no process.
4287
1ac9108a
SM
42882009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4289
4290 * cmds.c (nonundocount): New global variable.
4291 (keys_of_cmds): Initialize it.
4292 (Fself_insert_command): Use it to combine upto 20 sequential chars
4293 into a single undo entry, just like the Qself_insert_command code in
4294 keyboard.c does.
4295 Call frame_make_pointer_invisible, also like the Qself_insert_command
4296 code in keyboard.c does.
4297 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4298 than its own local replacement for it.
4299
e267324c
KR
43002009-08-10 Ken Raeburn <raeburn@raeburn.org>
4301
1ac9108a 4302 * fns.c (concat): Don't re-set string length to its current value.
77437343 4303
1ac9108a
SM
4304 * coding.h (decode_coding_string, encode_coding_string):
4305 Use SBYTES macro.
f0bed503 4306
1ac9108a 4307 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4308 (doprnt): Merge with doprnt1, discarding lispstrings code.
4309 * lisp.h (doprnt_lisp): Don't declare.
4310
416e006d
JL
43112009-08-07 Juri Linkov <juri@jurta.org>
4312
4313 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4314
6f7d5780
DN
43152009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4316
4317 * print.c (syms_of_print): Undo previous change.
4318
f19a0f5b
TZ
43192009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4320
4321 * lread.c (read1, syms_of_lread): Read hashtables back from the
4322 readable format.
4323
4324 * print.c (print_preprocess, print_object): Print hashtables fully
4325 and readably.
4326 (syms_of_print): Provide 'hashtable-print-readable.
4327
b9173dc2
AR
43282009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4329
4330 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4331 no family set.
4332 (nsfont_open): Handle case when entity has no family.
4333
1586503c
AR
43342009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4335
4336 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4337 element, not a list, for match case.
4338
087048cd
KH
43392009-07-28 Kenichi Handa <handa@m17n.org>
4340
4341 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4342 rigidly.
4343
4344 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4345 font_parse_xlfd. Check font properties more rigidly.
4346
780c2506
DN
43472009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4348
31fd7c5c
JB
4349 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4350 bsd-common.h.
780c2506 4351
a8c0cc18
KH
43522009-07-27 Kenichi Handa <handa@m17n.org>
4353
4354 * xfaces.c (face_with_height): Call font_clear_prop.
4355
4fbe2306
CY
43562009-07-26 Chong Yidong <cyd@stupidchicken.com>
4357
111d9af3
CY
4358 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4359
4360 * xterm.c (x_term_init): Use Qx.
4361
4fbe2306
CY
4362 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4363
1ac9108a 4364 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4365 (ns_get_color): Revert 2009-07-16 change.
4366
beb0b7f9
EZ
43672009-07-25 Eli Zaretskii <eliz@gnu.org>
4368
4369 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4370 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4371
2baf5e76
KR
43722009-07-25 Ken Raeburn <raeburn@raeburn.org>
4373
1ac9108a
SM
4374 * coding.h (decode_coding_string, encode_coding_string):
4375 Use SCHARS macro.
8890e5f5 4376
2baf5e76 4377 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4378 (load_depth): Delete.
2baf5e76
KR
4379 (Qload_in_progress): New variable.
4380 (load_unwind): Don't reference load_depth or load_in_progress.
4381 (Fload): Likewise; specbind Qload_in_progress instead.
4382 (init_lread): Don't initialize load_depth.
4383 (syms_of_lread): Initialize and protect Qload_in_progress.
4384
1395c6f5
AR
43852009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4386
4387 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4388
4e2f36cf
AR
43892009-07-23 Yavor Doganov <yavor@gnu.org>
4390
4391 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4392
5dd9a6f7
AR
43932009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4394
4395 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4396 Bugs 3792, 3720, 2402.
4397 (ns_lookup_indexed_color): Check for bad index.
4398 (ns_index_color): Init unused slot to 0.
4399 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4400 Bug 3714, possibly 3082.
5dd9a6f7 4401
c902b920
JR
44022009-07-22 Jason Rumney <jasonr@gnu.org>
4403
1ac9108a
SM
4404 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4405 Position IME window at cursor (Bug#2570).
c902b920
JR
4406 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4407 (globals_of_w32fns): Dynamically load functions required above.
4408
4409 * w32term.c (w32_draw_window_cursor): Send message to reposition
4410 any IME window.
4411
090101cf
CY
44122009-07-21 Chong Yidong <cyd@stupidchicken.com>
4413
4414 * fileio.c: Revert 2009-07-16 changes.
4415 (Vauto_save_include_big_deletions): New variable.
4416 (Fdo_auto_save): Disable auto-save only if
4417 auto-save-include-big-deletions is nil.
4418
e6583e3d
CY
44192009-07-21 Chong Yidong <cyd@stupidchicken.com>
4420
4421 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4422 the overflowed pixels into account (Bug#3879).
4423
ece435a5
KR
44242009-07-21 Ken Raeburn <raeburn@raeburn.org>
4425
4426 * lread.c (load_depth): New variable.
4427 (Fload, load_unwind, init_lread): Set it to the load recursion
4428 depth; set load_in_progress as a simple boolean based on the
4429 current load_depth. (Bug#3892)
4430
40b2d973
AR
44312009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4432
4433 * nsfont.m (ns_has_attribute): Remove.
4434 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4435
10be7e0d
JL
44362009-07-18 Juri Linkov <juri@jurta.org>
4437
4438 * process.c (Fset_process_query_on_exit_flag): Mention killing
4439 a buffer in docstring.
4440
fa055055
KH
44412009-07-17 Kenichi Handa <handa@m17n.org>
4442
4443 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4444
042f7b69
YM
44452009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4446
4447 * nsfns.m (Fns_set_alpha): Remove function.
4448 (syms_of_nsfns): Don't defsubr it.
4449
4450 * nsterm.m (ns_get_color): Remove incompatible color formats.
4451 (ns_color_to_lisp): Generate #rrggbb color format string.
4452
4be941e3
RS
44532009-07-16 Richard Stallman <rms@gnu.org>
4454
4455 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4456 (Fset_buffer_auto_saved): Handle save_length = -2.
4457
4e6b227d
CY
44582009-07-16 Chong Yidong <cyd@stupidchicken.com>
4459
4460 * xterm.c (Qx_gtk_map_stock): New var.
4461
4462 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4463 of calling intern each time.
4464
a1856973
YM
44652009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4466
4467 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4468 does tiling.
4469
4470 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4471
497e54d8
KH
44722009-07-14 Kenichi Handa <handa@m17n.org>
4473
72d36834
KH
4474 * font.c (font_vconcat_entity_vectors): New function.
4475 (struct font_sort_data): New member font_driver_preference.
4476 (font_compare): Check font_driver_preference.
4477 (font_sort_entities): The format of the first argument changed.
4478 (font_delete_unmatched): Likewise.
4479 (font_list_entities): The return type changed.
4480 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4481 (font_find_for_lface): Adjuste for the above changes.
4482 Don't suppress the checking of C even if the repertory supports it.
4483 (Flist_fonts): Adjust for the above changes.
72d36834 4484
1ac9108a
SM
4485 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4486 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4487 Reject a font who has adstyle property that is different from a
4488 langname derived from registry property.
1ac9108a 4489 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4490
b6046155
EZ
44912009-07-13 Eli Zaretskii <eliz@gnu.org>
4492
4493 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4494 local copy of dirfilename.
4495
fb6b6049
KH
44962009-07-13 Kenichi Handa <handa@m17n.org>
4497
e2402a5e
KH
4498 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4499 against max_char.
4500
fb6b6049
KH
4501 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4502 calling XSYMBOL (sym).
4503
65156807
EZ
45042009-07-11 Eli Zaretskii <eliz@gnu.org>
4505
1ac9108a
SM
4506 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4507 New function.
4508 (directory_files_internal) [WINDOWSNT]:
4509 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4510 the filesystem of the directory is fast or slow.
4511
4512 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4513 file name.
4514 (is_slow_fs): New function.
4515 (stat): Use it to determine whether to issue more system calls to
4516 get accurate file attributes, when w32-get-true-file-attributes is
4517 `local'.
4518
e0ab5fcf
JD
45192009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4520
4521 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4522 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4523 parameter font-parameter as default to the font dialog.
4524
784ceded
KH
45252009-07-10 Kenichi Handa <handa@m17n.org>
4526
4527 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4528
fb8edc0b
EZ
45292009-07-09 Eli Zaretskii <eliz@gnu.org>
4530
1ac9108a 4531 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4532
fb8edc0b
EZ
4533 * w32.c (stat): Treat UNC file names as residing on remote
4534 drives. (Bug#3542)
4535
635c75b1
KH
45362009-07-09 Kenichi Handa <handa@m17n.org>
4537
4538 * fontset.c (fontset_find_font): Fix previous change.
4539
c1d5ce94
MA
45402009-07-08 Michael Albinus <michael.albinus@gmx.de>
4541
4542 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4543 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4544 error flag.
4545
edb61b39
KH
45462009-07-08 Kenichi Handa <handa@m17n.org>
4547
374bf7e4
KH
4548 * fontset.c (fontset_find_font): Fix the logic of handling
4549 charset_matched.
4550 (font_for_char): Delete unused var.
4551 (generate_ascii_font_name): Delete it.
4552
edb61b39
KH
4553 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4554
4555 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4556 (encode_coding_sjis): Fix the code range check.
4557
0f3f018c
CY
45582009-07-07 Chong Yidong <cyd@stupidchicken.com>
4559
4560 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4561 (Fexpand_file_name): Copy string data properly (Bug#3772).
4562
fcaf6f3a
JD
45632009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4564
4565 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4566 first MapNotify.
4567
6809ca75
KH
45682009-07-07 Kenichi Handa <handa@m17n.org>
4569
4570 * character.h (unibyte_has_multibyte_table): Delete extern.
4571 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4572
4573 * charset.c (Fset_charset_priority): Update charset_unibyte.
4574 (syms_of_charset): Initialize charset_unibyte.
4575
4576 * character.c (unibyte_has_multibyte_table): Delete it.
4577 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4578 charset_unibyte.
4579 (multibyte_char_to_unibyte_safe): Likewise.
4580 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4581
1ac9108a 4582 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4583 (x_produce_glyphs): Likewise.
4584
4585 * .gdbinit (xcharset): Fix the treating $arg0.
4586
ad9e2d54
EZ
45872009-07-04 Eli Zaretskii <eliz@gnu.org>
4588
4589 Emulation of `getloadavg' on MS-Windows.
50426a04 4590 * w32.c: Include float.h.
ad9e2d54
EZ
4591 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4592 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4593 (get_native_system_info, get_system_times): New functions.
4594 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4595 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4596 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4597 g_b_init_get_system_times, and num_of_processors.
4598
0a3472c7
JR
45992009-07-03 Jason Rumney <jasonr@gnu.org>
4600
4601 * w32term.c (w32_initialize): Use standard types.
4602
80904120
EZ
46032009-07-03 Eli Zaretskii <eliz@gnu.org>
4604
4605 * dired.c (Ffile_attributes): Decode user and group names by the
4606 locale's encoding. (Bug#3443)
4607
6978862d
DN
46082009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4609
f8d23104
DN
4610 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4611 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4612
4613 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4614
4615 * term.c (init_tty): Remove spurious #ifdef.
4616
6978862d
DN
4617 * m/mips.h: Mention this file is also used for netbsd.
4618 * m/pmax.h: Remove file.
4619
e044e4fc
JD
46202009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4621
4622 * xterm.h (struct x_display_info): Add invisible_cursor.
4623 (struct x_output): Add current_cursor.
4624
4625 * xterm.c (XTtoggle_invisible_pointer): New function.
4626 (x_define_frame_cursor): Don't define cursor if invisible or the
4627 same as before. Set current_cursor.
4628 (x_create_terminal): Set toggle_invisible_pointer_hook.
4629
4630 * xfns.c (make_invisible_cursor): New function.
4631 (x_set_mouse_color): Call make_invisible_cursor.
4632 Set current_cursor.
4633 (x_window): Set current_cursor.
4634
4635 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4636
4637 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4638 inserting a character.
4639 (read_avail_input): Call frame_make_pointer_visible.
4640
4641 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4642 (frame_make_pointer_invisible, frame_make_pointer_visible):
4643 New functions.
e044e4fc
JD
4644 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4645
4646 * frame.h: Declare frame_make_pointer_invisible and
4647 frame_make_pointer_visible.
4648 (struct frame): Add pointer_invisible.
4649
574c8efa
JD
46502009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4651
7b507248
JD
4652 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4653 frame isn't visible.
4654 (xg_frame_resized): If width/height is -1, get size of window
4655 from X server.
4656
4657 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4658 for MapNotify.
4659
835bdaa7 4660 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4661 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4662 (flush_and_sync): Reintroduce.
574c8efa 4663
3f1c6666 46642009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4665
31fd7c5c 4666 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4667
4668 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4669 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4670
4671 * frame.h: Declare Qsticky.
4672
cad9ef74
JD
4673 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4674
4675 * nsfns.m (ns_frame_parm_handlers): Ditto.
4676
4677 * frame.c: Declare Qsticky.
4678 (frame_parms): Add sticky.
4679
4680 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4681
4682 * xterm.h: Declare x_set_sticky.
4683
4684 * xterm.c (x_set_sticky): New function.
4685
69b16610
JD
4686 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4687 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4688 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4689
4690 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4691
4692 * frame.c: Qmaximized is new.
4693 (x_set_frame_parameters): Do not handle fullscreen specially.
4694 Only set width and height if explicitly set.
4695 (x_set_fullscreen): Handle Qmaximized.
4696 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4697 (syms_of_frame): Initialize Qmaximized.
4698
1ac9108a
SM
4699 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4700 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4701
4702 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4703 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4704 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4705 set gravity to NorthWestGravity when USE_GTK.
4706 (set_wm_state): New function.
31fd7c5c 4707 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4708 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4709 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4710 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4711 to x_real_positions and x_fullscreen_adjust.
4712
4713 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4714 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4715 flush_and_sync.
4716 (xg_height_changed): New function.
4717 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4718 and gtk_window_set_policy. Set frame gravity after parsing the
4719 geometry string.
3f1c6666
JD
4720 (xg_update_frame_menubar, free_frame_menubar)
4721 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4722 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4723 Remove calls to xg_frame_set_char_size.
4724
fd503d99
KH
47252009-07-01 Kenichi Handa <handa@m17n.org>
4726
4727 * keyboard.c (decode_keyboard_code): New function.
4728 (tty_read_avail_input): Decode the input bytes if necessary.
4729
1ac9108a
SM
4730 * coding.c (setup_coding_system):
4731 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4732 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4733 use Qno_conversion.
4734
24ed93fb
YM
47352009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4736
4737 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4738
99061dfc
CY
47392009-06-30 Chong Yidong <cyd@stupidchicken.com>
4740
1ac9108a 4741 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4742
ff90fbde
JR
47432009-06-30 Jason Rumney <jasonr@gnu.org>
4744
4745 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4746 is already loaded.
4747 Set user model ID if supported (bug#1849).
4748
5f445726
JM
47492009-06-29 Jim Meyering <meyering@redhat.com>
4750
4751 Remove useless if-before-xfree test.
4752 * nsfont.m (nsfont_close): Remove useless test.
4753 * term.c (delete_tty): Likewise.
4754 * w32.c (system_process_attributes): Likewise.
4755 * w32font.c (w32font_close): Likewise.
4756 * xfaces.c (x_free_gc): Likewise.
4757 * xselect.c (buffer): Likewise.
4758
b9607587
AS
47592009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4760
4761 * process.c (send_process): Keep decoded string in a local
4762 variable and protect it from GC. (Bug#3521)
4763
89ba96f4
EZ
47642009-06-28 Eli Zaretskii <eliz@gnu.org>
4765
4766 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4767 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4768
098a1589
CY
47692009-06-28 Chong Yidong <cyd@stupidchicken.com>
4770
485422be
CY
4771 * xdisp.c (start_display, handle_face_prop)
4772 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4773 (redisplay_window, try_window_id, produce_image_glyph):
4774 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4775
098a1589
CY
4776 * xterm.c (x_update_window_begin, x_new_focus_frame)
4777 (x_scroll_bar_handle_click, handle_one_xevent)
4778 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4779 (x_make_frame_visible, x_make_frame_invisible)
4780 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4781 code chunks that are now obsolete.
4782
78c38319
MA
47832009-06-28 Michael Albinus <michael.albinus@gmx.de>
4784
4785 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4786 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4787 for hours, when optimzation is enabled.
4788 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4789 (xd_read_message): Make them static.
4790
4189ed40
CY
47912009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4792
4793 * term.c (turn_on_face): Allow simultaneously bold and dim
4794 terminal faces (Bug#3530).
4795
cd9b5e16
CY
47962009-06-27 Chong Yidong <cyd@stupidchicken.com>
4797
4e23bedb
CY
4798 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4799
cd9b5e16
CY
4800 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4801 truncation glyphs (Bug#3686).
4802
07cc3c35
GM
48032009-06-27 Glenn Morris <rgm@gnu.org>
4804
4805 * m/pmax.h: Restore file, with only netbsd portions.
4806
31fd7c5c 48072009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4808
cd9b5e16 4809 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4810
42d4a64f
KH
48112009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4812
4813 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4814 the arg FORCE_SYMBOL.
4815
930fe55b 48162009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4817
4818 * fontset.c (fontset_find_font): When a usable rfont_def is found
4819 in a fallback font-group, make it the first element of the group.
4820
57ebc3fd
CY
48212009-06-24 Chong Yidong <cyd@stupidchicken.com>
4822
4823 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4824
f084f942
KH
48252009-06-24 Kenichi Handa <handa@m17n.org>
4826
4827 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4828 set for C.
4829 (fontset_font): Record the availability of a font for C both in
4830 the realized fontsets of the current one and the default one.
4831
2f686c87
DN
48322009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4833
4834 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4835 conditional, it is always defined on AIX.
4836
666e158e
MB
48372009-06-23 Miles Bader <miles@gnu.org>
4838
4839 * window.c (Vrecenter_redisplay): New variable.
4840 (syms_of_window): Initialize it.
4841 (Qtty): New extern declaration.
4842 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4843
c6da7cd2
JM
48442009-06-23 Jim Meyering <meyering@redhat.com>
4845
1ac9108a
SM
4846 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4847 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4848 pointer dereferences are guaranteed to be valid.
c6da7cd2 4849
678dca3d
KH
48502009-06-23 Kenichi Handa <handa@m17n.org>
4851
74d75424
KH
4852 * emacs.c (main): Call init_font ().
4853
4854 * font.h (Vfont_log): Extern it.
4855 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4856
4857 * font.c (font_sort_entities, font_list_entities)
4858 (font_matching_entity, font_open_entity)
4859 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4860 (Vfont_log): Delete static.
4861 (font_log_env_checked): Delete this variable.
4862 (font_add_log): Don't check font_log_env_checked.
4863 (font_deferred_log): Check Vfont_log.
4864 (init_font): New function.
4865
678dca3d
KH
4866 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4867
4868 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4869
4870 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4871
4872 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4873
4874 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4875 (face_for_char): Don't call font_deferred_log here.
4876 (font_for_char): Likewise.
4877
8a668709
CY
48782009-06-22 Chong Yidong <cyd@stupidchicken.com>
4879
9a01ee33
CY
4880 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4881 rather than its background_width for drawing the overline and
4882 underline (Bug#489).
4883
4884 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4885 rather than its background_width for drawing the overline and
4886 underline (Bug#489).
ec7c9926
CY
4887 (xg_default_icon_file): New variable.
4888 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4889 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4890
8a668709
CY
4891 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4892 (load_overlay_strings): Remove externs.
4893 (fast_find_position): Function deleted.
4894 (mouse_face_from_buffer_pos): New function, based on
4895 fast_find_position. Correctly handle before-strings,
4896 display-strings, and after-strings (Bug#1220).
4897 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4898
4d4c02d8
CY
48992009-06-21 Chong Yidong <cyd@stupidchicken.com>
4900
1ac9108a 4901 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4902 (move_it_in_display_line_to, move_it_in_display_line_to)
4903 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4904
70243478
CY
49052009-06-21 Chong Yidong <cyd@stupidchicken.com>
4906
4907 * Branch for 23.1.
4908
13087e59
JR
49092009-06-21 Jason Rumney <jasonr@gnu.org>
4910
4911 * w32term.c (keyboard_codepage): New static variable.
4912 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4913 (w32_read_socket) [WM_CHAR]: Use it to decode character
4914 input (bug#3237).
4915 (w32_initialize): Initialize it.
4916 (codepage_for_locale): New function.
4917
4735b74e
KR
49182009-06-20 Ken Raeburn <raeburn@raeburn.org>
4919
4920 * process.c (status_message): Pass Faset index argument as a lisp
4921 object, so as to work with USE_LISP_UNION_TYPE.
4922
0e727afa
YM
49232009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4924
4925 * coding.c (Ffind_coding_systems_region_internal):
4926 Cache checked characters.
4927
cf299835
KH
49282009-06-18 Kenichi Handa <handa@m17n.org>
4929
1ac9108a 4930 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4931
90f20d94
AS
49322009-06-18 Andreas Schwab <aschwab@redhat.com>
4933
4934 * xdisp.c (redisplay_internal): Check that the frame is still
4935 live after redisplay of its windows.
4936 (redisplay_windows): Check that the window is still live.
4937
7f1faf1c
KH
49382009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4939
4940 * coding.c (detect_coding_utf_16): Fix previous change.
4941
cc13543e
KH
49422009-06-16 Kenichi Handa <handa@m17n.org>
4943
4944 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4945 UTF-16 by checking the dispersion of Eth and Oth bytes.
4946
977b85f4
AS
49472009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4948
4949 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4950
66bd43d1
KH
49512009-06-15 Kenichi Handa <handa@m17n.org>
4952
4953 * process.c (status_message): Fix previous change. Be sure to
4954 decode a localized string.
4955
cb5ca9c5
YM
49562009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4957
4958 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4959 add comment explaining why.
4960
ec7709ba 49612009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4962
ec7709ba 4963 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4964
4b7f335c
AR
49652009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4966
4967 * nsfont.m (ns_attribute_value): Remove.
4968 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4969 (ns_has_attribute): Shrink the normal range.
4970 (ns_findfonts): Don't worry about requested spec in determining
4971 need for synthItal.
e41820ee 4972 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4973
73b26103
SZ
49742009-06-14 Seiji Zenitani <zenitani@mac.com>
4975
4976 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4977
5753e4da
KH
49782009-06-11 Kenichi Handa <handa@m17n.org>
4979
4980 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4981 overhang for the static composition case.
4982
3561b671
KH
49832009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4984
5753e4da
KH
4985 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4986 overhang for the automatic composition case.
4987
3561b671
KH
4988 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4989 composition case.
4990
852bbd41
CY
49912009-06-10 Chong Yidong <cyd@stupidchicken.com>
4992
4993 * xdisp.c (get_next_display_element): When handling wrap-prefix
4994 and line-prefix, treat \n as a control character (bug#3502).
4995
9903d1e6
KH
49962009-06-10 Kenichi Handa <handa@m17n.org>
4997
4998 * font.c (font_parse_family_registry): Fix for one-char foundry.
4999 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5000
0bcbaaaa
CY
50012009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5002
5003 * process.c (status_message): Fix handling of multibyte signal
5004 string (Bug#3499).
5005
40aa3f13
JM
50062009-06-09 Jim Meyering <meyering@redhat.com>
5007
1f80c7e2
CY
5008 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5009 color name is missing.
40aa3f13 5010
72d51285
KH
50112009-06-09 Kenichi Handa <handa@m17n.org>
5012
5013 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5014 FROM-CODE and TO-CODE are codepoints of CHARSET.
5015
c1d04d84
AR
50162009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5017
5018 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5019
50202009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5021
5022 Changes to support :script/:lang/:otf in NS font driver.
5023 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5024 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5025 indicate not part of font driver interface, and change callers.
5026 (ns_get_family): Remove pointless null check.
5027 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5028 ns_spec_to_descriptor, ns_descriptor_to_entity.
5029 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5030 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5031 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5032 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5033 (ns_get_req_script, ns_accumulate_script_ranges)
5034 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5035 New functions.
5036 (nsfont_list, nsfont_match): Use ns_findfonts.
5037 (nsfont_open): Use font descriptor instead of traits.
5038 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5039 (dump_glyphstring): Rename to ns_dump_glyphstring.
5040
c7eb9816
AR
5041 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5042
c1d04d84
AR
5043 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5044
5045 * fontset.c (fontset_from_font): Remove NS-specific code.
5046
ec7709ba 50472009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5048
5049 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5050 nonactive windows.
5051
31fd7c5c 50522009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5053
1ac9108a 5054 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5055
68852c13 50562009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5057
5058 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5059
6756cd1d
CY
50602009-06-07 Chong Yidong <cyd@stupidchicken.com>
5061
5062 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5063 account for the overflowing of newlines into the last glyph on the
5064 display line (Bug#3482).
5065
28bf482a
DR
50662009-06-05 David Reitter <david.reitter@gmail.com>
5067
ec7709ba
JB
5068 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5069 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5070 Fns_selection_exists_p, Fns_selection_owner_p.
5071
fdb55376
JR
50722009-06-03 Jason Rumney <jasonr@gnu.org>
5073
5074 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5075 available. (Bug#3379)
5076
05129fbe
KH
50772009-05-29 Kenichi Handa <handa@m17n.org>
5078
1ac9108a
SM
5079 * coding.c (get_translation_table):
5080 Check Venable_character_translation.
05129fbe 5081
ec7709ba 50822009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5083
ec7709ba
JB
5084 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5085 (x_make_frame_visible): Move frame to front rather than calling
15891144 5086 ns_raise_frame().
ec7709ba 5087 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5088 isn't key window.
ec7709ba 5089 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5090 drawRect may be called by NSView even if the frame is hidden.
5091
ec7709ba
JB
5092 * nsfns.m (Fx_create_frame): Follow other ports in
5093 determining visibility; default to t. Ensure async_visible is set.
15891144 5094
21f73755
EZ
50952009-05-23 Eli Zaretskii <eliz@gnu.org>
5096
5097 * dired.c (Ffile_attributes): Doc fix.
5098
34001e41
CY
50992009-05-22 Chong Yidong <cyd@stupidchicken.com>
5100
5101 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5102
46306a17
SM
51032009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5104
5105 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5106 and xfont_scratch_props.
5107 (syms_of_xfont): Do it here instead.
5108 (xfont_find_ccl_program): Delete, unused.
5109 (xfont_open): Delete unused var `i'.
5110
ef6e0694
KH
51112009-05-21 Kenichi Handa <handa@m17n.org>
5112
5113 * fontset.c (Qlatin): Don't make it static.
5114
46306a17
SM
5115 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5116 New functions.
ef6e0694
KH
5117 (xfont_scripts_cache, xfont_scratch_props): New variables.
5118 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5119 (xfont_list_pattern): Argument changed. Callers changed.
5120 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5121 (xfont_list): Don't reject a font spec with :script property.
5122 (xfont_has_char): Fix setting of encoding.
5123 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5124 xfont_scratch_props.
5125
51262009-05-19 Kenichi Handa <handa@m17n.org>
5127
46306a17 5128 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5129 Callers changed.
5130
51312009-05-18 Kenichi Handa <handa@m17n.org>
5132
5133 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5134
ac71ced7
SM
51352009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5136
5137 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5138 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5139
1c6d1051
YM
51402009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5141
5142 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5143 (x_delete_terminal): Dissociate resource database from display and
5144 then call XrmDestroyDatabase before closing display.
5145
9b9b779c
AR
51462009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5147
5148 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5149 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5150 whether selected frame is viable before raising it (based on patch
5151 by David Reitter), and improve commentary.
5152 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5153
cccd42d5
KH
51542009-05-15 Kenichi Handa <handa@m17n.org>
5155
5156 * font.c (Ffont_spec): Check arguments.
5157
337fbd17
CY
51582009-05-14 Chong Yidong <cyd@stupidchicken.com>
5159
5160 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5161 weight when testing attributes (Bug#3282).
5162
47a6002f
JD
51632009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5164
5165 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5166 what we expect to get in the next ConfigureNotify event.
5167
9cb363db
YM
5168 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5169 before Xft one (Bug#1696).
5170
b9126609
CY
51712009-05-07 David Reitter <david.reitter@gmail.com>
5172
5173 * nsfns.m (Fx_display_planes): Compute bitplanes using
5174 NSBitsPerPixelFromDepth (Bug#3207).
5175
27a69fd9
CY
51762009-05-10 Chong Yidong <cyd@stupidchicken.com>
5177
5178 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5179
00f37552
TTN
51802009-05-10 Ulrich Mueller <ulm@gentoo.org>
5181
5182 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5183
2d82a920
DR
51842009-05-07 David Reitter <david.reitter@gmail.com>
5185
ec7709ba
JB
5186 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5187 Respect mouse face background.
2d82a920 5188
46b0d52d
DR
51892009-05-07 David Reitter <david.reitter@gmail.com>
5190
ec7709ba
JB
5191 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5192 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5193 in ns_update_begin and ns_update_end.
5194
ce1b23bb
SM
51952009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5196
5996e1b7
SM
5197 * nsfns.m (ns_get_screen): Rewrite.
5198 Don't presume selected-frame is of type `ns'.
5199
ba98e3a0
SM
5200 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5201 all drivers.
5202
ce1b23bb
SM
5203 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5204
bcda200f
YM
52052009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5206
5207 * keyboard.h (add_user_signal): Fix typo in extern.
5208
5209 * lisp.h (add_user_signal): Remove extern.
5210
5211 * unexelf.c (unexec): Consider a section to precede the .bss section
5212 if its addresses overlap that of .bss.
5213 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5214 instead of dumping process.
5215
864660a2
SM
52162009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5217
5218 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5219
50da4e56
SM
52202009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5221
5222 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5223
51520a1a
DN
52242009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5225
5226 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5227 any statements.
5228
409ea3a1
AS
52292009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5230
59c4c60f
AS
5231 * process.c (read_process_output): Make sure the current buffer is
5232 always restored.
5233
409ea3a1
AS
5234 * coding.c (record_conversion_result): Don't modify
5235 Vlast_code_conversion_error for successful result.
5236 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5237
56f00ed2
KH
52382009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5239
5240 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5241 (load_charset_map): Remove unnecessary code.
56f00ed2 5242
4491c9d2
DR
52432009-04-30 David Reitter <david.reitter@gmail.com>
5244
35f5b128 5245 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5246 through f24.
5247
6970f632
CY
52482009-04-30 Chong Yidong <cyd@stupidchicken.com>
5249
5250 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5251
5252 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5253 face_at_buffer_position.
5254 (face_before_or_after_it_pos, get_next_display_element)
5255 (note_mouse_highlight): Update face_at_buffer_position call.
5256
5257 * term.c (term_mouse_highlight):
5258 * msdos.c (IT_note_mouse_highlight):
5259 * fontset.c (Finternal_char_font):
35f5b128 5260 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5261
5262 * dispextern.h (face_at_buffer_position): Update prototype.
5263
0c616f63
KH
52642009-04-30 Kenichi Handa <handa@m17n.org>
5265
35f5b128 5266 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5267
ad3aaf33
AS
52682009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5269
5270 * callproc.c (Fcall_process): Fix GC protection. Make sure
5271 current buffer is always restored.
5272
c3c963a0
YM
52732009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5274
5275 * atimer.c (init_atimer): Also clear stopped_atimers.
5276
5277 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5278
7e3386cb
YM
5279 * process.c (create_process): Clean up merger residues of
5280 2008-07-17 change.
5281
91f68422
CY
52822009-04-29 Ulrich Mueller <ulm@gentoo.org>
5283
5284 * lread.c (Vread_circle): New variable.
5285 (read1): Disable recursive read if Vread_circle is nil.
5286
24b34550
KH
52872009-04-29 Kenichi Handa <handa@m17n.org>
5288
5289 * fontset.h (set_default_ascii_font): Delete extern.
5290
5291 * fontset.c (set_default_ascii_font): Delete this unused function.
5292
5293 * frame.c (x_set_font): When ARG is a font-object, check if the
5294 font-object matches with the ASCII font-spec of the frame's
9c358bda 5295 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5296
77bf07e1
AS
52972009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5298
5299 * fns.c (Flocale_info): Protect vector from GC during decoding.
5300
5301 * process.c (Fstart_process): Protect argv strings from GC during
5302 encoding.
5303
2c55aacf
AS
53042009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5305
5306 * sysdep.c: Include <ctype.h>.
5307
b892d3c9
DR
53082009-04-27 David Reitter <david.reitter@gmail.com>
5309
35f5b128 5310 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5311 Remove commented-out code.
5312
9d0644c4
JB
53132009-04-26 Johan Bockgård <bojohan@gnu.org>
5314
5315 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5316
b7053016
JR
53172009-04-25 Jason Rumney <jasonr@gnu.org>
5318
5319 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5320
4e8231f3
YM
53212009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5322
5323 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5324 Swap bytes in short integer if fringe bitmap width > 8.
5325
493dcf2c
KH
53262009-04-23 Kenichi Handa <handa@m17n.org>
5327
5328 * xfaces.c (Fx_list_fonts): If a font size is specified in
5329 PATTERN, set it in returned scalable fonts.
5330
401e9e57
CY
53312009-04-22 Chong Yidong <cyd@stupidchicken.com>
5332
708e05dc
CY
5333 * keyboard.c (Fset_input_meta_mode): Doc fix.
5334
5335 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5336
1ac9108a 5337 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5338
5339 * coding.c (Fterminal_coding_system): Doc fix.
5340
5341 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5342 (Fx_display_pixel_height, Fx_display_planes)
5343 (Fx_display_color_cells, Fx_server_max_request_size)
5344 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5345 (Fx_display_mm_height, Fx_display_mm_width)
5346 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5347 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5348 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5349 (check_x_display_info): Handle terminal objects instead of
5350 terminal ids.
5351
401e9e57
CY
5352 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5353 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5354 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5355 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5356
df80c7f0
KH
53572009-04-21 Kenichi Handa <handa@m17n.org>
5358
5a8f12af 5359 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5360 (font_score): Check AVGWIDTH too.
908567ef 5361
df80c7f0
KH
5362 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5363 worst case.
1ac9108a
SM
5364 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5365 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5366
705af33f
JR
53672009-04-19 Jason Rumney <jasonr@gnu.org>
5368
5369 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5370 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5371
5372 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5373 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5374 get_phys_cursor_geometry.
5375
b71ac3dd 5376 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5377 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5378 using get_phys_cursor_geometry.
5379
5380 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5381 correctly calculated.
5382
dc2933eb
JD
53832009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5384
1ac9108a
SM
5385 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5386 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5387 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5388 is deprecated.
5389
973e7849
AS
53902009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5391
5392 * font.c (font_put_frame_data): Use xfree instead of free.
5393
314d66f4
JB
53942009-04-17 Juanma Barranquero <lekktu@gmail.com>
5395
5396 * w32font.c (Qja, Qko): Remove declarations.
5397 (syms_of_w32font): Don't DEFSYM them.
5398
cf702558
CY
53992009-04-17 Chong Yidong <cyd@stupidchicken.com>
5400
5401 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5402
5403 * font.h (Qja, Qko): Extern them.
5404
5405 * ftfont.c (Qja, Qko): Remove declarations.
5406
5407 * xfont.c (Qja, Qko): Remove declarations.
5408
b50504f5
KH
54092009-04-17 Kenichi Handa <handa@m17n.org>
5410
bde25748
KH
5411 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5412 string from a vector to handle Latin-1 characters correctly.
5413
b50504f5
KH
5414 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5415 entity even if the cache hits.
5416
f4646fff
AS
54172009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5418
5419 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5420 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5421
e7deaab0
AS
5422 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5423 * lisp.h: Adjust prototypes.
5424
0a0e7d49
CY
54252009-04-16 Chong Yidong <cyd@stupidchicken.com>
5426
5427 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5428 change (Bug#3003).
5429
3c908a57
KH
54302009-04-16 Kenichi Handa <handa@m17n.org>
5431
1ac9108a 5432 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5433
5434 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5435 adstyle.
5436
5437 * ftfont.c (Qja, Qko): Don't make them static.
5438 (enum ftfont_cache_for): New enum.
5439 (fc_charset_table): Undo the previous change.
5440 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5441 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5442 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5443 non-scarable font, try to get AVERAGE_WIDTH.
5444 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5445 Change ft_face_cache from a list of a hash-table. Don't check
5446 `ja' and `ko' adstyle here.
5447 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5448 FTFONT_CACHE_FOR_CHARET.
5449 (ftfont_get_charset): Undo the previous change.
1ac9108a 5450 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5451 (ftfont_close): Likewise.
5452 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5453
5454 * font.c (font_sort_entites): Change the meaning of the arg
5455 BEST-ONLY. Don't optimize for VEC of lenght 1.
5456 (font_select_entity): Just return the value of font_sort_entites.
5457
5458 * xfaces.c (merge_face_vectors): Reflect font properties in
5459 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5460 font_clear_prop if a face attribute doesn't change.
5461
3c908a57
KH
5462 * charset.h (charset_ksc5601): Extern it.
5463
5464 * charset.c (charset_ksc5601): New variable.
5465 (Fdefine_charset_internal): Set charset_ksc5601.
5466 (init_charset_once): Initialize charset_ksc5601 to -1.
5467
d65859c3
DN
54682009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5469
5470 * fileio.c (history_delete_duplicates): Remove unused declaration.
5471
5472 * callint.c (history_delete_duplicates): New declaration.
5473 (Fcall_interactively): Remove command history duplicates when
5474 history_delete_duplicates is true.
5475
3ba010e5
EZ
54762009-04-14 Eli Zaretskii <eliz@gnu.org>
5477
5478 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5479
06f19b91
KH
54802009-04-14 Kenichi Handa <handa@m17n.org>
5481
5482 * font.c (Ffont_info): Fix docstring. Fix the second element of
5483 the returned value (bug#2949).
5484
2cce8bfc
CY
54852009-04-14 Chong Yidong <cyd@stupidchicken.com>
5486
5487 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5488
d156542d
KH
54892009-04-14 Kenichi Handa <handa@m17n.org>
5490
5491 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5492 encoding charset is ascii_compatible.
5493
5494 * charset.c (Fdefine_charset_internal): Make charset
5495 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5496 code_offset is 0, and covers all ASCII characters.
5497
86fa089e
SM
54982009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5499
5500 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5501 (ns_string_to_pasteboard_internal):
5502 * nsmenu.m (process_dialog):
5503 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5504 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5505 * lisp.h (Fx_load_color_file): Declare.
5506
a8a3728b
KH
55072009-04-13 Kenichi Handa <handa@m17n.org>
5508
1ac9108a 5509 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5510 (font_select_entity): Suppress the code to optimize for the same
5511 kind of fonts.
5512 (font_load_for_lface): Get a font that supports at least ASCII
5513 characters.
5514
5515 * ftfont.c (Qja, Qko): New variables.
5516 (fc_charset_table): Delete uniquifier data for iso8859-1.
5517 (ftfont_get_latin1_charset): New function.
5518 (get_adstyle_property): New function.
5519 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5520 bitmap fonts.
5521 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5522 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5523 `ko' or `ja'.
5524 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5525 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5526 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5527 property.
5528 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5529 (syms_of_ftfont): DEFSYM Qja and Qko.
5530
483670b5
KH
55312009-04-09 Kenichi Handa <handa@m17n.org>
5532
12b55765
KH
5533 * charset.c (map_charset_chars): For a charset of `superset'
5534 method, fix calculation of code range.
5535
483670b5
KH
5536 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5537 from the list of extra properties.
5538 (font_clear_prop): Be sure to delete `:name' font property.
5539
57d3b93b
KH
55402009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5541
b4b2c2ca
YM
5542 * dispnew.c (redraw_overlapping_rows): Fix detection of
5543 overlapping for topmost and bottommost rows.
5544
1ac9108a 5545 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5546
472c3609
JR
55472009-04-06 Jason Rumney <jasonr@gnu.org>
5548
5549 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5550
ab193662
KH
55512009-04-06 Kenichi Handa <handa@m17n.org>
5552
5553 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5554
5555 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5556
0c26f026
KH
55572009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5558
5559 * ftfont.c (ftfont_open): Fix checking of the return value of
5560 FT_Load_Char. Fix setting font->underline_thickness.
5561
e173bbce
CY
55622009-04-04 Chong Yidong <cyd@stupidchicken.com>
5563
5564 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5565 (Fterminal_parameters, Fterminal_parameter)
5566 (Fset_terminal_parameter): In doc string, refer to terminal
5567 objects rather than terminal ids.
5568
693a2698
EZ
55692009-04-04 Eli Zaretskii <eliz@gnu.org>
5570
5571 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5572 ret_lim_data. (Bug#2867)
5573
d5221487
CY
55742009-04-03 Chong Yidong <cyd@stupidchicken.com>
5575
5576 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5577 so they don't get wider than the window, matching 2006-01-23
5578 change to the partner function in xdisp.c (Bug#2800).
5579
223509a3
KH
55802009-04-03 Kenichi Handa <handa@m17n.org>
5581
5582 * print.c (print_object): Make each lowest sub_char_table start a
5583 new line (Bug#2866).
5584
74fcd0b1
KH
55852009-04-02 Kenichi Handa <handa@m17n.org>
5586
5587 * fontset.c (fontset_font): Record no-font when a fontset
5588 explicitly tells not to try another font-specs.
5589
c542407d
SM
55902009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5591
5592 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5593
e3869731
KH
55942009-03-30 Kenichi Handa <handa@m17n.org>
5595
d8d2f142
KH
5596 * fontset.c (fontset_from_font): Specify only registry in a
5597 font-spec for all characters supported by that registry.
5598
e3869731
KH
5599 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5600 even if HAVE_M17N_FLT is not defined.
5601
5da5f805
CY
56022009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5603
5604 * ftfont.c: Conditionalize prototyping and use of
5605 ftfont_variation_glyphs.
5606
ab226c50
SM
56072009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5608
9628fed7
SM
5609 * frame.c (delete_frame): Work around compiler bug.
5610
5611 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5612 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5613 Some more EMACS_INT.
5614 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5615
5616 * xdisp.c (dump_glyph): Fix typo.
5617
ae19ba7c
SM
5618 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5619 (adjust_markers_gap_motion, adjust_markers_for_delete)
5620 (adjust_markers_for_insert, adjust_point)
5621 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5622 (make_gap, copy_text, count_size_as_multibyte, insert)
5623 (insert_and_inherit, insert_before_markers)
5624 (insert_before_markers_and_inherit, insert_1)
5625 (count_combining_before, count_combining_after, insert_1_both)
5626 (insert_from_string, insert_from_string_before_markers)
5627 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5628 (insert_from_buffer_1, adjust_after_replace)
5629 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5630 (replace_range_2, del_range, del_range_1, del_range_byte)
5631 (del_range_both, del_range_2, modify_region)
5632 (prepare_to_modify_buffer, signal_before_change)
5633 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5634 for buffer positions and sizes.
5635 * lisp.h: Adjust prototypes accordingly.
5636
5637 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5638 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5639 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5640
ab226c50
SM
5641 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5642
46dfb8fb
JD
56432009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5644
5645 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5646 lines and columns so we keep the same pixel height and width.
5647
5648 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5649 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5650 (x_handle_net_wm_state): New function to update frame parameter
5651 fullscreen.
5652 (x_term_init): Initialize atoms for _NET_WM_STATE.
5653
5654 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5655
d347e494
SM
56562009-03-27 Kevin Ryde <user42@zip.com.au>
5657
5658 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5659 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5660 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5661 (Fgpm_mouse_stop): Pass that new parameter.
5662 * termhooks.h (close_gpm): Adjust prototype.
5663
84db11d6
SM
56642009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5665
c95a5008
SM
5666 * lisp.h (Fx_focus_frame): Declare.
5667
84db11d6
SM
5668 * callint.c (Fcall_interactively): For '^' just delegate the work to
5669 handle-shift-selection.
5670 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5671
0a1958d6
CY
56722009-03-24 Chong Yidong <cyd@stupidchicken.com>
5673
0bfdff23
CY
5674 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5675
0a1958d6
CY
5676 * data.c (Qinteractive_form): New variable.
5677 (Finteractive_form): Use it.
5678
5679 * eval.c (Fcommandp): Use Qinteractive_form.
5680
58aec0d6
JR
56812009-03-24 Jason Rumney <jasonr@gnu.org>
5682
5683 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5684 Calculate total size precisely. Decode environment variables
5685 before substituting. (Bug#38)
5686
553dd618
KH
56872009-03-24 Kenichi Handa <handa@m17n.org>
5688
5689 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5690 encoding (Bug#2722).
553dd618 5691
c39ea606
JD
56922009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5693
5694 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5695 that gdpy is set.
5696
bc9b2b5e
AM
56972009-03-22 Alan Mackenzie <acm@muc.de>
5698
5699 * callint.c (Finteractive): Clarify the doc string - even
5700 promptless elements need \n separators.
5701
9f995a76
JR
57022009-03-22 Jason Rumney <jasonr@gnu.org>
5703
5704 * w32term.c (syms_of_w32term): Doc fix for
5705 x-use-underline-position-properties.
5706
22749e9a
EZ
57072009-03-21 Eli Zaretskii <eliz@gnu.org>
5708
5709 * w32.c (getpwuid): Change argument type to unsigned.
5710 (struct w32_id): Change type of `rid' member to unsigned.
5711 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5712 argument ID to unsigned. All callers changed.
5713 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5714
e00553bf
EZ
57152009-03-20 Eli Zaretskii <eliz@gnu.org>
5716
5717 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5718 negative, produce a float value.
5719
5720 * dired.c (make_uid, make_gid): New functions.
5721 (Ffile_attributes): Use them to avoid negative UID and GID.
5722
f761d6b6
JB
57232009-03-20 Juanma Barranquero <lekktu@gmail.com>
5724
5725 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5726 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5727 Fix typos in docstrings.
5728
d507f8d7
KH
57292009-03-19 Kenichi Handa <handa@m17n.org>
5730
5731 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5732 changed, use font_load_for_lface to get a new font object.
5733 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5734
5735 * frame.c (x_set_font): Handle the case that ARG is a cons.
5736
c68845e0
GM
57372009-03-19 Glenn Morris <rgm@gnu.org>
5738
5739 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5740
bfa49dd1
CY
57412009-03-19 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5744
8458d4c1
KH
57452009-03-19 Kenichi Handa <handa@m17n.org>
5746
5747 * charset.c (load_charset_map_from_file): When a mapfile can't be
5748 loaded, signal an error.
5749
78e7d1fe
EZ
57502009-03-18 Eli Zaretskii <eliz@gnu.org>
5751
5752 * dired.c (Ffile_attributes): Make sure UID and GID are always
5753 positive, even if the value is too large for a positive EMACS_INT.
5754 Doc fix.
5755
5756 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5757
5da9fdfa
YM
57582009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5759
5760 * xmenu.c (xdialog_show): Move Fredisplay call ...
5761 (Fx_popup_dialog): ... here.
5762
7519c40d
SM
57632009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5764
5765 * dired.c (file_name_completion): Disable the first optimization just
5766 installed, since it is not implemented correctly.
5767
2cd298e2
SM
57682009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5769
5770 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5771 only if the entry can affect bestmatch.
2cd298e2
SM
5772 Stop the search early, as Ftry_completion already does.
5773
48d37adf
CY
57742009-03-17 Chong Yidong <cyd@stupidchicken.com>
5775
e10c9c93 5776 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5777
9286b16a
CY
57782009-03-15 Chong Yidong <cyd@stupidchicken.com>
5779
5780 * keyboard.c (parse_menu_item): Don't display remappings as menu
5781 equivalent bindings (Bug#788).
5782
f7b146dc
JR
57832009-03-15 Jason Rumney <jasonr@gnu.org>
5784
5785 * w32term.h (WM_EMACS_PAINT): New message.
5786 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5787 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5788 before passing to lisp thread. (Bug#950)
5789
f761d6b6 57902009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5791
d93f9575
CY
5792 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5793 variable as it was never reset.
5794 (ns_term_init): Remove initialization of Lisp-settable defaults
5795 and ns_expand_space.
5796 (-setPanelFromDefaultValues): Remove ns_expand_space.
5797 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5798 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5799 i.e. no additional spacing, similar to Carbon port.
5800
d93f9575
CY
5801 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5802 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5803
305018ec
JD
58042009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5805
5806 * sound.c (alsa_configure): Remove call to deprecated
5807 snd_pcm_sw_params_set_xfer_align.
5808
f761d6b6 58092009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5810
5811 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5812 after clicking in a detached tool bar.
5813 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5814
46e722a9
SM
58152009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5816
348db3dd
SM
5817 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5818 int/Lisp_Object mixup).
46e722a9 5819
a3d16f39
KH
58202009-03-13 Kenichi Handa <handa@m17n.org>
5821
5822 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5823 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5824 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5825 (set_fontset_font): Change ARG to a vector. Handle range_list in
5826 ARG correctly.
5827 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5828 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5829 the above change.
5830 (fontset_from_font): Fix previous change.
fe24f56a 5831 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5832 entry. If FONTSET is the default fontset, don't set the extra
5833 slot of the returning char-table.
5834
b066e6b6
JB
58352009-03-12 Juanma Barranquero <lekktu@gmail.com>
5836
5837 * nsfns.m (Fx_close_connection): Doc fix.
5838 (Fns_do_applescript): Reflow docstring.
5839 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5840 (Fx_display_pixel_width, Fx_display_pixel_height)
5841 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5842 Fix typos in docstrings.
5843 (Fns_set_alpha): Fix typos in error messages.
5844
d472514e 58452009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5846
d472514e 5847 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5848 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5849 were used for such events.
5850
d472514e
JB
5851 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5852 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5853
d472514e 5854 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5855 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5856
fb930676
KH
58572009-03-11 Kenichi Handa <handa@m17n.org>
5858
ff85581a
KH
5859 * font.h (font_open_by_spec): Extern it.
5860
c50b7e98
KH
5861 * font.c (font_open_by_spec): New function.
5862 (font_open_by_name): Use font_open_by_spec.
5863
fb930676
KH
5864 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5865 fontset of the frame.
5866
5867 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5868 modify the default font of frames that use this fontset.
5869 (num_auto_fontsets): New variable.
5870 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5871 name. Be sure to set FONTSET_ASCII to the correct font name.
5872 (update_auto_fontset_alist): New function.
5873
df4e8455
JB
58742009-03-11 Juanma Barranquero <lekktu@gmail.com>
5875
5876 * makefile.w32-in: Update dependencies.
5877
0a375797
AR
58782009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5879
5880 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5881
61313fa3
SM
58822009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5883
5884 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5885
b55103fb
CY
58862009-03-10 Chong Yidong <cyd@stupidchicken.com>
5887
5888 * lread.c (Feval_buffer): Doc fix.
5889
dde2559c
KH
58902009-03-09 Kenichi Handa <handa@m17n.org>
5891
5892 * charset.c (Qfile_name_handler_alist): Extern it.
5893 (load_charset_map_from_file): Temporarily bind
5894 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5895
df4e8455 58962009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5897
47f588bb
GM
5898 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5899 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5900
4ddf94bd
AR
59012009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5902
4c9bdfc2
AR
5903 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5904 (x_set_window_size): Change back to calculated method of setting
5905 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5906 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5907 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5908
fe41ae9e
AR
5909 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5910
4c9bdfc2
AR
5911 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5912 accelerator in parens under GNUstep.
5913
825d0875
KH
59142009-03-06 Kenichi Handa <handa@m17n.org>
5915
5916 These changes are to detect incorrect composition sequence without
f3b3be74 5917 looking ahead the source. (Bug#2370)
825d0875
KH
5918
5919 * coding.h: Include "composite.h".
5920 (enum compisition_state): New enum.
5921 (struct compisition_status): New struct.
5922 (struct iso_2022_spec): New member cmp_status.
5923 (struct emacs_mule_spec): New struct.
5924 (struct coding_system): New members ctext_extended_segment_len and
5925 embedded_utf_8. Change the union member
5926 spec.emacs_mule_full_support to spec.emacs_mule.
5927
5928 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5929 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5930 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5931 (ADD_COMPOSITION_DATA): New arg nbytes.
5932 (emacs_mule_char): New arg cmp_status.
5933 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5934 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5935 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5936 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5937 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5938 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5939 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5940 (EMACS_MULE_COMPOSITION_END): New macro.
5941 (emacs_mule_finish_composition): New function.
5942 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5943 (decode_coding_emacs_mule): Avoid long looking ahead while
5944 handling composition.
5945 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5946 (ENCODE_COMPOSITION_RULE): New macro.
5947 (finish_composition): New function.
5948 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5949 (DECODE_COMPOSITION_START): New implementation.
5950 (DECODE_COMPOSITION_END): Likewise.
5951 (STORE_COMPOSITION_RULE): New macro.
5952 (decode_coding_iso_2022): Avoid long looking ahead while handling
5953 composition, CTEXT extended segment, and embedded UTF-8.
5954 (setup_coding_system): For a coding of type iso-2022, reset
5955 CODING_ISO_EXTSEGMENT_LEN (coding) and
5956 CODING_ISO_EMBEDDED_UTF_8 (coding).
5957 (get_translation): Delete arguments last_block, from_nchars,
5958 to_nchars. Callers changed.
5959 (produce_chars): Don't modify charbuf. Adjusted for the change of
5960 get_translation.
98a326f7 5961 (produce_composition): Adjust for the new annotation sequence.
825d0875 5962 (handle_composition_annotation): Likewise.
98a326f7 5963 (consume_chars): Adjust for the change of get_translation.
825d0875 5964
ccbc4452
AR
59652009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5966
4ddf94bd 5967 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5968
988a7ddb
KH
59692009-03-05 Kenichi Handa <handa@m17n.org>
5970
5971 * font.c (font_select_entity): New function.
5972 (font_find_for_lface): Use font_select_entity to select a font.
5973
5974 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5975 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5976 font with C restriction.
5977
98a326f7 59782009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5979
be1bce46 5980 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5981
10ea2b82
JR
59822009-03-04 Jason Rumney <jasonr@gnu.org>
5983
2c93b248 5984 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5985 characters that have already been read. (Bug#2569)
2c93b248 5986
10ea2b82
JR
5987 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5988 Log an error message if check_image_size failed.
5989 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5990 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5991
71a0c011
EZ
59922009-03-02 Eli Zaretskii <eliz@gnu.org>
5993
5994 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5995 when decoding process output.
5996
2f63bba8
RS
59972009-03-01 Richard M Stallman <rms@gnu.org>
5998
5999 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6000
6001 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6002
0a9564cb
EZ
60032009-02-28 Eli Zaretskii <eliz@gnu.org>
6004
6005 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6006 (decode_coding_emacs_mule, decode_coding_iso_2022)
6007 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6008 (decode_coding_raw_text, decode_coding_charset)
6009 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6010 Honor inhibit-eol-conversion. (Bug #2186)
6011
449148b3
JR
60122009-02-28 Jason Rumney <jasonr@gnu.org>
6013
6014 * coding.c (detect_coding_charset): If not checking latin extra,
6015 fail on characters between 0x80 and 0xA0. (Bug#2354)
6016
a4aee864
EZ
60172009-02-28 Eli Zaretskii <eliz@gnu.org>
6018
6019 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6020 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6021
d88bee5a
GM
60222009-02-27 Glenn Morris <rgm@gnu.org>
6023
6024 * callint.c (Finteractive): Doc fix.
6025
a808f22d
KH
60262009-02-27 Kenichi Handa <handa@m17n.org>
6027
6028 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6029
caf8d60c
CY
60302009-02-27 Chong Yidong <cyd@stupidchicken.com>
6031
6032 * font.c (font_style_to_value): Set value for unknown symbols to
6033 100 instead of 255.
b61137ea
CY
6034 (weight_table, slant_table, width_table): Treat "unspecified" as
6035 the default value.
caf8d60c 6036
1a0de25c
JB
60372009-02-26 Juanma Barranquero <lekktu@gmail.com>
6038
6039 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6040
8fc45744
JB
60412009-02-25 Juanma Barranquero <lekktu@gmail.com>
6042
107bd7d1
JB
6043 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6044 error as soon as a recursive load is detected.
8fc45744 6045
f097e223
AR
60462009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6047
6048 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6049 before caching.
6050
8810a12f
KH
60512009-02-24 Kenichi Handa <handa@m17n.org>
6052
6053 * fontset.c (fontset_find_font): Fix the condition for checking
6054 unavailable font.
6055
2c7d1565
GM
60562009-02-24 Glenn Morris <rgm@gnu.org>
6057
6058 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6059 whitespace that confuses documentation.
6060
a20878b6
MB
60612009-02-23 Miles Bader <miles@gnu.org>
6062
6063 * process.c (Flist_system_processes, Fprocess_attributes)
6064 (syms_of_process): Rename `system-process-attributes' to
6065 `process-attributes'.
6066
b3b58c01
AS
60672009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6068
1b3b981b
AS
6069 * coding.h (struct coding_system): Make safe_charsets a pointer to
6070 unsigned char.
6071 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6072 being 255.
6073 (SAFE_CHARSET_P): Likewise.
6074 (setup_iso_safe_charsets): Properly setup safe_charsets.
6075 (Fdefine_coding_system_internal): Likewise.
6076 (setup_coding_system): Likewise. Remove unneeded casts.
6077 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6078 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6079 unneeded casts.
6080
b3b58c01
AS
6081 * insdel.c (del_range_2): Don't modify gap contents when called
6082 from decode_coding_object. (Bug#1809)
6083
0b6f228c
CY
60842009-02-21 Chong Yidong <cyd@stupidchicken.com>
6085
6086 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6087 Qfont_object.
6088 (Ftype_of): Recognize font objects.
6089
6090 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6091
6092 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6093 moved to data.c.
6094
52f8870b
AR
60952009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6096
6097 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6098 async_iconified. Based on a patch by Christian Lynbech
6099 <christian.lynbech@tieto.com>.
6100 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6101
7087d5e9
GM
61022009-02-20 Glenn Morris <rgm@gnu.org>
6103
6104 * syntax.c (Fskip_chars_forward): Fix doc typo.
6105
41d2ceef
CY
61062009-02-20 Chong Yidong <cyd@stupidchicken.com>
6107
6108 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6109
1a3b7ca6
CY
61102009-02-19 Chong Yidong <cyd@stupidchicken.com>
6111
6112 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6113
73cce38d
KH
61142009-02-19 Kenichi Handa <handa@m17n.org>
6115
6116 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6117 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6118
a51092ee
DN
61192009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6120
6121 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6122
c423ecca
KH
61232009-02-18 Kenichi Handa <handa@m17n.org>
6124
6125 * font.c (font_check_otf_features): Fix handling of `nil' element.
6126 (Ffont_spec): Describe :lang and :otf in the docstring.
6127
4c1958f4
AS
61282009-02-16 Andreas Schwab <schwab@suse.de>
6129
6130 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6131 string.
6132
5704f39a
KH
61332009-02-16 Kenichi Handa <handa@m17n.org>
6134
6135 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6136 (Bug#1723)
5704f39a 6137
8f0085aa
CY
61382009-02-14 Chong Yidong <cyd@stupidchicken.com>
6139
a057d86a 6140 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6141
6142 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6143 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6144
aff01dd9
EZ
61452009-02-14 Eli Zaretskii <eliz@gnu.org>
6146
6147 * msdos.c (MAX_SCREEN_BUF): New macro.
6148 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6149 Encode the entire run of glyphs sharing the same face, instead of
6150 doing that one glyph at a time (fixes a bug with displaying
6151 double-size characters).
6152
ba301db3
AR
61532009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6154
6155 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6156
6157 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6158 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6159 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6160
6161 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6162 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6163
51d861de
SM
61642009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6165
ac146f82 6166 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6167 invisible areas.
6168
7fed8996
JR
61692009-02-12 Jason Rumney <jasonr@gnu.org>
6170
631ea4fb
JR
6171 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6172 (add_font_entity_to_list): Call check_face_name even when family
6173 is unspecified.
6174
cb4a3e42
JR
6175 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6176 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6177 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6178
7fed8996 6179 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6180 raster fonts. (Bug#2219)
7fed8996 6181
895416e3
KH
61822009-02-12 Kenichi Handa <handa@m17n.org>
6183
6184 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6185 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6186 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6187 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6188 (find_automatic_composition): While looking forward and backward,
6189 check static composition. Fix where to stop looking forward.
6190 (composition_adjust_point): Fix checking of static composition.
6191 (Fcomposition_get_gstring): Pay attention to
1dacf998 6192 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6193
6194 * lisp.h (fast_looking_at): Extern it.
6195
6196 * search.c (fast_looking_at): New function.
6197
51d861de 6198 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6199 <struct glyph>.u.cmp.to.
6200 (append_composite_glyph): Likewise.
6201
51d861de 6202 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6203 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6204 composition.
51d861de 6205 (append_composite_glyph): Adjust for the change of
895416e3
KH
6206 <strcut glyph>.u.cmp.to.
6207
8510724d
JB
62082009-02-11 Juanma Barranquero <lekktu@gmail.com>
6209
6210 * casetab.c (init_casetab_once):
6211 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6212 * font.c (font_update_lface):
6213 * fontset.c (Fnew_fontset):
6214 * ftfont.c (ftfont_drive_otf):
6215 * xfont.c (xfont_open):
6216 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6217
294fa707
SM
62182009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6219
6220 * fileio.c (Fwrite_region): !NILP -> CONSP.
6221
b5bfebec
AS
62222009-02-10 Andreas Schwab <schwab@suse.de>
6223
6224 * process.c (send_process): Properly relocate pointer into data
adab88bd 6225 when using encoded data. (Bug#2272)
b5bfebec 6226
cb84a2be
KH
62272009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6228
6229 * coding.c (detect_coding_charset): Fix previous change.
6230
89e09428
JR
62312009-02-08 Jason Rumney <jasonr@gnu.org>
6232
6233 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6234 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6235
4470a277
AS
62362009-02-07 Andreas Schwab <schwab@suse.de>
6237
6238 * unexelf.c (unexec): Fix error message.
6239
3175b12a
AR
62402009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6241
6242 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6243 when modal window is active. (Bug #2152)
3175b12a
AR
6244 (applicationShouldTerminate:): Remove now-unneeded while loop
6245 around NSRunAlertPanel.
6246
6247 * nsmenu.m (popupSession): New file-global variable.
6248 (pop_down_menu): End the popupSession before closing dialog.
6249 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6250 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6251 don't query NSApp for events (just sleep instead).
6252
8434d0b8
EZ
62532009-02-07 Eli Zaretskii <eliz@gnu.org>
6254
51d861de
SM
6255 * coding.c (syms_of_coding) <translation-table-for-input>:
6256 Modify doc string to discourage use for character code unification.
8434d0b8 6257
aa82edfd
CY
62582009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6259
6260 * atimer.c (run_timers): Update pending_atimers.
6261
2d283c7c
CY
62622009-02-06 Chong Yidong <cyd@stupidchicken.com>
6263
eb306cab
CY
6264 * image.c (svg_load_image): Fix last change.
6265
2d283c7c
CY
6266 * xfns.c (Fx_create_frame): Signal an error if no font is
6267 found (Bug#2147).
6268
4d8e170e
JB
62692009-02-05 Juanma Barranquero <lekktu@gmail.com>
6270
6271 * character.c (syms_of_character) <script-representative-chars>:
6272 Fix typo in docstring.
6273
c96169a0
AR
62742009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6275
6276 * nsmenu.m (pop_down_menu): New function.
6277 (ns_popup_dialog): Call it on unwind.
6278 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6279 call timer_check() (Bug#2154).
6280 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6281 handling_signal is set.
6282 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6283
31fd7c5c 6284 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6285
6286 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6287
6288 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6289
51d861de
SM
6290 * keyboard.c (poll_for_input_1, handle_async_input):
6291 Set handling_signal under HAVE_NS.
c96169a0 6292
aacd8ba1
GM
62932009-02-04 Glenn Morris <rgm@gnu.org>
6294
6295 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6296
4cb75c4b
KH
62972009-02-04 Kenichi Handa <handa@m17n.org>
6298
6299 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6300
6301 * charset.c (Fchar_charset): New optional arg restriction.
6302
6303 * coding.h (coding_system_charset_list): Extern it.
6304
6305 * coding.c (coding_system_charset_list): New function.
6306
6307 * composite.c: Include coding.h and termhooks.h.
6308 (composition_gstring_p): Fix for the terminal case.
6309 (composition_gstring_width): Likewise.
6310 (fill_gstring_body): Likewise.
6311 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6312 the frame.
6313 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6314 is within a composition.
867d4bb3 6315 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6316
6317 * term.c (encode_terminal_code): Fix handling of composition.
6318 (produce_composite_glyph): For static composition, get pixel_width
6319 from struct composition.
6320
826ba17e
AS
63212009-02-02 Andreas Schwab <schwab@suse.de>
6322
6323 * unexelf.c (unexec): Handle unaligned bss offset.
6324
8ad093db
AR
63252009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6326
6327 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6328 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6329
8ad093db
AR
6330 * keyboard.c (handle_interrupt): Don't call
6331 quit_throw_to_read_char() under NS.
d0a76a6e 6332
8ad093db
AR
6333 * blockinput.h: Remove NS-specific code.
6334
4d18a7a2
DN
63352009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6336
db878925
DN
6337 * dispnew.c (window_change_signal): Don't try to get the size of a
6338 suspended tty frame.
6339 * term.c (Fresume_tty): Resize if the size has changed while the
6340 tty was suspended.
6341
4d18a7a2
DN
6342 * alloc.c (mark_stack): Properly conditionalize previous change.
6343
8984df7c
JB
63442009-01-30 Juanma Barranquero <lekktu@gmail.com>
6345
6346 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6347 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6348 Remove; this code is not used on Windows.
6349
75f4f1ac
EZ
63502009-01-30 Eli Zaretskii <eliz@gnu.org>
6351
6352 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6353 EOLs that also has stray ^M characters.
6354
07a1e794
JB
63552009-01-30 Juanma Barranquero <lekktu@gmail.com>
6356
6357 * atimer.c (run_timers, alarm_signal_handler):
6358 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6359 * w32inevt.c (w32_console_read_socket):
6360 * w32term.c (w32_read_socket):
6361 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6362
a8b11cc9
CY
63632009-01-30 Chong Yidong <cyd@stupidchicken.com>
6364
6365 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6366 Initialize it as a relative filename pattern.
6367 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6368 (Fcall_process_region): Simplify temp file creation using
6369 temporary-file-directory.
6370
c279587b
EZ
63712009-01-29 Eli Zaretskii <eliz@gnu.org>
6372
6373 * msdos.c: Rename pending_signals to msdos_pending_signals.
6374 (sig_suspender, sigprocmask): Adjust.
6375
a8fe3242
CY
63762009-01-29 Chong Yidong <cyd@stupidchicken.com>
6377
6378 * keyboard.c (pending_signals): New var.
6379 (poll_for_input, input_available_signal, init_keyboard): Set it.
6380 (process_pending_signals): New function.
6381
6382 * lisp.h (QUIT): Check pending_signals instead of
6383 interrupt_input_pending. Use process_pending_signals.
6384
51d861de 6385 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6386
51d861de 6387 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6388
6389 * sysdep.c (emacs_write): Use process_pending_signals.
6390
6391 * xterm.c (XTread_socket): Update pending_signals.
6392
6393 * w32term.c (w32_read_socket): Update pending_signals.
6394
6395 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6396
6570a1c4
KH
63972009-01-29 Kenichi Handa <handa@m17n.org>
6398
6399 * xftfont.c (xftfont_has_char): New function.
6400 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6401
d72a4afa
AR
64022009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6403
6404 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6405 under GNUstep.
6406 (ns_query_color): New declaration.
6407
6408 * nsterm.m (ns_confirm_quit): New variable.
6409 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6410 (EmacsApp-applicationShouldTerminate:): Use it.
6411 (EmacsPrefsController): Let user set it.
6412 (ns_query_color): New function.
6413 (ns_defined_color): Use it.
6414 (ns_initialize): Drop.
6415 (ns_term_init): Add two lines from ns_initialize(), and set
6416 input_interrupt_mode to nil.
6417
6418 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6419 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6420
9fe78804
KH
64212009-01-28 Kenichi Handa <handa@m17n.org>
6422
6423 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6424 (fontset_get_font_group): Remember that no font-group is specified
6425 for C.
9fe78804 6426
fa57de36
CY
64272009-01-27 Chong Yidong <cyd@stupidchicken.com>
6428
930600e9
CY
6429 * fns.c (concat): Check for string overflow (bug#1787).
6430
fa57de36
CY
6431 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6432 Quadruple undo limits (bug#1501).
6433
7179ce7b
KH
64342009-01-27 Kenichi Handa <handa@m17n.org>
6435
6436 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6437 directly use GT_Get_Char_index.
6438
6439 * xftfont.c (struct xftfont_info): New member `index'.
6440
6441 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6442 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6443
5be8fcc0
CY
64442009-01-26 Kenichi Handa <handa@m17n.org>
6445
6446 * fontset.c (fontset_find_font): Fix handling of non-cons return
6447 value of fontset_get_font_group.
6448 (fontset_font): Revert last change.
6449
19ae3e61
JR
64502009-01-26 Jason Rumney <jasonr@gnu.org>
6451
6452 * w32font.c (w32font_list_internal): Return quickly if registry is
6453 unknown. Simplify final return.
6454 (add_font_entity_to_list): Break complex logic down into more
6455 manageable chunks. Move unknown registry check to
6456 w32font_list_internal.
6457
8612b71a
AR
64582009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6459
6460 Changes to remove Feval calls from GUI under NS.
6461
d8038940
JB
6462 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6463 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6464 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6465
6466 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6467 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6468 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6469 instead of NON_ASCII_KEYSTROKE_EVENT.
6470 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6471 (EmacsApp-applicationShouldTerminate:): Query user.
6472 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6473 instead of Feval.
6474
6475 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6476
6477 * keyboard.c (kbd_buffer_get_event): Check for it.
6478 (keys_of_keyboard): Define lispy keys for
6479 ns-put/unput-working-text.
6480
6481 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6482 versions.
6483 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6484
6288ae55
CY
64852009-01-25 Chong Yidong <cyd@stupidchicken.com>
6486
6487 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6488 setting current_buffer directly. (Bug#2044)
6288ae55 6489
289e7f8f
CY
64902009-01-24 Chong Yidong <cyd@stupidchicken.com>
6491
5ce87308 6492 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6493 any work. (Bug#1952, bug#1990).
5ce87308 6494
64cc3cf6 6495 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6496
b3243e6f
AR
64972009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6498
6499 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6500 (ns_no_defaults): New declaration.
6501 (main): Use it.
e0d2e69a 6502
d900b2af 6503 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6504
d900b2af 6505 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6506
d900b2af
AR
6507 * nsterm.m (ns_no_defaults): New variable.
6508 (ns_initialize): Don't read defaults when ns_no_defaults.
6509 (EmacsView-readSelectionFromPasteboard:)
6510 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6511 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6512 (ns_dumpglyphs_stretch): New function.
6513 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6514 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6515
e0d2e69a
AR
6516 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6517
3ac71f5d
CY
65182009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6519
6520 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6521 call for Sparc64.
6522
3fe53a83
AR
65232009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6524
6525 * nsfns.m:
6526 * nsgui.h:
6527 * nsmenu.m:
6528 * nsselect.m:
6529 * nsterm.h:
6530 * nsterm.m: Remove '23' comments that indicated code added during
6531 update from emacs-20 -> emacs-23.
6532
10f87c6f 65332009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6534
6535 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6536 ns_alternate_modifier. (Bug#1217)
a3b53a85 6537
c7cef62d
AR
6538 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6539 Display all shortcuts, including those w/o super modifier.
6540
575fb8bd
AR
6541 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6542
918b848b
CY
65432009-01-22 Chong Yidong <cyd@stupidchicken.com>
6544
6545 * fileio.c (Vwrite_region_post_annotation_function)
6546 (Vwrite_region_annotation_buffers): New vars.
6547 (build_annotations_unwind): Just reset
6548 Vwrite_region_annotation_buffers.
6549 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6550 Call write-region-post-annotation-function.
6551 (build_annotations): Add to Vwrite_region_annotation_buffers if
6552 buffer changes.
6553
a39e2539
AR
65542009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6555
6556 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6557 Tiger.
51d861de
SM
6558 * nsfns.m (ns_do_applescript):
6559 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6560
35ed44db
AR
65612009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6562
6563 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6564
cbe0b5bf
AR
65652009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6566
6567 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6568
6049d3a0
AR
6569 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6570
6571 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6572 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6573 handle Ctrl-tab. (Bug#1841)
6574 (ns_get_color): Use unsigned long long for scanned hex string value.
6575 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6576 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6577 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6578 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6579 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6580 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6581 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6582
d3810c21 6583 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6584 DPI. (Bug#1316)
d3810c21
AR
6585 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6586 values in onTiger section.
4c7077c3 6587
e301e634
CY
65882009-01-19 Chong Yidong <cyd@stupidchicken.com>
6589
7f82490b
CY
6590 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6591 Check return value of font_spec_from_name.
64cc3cf6 6592 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6593
6594 * font.c (font_spec_from_name): Return Qnil if font name could not
6595 be parsed.
6596 (font_parse_name): Treat a `?' character as part of an XLFD.
6597
e301e634
CY
6598 * fns.c (Fsubstring): Doc fix.
6599
1c0db158
KH
66002009-01-19 Kenichi Handa <handa@m17n.org>
6601
51d861de 6602 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6603 (ftfont_list): Likewise.
6604
acf20901
JB
66052009-01-18 Juanma Barranquero <lekktu@gmail.com>
6606
fff4e459
JB
6607 * dbusbind.c (Fdbus_register_signal):
6608 * process.c (conv_sockaddr_to_lisp):
6609 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6610
acf20901
JB
6611 * callproc.c (Fgetenv_internal): Doc fix.
6612
e7abcdfb
CY
66132009-01-16 Chong Yidong <cyd@stupidchicken.com>
6614
6615 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6616 it is not even used.
6617
b60861e6
GM
66182009-01-16 Glenn Morris <rgm@gnu.org>
6619
6620 * font.c (Ffont_variation_glyphs): Silence compiler.
6621
8db52afe
JB
66222009-01-15 Juanma Barranquero <lekktu@gmail.com>
6623
6624 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6625 Reported by David Robinow <drobinow@gmail.com>.
6626
4cddb209
KH
66272009-01-15 Kenichi Handa <handa@m17n.org>
6628
51d861de 6629 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6630
f247f67b
JR
66312009-01-14 Jason Rumney <jasonr@gnu.org>
6632
6633 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6634 never a fontset. (Bug#1562)
f247f67b 6635
f56a4450
KH
66362009-01-14 Kenichi Handa <handa@m17n.org>
6637
6638 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6639 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6640
4e99855e
CY
66412009-01-13 Chong Yidong <cyd@stupidchicken.com>
6642
6643 * font.c (font_clear_prop): If clearing the family, clear the font
6644 width index too.
6645
fff4e459 6646 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6647
24f01470
JB
66482009-01-12 Juanma Barranquero <lekktu@gmail.com>
6649
6650 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6651 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6652 functions, use sizeof.
6653
a41240a3
MR
66542009-01-12 Martin Rudalics <rudalics@gmx.at>
6655
6656 * keyboard.c (read_char): Fix case where last_nonmenu_event
6657 returned a bad value with submenus. (Bug#447)
6658
944636b8
CY
66592009-01-12 Chong Yidong <cyd@stupidchicken.com>
6660
6661 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6662 family, clear the font width index too.
6663
0dad7c6f
JR
66642009-01-11 Jason Rumney <jasonr@gnu.org>
6665
6666 * keyboard.c (cmd_error_internal): Exit when errors occur before
6667 frame creation and not in daemon mode. (Bug#1836)
6668
7c2363af
CY
66692009-01-10 Chong Yidong <cyd@stupidchicken.com>
6670
6671 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6672 of a display vector, backtrack.
6673 (try_window_reusing_current_matrix): Check glyph type before
6674 referencing charpos member.
6675
97b1b294
EZ
66762009-01-10 Eli Zaretskii <eliz@gnu.org>
6677
6678 Fix Bug #876:
6679
6680 * coding.c (inhibit_null_byte_detection): New variable.
6681 (detect_coding, detect_coding_system): Don't pay attention to null
6682 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6683 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6684 <inhibit-iso-escape-detection>: Doc fix.
6685
4624b6e3
JR
66862009-01-09 Jason Rumney <jasonr@gnu.org>
6687
6688 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6689 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6690 Only report Unicode Plane 2 fonts as unicode-sip.
6691
323b840c
CY
66922009-01-09 Chong Yidong <cyd@stupidchicken.com>
6693
51d861de
SM
6694 * xfaces.c (Fx_font_family_list): Delete function.
6695 Move compatibility version to faces.el.
323b840c 6696
51d861de 6697 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6698
eba7400d
MR
66992009-01-09 Martin Rudalics <rudalics@gmx.at>
6700
6701 * frame.c (x_set_frame_parameters): Remember requested value for
6702 fullscreen before it's reset by the parameter handler.
6703
4b09796d
GM
67042009-01-09 Glenn Morris <rgm@gnu.org>
6705
6706 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6707 (last_command_event): ... and update all users.
4b09796d
GM
6708 (last_input_char): For clarity, rename to...
6709 (last_input_event): ... and update all users.
6710 (last-command-char, last-input-char): Move to subr.el as aliases.
6711 * cmds.c, commands.h: Update for last_command_char rename.
6712
14ccea62
CY
67132009-01-08 Chong Yidong <cyd@stupidchicken.com>
6714
51d861de 6715 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6716
5f004711
JR
67172009-01-08 Jason Rumney <jasonr@gnu.org>
6718
6719 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6720 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6721 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6722 Don't declare.
fff4e459 6723 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6724 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6725
b71f6f73
KH
67262009-01-07 Kenichi Handa <handa@m17n.org>
6727
50b06221 6728 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6729 remember the coding system used for decoding in
50b06221
KH
6730 coding_system (Bug#1039).
6731
b71f6f73 6732 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6733 breaking the loop. (Bug#870)
b71f6f73
KH
6734 (decode_coding_utf_16, decode_coding_emacs_mule)
6735 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6736 (decode_coding_charset): Likewise.
6737
56f668f7
MR
67382009-01-05 Martin Rudalics <rudalics@gmx.at>
6739
6740 * frame.c (x_set_frame_parameters): Make sure height (width) get
6741 applied when fullwidth (fullheight) is set. (Bug#1522)
6742
5da9424d
JB
67432009-01-04 Juanma Barranquero <lekktu@gmail.com>
6744
6745 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6746 (utc_base): Declare as ULONGLONG, not long double.
6747 (convert_time_raw): Delete.
6748 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6749 (initialize_utc_base): New function.
6750 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6751 (convert_from_time_t): Use initialize_utc_base; compute result with
6752 64-bit arithmetic.
6753 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6754
c4605e09
EZ
67552009-01-03 Eli Zaretskii <eliz@gnu.org>
6756
9acef61c 6757 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6758 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6759 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6760 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6761 [!subprocesses]: Define.
6762 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6763 (Flist_system_processes, Fsystem_process_attributes)
6764 [!subprocesses]: Call list_system_processes and
6765 system_process_attributes instead of returning Qnil.
6766
9acef61c
JB
6767 * dosfns.c (system_process_attributes, list_system_processes):
6768 New functions.
c4605e09
EZ
6769
6770 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6771
6772 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6773 Don't use the default (no-op) implementation.
6774
8b7d0a16
JR
67752009-01-03 Jason Rumney <jasonr@gnu.org>
6776
a6d46bc1
JR
6777 * keyboard.c (parse_modifiers_uncached): Wheel events are
6778 clicks (bug#687).
6779
8b7d0a16
JR
6780 * w32term.c (x_query_colors, x_query_color): New functions.
6781
6782 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6783 (svg_load_image): Cast returned pointers from dynamically loaded
6784 functions. Eliminate W32 specific code.
6785
bfe11752
DN
67862009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6787
89e2438a
DN
6788 * nsfns.m (x_set_foreground_color, x_set_background_color)
6789 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6790 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6791 x_ prefix instead of ns_. Update references.
6792 (syms_of_nsfns): Add a FIXME comment.
6793
6794 * nsterm.m (x_set_cursor_type): New prototype.
6795 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6796
bfe11752
DN
6797 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6798 for Solaris instead of incorrectly providing Qutime and Qcutime.
6799
031da700
EZ
68002009-01-02 Eli Zaretskii <eliz@gnu.org>
6801
6802 * w32.c (process_times): Compute sum of utime and stime.
6803 (system_process_attributes): Add Qtime to the alist.
6804
6805 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6806 and add them to the alist.
6807
6808 * process.c (top level) <Qtime, Qctime>: New variables.
6809 (syms_of_process): staticpro them.
6810 (Fsystem_process_attributes): Add their documentation to the doc
6811 string.
6812
6813 * process.h: Declare Qtime and Qctime.
6814
df23bf08
JR
68152009-01-02 Jason Rumney <jasonr@gnu.org>
6816
9acef61c 6817 * image.c (Qgobject): New symbol.
df23bf08
JR
6818 (syms_of_image): Initialize it.
6819 (init_svg_functions): Load some functions from gobject library.
6820
5bbdf7aa
DN
68212009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6822
6823 * frame.c (make_terminal_frame): Remove redundant code and useless
6824 block.
6825
63136da6
AS
68262009-01-01 Andreas Schwab <schwab@suse.de>
6827
6828 * process.c (conv_sockaddr_to_lisp): Add workaround for
6829 getsockname bug on BSD.
6830
9ef69046
CY
68312009-01-01 Chong Yidong <cyd@stupidchicken.com>
6832
d6fafbe0
CY
6833 * xfns.c (x_create_tip_frame): Set border width of the X window.
6834
51d861de 6835 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6836
f9c34147
JR
68372009-01-01 Jason Rumney <jasonr@gnu.org>
6838
9acef61c 6839 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6840 Don't block input, as per earlier xterm.c changes.
6841
f5497e45
AR
68422008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6843
6844 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6845 (ns_appkit_version_int): New function.
6846 (x-server-version): Use ns_appkit_version_int and follow 21+
6847 convention of returning 3 integers.
6848
c19cab20
KH
68492008-12-30 Kenichi Handa <handa@m17n.org>
6850
6851 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6852 (CHAR_SURROGATE_PAIR_P): New macro.
6853
6854 * font.h (struct font_driver): New member get_variation_glyphs.
6855
9acef61c 6856 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6857 (Ffont_variation_glyphs): New function.
6858 (syms_of_font): Defsubr it.
6859
6860 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6861 ftfont_variation_glyphs.
6862 (setup_otf_gstring): New function.
6863 (ftfont_drive_otf): Use it.
6864 (ftfont_shape_by_flt): Handle variation selector.
6865 (ftfont_variation_glyphs): New function.
6866
28cd591f
MR
68672008-12-30 Martin Rudalics <rudalics@gmx.at>
6868
6869 * frame.c (Vemacs_iconified): Remove.
6870
7f714baf
JR
68712008-12-30 Jason Rumney <jasonr@gnu.org>
6872
6873 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6874 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6875
9d2d22ab
CY
68762008-12-30 Chong Yidong <cyd@stupidchicken.com>
6877
6878 * indent.c (Fvertical_motion): Don't advance iterator if we have
6879 reseated to the desired position.
6880
6881 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6882 checking for pos match.
6883
545312c2
KH
68842008-12-30 Kenichi Handa <handa@m17n.org>
6885
1ede3eb6
KH
6886 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6887 just get the low 8-bit of the code.
6888
545312c2
KH
6889 * font.c (font_intern_prop): Validate str as multibyte.
6890
bd7bbf29
DN
68912008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6892
31e0750e
DN
6893 * dispextern.h (struct face): Move lface and hash from the middle
6894 of bitfields.
6895
bd7bbf29
DN
6896 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6897
b5672e7c
DN
68982008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6899
6900 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6901 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6902 instead of intervals.h.
6903
d704470f
AS
69042008-12-26 Andreas Schwab <schwab@suse.de>
6905
6906 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6907 cons.
6908
54b33868
MR
69092008-12-26 Martin Rudalics <rudalics@gmx.at>
6910
6911 * textprop.c (Qminibuffer_prompt): New variable.
6912 (syms_of_textprop): Initialize it.
6913 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6914 in minibuffer-prompt face. (Bug#1662)
6915
40b615d6
JR
69162008-12-25 Jason Rumney <jasonr@gnu.org>
6917
6918 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6919
baae5c2d
JR
69202008-12-24 Jason Rumney <jasonr@gnu.org>
6921
6922 * ralloc.c (r_alloc_reset_variable): New function.
6923
6924 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6925 record of what points where. (Bug#716)
baae5c2d 6926
a9051c88
DN
69272008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6928
6929 * minibuf.c (read_minibuf): Follow the non-interactive case when
6930 running as a daemon, before detaching.
6931
8b146312
AS
69322008-12-22 Andreas Schwab <schwab@suse.de>
6933
6934 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6935 * gtkutil.c (free_widget_value): Use xfree instead of free.
6936
56f2de10
MR
69372008-12-22 Martin Rudalics <rudalics@gmx.at>
6938
6939 * frame.c (delete_frame): New function derived from
6940 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6941 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6942 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6943 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6944 * frame.h: Extern delete_frame.
6945 * window.c (window_loop):
6946 * terminal.c (delete_terminal):
6947 * xterm.c (x_connection_closed):
6948 * xfns.c (Fx_hide_tip):
9acef61c 6949 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6950
1fc200d6
JR
69512008-12-21 Jason Rumney <jasonr@gnu.org>
6952
6953 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6954 when character maps to .notdef character.
6955
5e252df2
SM
69562008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6957
6958 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6959
99b72cc4
JR
69602008-12-20 Jason Rumney <jasonr@gnu.org>
6961
6962 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6963 a graphical frame on Windows. (Bug#1325)
99b72cc4 6964
acc49a52
JD
69652008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6966
6967 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6968
6ea15123
CY
69692008-12-20 Chong Yidong <cyd@stupidchicken.com>
6970
6971 * minibuf.c (Fread_buffer): Doc fix.
6972
b2dab6c8
JR
69732008-12-20 Jason Rumney <jasonr@gnu.org>
6974
54ea0c87 6975 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6976 server name in UNC paths. (Bug#719)
54ea0c87 6977
b2dab6c8 6978 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6979 charbuf. (Bug#1035)
b2dab6c8 6980
6d1921be
DN
69812008-12-19 Daniel Engeler <engeler@gmail.com>
6982
6983 * sysdep.c (serial_configure): Fix typo.
6984
53934c98
DN
69852008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6986
6987 * sysdep.c: Include alloca.h.
f4f634e8
DN
6988 (system_process_attributes): Add implementation for Solaris.
6989
6990 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6991
06e111a6
DN
69922008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6993
6994 Reorganize implementation of Flist_system_processes and
6995 Fsystem_process_attributes. No functional changes.
6996 * process.c: Don't #include pwd.h, grp.h and limits.h.
6997 (Flist_system_processes): Just call list_system_processes.
6998 (Fsystem_process_attributes): Just call system_process_attributes.
6999 (procfs_list_system_processes, time_from_jiffies)
7000 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7001 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7002
7003 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7004 (list_system_processes): Rename from
7005 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7006 Provide a do nothing implementation.
7007 (system_process_attributes): Rename from
7008 procfs_list_system_processes.
7009 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7010 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7011
7012 * w32.c (list_system_processes): Rename from
7013 w32_list_system_processes.
7014 (system_process_attributes): Rename from
7015 w32_system_process_attributes.
7016
7017 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7018
7019 * process.h (w32_list_system_processes)
7020 (w32_system_process_attributes): Remove.
362654a6
JB
7021 (list_system_processes, system_process_attributes):
7022 New prototypes.
06e111a6 7023
6a705b23
KH
70242008-12-19 Kenichi Handa <handa@m17n.org>
7025
7026 * xfont.c (xfont_decode_coding_xlfd): New function.
7027 (xfont_encode_coding_xlfd): New function.
7028 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7029 (xfont_list): Decode and encode XLFD by iso-8859-1.
7030 (xfont_match): Likewise.
7031 (xfont_list_family): Likewise.
7032 (xfont_open): Likewise.
7033
d66c0241 7034 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7035 names are utf-8.
7036
d66c0241 7037 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7038 names are utf-8.
7039
5a130941
JD
70402008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7041
7042 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7043 changed.
bfd20325
JD
7044 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7045 clicked on a detached tool bar button.
5a130941 7046
fd95644b
DN
70472008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7048
7049 * emacs.c (main): Print and error and exit when no data is read
7050 from the pipe.
7051
e6eee6ae
JR
70522008-12-17 Jason Rumney <jasonr@gnu.org>
7053
7054 * w32font.c (w32font_has_char): Always return -1.
7055
a35dd56b
KH
70562008-12-16 Kenichi Handa <handa@m17n.org>
7057
7058 * font.c (font_open_entity): Fix previous change.
7059
0e3635c2
DN
70602008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7061
7062 * process.c: Include <limits.h>.
7063
d4835507 70642008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7065
7066 * font.c (font_update_drivers): Fix mistake in reconstructing the
7067 driver list.
7068
70692008-12-16 Chong Yidong <cyd@stupidchicken.com>
7070
7071 * font.c (font_clear_cache): Fix format of font cache data.
7072
e2cbc401
CY
70732008-12-15 Chong Yidong <cyd@stupidchicken.com>
7074
7075 * xftfont.c (xftfont_open): Free Xft font pattern if
7076 XftFontOpenPattern fails.
7077
7078 * xterm.c (x_free_frame_resources): Remove extraneous call to
7079 free_frame_faces.
7080
b131d535
CY
70812008-12-13 Chong Yidong <cyd@stupidchicken.com>
7082
7083 * xterm.c (x_delete_display): Move xim_close_dpy call to
7084 x_delete_terminal.
7085 (x_delete_terminal): Call xim_close_dpy.
7086
e6df5336
JR
70872008-12-13 Jason Rumney <jasonr@gnu.org>
7088
7089 * w32font.c (intern_font_name): New function.
7090 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7091 (w32font_open_internal, Fx_select_font): Decode font name.
7092 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7093
7094 * w32font.h (intern_font_name): Declare new function.
7095
7096 * w32uniscribe.c (add_opentype_font_name_to_list):
7097 Use intern_font_name.
7098
20d68145
CY
70992008-12-13 Chong Yidong <cyd@stupidchicken.com>
7100
9f2554de
CY
7101 * frame.c (Fdelete_frame): Call free_font_driver_list.
7102
3d9bec9a
CY
7103 * font.c (free_font_driver_list): Implement missing function.
7104
20d68145
CY
7105 * w32term.c (w32_term_init): Don't initialize the image cache
7106 here; it will be done in init_frame_faces.
7107
7108 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7109 (struct x_display_info): Remove unused member null_pixel. New
7110 member xim_callback_data.
7111
7112 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7113 (xim_initialize): Save pointer to callback function data.
7114 (xim_close_dpy): Free callback function data. Call XCloseIM,
7115 reverting 2008-11-04 change by David Smith.
7116 (x_term_init): Don't initialize the image cache here; it will be
7117 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7118 (x_delete_display): Free x_dnd_atoms member.
7119
96f9306b
KH
71202008-12-13 Kenichi Handa <handa@m17n.org>
7121
6dec9044
JB
7122 * font.c (font_rescale_ratio): Moved from xfaces.c.
7123 Argument type changed. Handle a font-spec too.
96f9306b 7124 (font_score): Check Vface_font_rescale_alist.
6dec9044 7125 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7126
7127 * xfaces.c (font_rescale_ratio): Moved to font.c.
7128
8d5b4964
CY
71292008-12-13 Chong Yidong <cyd@stupidchicken.com>
7130
7131 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7132
e6df5336
JR
71332008-12-12 Jason Rumney <jasonr@gnu.org>
7134
7135 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7136 Vwindow_system_version to the real w32 major version.
7137
97c6058a
DN
71382008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7139
7140 * term.c (init_tty): Move setting the terminal name before the
7141 potential user: maybe_fatal.
7142
ec4e88d7
CY
71432008-12-11 Chong Yidong <cyd@stupidchicken.com>
7144
d4835507
JB
7145 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7146 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7147
b4233ec9
JR
71482008-12-11 Jason Rumney <jasonr@gnu.org>
7149
8ec71e23 7150 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7151 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7152
b4233ec9 7153 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7154 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7155
011a0143
JB
71562008-12-11 Juanma Barranquero <lekktu@gmail.com>
7157
7158 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7159
3c309f34
JB
71602008-12-11 Juanma Barranquero <lekktu@gmail.com>
7161
7162 * process.c (Fsystem_process_attributes, syms_of_process):
7163 Fix typo in name of Ssystem_process_attributes.
7164 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7165
fedc6ab5
JB
71662008-12-11 Juanma Barranquero <lekktu@gmail.com>
7167
7168 * syntax.c (Fmodify_syntax_entry): Doc fix.
7169
ba3de0e8
JB
71702008-12-10 Juanma Barranquero <lekktu@gmail.com>
7171
7172 * font.c (Ffont_spec): Move usage to end of docstring.
7173
174f1c74
JR
71742008-12-10 Jason Rumney <jasonr@gnu.org>
7175
7176 * w32font.c (Qcham): New symbol.
7177 (font_supported_scripts): Add cham, and comments for other new
7178 scripts in bitfield from OpenType spec.
9d32f818
JR
7179 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7180 contain characters beyond the bmp.
174f1c74 7181
7b649478
KH
71822008-12-10 Kenichi Handa <handa@m17n.org>
7183
7184 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7185 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7186 Qunicode_sip.
7187
2133e2d1
JB
71882008-12-10 Juanma Barranquero <lekktu@gmail.com>
7189
7190 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7191 (Fcoding_system_put): Use QCdefault_char.
7192 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7193
9af886ee
CY
71942008-12-09 Chong Yidong <cyd@stupidchicken.com>
7195
74d819eb
CY
7196 * xftfont.c (syms_of_xftfont): Fix typo.
7197
4ccfa1c0 7198 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7199
7c19d3ae
DN
72002008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7201
7202 * emacs.c (main): Close daemon_pipe on exec.
7203
567826bb
CY
72042008-12-08 Chong Yidong <cyd@stupidchicken.com>
7205
7206 * termchar.h (struct tty): New members termcap_term_buffer and
7207 termcap_strings_buffer.
7208
7209 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7210 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7211 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7212 All callers changed.
7213 (init_tty): Store termcap data and string buffers in new struct
7214 tty members termcap_term_buffer and termcap_strings_buffer.
7215 (delete_tty): Free them.
4ccfa1c0 7216 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7217
aa96c42b
SZ
72182008-12-07 Seiji Zenitani <zenitani@mac.com>
7219
7220 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7221 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7222
b7e1d896
CY
72232008-12-06 Chong Yidong <cyd@stupidchicken.com>
7224
7225 * coding.c (make_conversion_work_buffer): Disable buffer
7226 modification hooks in the work buffer.
7227
b5ec91a5
EZ
72282008-12-05 Eli Zaretskii <eliz@gnu.org>
7229
7230 * process.c (procfs_system_process_attributes): If `nread' has a
7231 negative value, assign zero to it.
7232
a5d2a52b
CY
72332008-12-05 Chong Yidong <cyd@stupidchicken.com>
7234
68c5540b 7235 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7236
7bf1bb21
KH
72372008-12-05 Kenichi Handa <handa@m17n.org>
7238
7239 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7240 second character is a combining character.
7241
2fdc7d00
EZ
72422008-12-05 Eli Zaretskii <eliz@gnu.org>
7243
7244 * process.c (procfs_system_process_attributes): Don't use cmd,
7245 cmdsize, and q without initializing them first.
7246
bf6bfba8
JR
72472008-12-04 Jason Rumney <jasonr@gnu.org>
7248
7249 * w32font.c (w32font_draw): Initialize orig_clip before getting
7250 it, and delete it when finished.
7251
a3b1a468
DN
72522008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7253
7254 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7255 case when running as a daemon before detaching.
7256
8b8be8eb
JB
72572008-12-03 Juanma Barranquero <lekktu@gmail.com>
7258
805f2638 7259 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7260
b1bde622
KH
72612008-12-03 Kenichi Handa <handa@m17n.org>
7262
e500c47d
KH
7263 * font.c (font_at): Set `multibyte' at first.
7264
ca516334
KH
7265 * coding.c (decode_coding_charset): Check type of an element of
7266 vector VALIDS.
7bf1bb21 7267 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7268
4ccfa1c0 7269 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7270 (font_for_char): Likewise.
7271
1e5ecd37
CY
72722008-12-03 Chong Yidong <cyd@stupidchicken.com>
7273
d5b01609 7274 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7275 (font_update_lface): Handle fonts with corrupted size specs,
7276 i.e. non-int and non-float.
d5b01609 7277
11e3a6e4 7278 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7279 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7280 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7281
ab06788b
CY
7282 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7283
1e5ecd37 7284 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7285 underline_minimum_offset for underline position.
1e5ecd37 7286
63c125ab
DN
72872008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7288
7289 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7290
7291 * character.c (c_string_width): Specify the type for LEN.
7292
3a8406e1
KH
72932008-12-03 Kenichi Handa <handa@m17n.org>
7294
4ccfa1c0 7295 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7296 (decode_coding_utf_8): Likewise.
4ccfa1c0 7297 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7298 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7299
651df7d9
CY
73002008-12-02 Chong Yidong <cyd@stupidchicken.com>
7301
7302 * keyboard.c (make_lispy_position): Only use PT if the selected
7303 window is current.
7304
1f625c6c
AS
73052008-12-02 Andreas Schwab <schwab@suse.de>
7306
f7741ce9
AS
7307 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7308
1f625c6c
AS
7309 * doprnt.c (doprnt1): Fix size of charbuf.
7310
92bc2678
CY
73112008-12-02 Chong Yidong <cyd@stupidchicken.com>
7312
7313 * keyboard.c (timer_check): Revert last change.
7314
93b9e8cc
JB
73152008-12-02 Juanma Barranquero <lekktu@gmail.com>
7316
7317 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7318
fd7a37d5
JB
73192008-12-01 Juanma Barranquero <lekktu@gmail.com>
7320
7321 * makefile.w32-in: Update dependencies.
7322 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7323
c115043b
AS
73242008-12-01 Andreas Schwab <schwab@suse.de>
7325
7326 * font.c (register_font_driver): Use xmalloc.
7327 (font_put_frame_data): Likewise.
7328
f5668d2a
CY
73292008-12-01 Chong Yidong <cyd@stupidchicken.com>
7330
860d96be
CY
7331 * xfaces.c (realize_x_face): Make abort condition clearer.
7332
f5668d2a
CY
7333 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7334
379c17e7
CY
73352008-11-30 Chong Yidong <cyd@stupidchicken.com>
7336
7337 * keyboard.c (timer_check): After a timer runs, ensure that the
7338 selected window's buffer is current.
7339
35f36d65
JB
73402008-11-30 Juanma Barranquero <lekktu@gmail.com>
7341
f952c61c
JB
7342 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7343 It was accidentally restored by the Unicode merge.
7344
35f36d65
JB
7345 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7346
b23077df
JB
73472008-11-29 Juanma Barranquero <lekktu@gmail.com>
7348
7349 * w32proc.c: Include "coding.h".
7350 (Fw32_short_file_name): Encode filename passed to Windows API.
7351 (Fw32_long_file_name): Encode filename passed to Windows API and
7352 decode back the result. (Bug#1433)
7353
b8ebe9dd
KH
73542008-11-29 Kenichi Handa <handa@m17n.org>
7355
8cc53f96
KH
7356 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7357 not before accessing it.
7358
b8ebe9dd
KH
7359 * charset.c (Fdefine_charset_internal): After calculating
7360 min_char, max_char, and fastmap, copy the charset structure again.
7361 (encode_char): Fix the previous change.
7362
59bc82c0
SZ
73632008-11-28 Seiji Zenitani <zenitani@mac.com>
7364
7365 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7366
7367 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7368
7369 * nsterm.m (x_set_frame_alpha): New function.
7370
32247e3d
EZ
73712008-11-27 Eli Zaretskii <eliz@gnu.org>
7372
7373 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7374
b003e5ff
JB
73752008-11-27 Juanma Barranquero <lekktu@gmail.com>
7376
7377 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7378 pointer to check_face_name.
7379
708550f5
KH
73802008-11-27 Kenichi Handa <handa@m17n.org>
7381
7382 * category.h (SET_CATEGORY_SET): Call set_category_set.
7383 (set_category_set): Extern it.
7384
7385 * category.c (hash_get_category_set): New function.
7386 (Fmodify_category_entry): Adjusted for the change of
7387 char_table_ref_and_range. Call hash_get_category_set to get a
7388 category set to store in the table.
7389
7390 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7391 Funify_charset.
7392
2ae37cf0 7393 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7394 (DECODE_CHAR): Check if the decoder vector is ready.
7395 (ENCODE_CHAR): Check if the encoder char-table is ready.
7396 (maybe_unify_char): Extern it.
7397
7398 * charset.c (Vchar_unified_charset_table): Delete it.
7399 (inhibit_load_charset_map): New variable.
7400 (temp_charset_work): New variable.
7401 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7402 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7403 New macros.
7404 (load_charset_map): Meaning of control_flag changed. If
7405 inhibit_load_charset_map is nonzero, setup a table in
7406 temp_charset_work.
7407 (load_charset): New argument control_flag.
7408 (map_charset_for_dump): New function.
7409 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7410 map_charset_for_dump.
7411 (Fdefine_charset_internal): If the charset method is MAP, load
7412 mapping tables by calling load_charset.
7413 (Funify_charset): Don't load a mapping table but directly set
7414 Vchar_unify_table.
7415 (maybe_unify_char): New function.
7416 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7417 Handle the case of inhibit_load_charset_map being nonzero.
7418 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7419 Handle the case of inhibit_load_charset_map being nonzero.
7420 (Fclear_charset_maps): Just free temp_charset_work.
7421 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7422 variable.
7423
7424 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7425 change of char_table_ref_and_range.
7426 (char_table_ref_and_range): Change the meaning of argument FROM
7427 and TO. Now the caller must provide initial values for *FROM
7428 and *TO.
7429
7430 * fontset.c (fontset_add): Adjusted for the change of
7431 char_table_ref_and_range.
7432 (fontset_get_font_group): Likewise.
7433 (Ffontset_info): Likewise.
7434
7435 * keymap.c (describe_vector): Adjusted for the change of
7436 char_table_ref_and_range. For char-table, put boundary between
7437 non-ASCII and 8-bit characters.
7438
7439 * print.c (print_object): For bool-vector, delete unnecessary
7440 check of ASCII_BYTE_P.
7441
9196133b
JR
74422008-11-26 Jason Rumney <jasonr@gnu.org>
7443
7444 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7445 leading in font height. (Bug#879)
9196133b 7446
9f688acf
GM
74472008-11-26 Glenn Morris <rgm@gnu.org>
7448
7449 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7450 redefinition with ifdef. (Bug#1383)
7451
90d19aff
AR
74522008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7453
7454 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7455
4ccfa1c0 74562008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7457
7458 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7459 New EmacsView methods.
7460 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7461 Fixes bug #1048,1357,1414.
7462
74632008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7464
7465 Fix bug #1362.
7466 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7467 is not an indexed color.
7468 * nsterm.m (free_indexed_color): Add argument checking.
7469 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7470
e7d5ecb3
CY
74712008-11-24 Chong Yidong <cyd@stupidchicken.com>
7472
7473 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7474 Document confirm-after-completion value for
7475 minibuffer-completion-confirm.
7476
c285743c
JR
74772008-11-24 Jason Rumney <jasonr@gnu.org>
7478
7479 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7480 warning.
7481
b0857706
JR
74822008-11-23 Jason Rumney <jasonr@gnu.org>
7483
7484 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7485 restored before returning.
7486
7487 * w32font.c (check_face_name): New function.
7488 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7489 fonts. (Bug#642)
b0857706 7490
ee50ff07
MR
74912008-11-22 Martin Rudalics <rudalics@gmx.at>
7492
7493 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7494 confirm-nonexistent-file-or-buffer in doc-string.
7495
b8ff72fa
SM
74962008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7497
7498 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7499 Fix copy/paste typo. Add checks.
7500
cee53ed4
KH
75012008-11-21 Kenichi Handa <handa@m17n.org>
7502
7503 * coding.c (detect_coding_iso_2022): Reject invalid composition
7504 sequence.
7505 (DECODE_COMPOSITION_START): If the current source is the last
7506 block, and the current composition doesn't end, regard this
7507 sequence as invalid.
7508 (decode_coding_iso_2022): Handle invalid composition sequence.
7509
f6ef1e65
MR
75102008-11-20 Martin Rudalics <rudalics@gmx.at>
7511
7512 * window.c (coordinates_in_window): Don't return
7513 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7514 line when the window is not the rightmost one. (Bug#1372)
7515
e08b1705
MR
75162008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7517
7518 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7519
ad98e89f
EZ
75202008-11-15 Eli Zaretskii <eliz@gnu.org>
7521
7522 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7523 and bright_bg if noninteractive is non-zero.
7524
fb098a4b
CY
75252008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7526
7527 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7528 x_draw_glyph_string_background.
7529
7530 * w32term.c (x_draw_glyph_string): Likewise.
7531
ce952b6e
CY
75322008-11-15 Chong Yidong <cyd@stupidchicken.com>
7533
7534 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7535 the next glyph string once past the overhang width.
7536
7537 * nsterm.m (ns_draw_glyph_string): Likewise.
7538
7539 * w32term.c (x_draw_glyph_string): Likewise.
7540
26ea7079
CY
75412008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7542
7543 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7544 double file close.
7545
1c33c906
MR
75462008-11-14 Martin Rudalics <rudalics@gmx.at>
7547
7548 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7549 dedicated status of window before attempting to display another
7550 buffer in it.
7551
8fc29035
JB
75522008-11-14 Juanma Barranquero <lekktu@gmail.com>
7553
7554 * msdos.c (Fmsdos_long_file_names):
7555 (syms_of_msdos) <dos-unsupported-char-glyph>:
7556 * dosfns.c (Fint86): Fix typos in docstrings.
7557
55fb4286
EZ
75582008-11-14 Eli Zaretskii <eliz@gnu.org>
7559
7560 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7561
3fda0315
KY
75622008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7563
7564 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7565
7e849c17
CY
75662008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7567
7568 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7569
7570 * frame.h: Negative alpha means "don't touch".
7571
7572 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7573
7574 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7575
b9fd67bd
DN
75762008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7577
7578 * hftctl.c:
7579 * chpdef.h:
7580 * acldef.h: Remove files used only for systems no longer supported.
7581
7582 * Makefile.in: Fix .o alphabetical ordering.
7583 (hftctl.o): Remove dependency, file removed.
7584 (keymap.o, print.o): Depend on charset.h.
7585
d5998e03
KH
75862008-11-10 Kenichi Handa <handa@m17n.org>
7587
2ae37cf0 7588 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7589
be70e183
CY
75902008-11-08 Chong Yidong <cyd@stupidchicken.com>
7591
7592 * dired.c (file_name_completion): If completion_ignore_case is
7593 enabled, ignore case when checking completion-regexp-list.
7594
7cf94eac
EZ
75952008-11-08 Eli Zaretskii <eliz@gnu.org>
7596
7597 * vm-limit.c (get_lim_data): Fix last change.
7598
ee107a89
KH
75992008-11-08 Kenichi Handa <handa@m17n.org>
7600
7601 * character.c (Fget_byte): New function.
7602 (syms_of_character): Defsubr Fget_byte.
7603
5fd15622
CY
76042008-11-07 Chong Yidong <cyd@stupidchicken.com>
7605
7606 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7607 cursor position is valid after scrolling.
7608
13d62fad
JB
76092008-11-06 Juanma Barranquero <lekktu@gmail.com>
7610
7611 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7612
a1dd2936
GM
76132008-11-06 Glenn Morris <rgm@gnu.org>
7614
7615 * xterm.c (handle_one_xevent): Don't let popup menus cause
7616 mouse-autoselect-window related window switching. (Bug#1261)
7617
860cd236
CY
76182008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7619
7620 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7621
653a3150
AS
76222008-11-04 Andreas Schwab <schwab@suse.de>
7623
7624 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7625
870f5cac
CY
76262008-11-03 Chong Yidong <cyd@stupidchicken.com>
7627
7628 * xfns.c (Fx_wm_set_size_hint): New function.
7629
1e02f3cb
MR
76302008-11-03 Martin Rudalics <rudalics@gmx.at>
7631
7632 * textprop.c (Fprevious_single_char_property_change): Return 0
7633 when there's no change in a string. (Bug#1301)
7634
e630dfc6
MR
76352008-11-02 Martin Rudalics <rudalics@gmx.at>
7636
7637 * frame.c (do_switch_frame): New argument NORECORD passed to
7638 Fselect_window.
7639 (Fselect_frame): New argument NORECORD passed to
7640 do_switch_frame.
7641 (Fset_frame_selected_window): New argument NORECORD passed to
7642 Fselect_frame.
7643 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7644 in call of do_switch_frame.
7645 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7646 Handle NORECORD argument in call of Fselect_frame.
7647 * lisp.h (do_switch_frame, Fselect_frame)
7648 (Fset_frame_selected_window): Adjust declarations.
7649 * window.c (select_frame_norecord): New function.
7650 (run_window_configuration_change_hook): Use it and call
7651 Fselect_frame with NORECORD set.
7652 (Fselect_window): Pass NORECORD to Fselect_frame.
7653 (Fset_window_configuration): Handle NORECORD argument in call of
7654 do_switch_frame.
7655 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7656 Fset_frame_selected_window.
7657 * keyboard.c (command_loop_1): Handle NORECORD in call of
7658 Fselect_frame (currently ifdefd).
7659
9020b223
GM
76602008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7661
7662 * emacs.c (USAGE2): Untabify.
7663
793ffee8
SM
76642008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7665
7666 * composite.c (fill_gstring_header): Fix copy/paste typo.
7667
ab6d1131
MR
76682008-10-31 Martin Rudalics <rudalics@gmx.at>
7669
7670 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7671 (Fother_window): Rename argument and rewrite doc-string.
7672 (select_window_norecord): Fix return value. (Bug#1276)
7673
601a9cf1
JB
76742008-10-30 Juanma Barranquero <lekktu@gmail.com>
7675
7676 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7677 new frames overriding foreground for tooltips. Based on similar patch
7678 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7679
813b0652
CY
76802008-10-29 Chong Yidong <cyd@stupidchicken.com>
7681
7682 * emacs.c (Fdaemon_initialized): Initialize nfd.
7683
4414f58f
MR
76842008-10-29 Martin Rudalics <rudalics@gmx.at>
7685
7686 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7687 (Fwindow_text_height): Clarify doc-strings.
7688 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7689 doc-string of window-scroll-functions.
7690
ecdcaa09
RS
76912008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7692
7693 * category.c (syms_of_category): Fix typo in docstring.
7694
23fe745a
JB
76952008-10-28 Juanma Barranquero <lekktu@gmail.com>
7696
7697 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7698 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7699 Fix typos in docstrings.
7700
ff808935
DN
77012008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7702
7703 * emacs.c (daemon_pipe): Make non-static.
7704 (IS_DAEMON): Move definition ...
7705 * lisp.h (IS_DAEMON): ... here.
7706 (daemon_pipe): Declare.
7707 (is_daemon): Remove.
7708 * dispnew.c (init_display): Use IS_DAEMON.
7709
fc012771
SM
77102008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7711
7712 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7713 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7714
7715 * emacs.c (is_daemon): Remove.
7716 (main): Don't set is_daemon.
7717 (IS_DAEMON): New macro.
7718 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7719 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7720 parent exits.
7721 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7722
d8bdbe6f
CY
77232008-10-27 Chong Yidong <cyd@stupidchicken.com>
7724
d1a072bf
CY
7725 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7726 over-sized glyph, draw it with the default glyph width.
7727
e2e325aa
CY
7728 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7729 glyph, draw it with the default glyph width.
7730
7731 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7732 glyph, draw it with the default glyph width.
7733
d8bdbe6f
CY
7734 * xdisp.c (try_scrolling): When computing the distance from the
7735 scroll margin to PT, try moving some distance past the window
7736 bottom before giving up.
7737
7bfac547
MR
77382008-10-27 Martin Rudalics <rudalics@gmx.at>
7739
7740 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7741 (Fset_window_buffer): Explain in doc-string that a window can be
7742 "strongly" dedicated to its buffer.
7743
4ff029f6
DN
77442008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7745
7746 * emacs.c (daemon_name): New variable.
7747 (main): Deal with --daemon=SERVER_NAME.
7748 (Fdaemonp): Return a name if one was passed to --daemon.
7749
5790ef40
DN
77502008-10-26 Romain Francoise <romain@orebokech.com>
7751
f9bd0df9 7752 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7753 (main): Create a pipe before forking, make the parent exit only after
7754 the child has closed its end of the pipe. Move closing the
7755 descriptors ...
7756 (Fdaemon_initialized): ... here. New function.
7757
f5385255
SM
77582008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7759
4d632321
SM
7760 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7761 the previous unoptimized table.
7762
f5385255
SM
7763 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7764 the distinction between non-nil and non-t value of `dedicated'.
7765
6c56a0f3
CY
77662008-10-25 Chong Yidong <cyd@stupidchicken.com>
7767
7768 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7769 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7770
fec89261
MR
77712008-10-25 Martin Rudalics <rudalics@gmx.at>
7772
7773 * window.c (Fget_buffer_window, Fdelete_windows_on)
7774 (Freplace_buffer_in_windows): Make buffer argument optional and
7775 rename to buffer_or_name.
7776
34fcddd0
CY
77772008-10-24 Chong Yidong <cyd@stupidchicken.com>
7778
f5385255
SM
7779 * xdisp.c (handle_single_display_spec, handle_display_prop):
7780 Undo 2005-05-16 change.
34fcddd0
CY
7781 (handle_stop): Pop iterator if it's loaded with an empty string.
7782 (get_overlay_strings_1): Don't save iterator if it's loaded with
7783 an empty string (bug#1201).
7784
064766f2
KH
77852008-10-24 Kenichi Handa <handa@m17n.org>
7786
7787 * ftfont.c (ftfont_otf_features): Fix previous change.
7788 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7789 calling ftfont_otf_features.
7790
f9bd0df9 77912008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7792
7793 * font.c (font_match_p): Fix for the case that a vector of
7794 characters is in script-representative-chars.
7795
1dae9197
MA
77962008-10-24 Michael Albinus <michael.albinus@gmx.de>
7797
7798 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7799 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7800 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7801 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7802 macro. (Bug#1186)
1dae9197 7803
f9bd0df9 78042008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7805
7806 * s/sol2-10.h: New file.
7807
878a4584
JB
78082008-10-23 Juanma Barranquero <lekktu@gmail.com>
7809
7810 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7811 poor beast has survived 9+ years and the jump from xterm.c!).
7812
cd265ca6
MR
78132008-10-23 Martin Rudalics <rudalics@gmx.at>
7814
7815 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7816 Reword doc-string.
f5385255 7817 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7818
472a4dc9
JB
78192008-10-23 Juanma Barranquero <lekktu@gmail.com>
7820
7821 * character.c (syms_of_character) <script-representative-chars>:
7822 <unicode-category-table>: Doc fixes.
7823
159bd5a2
NF
78242008-10-23 Noah Friedman <friedman@splode.com>
7825
7826 * coding.c (make_conversion_work_buffer): Check that
7827 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7828 Fget_buffer_create.
7829
49f9c344
KH
78302008-10-23 Kenichi Handa <handa@m17n.org>
7831
7832 * font.c (font_add_log): Check the values of extra properties.
7833
12bb3111
MR
78342008-10-22 Martin Rudalics <rudalics@gmx.at>
7835
7836 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7837 Reword doc-string.
7838 (Fset_window_parameter): Use NILP.
7839 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7840 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7841
bbeb4e99
JB
78422008-10-22 Juanma Barranquero <lekktu@gmail.com>
7843
7844 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7845
78462008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7847
7848 * nsfns.m (ns_appkit_version): New function.
7849 (x-server-version): Use it.
7850 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7851 (x-server-vendor): Don't check_ns().
7852
7853 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7854
a9b555d3
JB
78552008-10-22 Juanma Barranquero <lekktu@gmail.com>
7856
7857 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7858 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7859
4626499f
KH
78602008-10-22 Kenichi Handa <handa@m17n.org>
7861
e3681952
KH
7862 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7863 scripts.
7864
4626499f
KH
7865 * category.c (word_boundary_p): Check scripts instead of charset.
7866 Handle nil value in word-separating-categories and
7867 word-combining-categories.
7868 (syms_of_category): Fix docstrings of word-separating-categories
7869 and word-combining-categories.
7870
1560f91a
EZ
78712008-10-21 Eli Zaretskii <eliz@gnu.org>
7872
7873 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7874 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7875
f4668441
MR
78762008-10-21 Martin Rudalics <rudalics@gmx.at>
7877
7878 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7879 Rename arg "buffer" to "buffer_or_name".
7880 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7881 it optional.
7882 (no_switch_window): Remove since the return value is not used.
a9b555d3 7883 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7884 Consider window as dedicated when Fwindow_dedicated_p returns a
7885 non-nil value.
7886 * lisp.h: Remove prototype for no_switch_window.
7887
fd75ddb2
JD
78882008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7889
7890 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7891 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7892
07295713
KH
78932008-10-21 Kenichi Handa <handa@m17n.org>
7894
7895 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7896 check Vlatin_extra_code_table.
7897
712adc82
EZ
78982008-10-20 Eli Zaretskii <eliz@gnu.org>
7899
7900 * fileio.c (Fset_file_modes): Doc fix.
7901
f549eb0b
MA
79022008-10-19 Michael Albinus <michael.albinus@gmx.de>
7903
7904 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7905 in arrays.
7906
aac0c6e3
MR
79072008-10-19 Martin Rudalics <rudalics@gmx.at>
7908
7909 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7910 Mention kill-buffer in doc-string.
7911 (Fset_window_buffer): Reinsert tem check removed in last commit.
7912 (Fenlarge_window, Fshrink_window): Have argument names and
7913 doc-string follow Elisp manual more closely.
7914
79152008-10-18 Eli Zaretskii <eliz@gnu.org>
7916
7917 * fileio.c (Fset_file_modes): Doc fix.
7918
79192008-10-18 Martin Rudalics <rudalics@gmx.at>
7920
7921 * window.c (Fwindow_width, Fset_window_start)
7922 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7923 (Fdelete_windows_on, Freplace_buffer_in_windows):
7924 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7925 (Fwindow_dedicated_p): Make window argument optional.
7926 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7927 (Fset_window_buffer): Respect any non-nil dedicated value for
7928 window. Rename "buffer" argument to "buffer_or_name".
7929
79302008-10-18 Ulrich Mueller <ulm@gentoo.org>
7931
7932 * m/sh3.h: New file, machine description for SuperH.
7933
79342008-10-17 Martin Rudalics <rudalics@gmx.at>
7935
7936 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7937
79382008-10-17 Kenichi Handa <handa@m17n.org>
7939
7940 * ftfont.c (ftfont_otf_features): Fix indexing
7941 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7942
79432008-10-16 Magnus Henoch <mange@freemail.hu>
7944
7945 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7946 (Fdbus_call_method_asynchronously): Ditto.
7947 This change makes C-h f display the argument list.
7948
79492008-10-16 Chong Yidong <cyd@stupidchicken.com>
7950
7951 * fileio.c (Fexpand_file_name): Doc fix.
7952
7953 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7954 of :foreground and :background equivalent to unspecified (20.x
7955 compatibility).
7956
79572008-10-15 Eli Zaretskii <eliz@gnu.org>
7958
7959 * buffer.c (syms_of_buffer): Doc fix.
7960
79612008-10-14 Kenichi Handa <handa@m17n.org>
7962
7963 * font.c (font_clear_prop): When clearing font width, clear the
7964 average width field too.
7965
79662008-10-12 Andreas Schwab <schwab@suse.de>
7967
7968 * ftfont.c (ftfont_shape_by_flt): Make static.
7969 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7970
7971 * font.c: Don't include <m17n-flt.h>.
7972
79732008-10-10 Eli Zaretskii <eliz@gnu.org>
7974
7975 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7976
79772008-10-09 Eli Zaretskii <eliz@gnu.org>
7978
7979 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7980 away code.
7981
79822008-10-09 Chong Yidong <cyd@stupidchicken.com>
7983
7984 * dispnew.c (update_text_area): Avoid looping due to large glyph
7985 overhangs (bug#1070).
7986
79872008-10-09 Kenichi Handa <handa@m17n.org>
7988
7989 * fontset.c (face_for_char): If face->fontset is negative, just
7990 return ascii_face.
7991
f5385255
SM
7992 * font.c (font_delete_unmatched): Fix previous change.
7993 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7994
79952008-10-09 Martin Rudalics <rudalics@gmx.at>
7996
7997 * frame.c (Fraise_frame): On text-only terminals select frame in
7998 order to make it visible. (Bug#1061)
7999
80002008-10-08 Chong Yidong <cyd@stupidchicken.com>
8001
8002 * fontset.c (fontset_find_font): Check frame validity.
8003
80042008-10-07 Chong Yidong <cyd@stupidchicken.com>
8005
a9b555d3 8006 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8007 (xg_display_close): Allow Emacs to close all displays (bug#985).
8008
80092008-10-06 Andreas Schwab <schwab@suse.de>
8010
f5385255 8011 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8012
80132008-10-06 Chong Yidong <cyd@stupidchicken.com>
8014
f5385255 8015 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8016
a9b555d3 8017 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8018
8019 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8020 during initialization.
8021
80222008-10-04 Eli Zaretskii <eliz@gnu.org>
8023
8024 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8025 whole thing on MSDOS frames as well as on a TTY.
8026
8027 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8028 well as for TTY.
8029 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8030 well as on a TTY.
8031
8032 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8033 as well as for TTY.
8034
8035 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8036
8037 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8038 MSDOS frames as well.
8039
80402008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8041
8042 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8043 correct arguments.
b71ac3dd 8044 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8045
80462008-10-03 Glenn Morris <rgm@gnu.org>
8047
8048 * emacs.c (USAGE1): Add --daemon.
8049
80502008-10-02 Eli Zaretskii <eliz@gnu.org>
8051
8052 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8053 100, so it's in percents as advertised.
8054
80552008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8056
8057 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8058 (ns_output.current_cursor, ns_output.desired_cursor)
8059 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8060 (FRAME_NEW_CURSOR_COLOR): Remove.
8061
8062 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8063 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8064 enumeration (HOLLOW_BOX_CURSOR, etc.).
8065
8066 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8067 (draw_window_cursor): Simplify code.
f5385255
SM
8068 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8069 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8070 updates manually.
a9b555d3
JB
8071 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8072 Use core Emacs cursor types.
aac0c6e3 8073
b8ff72fa 8074 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8075
80762008-10-02 Martin Rudalics <rudalics@gmx.at>
8077
8078 * process.c (Faccept_process_output): Fix doc-string.
8079
80802008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8081
8082 * gmalloc.c (__sbrk): Also define for uClibc.
8083
8084 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8085 for uClibc.
8086
80872008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8088
8089 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8090 styles.
8091 (nsfont_open): Reenable the cache.
8092
80932008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8094
8095 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8096 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8097
80982008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8099
8100 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8101 a suspended terminal.
8102
81032008-09-30 Michael Albinus <michael.albinus@gmx.de>
8104
8105 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8106
81072008-09-30 Eli Zaretskii <eliz@gnu.org>
8108
8109 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8110
81112008-09-30 Chong Yidong <cyd@stupidchicken.com>
8112
8113 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8114 in a continued line coincides with a line beginning.
8115
81162008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8117
8118 * nsfont.m (nsfont_trait_distance): Fix bug.
8119 (nsfont_list): Return a list rather than a vector (syncs with Handa
8120 changes of 2008-05-14).
8121 (nsfont_open): Improve logging.
8122
81232008-09-29 Andreas Schwab <schwab@suse.de>
8124
8125 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8126
81272008-09-28 Martin Rudalics <rudalics@gmx.at>
8128
8129 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8130 name as char-resolve-modifiers.
8131 Reported by: Markus Triska <markus.triska@gmx.at>
8132
81332008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8134
8135 * dispnew.c (init_display): Return earlier when running as a daemon.
8136
81372008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8138
8139 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8140
81412008-09-27 Eli Zaretskii <eliz@gnu.org>
8142
8143 * composite.c (Fcomposition_get_gstring)
8144 (Fcompose_region_internal, Fcompose_string_internal)
8145 (Ffind_composition_internal): Doc fix.
8146 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8147 (syms_of_composite) <auto-composition-function>: Doc fix.
8148 (syms_of_composite) <composition-function-table>: Doc fix.
8149
81502008-09-25 Chong Yidong <cyd@stupidchicken.com>
8151
8152 * search.c (wordify): New argument for lax word-ends.
8153 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8154
81552008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8156
8157 * lisp.h (is_daemon): Declare.
8158 * dispnew.c (init_display): Do not try to initialize the terminal
8159 when running as a daemon.
8160
81612008-09-22 Chong Yidong <cyd@stupidchicken.com>
8162
8163 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8164 x_display_pixel_height.
8165
81662008-09-22 Martin Rudalics <rudalics@gmx.at>
8167
8168 * undo.c (record_point): Don't call Fundo_boundary for first
8169 change. (Bug#731)
8170
81712008-09-22 Juanma Barranquero <lekktu@gmail.com>
8172
8173 * emacs.c (Fdaemonp): Doc fix.
8174
81752008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8176
8177 * emacs.c (main): Place #ifdef in the proper place.
8178
81792008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8180
8181 * emacs.c (standard_args): Add --daemon.
8182 (main): Disconnect from the terminal when --daemon is passed.
8183 (is_daemon): New variable.
8184 (Fdaemonp): New function.
8185 (syms_of_emacs): Defsubr it.
8186
81872008-09-20 Chong Yidong <cyd@stupidchicken.com>
8188
8189 * xdisp.c (get_next_display_element): Handle string display
8190 correctly when checking for the end of a box run.
8191
81922008-09-20 Glenn Morris <rgm@gnu.org>
8193
8194 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8195 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8196 (Frename_file): Avoid copying to trash if a rename involves
8197 a delete. (Bug#964).
8198
81992008-09-20 Eli Zaretskii <eliz@gnu.org>
8200
8201 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8202 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8203 frames as well as termcap frames.
8204 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8205 get_named_tty.
8206
82072008-09-19 Eli Zaretskii <eliz@gnu.org>
8208
8209 * process.c (procfs_system_process_attributes): Fix cmdline in
8210 case /proc/PID/cmdline is empty.
8211
8212 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8213 x_display_pixel_height.
8214
82152008-09-19 Juanma Barranquero <lekktu@gmail.com>
8216
8217 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8218
8219 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8220 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8221
82222008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8223
8224 * dispextern.h (struct it): Move line_wrap away from the middle of
8225 bitfields. Move voffset in struct iterator_stack_entry after the
8226 bitfields. Move tab_width near after another short.
8227
82282008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8229
8230 * frame.h (struct frame): Move alpha from the middle of bitfields.
8231
8232 * window.h (struct window): Move frozen_window_start_p after the
8233 rest of the bitfields to reduce padding.
8234
82352008-09-18 Chong Yidong <cyd@stupidchicken.com>
8236
8237 * xterm.h (x_display_info): Remove `height' and `width' members.
8238
8239 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8240
8241 * w32term.h (w32_display_info): Remove `height', `width',
8242 `height_in', and `width_in' members.
8243
b8ff72fa
SM
8244 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8245 New functions.
aac0c6e3
MR
8246 (x_calc_absolute_position): Use them.
8247 (x_term_init): Omit removed `height' and `width' members.
8248
b8ff72fa
SM
8249 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8250 New functions.
aac0c6e3
MR
8251 (w32_read_socket, x_calc_absolute_position): Use them.
8252 (w32_initialize_display_info, w32_term_init): Omit removed members
8253 of w32_display_info.
8254
b8ff72fa
SM
8255 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8256 New functions.
8257 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8258
b8ff72fa
SM
8259 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8260 New functions.
aac0c6e3
MR
8261 (x_calc_absolute_position): Use them.
8262 (x_term_init): Omit removed `height' and `width' members.
8263
8264 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8265 (compute_tip_xy):
8266 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8267 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8268 x_display_pixel_width.
8269
82702008-09-18 Kenichi Handa <handa@m17n.org>
8271
8272 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8273 (composition_compute_stop_pos): Fix handling of static composition.
8274 (Fcomposition_get_gstring): Check FROM and TO at first.
8275
82762008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8277
46e722a9 8278 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8279 mixup (YAILOM).
8280
82812008-09-17 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * indent.c (Fvertical_motion): Use position reported by iterator
8284 instead of PT for determining screen motion (bug#943).
8285
82862008-09-17 Romain Francoise <romain@orebokech.com>
8287
8288 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8289
82902008-09-17 Kenichi Handa <handa@m17n.org>
8291
8292 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8293
8294 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8295 if necessary.
8296
82972008-09-16 Kenichi Handa <handa@m17n.org>
8298
8299 * coding.c (make_conversion_work_buffer): Avoid calling
8300 Fget_buffer_create if it is not necessary.
8301
83022008-09-15 Martin Rudalics <rudalics@gmx.at>
8303
8304 * window.c (Fselect_window): Don't update window_select_count and
8305 use_time when norecord is not nil.
8306
83072008-09-14 Kenichi Handa <handa@m17n.org>
8308
8309 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8310 specpdl_ptr.
8311
83122008-09-12 Kenichi Handa <handa@m17n.org>
8313
8314 * indent.c (scan_for_column): Don't handle automatic composition
8315 if the current buffer is not associated with a window.
8316
8317 * composite.c (composition_reseat_it): If the current buffer is
8318 not associated with a window, ignore the automatic composition.
8319 (find_automatic_composition): Likewise.
8320
83212008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8322
8323 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8324 (Fgpm_mouse_stop): Use it.
8325 * termhooks.h (close_gpm): Declare.
8326 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8327 connection if Gpm_GetEvent fails.
8328
8329 * window.c (set_window_buffer): Always preserve current-buffer.
8330
83312008-09-12 Glenn Morris <rgm@gnu.org>
8332
8333 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8334
83352008-09-11 Glenn Morris <rgm@gnu.org>
8336
8337 * charset.c (charset-map-path): Doc fix.
8338
83392008-09-10 Kenichi Handa <handa@m17n.org>
8340
8341 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8342
8343 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8344 compose a grapheme cluster with the preceding base glyph.
8345
8346 * composite.c (composition_compute_stop_pos): Fix previous change.
8347 Reset cmp_it->id to -1 at first.
8348
83492008-09-10 Glenn Morris <rgm@gnu.org>
8350
8351 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8352
83532008-09-09 Chong Yidong <cyd@stupidchicken.com>
8354
8355 * keyboard.c (read_key_sequence): Reapply translation maps when
8356 switching keyboards.
8357
83582008-09-09 Kenichi Handa <handa@m17n.org>
8359
8360 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8361 characters.
8362
8363 * composite.c (FORWARD_CHAR): Fix calculation
8364 of (POSITION).pos_byte.
8365 (composition_compute_stop_pos): Limit the search of composition to
8366 at most 500 characters ahead. If we reach the limit or find a
8367 newline, set cmp_it->ch to -2 and return 0.
8368 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8369
83702008-09-08 Kenichi Handa <handa@m17n.org>
8371
8372 * indent.c (Fvertical_motion): Be sure to set
8373 it_overshoot_expected if it.cmp_it.id is non-negative.
8374
83752008-09-07 Andreas Schwab <schwab@suse.de>
8376
8377 * callproc.c (Fcall_process): Don't hold references to string data
8378 across garbage collection. Move initialisation of new_argv down
8379 to avoid compiler bug.
8380
83812008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8382
8383 * process.c (Fsystem_process_attributes): Doc fix.
8384
83852008-09-07 Chong Yidong <cyd@stupidchicken.com>
8386
8387 * callproc.c (Fcall_process): Canonicalize current directory name.
8388
8389 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8390 iterator advances to the next line if the current line ends in a
8391 continued tab.
8392
83932008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8394
8395 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8396 member to point to cmp_from.
8397
8398 * xdisp.c: Doc fix for references to gidx data member.
8399
84002008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8401
8402 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8403
84042008-09-07 Kenichi Handa <handa@m17n.org>
8405
8406 * composite.c (FORWARD_CHAR): Check STOP after
8407 incrementing (POSITION).pos.
8408
84092008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8410
8411 * process.c (Fsystem_process_attributes): Doc fix.
8412
84132008-09-06 Chong Yidong <cyd@stupidchicken.com>
8414
8415 * keyboard.c (Ftop_level): Doc fix.
8416
84172008-09-06 Eli Zaretskii <eliz@gnu.org>
8418
8419 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8420 minibuffer, don't let lower part of menu invade the echo area.
8421
8422 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8423 "char *q" to access menu text and advance through it. Revert the
8424 change that displayed ">" instead of ASCII character 0x10.
8425
84262008-09-05 Eli Zaretskii <eliz@gnu.org>
8427
8428 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8429 toggle boxes and radio buttons on MS-DOS as well.
8430
84312008-09-05 Kenichi Handa <handa@m17n.org>
8432
8433 * composite.c (autocmp_chars): Check lookback count.
8434 (composition_compute_stop_pos): Set cmp_it->lookback.
8435 (composition_reseat_it): Check lookback count.
8436 (struct position_record): New struct.
8437 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8438 (find_automatic_composition): New function.
8439 (composition_adjust_point): Use find_automatic_composition.
8440
8441 * dispextern.h (struct composition_it): New member lookback.
8442
84432008-09-02 Chong Yidong <cyd@stupidchicken.com>
8444
8445 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8446 if moving by a single line.
8447
84482008-09-02 Andreas Schwab <schwab@suse.de>
8449
8450 * xterm.c (x_delete_display): Fix merge error.
8451
8452 * fileio.c (Fexpand_file_name): Remove unused variables.
8453
84542008-09-02 Eli Zaretskii <eliz@gnu.org>
8455
8456 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8457 storage on all platforms, not just on DOS_NT.
8458
84592008-09-02 Jason Rumney <jasonr@gnu.org>
8460
b8ff72fa
SM
8461 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8462 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8463
84642008-09-01 Chong Yidong <cyd@stupidchicken.com>
8465
8466 * xfaces.c (Finternal_set_alternative_font_family_alist)
8467 (Finternal_set_alternative_font_registry_alist): Properly copy
8468 entire alist structure.
8469
84702008-09-01 Kenichi Handa <handa@m17n.org>
8471
d66c0241 8472 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8473 representative chars of the script is a vector.
d66c0241
JB
8474 (ftfont_list): Handle the case where the representative chars of
8475 the script is a vector.
aac0c6e3
MR
8476
8477 * character.c (syms_of_character): Docstring of
8478 script-representative-chars fixed.
8479
84802008-08-31 Eli Zaretskii <eliz@gnu.org>
8481
8482 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8483 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8484 the menu. Allocate larger buffer for `text', to account for
8485 possible ^C characters.
8486
84872008-08-31 Martin Rudalics <rudalics@gmx.at>
8488
8489 * xdisp.c (prepare_menu_bars): Don't call
8490 Vwindow_size_change_functions with arg Qt.
8491
84922008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8493
8494 * font.h (font_range):
8495 * fileio.c (report_file_error):
46e722a9
SM
8496 * composite.c (composition_update_it): Yet another int/Lisp_Object
8497 mixup (YAILOM).
aac0c6e3
MR
8498
84992008-08-30 Glenn Morris <rgm@gnu.org>
8500
8501 * data.c (Fmake_variable_frame_local): Doc fix.
8502
8503 * frame.c (Fmodify_frame_parameters): Doc fix.
8504
85052008-08-30 Eli Zaretskii <eliz@gnu.org>
8506
8507 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8508 needed by GetTokenInformation.
8509 (w32_system_process_attributes): Check return values of all system
8510 APIs.
8511
8512 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8513 only when the state changes.
8514 (IT_update_begin, IT_update_end): Add termscript trace.
8515
8516 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8517 clipboard is unavailable. Set dst to NULL if it doesn't point to
8518 malloc'ed data.
8519 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8520 passing random values to xfree.
8521
8522 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8523 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8524
85252008-08-29 Jason Rumney <jasonr@gnu.org>
8526
8527 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8528
85292008-08-29 Eli Zaretskii <eliz@gnu.org>
8530
8531 * composite.c (fill_gstring_body): Avoid compiler warnings.
8532
8533 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8534 LGLYPH_SET_CODE to avoid compiler warnings.
8535
2ae37cf0 8536 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8537
8538 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8539
8540 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8541 LGLYPH_SET_CODE.
8542
85432008-08-29 Kenichi Handa <handa@m17n.org>
8544
8545 * fileio.c (report_file_error): Don't downcase the first character
8546 of errstring if it is still unibyte.
8547
85482008-08-29 Kenichi Handa <handa@m17n.org>
8549
8550 These changes are to re-implement the automatic composition so
8551 that it doesn't use text properties.
8552
8553 * Makefile.in (ftfont.o): Depend on composite.h.
8554 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8555
8556 * character.h (Vunicode_category_table): Extern it.
8557
8558 * character.c (Vunicode_category_table): New variable.
8559 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8560
8561 * chartab.c (optimize_sub_char_table): Perform more greedy
8562 optimization.
8563
b8ff72fa
SM
8564 * composite.h (enum composition_method):
8565 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8566 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8567 (Vcomposition_function_table): Extern it.
8568 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8569 (composition_gstring_put_cache, composition_gstring_from_id)
8570 (composition_gstring_p, composition_gstring_width)
8571 (composition_compute_stop_pos, composition_reseat_it)
8572 (composition_update_it, composition_adjust_point): Extern them.
8573 (Fcomposition_get_gstring): EXFUN it.
8574
d66c0241 8575 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8576 (Vcomposition_function_table)
8577 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8578 (gstring_hash_table, gstring_work, gstring_work_headers):
8579 New variables.
aac0c6e3
MR
8580 (gstring_lookup_cache, composition_gstring_put_cache)
8581 (composition_gstring_from_id, composition_gstring_p)
8582 (composition_gstring_width, fill_gstring_header)
8583 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8584 (composition_reseat_it, composition_update_it)
b8ff72fa 8585 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8586 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8587 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8588 Defsubr compostion_get_gstring.
8589
8590 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8591 cmp_id.
8592 (struct glyph_string): Delete the member gidx. New members
8593 cmp_id, cmp_from, and cmp_to.
8594 (enum it_method): Delete GET_FROM_COMPOSITION.
8595 (struct composition_it): New struct.
8596 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8597 Delete c, len, cmp_id, cmp_len in u.comp.
8598
8599 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8600 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8601 (enum lglyph_indices): Likewise.
b8ff72fa 8602 (font_range): Adjust extern.
aac0c6e3
MR
8603 (font_fill_lglyph_metrics): Extern it.
8604
8605 * font.c (QCf): New variable.
8606 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8607 (font_prepare_composition): Delete this function.
8608 (font_range): Type and arguments changed.
8609 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8610 (font_fill_lglyph_metrics): New function.
b8ff72fa 8611 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8612 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8613 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8614 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8615
8616 * fontset.h (font_for_char): Extern it.
8617
8618 * fontset.c (font_for_char): New function.
8619
8620 * ftfont.c: Include composite.h.
8621 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8622 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8623
8624 * indent.c: Include composite.h and dispextern.h.
8625 (check_composition): Delete this function.
8626 (scan_for_column): Handle composition by
8627 composition_compute_stop_pos, composition_reseat_it, and
8628 composition_update_it.
8629 (compute_motion): Likewise.
8630 (Fvertical_motion): Fix checking of composition.
8631
8632 * keyboard.c (adjust_point_for_property): Check composition by
8633 composition_adjust_point.
8634
b8ff72fa 8635 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8636 struct glyph_string.
8637
b8ff72fa
SM
8638 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8639 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8640 struct glyph.
8641 (produce_composite_glyph): Likewise.
8642
b8ff72fa
SM
8643 * w32term.c (x_draw_composite_glyph_string_foreground):
8644 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8645 (x_draw_glyph_string): Likewise.
8646
8647 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8648 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8649
8650 * xdisp.c: Include font.h.
8651 (it_props): Delete the entry for Qauto_composed.
8652 (init_iterator): Initialize it->cmp_it.id to -1.
8653 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8654 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8655 (handle_auto_composed_prop): Delete it.
8656 (handle_composition_prop): Handle only static composition.
8657 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8658 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8659 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8660 (pop_it): Likewise.
8661 (get_next_element): Delete next_element_from_composition.
8662 (CHAR_COMPOSED_P): New macro.
8663 (get_next_display_element): For automatic composition, get a face
8664 from the font in the glyph-string.
8665 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8666 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8667 (next_element_from_string): Check if the character at the current
8668 position is composed by CHAR_COMPOSED_P.
8669 (next_element_from_buffer): Likewise.
d66c0241
JB
8670 (next_element_from_composition): Adjust for the change of struct it.
8671 Update it->cmp_it.
b8ff72fa
SM
8672 (dump_glyph): Adjust for the change of struct glyph.
8673 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8674 it and struct glyph. Don't handle automatic composition here.
8675 (fill_gstring_glyph_string): New function.
8676 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8677 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8678 (BUILD_GSTRING_GLYPH_STRING): New macro.
8679 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8680 automatic composition.
b8ff72fa 8681 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8682 struct glyph.
b8ff72fa 8683 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8684
b8ff72fa 8685 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8686 the change of struct glyph_string.
8687 (x_draw_glyph_string): Likewise.
8688
86892008-08-29 Glenn Morris <rgm@gnu.org>
8690
8691 * buffer.c (word-wrap): Doc fix.
8692 * xdisp.c (truncate-partial-width-windows): Doc fix.
8693 Increase default to 50.
8694
86952008-08-29 Chong Yidong <cyd@stupidchicken.com>
8696
8697 * xdisp.c (update_tool_bar_unwind): New function.
8698 (update_tool_bar): Temporarily set selected frame before building
8699 tool-bar items.
8700
87012008-08-28 Michael Albinus <michael.albinus@gmx.de>
8702
8703 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8704 snprintf, respectively.
8705 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8706
87072008-08-28 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8710 LDFLAGS to GNUstep CC invocation.
8711
87122008-08-27 Chong Yidong <cyd@stupidchicken.com>
8713
8714 * indent.c (Fvertical_motion): Revert last change. Handle the
8715 general case where we are moving forward, and PT spans multiple
8716 screen lines.
8717
8718 * eval.c (find_handler_clause): Temporarily increase
8719 max-lisp-eval-depth while printing the backtrace buffer, to
8720 guarantee that help-mode code can run.
8721
87222008-08-27 Eli Zaretskii <eliz@gnu.org>
8723
8724 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8725 colors under -rv.
8726 (IT_set_frame_parameters): Don't swap foreground and background
8727 colors if `(reverse . t)' is present in the frame properties.
8728 (internal_terminal_init): Call init_frame_faces only for the
8729 initial frame.
8730
87312008-08-27 Andreas Schwab <schwab@suse.de>
8732
8733 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8734
87352008-08-27 Andreas Schwab <schwab@suse.de>
8736
8737 * search.c (search_buffer): Set char_base to zero only at the end.
8738
87392008-08-27 Kenichi Handa <handa@m17n.org>
8740
b8ff72fa 8741 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8742
87432008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8744
8745 * xterm.c (x_term_init): Temporarily hide the partially
8746 initialized terminal while calling vendor-specific-keysyms.
8747
87482008-08-26 Eli Zaretskii <eliz@gnu.org>
8749
8750 * msdos.c (internal_terminal_init): Most initializations done only
8751 once, especially initial_screen_colors[] and termscript open.
8752
87532008-08-26 Chong Yidong <cyd@stupidchicken.com>
8754
8755 * eval.c (Fcondition_case): Doc fix.
8756
8757 * widgetprv.h (EmacsFramePart): Change font member to the new font
8758 struct.
8759
8760 * widget.c: Include character.h and font.h for XSETFONT.
8761 (setup_frame_gcs): Compute X font id from font struct, just once.
8762
87632008-08-26 Eli Zaretskii <eliz@gnu.org>
8764
8765 * term.c (get_named_tty): Fix last change.
8766
87672008-08-26 Chong Yidong <cyd@stupidchicken.com>
8768
8769 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8770 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8771
87722008-08-25 Eli Zaretskii <eliz@gnu.org>
8773
8774 * frame.c (do_switch_frame): Mark previously displayed frame as
8775 obscured for FRAME_MSDOS_P frames as well.
8776
87772008-08-24 Eli Zaretskii <eliz@gnu.org>
8778
8779 * frame.c (make_terminal_frame): Initialize f->terminal,
8780 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8781 Set the top frame to newly created frame.
8782 (Fmake_terminal_frame): Reuse the_only_display_info.
8783
8784 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8785 estimating available memory.
8786
b97439ce 87872008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8788
8789 * nsterm.m (ns_draw_window_cursor): Don't call
8790 NSDisableScreenUpdates and NSEnableScreenUpdates on
8791 non-NS_IMPL_COCOA systems.
8792
87932008-08-23 Andreas Schwab <schwab@suse.de>
8794
8795 * process.c (procfs_system_process_attributes): Fix use of
8796 uninitialized variables.
8797
87982008-08-23 Eli Zaretskii <eliz@gnu.org>
8799
8800 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8801
8802 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8803 calling tty-set-up-initial-frame-faces.
8804
b8ff72fa
SM
8805 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8806 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8807
8808 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8809 addition to output_termcap.
8810
8811 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8812
8813 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8814 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8815 highlight.
8816
8817 * process.c [!subprocesses]: Define QCname.
8818 (syms_of_process): Intern and staticpro it.
8819
8820 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8821 Adjust for changes in encoding/decoding routines.
8822 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8823 encode_coding and decode_coding.
8824
b8ff72fa 8825 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8826
8827 * dosfns.c: Include frame.h before termhooks.h.
8828 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8829 variable termscript.
8830
8831 * s/msdos.h (USER_FULL_NAME): Define.
8832 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8833
8834 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8835 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8836 pw->pw_gecos.
8837
8838 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8839 SELECTED_FRAME as additional (1st) argument.
8840 (tty_read_avail_input): Handle output_msdos_raw in
8841 addition to output_termcap.
8842
8843 * msdos.c: Include frame.h before termhooks.h.
8844 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8845 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8846 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8847 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8848 (IT_set_terminal_modes, IT_reset_terminal_modes)
8849 (IT_set_frame_parameters): Use tty->termscript instead of a global
8850 variable termscript.
8851 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8852 global variable terminal_coding. Don't refer to
8853 Vnonascii_translation_table.
8854 (internal_terminal_init): Set Vwindow_system in current_kboard.
8855 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8856 Announce date and time of session start, if termscript is open.
8857 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8858 term.c:init_tty). Open termscript only of not already open.
8859 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8860 here instead of dos_ttraw. Don't initialize display if this is an
8861 initial tty. Don't set FRAME_FONT.
8862 (Vwindow_system_version): Bump to 23.
8863 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8864 is available, set up mouse_position_hook.
8865 (dos_ttraw, IT_set_terminal_modes): If called with initial
8866 terminal, do nothing.
8867 (IT_set_frame_parameters): Handle the Qtty_type frame
8868 parameter by calling internal_terminal_init.
8869 (dos_set_window_size, show_mouse_face)
8870 (clear_mouse_face, IT_note_mode_line_highlight)
8871 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8872 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8873 (initialize_msdos_display): New function.
8874 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8875 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8876 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8877 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8878 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8879 (request_sigio, unrequest_sigio): Don't define, now defined on
8880 sysdep.c.
8881 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8882
8883 * term.c [MSDOS]: Include msdos.h.
8884 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8885 conditional to DOS_NT. Allow only one call to this function in a
8886 session. Don't allocate a new struct tty_display_info; instead,
8887 reuse the_only_display_info. Call get_tty_size to get screen
8888 dimensions. Call init_baud_rate to set bad_rate.
8889 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8890 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8891 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8892 (get_tty_terminal, get_named_tty, Ftty_type)
8893 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8894 output_termcap.
b8ff72fa
SM
8895 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8896 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8897 only when subprocesses are supported.
aac0c6e3
MR
8898
8899 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8900 f->output_data.x.
8901 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8902 terminal devices.
8903
5582fbc7 8904 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8905 x_output.
8906 (FRAME_FONT): Use output_data.tty.
8907 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8908 (struct x_display_info): Rename from display_info. Update all users in
8909 msdos.c.
aac0c6e3 8910 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8911 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8912 (dos_ttraw): Update prototype.
8913
8914 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8915 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8916
89172008-08-23 Jason Rumney <jasonr@gnu.org>
8918
8919 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8920 (fn_TIFFSetDirectory): New library function used.
8921 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8922 (tiff_load): Use :index to select among multiple images. Set count
8923 property when multiple images exist.
8924 (gif_format): Use :index, not :image.
8925
89262008-08-23 Chong Yidong <cyd@stupidchicken.com>
8927
8928 * xdisp.c (try_scrolling): Check INT_MAX instead of
8929 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8930 to obtain INT_MAX.
8931
89322008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8933
8934 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8935
89362008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8937
8938 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8939 GNUstep library location.
8940
89412008-08-21 Chong Yidong <cyd@stupidchicken.com>
8942
8943 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8944 before using it.
8945
8946 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8947
89482008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8949
8950 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8951 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8952 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8953 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8954 (EmacsApp-cursor_blink_handler): Remove declaration.
8955 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8956 match 01 Feb 2008 changes in xterm.c.
8957 (ns_read_socket): Add cast to avoid warning.
8958 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8959 GNUstep.
8960
89612008-08-20 Chong Yidong <cyd@stupidchicken.com>
8962
8963 * xselect.c (x_get_foreign_selection): Return nil if desired
8964 selection could not be obtained, instead of signalling an error.
8965
89662008-08-20 David Reitter <david.reitter@gmail.com>
8967
8968 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8969 * nsterm.m: Remove ns-specific code for cursor blinking.
8970 (ns_draw_window_cursor): Clear cursor properly rather than
8971 redrawing the area. Respect width of bar cursors.
8972 These changes enable the use of generic blink-cursor-mode and
8973 generic cursor types in NS and support smooth cursor movements (do
8974 not blink off after command).
8975 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8976 Nextstep, too.
8977
89782008-08-19 Kenichi Handa <handa@m17n.org>
8979
8980 * font.c (Vfont_log_deferred): New variable.
8981 (font_add_log): Check Vfont_log_deferred.
8982 (font_deferred_log): New function.
8983
8984 * font.h (font_deferred_log): Extern it.
8985
8986 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8987 for sorting.
8988 (face_for_char): Use deferred log.
8989
89902008-08-18 Kenichi Handa <handa@m17n.org>
8991
8992 * fontset.c (face_for_char): Add font log.
8993
8994 * font.c (font_add_log): Add the font properties :script, :lang,
8995 and :otf in the log.
8996
89972008-08-17 Chong Yidong <cyd@stupidchicken.com>
8998
8999 * xdisp.c: Remove dead code.
9000 (handle_invisible_prop, next_overlay_string): Defer call to
9001 setup_for_ellipsis.
9002 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9003
90042008-08-15 Chong Yidong <cyd@stupidchicken.com>
9005
9006 * xfaces.c (lookup_derived_face): Properly handle possible zero
9007 return value of get_lface_attributes.
9008 (merge_faces): Don't tell lookup_derived_face to signal an error
9009 if face is not found.
9010
9011 * dired.c (Fdirectory_files): Doc fix.
9012
9013 * process.c (make_process): Initialize kill_without_query struct
9014 member.
9015
90162008-08-15 Eli Zaretskii <eliz@gnu.org>
9017
9018 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9019 Alternative calculation of totphys for Visual Studio 6.
9020
9021 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9022
9023 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9024 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9025 All users changed.
9026 (stat): Only root directory passed to GetDriveType. Allow RAM
9027 disk as well as local fixed disk when w32-get-true-file-attributes
9028 is set to `local'.
9029 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9030 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9031 (w32_cached_id, w32_add_to_cache): New functions.
9032 (get_name_and_id): Look account names in the cache before calling
9033 lookup_account_sid.
9034 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9035 New initialization flags.
9036 (globals_of_w32): Initialize them to zero.
9037 (w32_system_process_attributes): Use w32_cached_id and
9038 w32_add_to_cache.
9039
90402008-08-14 Lawrence Mitchell <wence@gmx.li>
9041
9042 * lread.c (Fread_char, Fread_char_exclusive): If no character
9043 event is read before timeout is reached, return nil, rather than
9044 converting to a number.
9045
90462008-08-14 Chong Yidong <cyd@stupidchicken.com>
9047
9048 * fns.c (use_dialog_box): Doc fix.
9049
9050 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9051 on OS X.
9052
90532008-08-13 Chong Yidong <cyd@stupidchicken.com>
9054
9055 * frame.c (Qns_parse_geometry): New var.
9056 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9057
90582008-08-11 Chong Yidong <cyd@stupidchicken.com>
9059
9060 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9061 space character in calculating tabs.
9062
90632008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9064
9065 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9066
90672008-08-10 Glenn Morris <rgm@gnu.org>
9068
9069 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9070 silence gcc "limited range of data type" warnings in some
9071 make_fixnum_or_float calls.
9072
90732008-08-09 Eli Zaretskii <eliz@gnu.org>
9074
9075 * w32.c (w32_system_process_attributes): If the process does not
9076 exist, return nil.
9077
9078 * w32.c: Include thelp32.h, psapi.h and coding.h.
9079 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9080 declarations.
9081 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9082 (Process32Next_Proc): New typedefs.
9083 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9084 (g_b_init_process32_next, g_b_init_open_thread_token)
9085 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9086 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9087 (g_b_init_get_process_working_set_size)
9088 (g_b_init_global_memory_status_ex): New static variables.
9089 (globals_of_w32): Initialize them.
9090 (create_toolhelp32_snapshot, process32_first, process32_next)
9091 (open_thread_token, impersonate_self, revert_to_self)
9092 (get_process_memory_info, get_process_working_set_size)
9093 (global_memory_status, global_memory_status_ex): New wrapper
9094 functions.
9095 (w32_list_system_processes, w32_system_process_attributes)
9096 (enable_privilege, restore_privilege, ltime, process_times):
9097 New functions.
9098 (convert_time_raw): New function.
9099 (convert_time): Remove conversion of FILETIME into time in 100
9100 nsec units, call convert_time_raw instead.
9101
9102 * process.h (w32_list_system_processes, w32_system_process_attributes):
9103 Add prototypes.
9104 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9105 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9106 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9107 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9108
9109 * process.c (Fsystem_process_attributes): Doc fix.
9110
91112008-08-08 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9114 a continued multi-char glyph; if so, advance to the actual glyph.
9115
91162008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9117
9118 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9119
9120 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9121 (.m.o): Use it.
9122 * config.in: Regenerate.
9123
91242008-08-07 Chong Yidong <cyd@stupidchicken.com>
9125
9126 * xdisp.c (redisplay_window): Revert last change.
9127 (try_window): Check bottom scroll margin too.
9128
91292008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9130
9131 * config.in: Regenerate.
9132
9133 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9134 -list-load-path-shadows'.
9135 (nsgui.h): Reduce number of things depending on it.
9136
91372008-08-06 Chong Yidong <cyd@stupidchicken.com>
9138
9139 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9140 instead of window-end which does the wrong thing at eob.
9141 (try_cursor_movement): Minor optimization.
9142 (redisplay_window): If scroll margin is defined, don't assume
9143 window doesn't need scrolling.
9144
91452008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9146
9147 * config.in: Regenerate.
9148
9149 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9150 (mostlyclean): Don't delete *.d under NS.
9151
9152 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9153
91542008-08-06 Kenichi Handa <handa@m17n.org>
9155
9156 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9157
91582008-08-06 Andreas Schwab <schwab@suse.de>
9159
9160 * config.in: Regenerate.
9161
91622008-08-05 Chong Yidong <cyd@stupidchicken.com>
9163
9164 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9165 forcing a window start.
9166
9167 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9168 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9169
91702008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9171
9172 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9173 argument.
9174
91752008-08-05 Juanma Barranquero <lekktu@gmail.com>
9176
9177 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9178 <scroll-down-aggressively, before-change-functions>:
9179 <after-change-functions>: Reflow docstrings.
9180
91812008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9182 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9183
9184 Dock menu customization, based on a patch by Ken Raeburn, plus some
9185 other fixes.
9186 * nsmenu.m (dockMenu): New variable.
9187 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9188
9189 * nsterm.h (dockMenu): Declare.
9190
9191 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9192 (ns_term_init): Initialize dockMenu.
9193 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9194 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9195 left.
9196
9197 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9198
91992008-08-04 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9202
9203 * config.in: Regenerate.
9204
92052008-08-04 Seiji Zenitani <zenitani@mac.com>
9206
9207 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9208
92092008-08-04 Chong Yidong <cyd@stupidchicken.com>
9210
9211 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9212
92132008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9214
9215 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9216
9217 * keyboard.h: Comment an #endif.
9218
9219 * lisp.h (have_menus_p): Adjust comment.
9220
9221 * menu.c (find_and_return_menu_selection): Fix comparison with
9222 client_data.
9223
9224 * nsmenu.m (popup_activated_flag): New variable.
9225 (popup_activated): New function.
9226 (menu-or-popup-active-p): New exported lisp definition.
9227 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9228 when popup done.
9229 (ns_popup_dialog): Set popup_activated_flag.
9230
9231 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9232 version for GNUstep (handled by conditional typedef in nsterm.m).
9233 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9234 in rgb.txt).
9235
9236 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9237
9238 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9239
9240 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9241
9242 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9243 shortcircuit if popup_activated like GTK and X toolkit.
9244
9245 * m/inter386.h: Change DARWIN to DARWIN_OS.
9246
9247 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9248 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9249 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9250 comment on NO_SOCK_SIGIO.
9251
92522008-08-03 Chong Yidong <cyd@stupidchicken.com>
9253
9254 * nsterm.m (windowDidResize): Remove stopModal call.
9255
92562008-08-03 Andreas Schwab <schwab@suse.de>
9257
9258 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9259 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9260
92612008-08-02 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9264 Don't use uninitialized pointer variable when using getrlimit.
9265
92662008-08-02 Jason Rumney <jasonr@gnu.org>
9267
9268 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9269
92702008-08-02 Eli Zaretskii <eliz@gnu.org>
9271
9272 * alloc.c (NSTATICS): Bump to 0x640.
9273
9274 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9275
9276 * lisp.h: Add prototype for directory_files_internal.
9277
9278 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9279 New functions.
9280 (syms_of_process): Defsubr them. Add initializations for various
9281 Q* symbols used in procfs_system_process_attributes.
9282 (procfs_list_system_processes, procfs_system_process_attributes)
9283 [HAVE_PROCFS]: New functions.
9284 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9285 (procfs_get_total_memory): New functions.
9286
92872008-08-01 Juanma Barranquero <lekktu@gmail.com>
9288
9289 * xfaces.c (Fx_load_color_file): Fix previous change;
9290 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9291
92922008-08-01 Michael Albinus <michael.albinus@gmx.de>
9293
9294 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9295
92962008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9297
9298 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9299
93002008-08-01 Chong Yidong <cyd@stupidchicken.com>
9301
9302 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9303
9304 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9305 define NSApplicationDelegateReplySuccess.
9306 (EmacsView -converstationIdentifier): Use long instead of
9307 NSInteger for GNUstep, since it doesn't have NSInteger.
9308
9309 * xmenu.c: Revert last change.
9310
9311 * keyboard.h: Fix last change.
9312
93132008-08-01 Juanma Barranquero <lekktu@gmail.com>
9314
9315 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9316 on Windows.
9317
93182008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9319
9320 Warning clearing and clean-up in NS port.
9321 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9322 Add prototypes.
9323 * nsgui.h (FACE_DEFAULT): Remove, unused.
9324 (XGCValues): Change colors to unsigned long.
9325 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9326 nsterm.m.
9327 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9328 (ns_list_fonts): Remove, unused.
9329 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9330 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9331 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9332 (nsfont_draw): Compare face colors to 0, not nil.
9333 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9334 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9335 (-addSubmenuWithTitle:): Use NSMenuItem class.
9336 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9337 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9338 (ns_clip_to_row): Make gc arg a BOOL.
9339 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9340 ns_clip_to_row() call.
9341 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9342 used). Cast FRAME_FONT assignments.
9343 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9344 (ns_string_to_lispmod): Change arg to const char.
9345 (ns_term_init): Use NSMenuItem class.
9346 (EmacsApp -openFile:): Move to different section of file.
9347 (EmacsApp -application:openFiles:): Don't return a value, call
9348 -replyToOpenOrPrint:.
9349 (EmacsView -keyDown:): Fix up cast.
9350 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9351 (EmacsView -menuDown:): Cast tag in call to
9352 find_and_call_menu_selection().
9353 (ns_list_fonts): Remove, unused.
9354 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9355 (ns_fontname_to_xlfd): Make static.
9356 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9357 Remove prototypes (now in keyboard.h).
9358 (next_menubar_widget_id): Remove, unused.
9359 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9360 Remove prototypes (now in keyboard.h).
9361 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9362
93632008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9364
9365 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9366 (floatfns.o): Depend on syssignal.h.
9367 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9368
9369 * systty.h: Fix previous change that removed BSD_TERMIOS.
9370 Add comments to #ifdefs.
9371
93722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9373
9374 * w32fns.c (w32-load-color-file): Remove.
9375 (x-open-connection): Use renamed Fx_load_color_file.
9376 * xfaces.c (x-load-color-file): Add.
9377 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9378 Emacs.clr.
9379 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9380
93812008-07-31 Michael Albinus <michael.albinus@gmx.de>
9382
9383 * dbusbind.c (Fdbus_call_method_asynchronously)
9384 (Fdbus_method_error_internal): New defuns.
9385 (xd_read_message): Handle also reply messages.
9386 (Vdbus_registered_functions_table): Extend docstring.
9387
93882008-07-31 Juanma Barranquero <lekktu@gmail.com>
9389
9390 * keyboard.c (gobble_input): Fix previous change.
9391
93922008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9393
9394 * bitmaps/README:
9395 * xfns.c:
9396 * termcap.c:
9397 * term.c:
9398 * syswait.h:
9399 * systty.h:
9400 * systime.h:
9401 * syssignal.h:
9402 * sysdep.c:
9403 * process.h:
9404 * process.c:
9405 * print.c:
9406 * ndir.h:
9407 * lread.c:
9408 * keyboard.c:
9409 * getpagesize.h:
9410 * floatfns.c:
9411 * fileio.c:
9412 * emacs.c:
9413 * doc.c:
9414 * dispnew.c:
9415 * dired.c:
9416 * data.c:
9417 * callproc.c:
9418 * buffer.c:
9419 * README:
9420 * Makefile.in:
9421 * s/template.h:
9422 * s/msdos.h:
9423 * m/vax.h: Remove VMS support.
9424 * s/vms.h:
9425 * vlimit.h:
9426 * uaf.h:
9427 * temacs.opt:
9428 * param.h:
9429 * ioctl.h: Remove file.
9430
94312008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * s/ms-w32.h (MULTI_KBOARD): Remove.
9434 * xterm.c:
9435 * xselect.c:
9436 * xfns.c:
9437 * window.c:
9438 * w32term.c:
9439 * w32fns.c:
9440 * terminal.c:
9441 * termhooks.h:
9442 * term.c:
9443 * sysdep.c:
9444 * keyboard.h:
9445 * keyboard.c:
9446 * frame.h:
9447 * frame.c:
9448 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9449 * config.in: Regenerate.
9450
94512008-07-30 Jason Rumney <jasonr@gnu.org>
9452
9453 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9454
9455 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9456 (w32font_open_internal): Get unicode version of textmetrics.
9457 Don't enable or disable glyph indices here.
9458 (w32font_open): Disable use of glyph indices.
9459
9460 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9461
94622008-07-30 Chong Yidong <cyd@stupidchicken.com>
9463
9464 * minibuf.c (Vread_buffer_function): Doc fix.
9465
94662008-07-30 John Paul Wallington <jpw@pobox.com>
9467
9468 * minibuf.c (read_buffer_completion_ignore_case): New var.
9469 (Fread_buffer): Use it.
9470
94712008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9472
9473 * systty.h (sensemode): Remove empty #if. Remove reference to
9474 BSD_TERMIOS, unused.
9475
9476 * sysdep.c: Remove reference to DGUX.
9477 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9478
9479 * config.in: Regenerate.
9480
94812008-07-30 Jason Rumney <jasonr@gnu.org>
9482
9483 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9484
94852008-07-29 Jason Rumney <jasonr@gnu.org>
9486
9487 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9488 is populated.
9489 (uniscribe_encode_char): Always use uniscribe.
9490 Avoid using context if cache is populated.
9491
94922008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9493
9494 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9495 open menu.
9496
9497 * gtkutil.c (menu_nav_ended): Remove.
9498 (create_menus): Remove signal connect for menu_nav_ended.
9499
95002008-07-28 Chong Yidong <cyd@stupidchicken.com>
9501
9502 * xdisp.c (redisplay_window): Check return value of
9503 compute_window_start_on_continuation_line before forcing a window
9504 start.
9505
95062008-07-28 Jason Rumney <jasonr@gnu.org>
9507
9508 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9509
9510 * w32term.c (w32_enable_unicode_output, cleartype_active):
9511 Remove obsolete display options.
9512 (x_draw_glyph_string_background): Don't use old cleartype_active
9513 workaround.
9514 (w32_initialize): Remove cleartype_active initialization.
9515 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9516
95172008-07-28 Andreas Schwab <schwab@suse.de>
9518
9519 * lisp.h (init_weak_hash_tables, syms_of_font)
9520 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9521 (remove_hash_entry): Don't declare.
9522 * eval.c (maybe_call_debugger): Make static and move before use.
9523 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9524 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9525 * xterm.h (x_set_frame_alpha): Declare.
9526
95272008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9528
9529 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9530 (create_menus): Connect selection-done to menu_nav_ended.
9531
95322008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9533
9534 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9535 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9536 parameter with read of 'alpha' one.
9537 (Qns_frame_parameter): Remove.
5582fbc7 9538 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9539 (next-selection-coding-system, Vselection_coding_system)
9540 (Vnext_selection_coding_system): Drop.
9541
95422008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9543
9544 * nsfns.m (do-applescript, do_applescript): Rename to
9545 ns-do-applescript, ns_do_applescript, and move within file.
9546
95472008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9548
9549 Remove support for Mac Carbon.
9550 * mactoolbox.c:
9551 * macterm.h:
9552 * macterm.c:
9553 * macselect.c:
9554 * macmenu.c:
9555 * macgui.h:
9556 * macfns.c:
9557 * mac.c: Remove file.
9558 * s/darwin.h:
9559 * m/intel386.h:
9560 * xfaces.c:
9561 * xdisp.c:
9562 * window.c:
9563 * tparam.c:
9564 * termhooks.h:
9565 * termcap.c:
9566 * term.c:
9567 * syssignal.h:
9568 * sysselect.h:
9569 * sysdep.c:
9570 * process.c:
9571 * lread.c:
9572 * lisp.h:
9573 * keyboard.c:
9574 * image.c:
9575 * fringe.c:
9576 * frame.h:
9577 * frame.c:
9578 * fontset.c:
9579 * font.h:
9580 * font.c:
9581 * fns.c:
9582 * fileio.c:
9583 * emacs.c:
9584 * dispnew.c:
9585 * dispextern.h:
9586 * config.in:
9587 * atimer.c:
2ae37cf0 9588 * Makefile.in: Remove code for Carbon.
aac0c6e3 9589
f0131492 95902008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9591
9592 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9593
95942008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9595
9596 * macterm.h (kCGBitmapByteOrder32Host): New define for
9597 non-universal SDKs.
9598
9599 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9600 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9601
9602 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9603 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9604
96052008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9606
9607 * w32inevt.c: Include dispextern.h.
9608
96092008-07-26 Andreas Schwab <schwab@suse.de>
9610
9611 * print.c (print_object): Fix off-by-one in last change.
9612
96132008-07-25 Juanma Barranquero <lekktu@gmail.com>
9614
9615 * term.c (syms_of_term): Don't initialize default_orig_pair,
9616 default_set_foreground and default_set_background on Windows.
9617
96182008-07-25 Jason Rumney <jasonr@gnu.org>
9619
9620 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9621 ScriptItemize. Clean up return value checking. Remove unused
9622 variables.
9623 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9624 shaping engine.
9625
9626 * w32font.c (w32font_has_char): Handle the case where we can't
9627 determine the script for a character.
9628
96292008-07-25 Chong Yidong <cyd@stupidchicken.com>
9630
9631 * term.c (syms_of_term): Initialize default_orig_pair,
9632 default_set_foreground, and default_set_background.
9633
9634 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9635 clash (bug#86).
9636 (getloadavg): Callers changed.
9637
9638 * image.c (svg_load_image): Fix last change.
9639 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9640 image size is valid. Use g_object_unref instead of deprecated
9641 rsvg_handle_free to free rsvg handle.
9642 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9643
96442008-07-25 Jason Rumney <jasonr@gnu.org>
9645
9646 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9647 surrogates before looking up glyph index.
9648 (w32font_text_extents): Encode as surrogates if falling back to
9649 functions that need UTF-16 wide chars.
9650
9651 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9652 BMP as surrogates before looking up glyph index.
9653
96542008-07-25 Chong Yidong <cyd@stupidchicken.com>
9655
9656 * image.c (svg_load_image): Check for failure in return value of
9657 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9658
96592008-07-25 Jason Rumney <jasonr@gnu.org>
9660
9661 * w32font.c (Fx_select_font): Reverse sense of second arg.
9662
96632008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9664
9665 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9666 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9667
9668 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9669 (PURESIZE): Use it.
9670
96712008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9672
9673 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9674 * m/alpha.h (TEXT_END):
9675 * m/ibmrs6000.h (TEXT_END):
9676 * m/macppc.h (TEXT_END):
9677 * s/darwin.h (TEXT_END):
9678 * s/msdos.h (TEXT_END): Remove, unused.
9679 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9680 * s/cygwin.h: Remove comment.
9681
9682 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9683 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9684 * m/intel386.h (DOT_GLOBAL_START):
9685 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9686 (USG): Remove, file not used on USG platforms.
9687
9688 * Makefile.in (HAVE_X11): Remove empty #else.
9689
96902008-07-24 Andreas Schwab <schwab@suse.de>
9691
9692 * fileio.c (Finsert_file_contents): Properly adjust undo list
9693 after format conversion.
9694
96952008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9696
9697 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9698 (menu_nav_ended): Remove.
9699 (create_menus): Remove signal connect for menu_nav_ended.
9700 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9701 create_menus.
9702 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9703
97042008-07-23 Jason Rumney <jasonr@gnu.org>
9705
9706 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9707 with opened font.
9708 (w32font_open): Set font type to gdi.
9709
9710 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9711
97122008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9713
9714 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9715 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9716 defines it.
9717 * unexec.c (ADDR_CORRECT): Define unconditionally.
9718
9719 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9720
9721 * unexec.c: Remove code depending on !COFF and USG, the file is
9722 not used for such systems.
9723
9724 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9725 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9726 (LD_SWITCH_SYSTEM_1): Remove, update users.
9727
9728 * s/darwin.h (DATA_END):
9729 * m/intel386.h (DATA_END):
9730 * m/ibmrs6000.h (DATA_END):
9731 * m/alpha.h (DATA_END): Remove, unused.
9732
9733 * config.in: Regenerate.
9734 * s/ms-w32.h (subprocesses): Define unconditionally.
9735 * s/template.h (subprocesses): Update comment.
9736 * s/vms.h (subprocesses):
9737 * s/usg5-4.h (subprocesses):
9738 * s/hpux10-20.h (subprocesses):
9739 * s/gnu-linux.h (subprocesses):
9740 * s/cygwin.h (subprocesses):
9741 * s/bsd-common.h (subprocesses):
9742 * s/aix4-2.h (subprocesses):
9743 * s/darwin.h (subprocesses): Do not define, defined by default now.
9744
9745 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9746 Remove all references.
9747 (temacs): Add GNUstep specific ld flags.
9748
9749 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9750 similarly to what X does.
9751
97522008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9753
9754 * nsfns.m (x-list-fonts): Remove.
9755 (syms_of_nsfns): Drop the x-list-fonts declaration.
9756 * nsterm.m: Get rid of remaining "//" comments.
9757
97582008-07-22 Chong Yidong <cyd@stupidchicken.com>
9759
9760 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9761
9762 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9763 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9764 (Fns_own_selection_internal, Fx_disown_selection_internal)
9765 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9766
9767 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9768 ... */' style of docstrings. Doc fixes.
9769
97702008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9771
9772 * terminfo.c (UP, BC, PC): Undo previous change.
9773
9774 * nsfns.m: Rename ns prefixed functions/variables to the
9775 corresponding x versions. Update references.
9776
97772008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9778
9779 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9780
97812008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9782
9783 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9784 Remove forwarding functions.
9785 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9786 non-static.
9787 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9788 non-static.
9789 (ns_frame_parm_handlers): Use the new names.
9790 (syms_of_nsfns): Move to the end of file.
9791
9792 * nsterm.m (syms_of_nsterm): Move to the end of file.
9793
9794 * dispnew.c (init_display): Remove code for X10.
9795
97962008-07-22 Jason Rumney <jasonr@gnu.org>
9797
9798 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9799 bare drive.
9800
98012008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9802
9803 * nsterm.m (syms_of_nsterm): Remove debugging println.
9804
98052008-07-22 David Reitter <david.reitter@gmail.com>
9806
9807 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9808 Carbon implementation of the same functionality: execute arbitrary
9809 AppleScript code.
9810
98112008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9812
9813 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9814 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9815 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9816 (Fx_display_mm_height, Fx_display_mm_width)
9817 (Fx_display_backing_store, Fx_display_visual_class)
9818 (Fx_display_save_under, Fx_open_connection)
9819 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9820 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9821 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9822 (Fx_display_pixel_width, Fx_display_pixel_height)
9823 (Fx_display_usable_bounds, Fx_display_planes)
9824 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9825 ... */' style of docstrings.
9826
98272008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9828
9829 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9830 on this platform.
9831 (mips):
9832 * m/iris4d.h (mips): Do not define.
9833 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9834
9835 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9836
9837 * image.c:
9838 * nsfns.m:
9839 * nsselect.m:
9840 * nsterm.h:
9841 * nsterm.m: Rename ns prefixed functions/variables to the
9842 corresponding x versions. Update references.
9843
9844 * m/ibms390x.h (NO_REMAP): Do not undefine.
9845
9846 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9847
98482008-07-21 Chong Yidong <cyd@stupidchicken.com>
9849
9850 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9851 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9852 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9853 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9854 (Fns_display_mm_height, Fns_display_mm_width)
9855 (Fns_display_backing_store, Fns_display_visual_class)
9856 (Fns_display_save_under, Fns_open_connection)
9857 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9858 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9859 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9860 (Fns_display_pixel_width, Fns_display_pixel_height)
9861 (Fns_display_usable_bounds, Fx_display_planes)
9862 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9863
98642008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9865
9866 * print.c (print_object): Check print_depth before searching for
9867 circularities.
9868
98692008-07-21 Michael Albinus <michael.albinus@gmx.de>
9870
9871 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9872 only sprintf.
9873
98742008-07-21 Kenichi Handa <handa@m17n.org>
9875
9876 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9877
98782008-07-20 Andreas Schwab <schwab@suse.de>
9879
9880 * syntax.c (find_start_pos, find_start_value)
9881 (find_start_value_byte, find_start_begv, find_defun_start)
9882 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9883
98842008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9885
9886 * s/sol2-3.h: Insert contents of s/sol2.h.
9887 (LD_SWITCH_SYSTEM): Remove redundant definition.
9888 * s/sol2.h: Remove, unused.
9889
98902008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9891
9892 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9893
98942008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9895
9896 * Makefile.in (ns_appdir): Fix typo in find command.
9897
98982008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9899
9900 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9901
9902 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9903 added not supported anymore.
9904
9905 * s/usg5-4-2.h (LIBS_SYSTEM):
9906 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9907
9908 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9909 * s/lynxos.h (GETPGRP_NO_ARG):
9910 * s/hpux10-20.h (NO_SIOCTL_H):
9911 * s/gnu.h (GETPGRP_NO_ARG):
9912 * s/gnu-linux.h (NO_SIOCTL_H):
9913 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9914 * s/cygwin.h (GETPGRP_NO_ARG):
9915 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9916 (C_DEBUG_SWITCH): Remove duplicate definition.
9917
9918 * m/ibms390.h: Remove boilerplate comments.
9919
9920 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9921
9922 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9923 (wait_reading_process_output): Remove code for SunOS, platform not
9924 supported anymore. Use SOLARIS2 instead of sun.
9925
99262008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9927
9928 * font.c (font_open_by_name): Under NS, default lface height to zero.
9929 (font_open_for_lface): Under NS, set size based on frame fontsize.
9930 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9931 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9932
99332008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9934
9935 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9936 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9937 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9938 YES/NO.
9939 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9940 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9941 * Makefile.in (clean): Clear out build destination dir.
9942
99432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9944
9945 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9946 xterm, xselect.
9947 * lisp.h: Remove declaration of hash_remove.
9948 * nsgui.h: Remove redefinitions of hash_remove.
9949 * fns.c (hash_remove): Rename to hash_remove_from_table.
9950
99512008-07-19 Seiji Zenitani <zenitani@mac.com>
9952
9953 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9954 strdup() the family UTF8String before modifying it.
9955
99562008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9957
9958 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9959 NS_FACE_BACKGROUND with 0 instead of nil.
9960 * nsfont.m (nsfont_draw): Same.
9961
99622008-07-19 Chong Yidong <cyd@stupidchicken.com>
9963
9964 * nsfns.m (ns_set_background_color): Fix crash.
9965
99662008-07-18 Chong Yidong <cyd@stupidchicken.com>
9967
9968 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9969
99702008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9971
9972 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9973
99742008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9975
9976 * gtkutil.c: Include <config.h> instead of "config.h".
9977
9978 * lisp.h (Foverlay_buffer): Add EXFUN.
9979
9980 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9981 child process to complete child_setup. Undo 2005-09-21 change.
9982
9983 * s/darwin.h: Mention setsid after vfork.
9984
99852008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9986
9987 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9988 Depend on macgui.h.
9989
9990 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9991 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9992
9993 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9994 and f19.
9995 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9996
9997 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9998 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9999 Remove enumerators.
10000
10001 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10002 Check if FACE_FROM_ID returns NULL.
10003
100042008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10005
10006 * w32inevt.c (change_frame_size): Remove extern declaration.
10007 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10008 change_frame_size.
10009
100102008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10011
10012 * getloadavg.c: Revert last change (2008-07-15).
10013
100142008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10015
10016 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10017 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10018 from configure.
10019
100202008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10021
10022 * s/sol2.h:
10023 * s/sol2-4.h: Reorganize conditionals.
10024
10025 * ecrt0.c: Remove code depending on m68000, not used anymore.
10026
10027 * fns.c (hash_remove): Make static.
10028 * lisp.h (hash_remove): Don't prototype.
10029
10030 * m/ibmrs6000.h:
10031 * m/ibms390x.h:
10032 * m/macppc.h: Remove boilerplate comments.
10033
10034 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10035 Solaris, which does not need them.
10036
10037 * m/vax.h: Remove comments about unsupported systems.
10038
10039 * s/darwin.h: Reorganize ifdefs.
10040
100412008-07-17 Andreas Schwab <schwab@suse.de>
10042
10043 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10044
100452008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 Use SDATA. Follow coding convention of placing operators at
10048 beginning of next line rather than end of previous line, and placing
10049 spaces around infix operators.
10050
10051 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10052 in case it was defined already.
10053 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10054 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10055 ns_default.
10056 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10057 Lisp_Objects.
10058 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10059 (ns_defined_color, ns_color_to_lisp): Declare.
10060 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10061 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10062 it's accepted even with USE_LISP_UNION_TYPE.
10063 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10064 (update_frame_tool_bar): Remove apparently obsolete tests for
10065 non-integerness of f->tool_bar_lines.
10066 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10067 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10068 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10069 (nsfont_open): Don't confuse NULL for Qnil.
10070 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10071 * menu.h (find_and_call_menu_selection):
10072 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10073 (find_and_return_menu_selection): Always return something.
10074 * frame.h: Include dispextern.h for Display_Info.
10075 (display_x_get_resource): Declare.
10076
100772008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10078
10079 * syntax.c: Remove stdio.h include accidentally introduced in
10080 Emacs.app commit.
10081 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10082 NS_IMPL_COCOA.
10083 * keyboard.c (handle_async_input, input_available_signal): Remove
10084 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10085
100862008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10087
10088 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10089 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10090 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10091 Use SDATA.
10092
10093 * keymap.c: Remove all NS-specific code.
10094 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10095 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10096 where_is_preferred_modifier, return a different value depending on how
10097 preferred is the binding.
10098 (where_is_internal): Adjust accordingly.
10099 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10100 Adjust to new preferred_sequence_p.
10101 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10102 * keyboard.c (parse_solitary_modifier): Not static any more.
10103 * keyboard.h (parse_solitary_modifier): Declare.
10104
101052008-07-16 Andreas Schwab <schwab@suse.de>
10106
10107 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10108 of easymenu.
10109
101102008-07-16 Chong Yidong <cyd@stupidchicken.com>
10111
10112 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10113 that we don't move off the line.
10114
101152008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10116
10117 * keyboard.c (Qsuper): Remove.
10118 (parse_menu_item): Don't call where_is_internal specially for NS.
10119
101202008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10121
10122 * s/gnu-linux.h: Remove boilerplate comments.
10123
10124 * m/alpha.h (__ELF__): Consolidate conditions.
10125
10126 * m/m68k.h (linux): Use GNU_LINUX instead.
10127 Remove boilerplate comments.
10128
10129 * m/intel386.h: Undo refactoring from previous change.
10130 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10131 too, remove dead code.
10132 (linux): Use GNU_LINUX instead.
10133
101342008-07-16 Jason Rumney <jasonr@gnu.org>
10135
10136 * w32gui.h: Repeat 26 June changes lost by last change.
10137
101382008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10139
10140 * systty.h: Remove code for Aix on 386, unsupported platform.
10141
10142 * s/ms-w32.h: Remove boilerplate comments.
10143 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10144
10145 * s/gnu-linux.h (TERM): Remove support.
10146 (HAVE_SYSVIPC): Remove, unused.
10147 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10148 for this system.
10149
10150 * process.c: Remove support for IRIS, unused.
10151 Remove support for TERM, not relevant anymore.
10152
10153 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10154 used with the definition.
10155
10156 * s/aix4-2.h (static): Do not undef.
10157
10158 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10159 only used on Aix.
10160 (HAVE_SYSVIPC): Remove, unused.
10161
10162 * m/hp800.h (CANNOT_DUMP): Do not undef.
10163
10164 * m/alpha.h: Fix comment.
10165
10166 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10167 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10168 used by this configuration.
10169 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10170 * unexec.c: Remove code depending on HPUX and
10171 USG_SHARED_LIBRARIES, not used with this file. Remove code
10172 depending on IRIS, unused. Remove if 0-ed code.
10173
10174 * s/template.h: Remove comments about static.
10175
10176 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10177 Remove if 0-ed code.
10178 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10179 were the same as the default.
10180 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10181 Remove boilerplate comments.
10182 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10183 (HAVE_SYSVIPC): Remove, unused.
10184 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10185
10186 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10187 Remove boilerplate comments.
10188 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10189 Remove boilerplate comments.
10190 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10191 Remove boilerplate comments.
10192 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10193
10194 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10195 USG systems which do not use DATA_SEG_BITS.
10196 Refactor code. Remove boilerplate comments.
10197
10198 * m/ibms390.h:
10199 * m/m68k.h:
10200 * s/bsd-common.h:
10201 * s/cygwin.h:
10202 * s/darwin.h:
10203 * s/freebsd.h:
10204 * s/gnu.h:
10205 * s/msdos.h: Remove boilerplate comments.
10206
10207 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10208 do not use this file.
aac0c6e3
MR
10209 (IRIS_4D): Remove, unused.
10210
10211 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10212 do not use this file.
aac0c6e3
MR
10213 (SIGN_EXTEND_CHAR):
10214 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10215 * unexmips.c: Remove file, unused.
10216
10217 * editfns.c (Fuser_full_name): Replace the only use of
10218 USER_FULL_NAME with its value.
10219 * config.in: Regenerate.
10220
102212008-07-16 David Reitter <david.reitter@gmail.com>
10222
10223 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10224 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10225
102262008-07-16 Glenn Morris <rgm@gnu.org>
10227
10228 * emacs.c (system-type): Doc fix.
10229
102302008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10231
10232 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10233 If the cache doesn't work, let's fix it, rather than work around it.
10234
102352008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10236
10237 * Makefile.in: Correct additions for nsfont.o in last commit.
10238 * nsfont.m: New file (forgot last commit).
10239
102402008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10241
10242 * callproc.c (set_initial_environment): Initialize
10243 Vprocess_environment under CANNOT_DUMP (fixes crash when
10244 batch-compiling for bootstrap).
10245
102462008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10247 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10248
10249 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10250 fix crash due to different init order.
10251
102522008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10253
10254 Changes and additions for NeXTstep windowing system (Cocoa and
10255 GNUstep) support.
10256
10257 * Makefile.in:
10258 * config.in: Support defines and build commands for NS port.
10259 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10260 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10261 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10262 windowing.
10263 (struct face): Add synth_ital field.
10264 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10265 (init_display): Initialize Vinitial_window_system to "ns" when so
10266 compiled.
10267 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10268 (display_arg): Use under NS.
10269 (main): Under NS, allocate autorelease pool and handle command line
10270 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10271 (standard_args): Add NS-specific args.
10272 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10273 * font.c (DEFAULT_ENCODING): New variable.
10274 (font_find_for_lface): Use it.
10275 (syms_of_font): Load syms_of_nsfont under NS.
10276 * font.h: Declare nsfont_driver when compiled under NS.
10277 * fontset.c: When compiling under NS, include nsterm.h.
10278 (fontset_from_font): Autoconstruct fontset under NS.
10279 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10280 symbol, document and use it.
10281 (do_switch_frame): When for_deletion under Cocoa, add
10282 Fraise_frame(Qnil).
10283 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10284 (x_get_arg): Allow "yes" and "no" as boolean values.
10285 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10286 Qright under Cocoa.
10287 (focus-follows-mouse): Default to 0 under NS.
10288 * frame.h (enum output_method): Add output_ns.
10289 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10290 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10291 (FRAME_WINDOW_P): NS-specific definition.
10292 * fringe.c (max_used_fringe_bitmap): Make public.
10293 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10294 (getloadavg): Use NeXT code under descendant OS's.
10295 * image.c (includes and header section, x_create_bitmap_from_data)
10296 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10297 (image_background_transparent, x_clear_image_1)
10298 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10299 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10300 (x_to_xcolors, x_from_xcolors, x_disable_image)
10301 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10302 other GUIs, including XPM support using code originally written for
10303 Carbon GUI.
10304 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10305 using NS API.
10306 (image_ascent): Use font metrics macros instead of direct struct field
10307 access.
10308 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10309 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10310 Also, handle NS as GTK for menu bar purposes.
10311 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10312 toolkit where they differ.
10313 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10314 use cachelist, still needed under NS.
10315 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10316 (struct widget_value): Define it here for menu.c.
10317 * keymap.c (includes): Include modifier internals.
10318 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10319 NS.
10320 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10321 support for preferring sequences using certain modifiers, specified by
10322 the FIRSTONLY argument.
10323 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10324 under NS GNUstep implementation.
10325 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10326 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10327 * menu.c: Include nsterm.h under NS.
10328 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10329 (free_menubar_widget_tree_value, update_submenu_strings)
10330 (find_and_call_menu_selection): Treat NS as X and NT.
10331 (find_and_return_menu_selection): New function, used for popup menus.
10332 * nsgui.h:
10333 * nsterm.h:
10334 * nsfns.m:
10335 * nsimage.m:
10336 * nsmenu.m:
10337 * nsselect.m:
10338 * nsterm.m: New files.
10339 * process.c (wait_reading_process_output): Under NS, call ns_select()
10340 instead of plain select().
10341 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10342 beginning of buffer.
10343 * sysselect.h (init_process): Rename when compiling under Cocoa to
10344 avoid name conflict.
10345 * termhooks.h (display_info): Add ns_display_info to union.
10346 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10347 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10348 COCOA environment.
10349 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10350 unexec() signature. (Note, this will dump, but the resulting file
10351 crashes; unexosx is used instead; keeping around for reference and
10352 possible aid in getting dump working under GNUstep.)
10353 * w32gui.h (button_type, widget_value): Remove definitions (now in
10354 keyboard.h).
10355 * window.c: Include nsterm.h when compiling under NS.
10356 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10357 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10358 other GUI windowing systems.
10359 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10360 GTK.
10361 (x_consider_frame_title): Under NS, set icon type and frame
10362 modified-state indicator; use ns_set_name_as_filename() when using
10363 formatted title.
10364 (update_window_cursor): Make public when compiling under NS.
10365 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10366 (hourglass_atimer, Vhourglass_delay
10367 * xfaces.c (header section, init_frame_faces, clear_font_table)
10368 (defined_color, unload_color, x_face_list_fonts)
10369 (prepare_face_for_display): Add NS support parallel to other GUIs.
10370 Emulate GCs like other non-X GUIs.
10371 (split_font_name): Don't lowercase font name under NS.
10372 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10373 under NS.
10374 * s/darwin.h: Add support for compilation under NS.
10375
103762008-07-15 Jason Rumney <jasonr@gnu.org>
10377
10378 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10379 (w32_show_hourglass): Rename from show_hourglass.
10380 (w32_hide_hourglass): Rename from hide_hourglass.
10381 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10382 (Vhourglass_delay): Declare extern.
10383 (hourglass_started): Remove.
10384
10385 * xdisp.c (Vhourglass_delay): Remove static.
10386 (hourglass_started, start_hourglass, cancel_hourglass):
10387 Don't include these versions on WINDOWSNT.
10388
103892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10390
10391 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10392 variables (formerly in xfns.c).
10393 (show_hourglass, hide_hourglass): New prototypes (same).
10394 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10395 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10396 in xfns.c).
10397 (syms_of_xdisp): Declare/initialize display-hourglass,
10398 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10399 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10400 formerly in xfns.c.
10401 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10402 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10403 (start_hourglass, cancel_hourglass): Remove.
10404 (show_hourglass, hide_hourglass): Remove prototypes and static
10405 modifiers.
10406 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10407 hourglass_atimer, hourglass_shown_p declaration/initialization.
10408 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10409 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10410 (start_hourglass, cancel_hourglass): Remove.
10411 (show_hourglass, hide_hourglass): Remove prototypes and static
10412 modifiers.
10413 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10414 hourglass_atimer, hourglass_shown_p declaration/initialization.
10415 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10416 (DEFAULT_HOURGLASS_DELAY): Remove.
10417 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10418 hourglass_shown_p declaration/initialization.
10419
104202008-07-14 Jason Rumney <jasonr@gnu.org>
10421
10422 * w32fns.c (w32_get_arg): Remove wrapper function.
10423 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10424 directly.
10425 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10426
104272008-07-14 Kenichi Handa <handa@m17n.org>
10428
10429 * xfont.c (xfont_open): Add workaround for X's bug.
10430
104312008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10432
10433 * fontset.c: Include <stdio.h> unconditionally.
10434
104352008-07-13 Michael Albinus <michael.albinus@gmx.de>
10436
10437 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10438 for filtering.
10439
104402008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10441
10442 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10443
10444 * m/macppc.h:
10445 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10446
10447 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10448 (SPECIAL_EMACS_INT):
10449 * m/ia64.h (SPECIAL_EMACS_INT):
10450 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10451 * s/gnu.h (NLIST_STRUCT):
10452 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10453 * s/gnu-linux.h (LINUX):
10454 * s/msdos.h (HAVE_FACES):
10455 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10456
10457 * systty.h:
10458 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10459 anymore.
10460
104612008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10462
10463 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10464 always defined as int.
10465
10466 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10467 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10468 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10469 * s/freebsd.h (HAVE_WAIT_HEADER):
10470 * s/bsd-common.h (HAVE_UNION_WAIT):
10471 * s/aix4-2.h (HAVE_WAIT_HEADER):
10472 * m/mips.h (HAVE_UNION_WAIT):
10473 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10474 (COFF, static): Do not define, they are undefined later in the file.
10475
10476 * process.c (update_status): Don't use a union.
10477 (status_convert):
10478 (sigchld_handler): Use int instead of WAITTYPE.
10479
104802008-07-12 Chong Yidong <cyd@stupidchicken.com>
10481
10482 * indent.c (Fvertical_motion): Restore hscroll before moving to
10483 goal column.
10484
104852008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10486
10487 * lisp.h: Remove left over code.
10488
104892008-07-11 Andreas Schwab <schwab@suse.de>
10490
10491 * lisp.h: Fix logic in last change.
10492
10493 * menu.h: New file.
10494 * menu.c: Include it.
10495 * xmenu.c: Likewise.
10496 * Makefile.in: Update dependencies.
10497
104982008-07-11 Kenichi Handa <handa@m17n.org>
10499
10500 * fontset.c (fontset_from_font): Cancel the previous change.
10501
105022008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10503
10504 * lisp.h:
10505 * w32heap.c:
10506 * emacs.c:
10507 * alloc.c: Replace all references of NO_UNION_TYPE with
10508 USE_LISP_UNION_TYPE.
10509
10510 * m/xtensa.h (NO_UNION_TYPE):
10511 * m/vax.h (NO_UNION_TYPE):
10512 * m/template.h (NO_UNION_TYPE):
10513 * m/sparc.h (NO_UNION_TYPE):
10514 * m/mips.h (NO_UNION_TYPE):
10515 * m/macppc.h (NO_UNION_TYPE):
10516 * m/m68k.h (NO_UNION_TYPE):
10517 * m/iris4d.h (NO_UNION_TYPE):
10518 * m/intel386.h (NO_UNION_TYPE):
10519 * m/ibms390x.h (NO_UNION_TYPE):
10520 * m/ibms390.h (NO_UNION_TYPE):
10521 * m/ibmrs6000.h (NO_UNION_TYPE):
10522 * m/ia64.h (NO_UNION_TYPE):
10523 * m/hp800.h (NO_UNION_TYPE):
10524 * m/arm.h (NO_UNION_TYPE):
10525 * m/amdx86-64.h (NO_UNION_TYPE):
10526 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10527 defining it the same.
10528
105292008-07-10 Chong Yidong <cyd@stupidchicken.com>
10530
10531 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10532
105332008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10534
10535 * fileio.c:
50426a04 10536 * sysdep.c:
aac0c6e3
MR
10537 * systty.h:
10538 * m/ibmrs6000.h:
10539 * m/iris4d.h:
10540 * s/aix4-2.h:
10541 * s/freebsd.h:
10542 * s/gnu-linux.h:
10543 * s/hpux10-20.h:
10544 * s/hpux11.h:
10545 * s/netbsd.h:
10546 * s/sol2-3.h:
10547 * s/sol2-4.h:
10548 * s/sol2.h:
10549 * s/usg5-4.h:
10550 * s/vms.h: Remove references to unused variables.
10551
105522008-07-10 Andreas Schwab <schwab@suse.de>
10553
10554 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10555 pattern before matching the generic family.
10556
105572008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10558
10559 * unexec.c:
10560 * s/vms.h:
10561 * s/usg5-4-2.h:
10562 * s/sol2-5.h:
10563 * s/freebsd.h:
10564 * s/darwin.h: Remove dead code.
10565
10566 * m/template.h:
10567 * m/sparc.h:
10568 * m/mips.h:
10569 * m/m68k.h:
10570 * m/iris4d.h:
10571 * m/intel386.h:
10572 * m/ibms390x.h:
10573 * m/ibms390.h:
10574 * m/ia64.h:
10575 * m/hp800.h:
10576 * m/arm.h:
10577 * m/amdx86-64.h: Remove dead code and references to unused
10578 and compiler defined symbols.
10579
10580 * unexmips.c:
10581 * unexelf.c: Remove references to desupported systems.
10582
10583 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10584
10585 * m/powermac.h: Remove boilerplate comments.
10586 (NO_REMAP): Remove unused definition.
10587
10588 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10589 define them.
10590
105912008-07-10 Kenichi Handa <handa@m17n.org>
10592
10593 * xfont.c (xfont_open): Log the reason of failure.
10594
105952008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10596
10597 * fontset.c (fontset_get_font_group):
10598 * font.c (font_check_otf): Specify argument types.
10599
106002008-07-09 Kenichi Handa <handa@m17n.org>
10601
10602 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10603 non-ASCII char is found.
10604
10605 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10606 (reorder_font_vector): Change the arg preferred_family to font.
10607 Prefer the spec matching with font.
10608 (fontset_get_font_group): New function.
10609 (fontset_find_font): Change the format of an element of a realized
10610 fontset. Use fontset_get_font_group.
10611 (fontset_font): Try the current fontset, the default fontset, the
10612 fallbacks of the current fontset, and the fallbacks of the default
10613 fontset in this order.
10614 (face_for_char): Delete the shortcut to use the current font.
10615 (fontset_from_font): Don't set fonts for Latin in the fontset.
10616
10617 * font.h (font_make_object, font_match_p): Adjust prototypes.
10618
10619 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10620
10621 * font.c (font_make_object): New arg entity and pixelsize.
10622 (font_check_otf_features, font_check_otf): New functions.
10623 (font_match_p): Check :lang, :script, and :otf properties.
10624
10625 * xfont.c (xfont_open): Adjust it for the change of
10626 font_make_object.
10627 (xfont_text_extents): Fix initial setting of metrics.
10628
10629 * ftfont.c (struct ftfont_info): New member index, delete member
10630 fc_charset_idx. Make the member order compatible with struct
10631 xftfont_info.
10632 (fc_charset_table): Change charset names to registry names.
10633 (ftfont_pattern_entity): Delete the args registry and
10634 fc_charset_idx. Change the value of :font-entity property
10635 to (FONTNAME . INDEX). Always set :registry property to
10636 `iso10646-1'.
10637 (struct ftfont_cache_data): New struct.
10638 (ftfont_lookup_cache): New arg for_face.
10639 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10640 (ftfont_driver): Set the member otf_capability.
10641 (ftfont_get_charset): Adjust it for the change of
10642 fc_charset_table.
10643 (OTF_TAG_SYM): New macro.
10644 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10645 for the change of fc_charset_table.
10646 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10647 ftfont_pattern_entity. Add FC_INDEX to objset.
10648 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10649 and ftfont_pattern_entity.
10650 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10651 font_make_object, struct ftfont_info.
10652 (ftfont_has_char): Use ftfont_get_fc_charset.
10653 (ftfont_otf_features, ftfont_otf_capability): New functions.
10654 (ftfont_shape): Use ftfont_get_otf.
10655 (ftfont_text_extents): Fix initial setting of metrics.
10656
10657 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10658 member order compatible with struct ftfont_info.
10659 (xftfont_open): Add FC_CHARSET to the pattern. Set
10660 xftfont_info->ft_size. Don't unlock the face. Check BDF
10661 properties if appropriate.
10662 (xftfont_close): Unlock the face.
10663 (xftfont_anchor_point, xftfont_shape): Deleted.
10664 (syms_of_xftfont): Don't set members anchor_point and shape of
10665 xftfont_driver.
10666
10667 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10668 font_make_object.
10669
10670 * w32font.c (w32font_open): Adjust it for the change of
10671 font_make_object.
10672 (w32font_open_internal): Don't set properties of font_object here.
10673
106742008-07-08 Chong Yidong <cyd@stupidchicken.com>
10675
10676 * macfns.c (x_create_tip_frame):
10677 * w32fns.c (x_create_tip_frame):
10678 * xfns.c (x_create_tip_frame): Pass parameter argument to
10679 face-set-after-frame-default.
10680
10681 * xfaces.c (Finternal_merge_in_global_face): Save merged
10682 attributes for the default face back into the face vector.
10683
106842008-07-08 Andreas Schwab <schwab@suse.de>
10685
10686 * fontset.h: Declare fontset_from_font. Don't declare
10687 new_fontset_from_font and fontset_from_font_name.
10688 * xterm.c: Include "fontset.h".
10689 * Makefile.in (xterm.o): Update dependencies.
10690
106912008-07-08 Glenn Morris <rgm@gnu.org>
10692
10693 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10694 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10695
106962008-07-07 Chong Yidong <cyd@stupidchicken.com>
10697
10698 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10699 (x_set_frame_parameters): Don't bind it.
10700
107012008-07-07 Juanma Barranquero <lekktu@gmail.com>
10702
10703 * w32fns.c (map_w32_filename): Declare extern.
10704
107052008-07-07 Jason Rumney <jasonr@gnu.org>
10706
10707 * w32term.c (WS_EX_LAYERED): Define if not already.
10708
107092008-07-06 Chong Yidong <cyd@stupidchicken.com>
10710
10711 * xfaces.c (set_font_frame_param): Don't try to set the font
10712 parameter if it is still unspecified in the lface.
10713
107142008-07-05 Chong Yidong <cyd@stupidchicken.com>
10715
10716 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10717 face if it didn't already exist.
10718
10719 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10720
107212008-07-05 Andreas Schwab <schwab@suse.de>
10722
10723 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10724
107252008-07-05 Chong Yidong <cyd@stupidchicken.com>
10726
10727 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10728 word-wrapping.
10729 (IT_DISPLAYING_WHITESPACE): New macro.
10730 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10731 when word-wrapping. Simplify word-wrapping logic. Use correct
10732 pixel positions when saving copies of the iterator.
10733 (display_line): Use proper wrap point if the last character on a
10734 line was preceded by whitespace.
10735
107362008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10739
107402008-07-04 Kenichi Handa <handa@m17n.org>
10741
10742 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10743
10744 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10745
107462008-07-02 Jason Rumney <jasonr@gnu.org>
10747
10748 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10749 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10750
10751 * xdisp.c (next_element_from_display_vector): Move assignment out
10752 of if statement.
10753
107542008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10755
10756 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10757
10758 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10759 (syms_of_fileio): Initialize and export them.
10760 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10761
10762 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10763 (Fsystem_move_file_to_trash): New function.
10764 (syms_of_w32fns): Export it to lisp.
10765
107662008-07-01 Jason Rumney <jasonr@gnu.org>
10767
10768 * w32font.c (w32font_text_extents): Don't count overhang as part
10769 of width.
10770
107712008-06-30 Miles Bader <miles@gnu.org>
10772
10773 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10774 Add `avoid_cursor_p' field.
10775
10776 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10777 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10778 (append_glyph, append_composite_glyph, produce_image_glyph)
10779 (append_stretch_glyph): Initialize avoid_cursor_p.
10780 (get_it_property): Rename from `get_line_height_property'.
10781 (x_produce_glyphs): Use get_it_property.
10782 (handle_line_prefix, push_display_prop): New functions.
10783 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10784 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10785 New variables.
10786 (syms_of_xdisp): Initialize them.
10787
107882008-06-30 Kenichi Handa <handa@m17n.org>
10789
10790 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10791 XftDefaultSubstitute (they are called in XftFontMatch).
10792 (xftfont_open): Fix args to ftfont_font_format.
10793
10794 * ftfont.c (fc_charset_table): New member lang.
10795 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10796 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10797 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10798 (ftfont_open): Fix args to ftfont_font_format.
10799 (ftfont_font_format): New arg filename.
10800
108012008-06-30 Chong Yidong <cyd@stupidchicken.com>
10802
10803 * xfaces.c (Finternal_merge_in_global_face): If default face was
10804 modified, realize it again. Update the font face attribute.
10805
108062008-06-29 Jason Rumney <jasonr@gnu.org>
10807
10808 * w32term.c (x_set_frame_alpha): Fix logic.
10809
108102008-06-29 Kenichi Handa <handa@m17n.org>
10811
10812 * fontset.c (Finternal_char_font): Return font-object instead of
10813 font-name.
10814
10815 * composite.c (get_composition_id): Fix the width calculation for TAB.
10816
108172008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10818
10819 * indent.c (Fvertical_motion): Properly handle float column arg.
10820
108212008-06-28 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10824 (pfnSetLayeredWindowAttributes): New function pointer.
10825 (w32_initialize): Initialize it when supported.
10826 (x_set_frame_alpha): New function.
10827
10828 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10829 (w32_frame_parm_handlers): Set alpha handler.
10830
10831 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10832
108332008-06-27 Jason Rumney <jasonr@gnu.org>
10834
10835 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10836 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10837 (w32_to_x_charset, x_to_w32_charset)
10838 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10839 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10840 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10841 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10842 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10843 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10844 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10845 (Qw32_charset_unicode): Remove.
10846 (syms_of_w32fns): Update for above changes.
10847
10848 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10849 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10850 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10851 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10852 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10853 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10854 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10855 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10856 (syms_of_w32font): Update for above changes.
10857
108582008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10859
10860 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10861 removed #if.
10862 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10863
108642008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 10865 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
10866
10867 * makefile.w32-in (LOCAL_FLAGS):
10868 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10869
10870 * sysdep.c (_spawnlp, _getpid):
10871 Declare with explicit _cdecl instead of _CRTAPI1.
10872
10873 * editfns.c (Fget_internal_run_time):
10874 Check for WINDOWSNT with #ifdef, not #if.
10875
108762008-06-26 Jason Rumney <jasonr@gnu.org>
10877
10878 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10879
10880 * w32term.c (x_draw_glyph_string_foreground)
10881 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10882 Use FONT_HANDLE macro.
10883 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10884
10885 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10886 (uniscribe_encode_char): Use FONT_HANDLE macro.
10887
10888 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10889 (w32font_text_extents): Use precast w32_font.
10890 (w32font_close): Free cached metrics.
10891 (w32font_open_internal): Allocate space for name on stack.
10892
108932008-06-26 Chong Yidong <cyd@stupidchicken.com>
10894
10895 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10896
108972008-06-26 Jason Rumney <jasonr@gnu.org>
10898
10899 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10900 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10901
109022008-06-26 Juanma Barranquero <lekktu@gmail.com>
10903
10904 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10905
109062008-06-26 Jason Rumney <jasonr@gnu.org>
10907
10908 * w32bdf.c, w32bdf.h: Remove obsolete files.
10909
10910 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10911
10912 * w32gui.h: Don't include w32bdf.h.
10913 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10914 Remove obsolete font support.
10915
10916 * w32font.h (struct w32font_info): Remove compat_w32_font.
10917 Add hfont member.
10918 (FONT_COMPAT): Remove obsolete macro.
10919
10920 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10921 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10922 (w32font_open_internal): Remove compat code. Set new hfont member.
10923 (Fx_select_font): Use new hfont member.
10924
10925 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10926 (uniscribe_encode_char): Use new hfont member.
10927
10928 * w32term.c (x_draw_glyph_string_foreground)
10929 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10930 (x_draw_glyph_string): Use metrics in w32font_info.
10931
109322008-06-26 Kenichi Handa <handa@m17n.org>
10933
10934 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10935
109362008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10937
10938 * unexnext.c:
10939 * m/ews4800.h:
10940 * m/hp9000s300.h:
10941 * m/ibm370aix.h:
10942 * m/mips-siemens.h:
10943 * m/ncr386.h:
10944 * m/next.h:
10945 * m/pmax.h:
10946 * m/powerpcle.h:
10947 * m/tandem-s2.h:
10948 * s/386bsd.h:
10949 * s/bsd386.h:
10950 * s/bsd4-1.h:
10951 * s/bsd4-2.h:
10952 * s/bsdos2-1.h:
10953 * s/bsdos2.h:
10954 * s/bsdos3.h:
10955 * s/bsdos4.h:
10956 * s/nextstep.h:
10957 * s/ultrix4-3.h:
10958 * s/usg5-0.h:
10959 * s/usg5-2-2.h:
10960 * s/usg5-2.h:
10961 * s/usg5-4-3.h:
10962 * s/ux4800.h:
10963 * s/uxpds.h:
10964 * s/uxpv.h: Remove support for obsolete systems.
10965 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10966 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10967 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10968 Remove, insert contents in s/aix4-2.h.
10969 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10970 * s/bsd4-3.h: Rename to ...
10971 * s/bsd-common.h: ... this.
10972 * data.c:
10973 * doc.c:
10974 * ecrt0.c:
10975 * emacs.c:
10976 * fileio.c:
10977 * floatfns.c:
10978 * keyboard.c:
10979 * mem-limits.h:
10980 * print.c:
10981 * process.c:
10982 * sysdep.c:
10983 * syssignal.h:
10984 * systty.h:
10985 * syswait.h:
10986 * term.c:
10987 * unexec.c:
10988 * unexelf.c:
10989 * unexhp9k800.c:
10990 * m/hp800.h:
10991 * m/ibmrs6000.h:
10992 * m/mips.h:
10993 * m/vax.h:
10994 * s/darwin.h:
10995 * s/freebsd.h:
10996 * s/gnu.h:
10997 * s/ms-w32.h:
10998 * s/msdos.h:
10999 * s/netbsd.h:
11000 * s/template.h: Remove references to obsolete variables.
11001
11002 * Makefile.in: Add dependencies for all unexec files.
11003 (admindir): Remove unused variable.
11004 (UNEXEC_SRC): Remove references.
11005
110062008-06-25 Chong Yidong <cyd@stupidchicken.com>
11007
11008 * xfns.c (x_default_font_parameter): If Xft is available, first
11009 try Monospace-12 for the default font.
11010
110112008-06-25 Jason Rumney <jasonr@gnu.org>
11012
11013 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11014
110152008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11016
11017 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11018
11019 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11020
110212008-06-25 Juanma Barranquero <lekktu@gmail.com>
11022
11023 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11024 <scroll-conservatively>: Fix typo in docstring.
11025
11026 * xselect.c (Fx_send_client_event): Doc fix.
11027
110282008-06-25 Kenichi Handa <handa@m17n.org>
11029
11030 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11031
11032 * font.c (font_parse_fcname): Remove unused variables.
11033 (font_sort_entites): Delete the arg SPEC. Caller changed.
11034 Fix for the case of ! best_only.
11035 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11036
11037 * lisp.h (Fstring_to_unibyte): EXFUN it.
11038
11039 * character.h (str_to_unibyte): Extern it.
11040
11041 * character.c (str_to_unibyte): New function.
11042
11043 * fns.c (Fstring_to_unibyte): New function.
11044 (syms_of_fns): Defsubr it.
11045
110462008-06-24 Kenichi Handa <handa@m17n.org>
11047
11048 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11049 DPI too.
11050 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11051
110522008-06-24 Andreas Schwab <schwab@suse.de>
11053
11054 * Makefile.in (${lispsource}loaddefs.el): Rename from
11055 ../lisp/loaddefs.el.
11056 (bootstrap-clean): Do what distclean does but don't remove
11057 Makefile.
11058 (distclean): Depend on bootstrap-clean and remove Makefile.
11059
110602008-06-24 Chong Yidong <cyd@stupidchicken.com>
11061
11062 * buffer.h (struct buffer): New member word_wrap.
11063
11064 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11065 word-wrap.
11066 (init_buffer_once): Initialize them.
11067
11068 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11069 line_wrap enum possessing three possible values.
11070
11071 * termopts.h: Replace truncate_partial_width_windows with
11072 Vtruncate_partial_width_windows.
11073
11074 * dispnew.c (direct_output_for_insert): Avoid direct output when
11075 inserting a space with word wrap on.
11076
11077 * indent.c (compute_motion): Obey integer values of
11078 truncate-partial-width-windows.
11079
11080 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11081 replacing truncate_partial_width_windows.
11082 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11083 truncate only if the window width is below that integer.
11084 (start_display, resize_mini_window, produce_stretch_glyph)
11085 (display_string, move_it_in_display_line_to): Use line_wrap.
11086 (back_to_previous_visible_line_start, reseat_1): Reset
11087 string_from_display_prop_p.
11088 (display_line): Extend default face to end of line when wrapping.
11089
110902008-06-24 Kim F. Storm <storm@cua.dk>
11091
11092 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11093 to wrap continued lines at word boundaries.
11094
110952008-06-24 Jason Rumney <jasonr@gnu.org>
11096
11097 * font.c (Ffont_face_attributes): Multiply pixel size before point
11098 conversion to avoid multiplying rounding error.
11099
111002008-06-23 Jason Rumney <jasonr@gnu.org>
11101
11102 * w32term.c (x_draw_glyph_string_background)
11103 (x_draw_glyph_string): Remove old bdf font code.
11104
11105 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11106
111072008-06-22 Kenichi Handa <handa@m17n.org>
11108
11109 * font.c (font_find_for_lface): Try the adstyle specified in
11110 the property of LFACE_FONT of LFACE (if any).
11111
111122008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11113 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11114
11115 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11116
111172008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11118
11119 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11120 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11121 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11122 (witness-emacs): Remove.
11123 (lisp, shortlisp): Move loaddefs.el earlier.
11124 (mostlyclean): Forget about witness-emacs.
11125
111262008-06-22 Glenn Morris <rgm@gnu.org>
11127
11128 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11129 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11130
111312008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11132
11133 * Makefile.in (PRECOMP): Remove.
11134 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11135 (witness-emacs): Run `compile-first'.
11136 (.el.elc): Use the new compile-onefile target.
11137
111382008-06-21 Kenichi Handa <handa@m17n.org>
11139
11140 * xftfont.c (xftfont_open): Handle QCembolden only when
11141 FC_EMBOLDEN is defined.
11142
111432008-06-21 Andreas Schwab <schwab@suse.de>
11144
11145 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11146 (.el.elc): Likewise.
11147
111482008-06-21 Miles Bader <miles@gnu.org>
11149
11150 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11151 build dir, not the lisp source dir.
11152
111532008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11154
11155 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11156 (bootstrapclean): Remove.
11157 (.el.elc): New rule.
11158 (PRECOMP): New var.
11159 (../lisp/subdirs.el): Remove.
11160 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11161 (witness-emacs): New target.
11162 (mostlyclean): Remove witness-emacs as well.
11163 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11164 Add witness-emacs dependency.
11165
111662008-06-20 Chong Yidong <cyd@stupidchicken.com>
11167
11168 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11169 defined by the font.
11170
111712008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11172
11173 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11174 (bootstrap-clean): New target that keeps TAGS around.
11175 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11176 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11177
111782008-06-20 Jason Rumney <jasonr@gnu.org>
11179
11180 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11181 Remove obsolete font code.
11182
11183 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11184 to determine language support.
11185
111862008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11187
11188 * sysdep.c (cfsetspeed): New fun extracted from the code.
11189 (cfmakeraw): Move before first use.
11190
111912008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11192
11193 * sysdep.c (cfmakeraw): Provide fallback implementation.
11194 (serial_configure): Provide fallback implementation of cfsetspeed.
11195
111962008-06-20 Kenichi Handa <handa@m17n.org>
11197
11198 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11199 the pattern.
11200
11201 * fontset.c (fontset_from_font): Copy font_spec before changing
11202 the elements.
11203
11204 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11205
112062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11207
11208 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11209 for explicit `font' parameters.
11210
11211 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11212
112132008-06-19 Kenichi Handa <handa@m17n.org>
11214
11215 * frame.c: Include <ctype.h>.
11216 (x_set_font_backend): Allow spacing characters in the X resource
11217 for FontBackend.
11218
112192008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11220
11221 * w32fns.c, xfns.c (Qfont_param): New var.
11222 (syms_of_w32fns): Initialize it.
11223 (x_default_font_parameter): Record explicit `font' into
11224 `font-parameter'.
11225
112262008-06-18 Kenichi Handa <handa@m17n.org>
11227
11228 * font.c (font_parse_xlfd): Fix previous change.
11229 (font_parse_fcname): Don't use :fc-unknown-spec.
11230 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11231 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11232 (font_add_log): Prepend the driver name to the resulting fonts.
11233
11234 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11235 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11236 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11237
11238 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11239 (QCembolden): New variables.
11240 (syms_of_xftfont): DEFSYM them.
11241 (xftfont_open): Call XftFontMatch. Don't trust the result of
11242 XftTextExtents8 if the pixel_size is less than 5.
11243
112442008-06-18 Andreas Schwab <schwab@suse.de>
11245
11246 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11247 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11248
112492008-06-18 Jason Rumney <jasonr@gnu.org>
11250
11251 * w32font.c (w32font_list, w32font_match): Add logging.
11252
11253 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11254
112552008-06-17 Chong Yidong <cyd@stupidchicken.com>
11256
11257 * font.c (font_parse_fcname): Store divider characters for
11258 unknown-spec list. For known key symbols, intern using correct
11259 symbol name.
11260
112612008-06-17 Kenichi Handa <handa@m17n.org>
11262
11263 * xfaces.c (realize_default_face): If the frame is not on window
11264 system, set the fontset of face to nil.
11265
112662008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11267
11268 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11269
112702008-06-16 Juanma Barranquero <lekktu@gmail.com>
11271
11272 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11273 (build_font_name_from_vector): Delete externs.
11274
11275 * xfaces.c (struct font_name): Don't declare.
11276
112772008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11278
11279 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11280
112812008-06-16 Chong Yidong <cyd@stupidchicken.com>
11282
11283 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11284
112852008-06-16 Juanma Barranquero <lekktu@gmail.com>
11286
11287 * font.c (Ffont_spec): Fix usage in docstring.
11288 (Ffont_face_attributes): Doc fix.
11289
112902008-06-16 Andreas Schwab <schwab@suse.de>
11291
11292 * font.c (Ffont_face_attributes): Fix definition.
11293
112942008-06-16 Jason Rumney <jasonr@gnu.org>
11295
11296 * font.h (font_style_symbolic_from_value): Remove.
11297
11298 * font.c (font_style_symbolic_from_value): Remove.
11299 (font_style_symbolic): Revert to pre 2008-06-13 version.
11300
11301 * w32font.c (w32_to_fc_weight): New function.
11302 (w32font_full_name, logfont_to_fcname): Use it.
11303
113042008-06-16 Kenichi Handa <handa@m17n.org>
11305
11306 * font.c (font_check_object): Delete it.
11307 (font_clear_cache): Check if a font-object is alive.
11308 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11309 font-object to nil.
11310 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11311 (font_at): Don't call font_check_object.
11312 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11313
113142008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11315
11316 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11317
113182008-06-16 Chong Yidong <cyd@stupidchicken.com>
11319
11320 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11321
113222008-06-15 Chong Yidong <cyd@stupidchicken.com>
11323
11324 * font.c (font_parse_fcname): Only one decimal point.
11325 (font_unparse_fcname): Handle data in family and foundry indices
11326 as symbols, not strings.
11327 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11328
11329 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11330
11331 * font.h (font_unparse_gtkname): Add prototype.
11332
113332008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11334
11335 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11336
113372008-06-15 Andreas Schwab <schwab@suse.de>
11338
11339 * font.c (font_update_drivers): Fix crash when no drivers match.
11340
113412008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11342
11343 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11344 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11345
113462008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11347
11348 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11349
113502008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11351
11352 * process.c (Fserial_process_configure, Fprocess_send_eof):
11353 Use EQ to compare Lisp_Objects.
11354
113552008-06-13 Jason Rumney <jasonr@gnu.org>
11356
11357 * w32fns.c (Fw32_select_font): Remove old font API function.
11358
11359 * w32font.c (logfont_to_fcname): New function.
11360 (Fx_select_font): New font dialog function compatible with
11361 GTK/fontconfig version.
11362
11363 * font.c (font_style_symbolic_from_value): New function.
11364 (font_style_symbolic): Use it.
11365
11366 * font.h (font_style_symbolic_from_value): Declare new function.
11367
113682008-06-13 Juanma Barranquero <lekktu@gmail.com>
11369
11370 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11371 <font-width-table>: Fix typos in docstrings.
11372
113732008-06-13 Daniel Engeler <engeler@gmail.com>
11374
11375 These changes add serial port access.
11376 * process.c: Add HAVE_SERIAL.
11377 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11378 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11379 (list_processes_1, select_wrapper, Fstop_process)
11380 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11381 (status_notify): Modify to handle serial processes.
11382 [HAVE_SERIAL] (Fserial_process_configure)
11383 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11384 New functions.
11385 * process.h (struct Lisp_Process): Add `type'.
11386 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11387 New functions.
11388 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11389 serial ports.
b71ac3dd 11390 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11391 * w32.h: Add FILE_SERIAL.
11392 (struct _child_process): Add ovl_read, ovl_write.
11393
113942008-06-13 Kenichi Handa <handa@m17n.org>
11395
11396 * dispextern.h (enum lface_attribute_index): New member
11397 LFACE_FOUNDRY_INDEX.
11398
11399 * font.c (font_score): Delete arg alternate_families. Check only
11400 weight, slant, width, and size. Ignore the difference of alias
11401 style symbols.
11402 (font_sort_entites): Adjust for the above change. Reflect the
11403 order of font-driver to scores.
11404 (font_list_entities): Don't check alternate_familes here.
11405 (font_clear_prop): Handle foundry.
11406 (font_update_lface): Don't parse "foundry-family" form here.
11407 Handle FONT_FOUNDRY_INDEX.
11408 (font_find_for_lface): Likewise. Handle alternate families here.
11409 If registry is nil, try iso8859-1 and ascii-0.
11410 (font_open_for_lface): Pay attention to size in ENTITY.
11411 (font_open_by_name): Simplify by calling font_load_for_lface.
11412 (free_font_driver_list): Delete it.
11413 (font_update_drivers): Preserve the order of backends.
11414 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11415 of font_score and font_sort_entites.
11416 (font_update_sort_order): Likewise.
11417
11418 * xfaces.c (LFACE_FOUNDRY): New macro.
11419 (check_lface_attrs): Check foundry.
11420 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11421 (merge_face_vectors): Check foundry.
11422 (merge_face_ref): Likewise.
11423 (Finternal_set_lisp_face_attribute): Likewise.
11424 (x_update_menu_appearance): Likewise.
11425 (Finternal_get_lisp_face_attribute): Likewise.
11426 (lface_hash): Likewise.
11427 (lface_same_font_attributes_p): Likewise.
11428 (x_supports_face_attributes_p): Likewise.
11429 (tty_supports_face_attributes_p): Likewise.
11430 (Finternal_set_alternative_font_family_alist): Intern strings.
11431 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11432 (realize_default_face): Set LFACE_FOUNDRY (lface).
11433
11434 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11435 font-driver at first.
11436
11437 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11438
114392008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11440
11441 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11442
114432008-06-12 Jim Meyering <meyering@redhat.com>
11444
11445 Make unexec_free handle NULL the same way free does.
11446 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11447
114482008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11449
11450 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11451 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11452 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11453 (WEAK_ALIAS): Simplify.
11454 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11455 when searching a unibyte buffer.
11456
114572008-06-12 Chong Yidong <cyd@stupidchicken.com>
11458
11459 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11460
114612008-06-12 Juanma Barranquero <lekktu@gmail.com>
11462
11463 * w32font.c: Include ctype.h.
11464
114652008-06-11 Jason Rumney <jasonr@gnu.org>
11466
11467 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11468 misreported as space.
11469 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11470 as aliases for registry iso10646-1.
11471
114722008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11473
11474 * buffer.c (clone_per_buffer_values): Skip `name'.
11475
114762008-06-11 Chong Yidong <cyd@stupidchicken.com>
11477
11478 * font.c (font_parse_fcname): Fix last change; accept decimal
11479 points in font size.
11480
114812008-06-10 Jason Rumney <jasonr@gnu.org>
11482
11483 * w32uniscribe.c (add_opentype_font_name_to_list):
11484 Skip non unicode fonts.
11485
114862008-06-10 Chong Yidong <cyd@stupidchicken.com>
11487
11488 * xfns.c (Fx_font_dialog): New function.
11489
11490 * gtkutil.c (xg_dialog_response_cb): Rename from
11491 xg_file_response_callback.
11492 (pop_down_dialog): Rename from pop_down_file_dialog.
11493 (xg_get_file_name): Callers changed.
11494 (xg_get_font_name): New function.
11495
11496 * gtkutil.h (xg_get_font_name): Insert prototype.
11497
114982008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11499
11500 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11501 x_underline_minimum_display_offset.
11502 (syms_of_xdisp): Declare it here rather than in xterm.c.
11503 * dispextern.h (underline_minimum_offset): Declare it.
11504 * w32term.c (x_draw_glyph_string): Use it.
11505 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11506 (syms_of_xterm): Don't declare it any more.
11507 (x_draw_glyph_string): Adjust to the new name.
11508
8719abec 115092008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11510
11511 * xterm.c (x_underline_minimum_display_offset): New var.
11512 (x_draw_glyph_string): Use it.
11513 (syms_of_xterm): Declare it.
11514
115152008-06-10 Chong Yidong <cyd@stupidchicken.com>
11516
11517 * font.c (font_parse_fcname): Accept GTK-style font names too.
11518
115192008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * dired.c (file_name_completion): Don't return t if the match is exact
11522 but with different capitalization.
11523 * minibuf.c (Ftry_completion): Simplify.
11524
11525 * window.c (Vwindow_point_insertion_type): New var.
11526 (set_window_buffer): Use it.
11527 (syms_of_window): Init and export it to Lisp.
11528
115292008-06-10 Kenichi Handa <handa@m17n.org>
11530
11531 * font.h (font_intern_prop): Prototype adjusted.
11532
11533 * font.c (font_intern_prop): New arg force_symbol.
11534 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11535 Adjust for the change of font_intern_prop.
11536
11537 * ftfont.c (ftfont_pattern_entity):
11538 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11539 (w32_registry):
11540 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11541 the change of font_intern_prop.
11542
115432008-06-09 Juanma Barranquero <lekktu@gmail.com>
11544
11545 * w32menu.c (digest_single_submenu): Declare extern.
11546
115472008-06-09 Jason Rumney <jasonr@gnu.org>
11548
11549 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11550
11551 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11552 (parse_single_submenu): Remove.
11553 (digest_single_submenu): Remove.
11554 (syms_of_w32menu): Don't initialise variables that have moved
11555 to menu.c.
11556 (set_frame_menubar): Sync with version in xmenu.c.
11557 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11558
11559 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11560 Make static again.
11561
115622008-06-09 Jason Rumney <jasonr@gnu.org>
11563
11564 Changes to w32 files related to the move of common menu code
11565 to menu.c on 2008-06-08 by Chong Yidong.
11566
11567 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11568 defs to w32gui.h.
11569 (single_keymap_panes, push_menu_item, push_menu_pane):
11570 Make globally visible.
11571
11572 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11573 (local_free, malloc_widget_value, free_widget_value)
11574 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11575 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11576 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11577 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11578 (menu_items, menu_items_allocated, menu_items_used)
11579 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11580 (init_menu_items, finish_menu_items, discard_menu_items)
11581 (grow_menu_items, push_submenu_start, push_submenu_end)
11582 (push_left_right_boundary, push_menu_pane, push_menu_item)
11583 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11584 (free_menubar_widget_tree_value, parse_single_submenu)
11585 (update_submenu_strings): Remove functions.
11586 (xmalloc_widget_value): Remove and declare extern.
11587
11588 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11589 (OBJ1): Build it.
11590
11591 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11592 (local_heap, local_alloc, local_free, malloc_widget_value)
11593 (free_widget_value): Define here.
11594
115952008-06-09 Kenichi Handa <handa@m17n.org>
11596
11597 * font.h (Qascii_0): Extern it.
11598
11599 * font.c (Qascii_0): New variable.
11600 (syms_of_font): DEFSYM it.
11601 (font_open_by_name): If the registry "iso8859-1" fails, try also
11602 "ascii-0".
11603
11604 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11605
116062008-06-08 Kenichi Handa <handa@m17n.org>
11607
11608 * .gdbinit (xfont): New command.
11609
116102008-06-08 Andreas Schwab <schwab@suse.de>
11611
11612 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11613 * Makefile.in (menu.o): Update dependencies.
11614
11615 * Makefile.in (obj): Always add menu.o.
11616 * emacs.c (main): Always call syms_of_menu.
11617 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11618
116192008-06-08 Chong Yidong <cyd@stupidchicken.com>
11620
11621 * Makefile.in: Compile menu.c.
11622
11623 * lisp.h: Declare syms_of_menu.
11624
11625 * emacs.c (main): Call syms_of_menu.
11626
11627 * keyboard.h: Relocate platform-independent menu definitions from
11628 xmenu.c.
11629
11630 * menu.c: New file. Relocate platform-independent menu
11631 definitions from xmenu.c. Suggested by Adrian Robert.
11632
11633 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11634 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11635 (menu_items_used, menu_items_n_panes)
11636 (menu_items_submenu_depth): Move to keyboard.h.
11637 (init_menu_items, finish_menu_items, unuse_menu_items)
11638 (discard_menu_items, restore_menu_items, save_menu_items)
11639 (grow_menu_items, push_submenu_start, push_submenu_end)
11640 (push_left_right_boundary, push_menu_pane, push_menu_item)
11641 (keymap_panes, single_keymap_panes, single_menu_item)
11642 (list_of_panes, list_of_items, find_and_call_menu_selection)
11643 (xmalloc_widget_value, free_menubar_widget_value_tree)
11644 (parse_single_submenu, digest_single_submenu)
11645 (update_submenu_strings): Move to menu.c.
11646
116472008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11648
11649 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11650
116512008-06-06 Miles Bader <miles@gnu.org>
11652
11653 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11654 face, not frame default.
11655
116562008-06-05 Martin Rudalics <rudalics@gmx.at>
11657
11658 * window.c (pop_up_windows, pop_up_frames)
11659 (display_buffer_reuse_frames, Vpop_up_frame_function)
11660 (Vdisplay_buffer_function, Veven_window_heights)
11661 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11662 (Vspecial_display_function, Vsame_window_buffer_names)
11663 (Vsame_window_regexps, split_height_threshold)
11664 (Vsplit_window_preferred_function): Move those vars to window.el.
11665 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11666 (Fdisplay_buffer): Move those functions to window.el.
11667 (syms_of_window): Remove corresponding declarations.
11668 (display_buffer): New function.
11669 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11670 * dispnew.c (Flast_nonminibuf_frame): New function.
11671 * buffer.c (Fpop_to_buffer): Move to window.el.
11672
116732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11674
11675 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11676
116772008-06-05 Kenichi Handa <handa@m17n.org>
11678
11679 * coding.c (detect_coding): Fix previous change.
11680 (detect_coding_system): Likewise.
11681
116822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11683
11684 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11685
11686 * keymap.c (Vminibuffer_local_filename_must_match_map):
11687 Rename from Vminibuffer_local_must_match_filename_map.
11688 (syms_of_keymap):
11689 * minibuf.c (Fcompleting_read): Adjust accordingly.
11690 * commands.h: Rename declaration as well.
11691
116922008-06-05 Kenichi Handa <handa@m17n.org>
11693
11694 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11695 family name.
11696 (Ffont_put): Likewise.
11697
11698 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11699 current font-spec.
11700
11701 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11702 is unspecified.
11703
11704 * xfaces.c (realize_x_face): If the font-related face attributes
11705 are the same as those of default face, realize a new fontset from
11706 default->fontset.
11707 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11708
117092008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11710
11711 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11712 (move_it_in_display_line): New wrapper.
11713
11714 * window.c (window_scroll_pixel_based_preserve_x)
11715 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11716 (window_scroll_pixel_based, window_scroll_line_based):
11717 Use them to preserve column positions.
11718 (syms_of_window): Initialize them.
11719
11720 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11721 (HPOS . VPOS) pair.
11722
11723 * dispextern.h (move_it_in_display_line): Declare.
11724
117252008-06-05 Juanma Barranquero <lekktu@gmail.com>
11726
11727 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11728 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11729 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11730
117312008-06-04 Juanma Barranquero <lekktu@gmail.com>
11732
11733 * window.c (Fset_window_parameter): Doc fix.
11734 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11735
117362008-06-04 Joakim Verona <joakim@verona.se>
11737
11738 * window.h (struct window): Add new member window_parameters.
11739
11740 * window.c (Fwindow_parameters, Fwindow_parameter)
11741 (Fset_window_parameter): New defuns.
11742 (syms_of_window): Defsubr the new defuns.
11743 (make_window): Initialize window_parameters to nil.
11744
117452008-06-04 John Paul Wallington <jpw@pobox.com>
11746
11747 * eval.c (Fdefmacro): Doc fix.
11748
117492008-06-04 Kenichi Handa <handa@m17n.org>
11750
11751 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11752 Be sure to call setup_coding_system when we find a proper coding system.
11753 (detect_coding_system): Fix handling of coding->head_ascii.
11754
117552008-06-03 Andreas Schwab <schwab@suse.de>
11756
11757 * font.c (font_prop_validate_spacing): Fix last change.
11758
117592008-06-03 Kenichi Handa <handa@m17n.org>
11760
11761 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11762 (font_parse_fcname): Fix handling of unknown key.
11763
11764 * xfont.c (xfont_list): Try an alias.
11765
11766 * charset.c (char_charset): Return NULL if the arg charset_list is
11767 specified and C doesn't belong to any of them.
11768
117692008-06-02 Chip Coldwell <coldwell@redhat.com>
11770
11771 * font.c (font_pixel_size): Don't take cdr of an integer.
11772
117732008-06-02 Jim Meyering <meyering@redhat.com>
11774
11775 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11776 * alloc.c (xfree): Return right away for a NULL arg.
11777 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11778 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11779 * mac.c (create_apple_event_from_event_ref): Likewise.
11780 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11781 Likewise.
11782 * doprnt.c (doprnt1): Likewise.
11783 * frame.c (frame): Likewise.
11784 * keyboard.c (wipe_kboard): Likewise.
11785 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11786 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11787 * term.c (tty_default_color_capabilities, maybe_fatal)
11788 (delete_tty): Likewise.
11789 * w16select.c (string): Likewise.
11790 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11791 * w32bdf.c (w32_free_bdf_font): Likewise.
11792 * w32fns.c (w32_unload_font): Likewise.
11793 * w32font.c (w32font_close): Likewise.
11794 * window.c (size_window): Likewise.
11795 * xselect.c (receive_incremental_selection): Likewise.
11796 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11797 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11798 * w32.c (stat): Likewise.
11799
11800 Remove useless if-before-free tests.
11801 * editfns.c (Fset_time_zone_rule): Likewise.
11802 * lread.c (nosuffix): Likewise.
11803 * ralloc.c (get_bloc): Likewise.
11804 * regex.c (reg_free): Likewise.
11805 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11806 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11807 * xsmfns.c (smc_save_yourself_CB): Likewise.
11808
118092008-06-02 Kenichi Handa <handa@m17n.org>
11810
11811 * font.c (font_find_for_lface): Handle float font size.
11812 (font_open_for_lface): Likewise.
11813
11814 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11815 comparing the properties.
11816
118172008-06-01 Jason Rumney <jasonr@gnu.org>
11818
11819 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11820 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11821 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11822 Don't add empty script list.
11823 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11824
118252008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11826
11827 * Makefile.in (dot, dotdot): Remove, update users.
11828 ".." has been used elsewhere in the file for a long time.
11829 (LIBXT_STATIC): Remove conditional based on unused variable.
11830
118312008-06-01 Miles Bader <miles@gnu.org>
11832
11833 * xfaces.c (Vface_remapping_alist): New variable.
11834 (syms_of_xfaces): Initialize it.
11835 (enum named_merge_point_kind): New type.
11836 (struct named_merge_point): Add `named_merge_point_kind' field.
11837 (push_named_merge_point): Make cycle detection respect different
11838 named-merge-point kinds.
11839 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11840 Remove face-name alias resolution.
11841 (lface_from_face_name): New definition using
11842 `lface_from_face_name_no_resolve'.
11843 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11844 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11845 (get_lface_attributes): New definition that layers face-remapping on
11846 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11847 (lookup_basic_face): New function.
11848 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11849 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11850 `get_lface_attributes'.
11851 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11852 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11853 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11854
11855 * xdisp.c (init_iterator): Pass base_face_id through
11856 `lookup_basic_face' when we actually use it as a face-id.
11857 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11858 DEFAULT_FACE_ID.
11859
11860 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11861 lookup the initial face-id.
11862
11863 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11864
118652008-06-01 Juanma Barranquero <lekktu@gmail.com>
11866
11867 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11868 (Fremove_text_properties): Fix typos in docstrings.
11869
118702008-05-31 Kenichi Handa <handa@m17n.org>
11871
11872 * font.c (font_list_entities): Fix the car part of data to be
11873 stored in the cache.
11874
11875 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11876
118772008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11878
11879 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11880 Add a `test' argument so another predicate than `equal' can be used.
11881 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11882 (map_char_table): Remove unused vars `c' and `i'.
11883 * lisp.h (Foptimize_char_table): Adjust declaration.
11884 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11885
118862008-05-30 Kenichi Handa <handa@m17n.org>
11887
11888 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11889 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11890 defined.
11891
118922008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11895 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11896 frame-local settings for the same variable.
11897
118982008-05-30 Kenichi Handa <handa@m17n.org>
11899
11900 * fontset.c (Ffont_info): Move to font.c.
11901 (syms_of_fontset): Delete defsubr of Sfont_info.
11902
11903 * font.c (font_style_to_value, font_score): Delete casting of the
11904 args to xstcasecmp.
11905 (register_font_driver): Increment num_font_drivers only when
11906 registering the driver globally.
11907 (Ffont_info): Move from fontset.c. Handle a font object too.
11908 (syms_of_font): Defsubr Sfont_info.
11909
119102008-05-29 Kenichi Handa <handa@m17n.org>
11911
11912 * coding.h (enum define_coding_utf8_arg_index): New enum.
11913 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11914 coding_attr_utf_bom.
11915 (enum utf_bom_type): Rename from utf_16_bom_type.
11916 (struct utf_16_spec): Adjust for the above change.
11917 (struct coding_system): Add utf_8_bom in `spec' union.
11918
11919 * coding.c (CODING_UTF_8_BOM): New macro.
11920 (enum coding_category): Delete coding_category_utf_8, add
11921 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11922 coding_category_utf_8_sig.
11923 (CATEGORY_MASK_UTF_8): Delete it.
11924 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11925 (CATEGORY_MASK_UTF_8_SIG): New macros.
11926 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11927 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11928 CATEGORY_MASK_UTF_8_SIG.
11929 (CATEGORY_MASK_UTF_8): New macro.
11930 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11931 (detect_coding_utf_8): Check BOM.
11932 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11933 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11934 (encode_coding_utf_16): Likewise.
11935 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11936 (detect_coding, detect_coding_system): Handle utf-8-auto.
11937 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11938 (syms_of_coding): Fix setting up of Vcoding_category_table.
11939
119402008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11941
11942 * process.c (Faccept_process_output): If `millisec' is non-nil,
11943 `seconds' default to 0.
11944 (wait_reading_process_output): Also return non-nil if we read output
11945 from a non-running process.
11946
119472008-05-29 Jason Rumney <jasonr@gnu.org>
11948
11949 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11950 `raster' specified.
11951 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11952 in the uniscribe backend, but disallow any font that has no
11953 unicode subrange support.
11954
119552008-05-29 Juanma Barranquero <lekktu@gmail.com>
11956
11957 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11958 Fix typos in docstrings.
11959
119602008-05-29 Kenichi Handa <handa@m17n.org>
11961
11962 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11963 (Fx_family_fonts): Set frame correctly.
11964
119652008-05-28 Jason Rumney <jasonr@gnu.org>
11966
11967 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11968
119692008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11970
11971 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11972 calling build_annotations.
11973
119742008-05-28 Juanma Barranquero <lekktu@gmail.com>
11975
11976 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11977 (Fencode_coding_string):
11978 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11979 <latin-extra-code-table>: Fix typos in docstrings.
11980 (syms_of_coding) <coding-system-alist>: Doc fix.
11981 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11982
119832008-05-28 Kenichi Handa <handa@m17n.org>
11984
11985 * fontset.c (Ffont_info): Don't call font_close_object.
11986
11987 * font.c (font_parse_family_registry): Use Ffont_put to validate
11988 foundry and family.
11989 (font_delete_unmatched): Don't check spacing.
11990 (font_list_entities): Add spacing to the spec to list fonts.
11991
11992 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11993 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11994
11995 * coding.c (encode_coding_raw_text): Fix previous change.
11996 (encode_coding_object): When the dst_object is a buffer and is
11997 different from src_object, move gap to PT.
11998
119992008-05-27 Chong Yidong <cyd@stupidchicken.com>
12000
12001 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12002
120032008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12004
12005 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12006 all branches. Compute it differently.
12007
12008 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12009
120102008-05-27 Juanma Barranquero <lekktu@gmail.com>
12011
12012 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12013 into "else if () ... else ...".
12014
120152008-05-27 Jason Rumney <jasonr@gnu.org>
12016
12017 * w32font.c (w32font_open_internal): Determine if glyph indices
12018 are likely to work here.
12019
120202008-05-27 Chong Yidong <cyd@stupidchicken.com>
12021
12022 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12023 draw overlap glyphs with appropriate highlighting.
12024
120252008-05-27 Kenichi Handa <handa@m17n.org>
12026
12027 * xfont.c (xfont_open): Fix calculation of font->average_width.
12028
120292008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12030
12031 * casefiddle.c (casify_object): Try to guess better whether the
12032 argument is a byte or a char.
12033
120342008-05-26 Andreas Schwab <schwab@suse.de>
12035
12036 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12037 Always send multiples of format size.
12038
12039 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12040
120412008-05-26 Jason Rumney <jasonr@gnu.org>
12042
12043 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12044 (compute_metrics): Don't set failure if we just cleared the cache.
12045 (w32_weight_table): Remove unused variable.
12046 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12047 backwards compatibility.
12048
120492008-05-25 Kenichi Handa <handa@m17n.org>
12050
12051 * w32term.c (x_draw_glyph_string):
12052 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12053
12054 * xfaces.c: Delete unused function prototypes.
12055 (xstrlwr, font_frame): Delete them.
12056 (clear_face_cache): Delete unused variable.
12057
12058 * xftfont.c (xftfont_open): Delete unused variable.
12059 If underline_thickness is not 1, adjust underline_position.
12060
12061 * ftxfont.c (ftxfont_open): Delete unused variable.
12062
12063 * fontset.c (face_for_char): Optimize for the case of no charset
12064 property.
12065
12066 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12067 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12068 (otf_open, font_otf_capability, generate_otf_features)
12069 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12070 Comment out by surrounding "#if 0" and "#endif" for the moment.
12071 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12072 (syms_of_font): Codes for accessing above commented out.
12073
120742008-05-24 Eli Zaretskii <eliz@gnu.org>
12075
12076 * w32proc.c: Include dispextern.h.
12077
12078 * w32.c: Include dispextern.h.
12079
120802008-05-23 Juanma Barranquero <lekktu@gmail.com>
12081
12082 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12083 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12084 Fix typos in docstrings.
12085
120862008-05-23 Jason Rumney <jasonr@gnu.org>
12087
12088 * xsmfns.c: Remove includes that are already included by config.h.
12089
120902008-05-23 Kenichi Handa <handa@m17n.org>
12091
12092 * charset.c (Qemacs, charset_emacs): New variables.
12093 (char_charset): Fix for non-Unicode characters.
12094 (syms_of_charset): Define charset_emacs.
12095
12096 * w32term.c (x_draw_glyph_string): Be sure to update
12097 s->underline_thickness and s->underline_position. Be sure to draw
12098 underline within the current line area.
12099
12100 * xterm.c (x_draw_glyph_string): Be sure to update
12101 s->underline_thickness and s->underline_position. Be sure to draw
12102 underline within the current line area.
12103
12104 * fontset.c: Delete unused variables and add casting for char *
12105 throughout the file.
12106 (fontset_font): Try the fallback fonts of the current fontset
12107 before consulting the default fontset.
12108
12109 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12110
12111 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12112
121132008-05-22 Jason Rumney <jasonr@gnu.org>
12114
12115 * font.c: Don't include strings.h.
12116
12117 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12118
12119 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12120 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12121 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12122 to call xstrcasecmp.
12123
12124 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12125
12126 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12127
12128 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12129
12130 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12131
121322008-05-22 Kenichi Handa <handa@m17n.org>
12133
12134 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12135
12136 * font.c (font_prop_validate_style): Adjust for the format
12137 change of font_style_table.
12138
12139 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12140 two args.
12141
12142 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12143 two args.
12144
121452008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12146
12147 * minibuf.c (keys_of_minibuf): Delete.
12148 * lisp.h (keys_of_minibuf): Delete.
12149 * emacs.c (main): Don't call keys_of_minibuf.
12150
121512008-05-22 Kenichi Handa <handa@m17n.org>
12152
12153 * ftfont.c (ftfont_resolve_generic_family): Rename from
12154 ftfont_list_generic_family. Return a single family for each
12155 generic family.
12156 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12157 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12158 Call font_add_log.
12159 (ftfont_match): Call font_add_log.
12160
12161 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12162 (FONT_DEBUG): Define it.
12163 (font_add_log): Extern it.
12164 (font_assert): Rename from xassert.
12165
12166 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12167 (xfont_list_family): Call font_add_log.
12168 (xfont_match): Likewise.
12169 (memq_no_quit): Delete.
12170
12171 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12172 call of Ffont_xlfd_name.
12173
12174 * xfaces.c (struct table_entry, slant_table, weight_table)
12175 (swidth_table): Move to font.c.
12176
12177 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12178 xassert are changed to font_assert. Delete many unused variables.
12179 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12180 New variables.
12181 (struct table_entry): Move from xfaces.c and modified.
12182 (weight_table, slant_table, width_table): Move from xfaces.c and
12183 contents adjusted for the change of struct table_entry.
12184 (font_style_to_value, font_style_symbolic): Adjust for the
12185 format change of font_style_table.
12186 (font_parse_family_registry): Don't overwrite existing foundry and
12187 family of font_spec.
12188 (font_score): Fix calculation of diff for sizes.
12189 (font_sort_entites): Call font_add_log.
12190 (font_delete_unmatched): Return a newly created list.
12191 (font_list_entities): Fix previous change. Call font_add_log.
12192 (font_matching_entity, font_open_entity, font_close_entity):
12193 Call font_add_log.
12194 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12195 (Finternal_set_font_style_table): Delete.
12196 (BUILD_STYLE_TABLE): New macro.
12197 (build_style_table): New function.
12198 (Vfont_log, font_log_env_checked): New variables.
12199 (font_add_log): New function.
12200 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12201 Declare Lisp variables "font-weight-table", "font-slant-table",
12202 "font-width-table", and "font-log". Initialize font_style_table.
12203
122042008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12205
12206 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12207
122082008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12209 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12210
12211 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12212 (Vframe_alpha_lower_limit): New variable.
12213 (x_set_alpha): New function.
12214
12215 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12216
12217 * xfns.c (x-create-frame, Qalpha):
12218 Initialize the frame parameter `alpha'.
12219 * xterm.c (OPAQUE, OPACITY): New.
12220 (x_set_frame_alpha): New function.
12221 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12222
12223 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12224 * w32fns.c (w32_frame_parm_handlers): Likewise.
12225
122262008-05-20 Jason Rumney <jasonr@gnu.org>
12227
12228 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12229 truetype fonts to opentype list.
12230
122312008-05-20 Juanma Barranquero <lekktu@gmail.com>
12232
12233 * fontset.c (Ffontset_info): Doc fix.
12234 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12235 <ignore-relative-composition>: Fix typos in docstrings.
12236
12237 * font.c (syms-of-font) <font-encoding-alist>:
12238 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12239 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12240 (Ffont_otf_alternates): Doc fixes.
12241
122422008-05-20 Kenichi Handa <handa@m17n.org>
12243
12244 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12245 font.h through out the file.
12246 (FONT_DRIVERS): Rename from FONTOBJ.
12247 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12248 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12249
12250 * emacs.c (main): Call syms_of_font unconditionally.
12251
12252 * font.h (find_font_encoding): Extern it.
12253
12254 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12255 fontset.c.
194d44e7 12256 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12257 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12258 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12259 only when HAVE_WINDOW_SYSTEM is defined.
12260 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12261 when HAVE_WINDOW_SYSTEM is defined.
12262
12263 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12264 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12265
12266 * xfaces.c: Include font.h unconditionally.
12267 (merge_face_ref, merge_face_vectors)
12268 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12269
122702008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12271
12272 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12273 indirect_variable.
12274 * eval.c (lisp_indirect_variable): New fun.
12275 (Fuser_variable_p): Use it.
12276
122772008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12278
12279 * lisp.h (indirect_variable):
12280 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12281 Use Lisp_Symbol pointers rather than Lisp_Object.
12282 Adjust callers.
12283 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12284 To this end, change calling-convention.
12285
12286 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12287 if some non-hidden buffers are selected by string&pred.
12288
122892008-05-19 Chong Yidong <cyd@stupidchicken.com>
12290
12291 * process.c (wait_reading_process_output): Always check status
12292 when in batch mode.
12293
122942008-05-19 Kenichi Handa <handa@m17n.org>
12295
12296 * font.c (font_list_entities): Fix handling of cache.
12297 (font_matching_entity): Likewise.
12298
12299 * ftfont.c (cs_iso8859_1): Delete.
12300 (ft_face_cache): New variable.
12301 (struct ftfont_info): New member fc_charset_idx.
12302 (ftfont_build_basic_charsets): Delete.
12303 (fc_charset_table): New variable.
12304 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12305 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12306 Callers changed.
12307 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12308 (ftfont_spec_pattern): New argument fc_charset_idx.
12309 Check registry more rigidly. Change callers.
12310 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12311 change of :font-entity property of the font.
12312
12313 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12314 property of the font.
12315
123162008-05-18 Juanma Barranquero <lekktu@gmail.com>
12317
12318 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12319 (Funencodable_char_position, Fcheck_coding_systems_region)
12320 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12321 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12322 (Ffind_operation_coding_system, Fset_coding_system_priority)
12323 (Fcoding_system_eol_type): Doc fixes.
12324
123252008-05-17 Glenn Morris <rgm@gnu.org>
12326
12327 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12328
123292008-05-16 Eli Zaretskii <eliz@gnu.org>
12330
12331 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12332 and st_gid.
12333
12334 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12335 HAVE_WINDOW_SYSTEM is not defined.
12336
12337 * xfaces.c (merge_face_ref, merge_face_vectors)
12338 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12339 HAVE_WINDOW_SYSTEM is defined.
12340 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12341
123422008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12343
12344 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12345
123462008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12347
12348 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12349
123502008-05-15 Kenichi Handa <handa@m17n.org>
12351
12352 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12353 preference.
12354
123552008-05-15 Glenn Morris <rgm@gnu.org>
12356
12357 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12358
123592008-05-15 Chong Yidong <cyd@stupidchicken.com>
12360
12361 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12362 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12363
12364 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12365
123662008-05-15 Kenichi Handa <handa@m17n.org>
12367
12368 * ftfont.c (ftfont_list): Downcase family name to check generic
12369 families.
12370
12371 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12372 font-spec for QCfont value.
12373
12374 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12375 buffer. Check the return value of it.
12376
123772008-05-14 Jason Rumney <jasonr@gnu.org>
12378
12379 * w32term.c (w32_get_glyph_overhangs): Remove.
12380 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12381
123822008-05-14 Kenichi Handa <handa@m17n.org>
12383
12384 * font.c (font_prop_validate): Make nil a valid value.
12385 (font_clear_cache): Check if the cached vector of entities is nil
12386 or not.
12387
123882008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12389
12390 * emacs.c (main_thread): Conditionalize on
12391 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12392 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12393
12394 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12395 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12396 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12397
123982008-05-14 Kenichi Handa <handa@m17n.org>
12399
12400 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12401 has no corresponding coding system.
12402
124032008-05-14 Jason Rumney <jasonr@gnu.org>
12404
12405 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12406
12407 * w32font.h (w32font_open_internal): Update declaration.
12408
12409 * w32font.c (w32font_open_internal): Change last argument from
12410 w32font_info struct to font object. Fill in font object from
12411 font_entity. Get Outline metrics if possible. Use them to
12412 calculate underline position and thickness. Use xlfd name as name
12413 property. Don't set codepage.
12414 (w32font_open): Pass font_object to w32font_open_internal. Don't
12415 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12416 (w32font_draw): Use s->font.
12417 (clear_cached_metrics): Don't clear non-existent blocks.
12418
12419 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12420 font was not found.
12421 (x_draw_glyph_string): Use underline position and thickness from font.
12422
12423 * w32uniscribe.c (uniscribe_open): Pass font_object to
12424 w32font_open_internal.
12425
124262008-05-14 Kenichi Handa <handa@m17n.org>
12427
12428 These changes are to delete all legacy font-handling codes, and
12429 make Emacs use only font-backends.
12430
12431 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12432 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12433
12434 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12435
12436 * charset.h (Vcharset_non_preferred_head)
12437 (Vcurrent_iso639_language): Extern them.
12438
12439 * charset.c (Vcharset_non_preferred_head): New variable.
12440 (Vcurrent_iso639_language): New variable.
12441 (syms_of_charset): Declare it as a Lisp variable.
12442 (char_charset): Don't check non preferred charsets. As a last
12443 resort, return charset_unicode.
12444 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12445
12446 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12447 conditionals. Don't check enable_font_backend. Delete all codes
12448 used only when USE_FONT_BACKEND is not defined.
12449
12450 * dispextern.h (struct glyph_string): Change type of `font' to
12451 `struct font *'.
12452 (struct glyph_string): New member underline_position and
12453 underline_thickness.
12454 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12455 (struct face): Change type of `font' to `struct font *'. Remove
12456 members `font_name', `font_info_id'.
12457 (per_char_metric, encode_char): Delete externs.
12458 (calc_pixel_width_or_height): Adjust the prototype.
12459
12460 * emacs.c (enable_font_backend): Delete extern.
12461 (main): Don't set enable_font_backend. Don't check the command
12462 line argument "-disable-font-backend".
12463
12464 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12465 (enum font_property_index): New members FONT_DPI_INDEX,
12466 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12467 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12468 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12469 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12470 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12471 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12472 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12473 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12474 (struct font_spec, struct font_entity): New structs.
12475 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12476 (struct font): Many members from old "struct font_info" moved to
12477 here. Members font and entity deleted.
12478 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12479 the new font-related objects.
12480 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12481 (CHECK_FONT_GET_OBJECT): Likewise.
12482 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12483 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12484 (struct font_driver): New members case_sensitive anc check. Type
12485 of the member list and open changed.
12486 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12487 (font_symbolic_width, font_find_object, font_get_spec)
12488 (font_set_lface_from_name): Delete extern.
12489 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12490
12491 * font.c: Include <strings.h>.
12492 (enable_font_backend): Delete it.
12493 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12494 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12495 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12496 (null_string): Delete it.
12497 (null_vector): Make it static.
12498 (font_family_alist): Delete it.
12499 (Qnormal): Extern it.
12500 (QCextra, QClanguage): Delete it.
12501 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12502 (font_make_spec, font_make_entity, font_make_object)
12503 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12504 the string. Callers changed.
12505 (font_pixel_size): Adjusted for the format change of font-related
12506 objects.
12507 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12508 (font_style_to_value, font_style_symbolic): New function.
12509 (build_font_family_alist): Delete it.
12510 (font_registry_charsets): Use Fassoc_string instead of
12511 assq_no_quit.
12512 (font_prop_validate_symbol): Don't return null_string.
12513 (font_prop_validate_style): Adjusted for the change of
12514 style-related values in a font vector.
12515 (font_property_table): Delete entries for QClanguage and
12516 QCantialias, add entries for QCavgwidth.
12517 (get_font_prop_index): Delete the 2nd argument FROM.
12518 (font_prop_validate): Arguments changed.
12519 (font_put_extra): Adjusted for the change of font-related objects.
12520 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12521 (font_parse_fcname, font_unparse_fcname)
12522 (font_prepare_composition): Likewise.
12523 (font_parse_family_registry): Renamed from font_merge_old_spec.
12524 (otf_open): Delete the 1st arg entity.
12525 (font_otf_capability): Adjusted for the above change.
12526 (font_score): New arg alternate_families. Adjusted for the change
12527 of font-related objects.
12528 (font_sort_entites): New arg best_only.
12529 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12530 Delete them.
12531 (font_match_p): Check alternate families.
12532 (font_find_object): Delete it.
12533 (font_check_object): New function.
12534 (font_clear_cache): Adjusted for the change of font-related objects.
12535 (font_delete_unmatched): New arg.
12536 (font_list_entities): Call font_driver->list with a spec that
12537 doesn't specify style-related properties.
12538 (font_matching_entity): Arguments changed. Caller changed.
12539 (font_open_entity): Adjusted for the change of font-related objects.
12540 (font_close_object, font_has_char, font_encode_char)
12541 (font_get_name, font_get_spec): Likewise.
12542 (font_spec_from_name, font_clear_prop, font_update_lface):
12543 New functions.
12544 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12545 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12546 (font_at): Adjusted for the change of font-related objects.
12547 (font_range): New function.
12548 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12549 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12550 (Fcopy_font_spec, Fmerge_font_spec): New function.
12551 (Ffont_family_list): Renamed from list-families.
12552 (Finternal_set_font_style_table): Arguments changed.
12553 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12554 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12555 change of font-related objects.
12556 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12557
12558 * fontset.h (struct font_info): Delete it. Most members go to
12559 struct font.
12560 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12561 (enum FONT_SPEC_INDEX): Delete it.
12562 (font_info, list_fonts_func, load_font_func, query_font_func)
12563 (set_frame_fontset_func, find_ccl_program_func)
12564 (get_font_repertory_func, new_fontset_from_font_name): Delete
12565 externs.
12566 (fontset_from_font_name): Extern it.
12567 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12568 (FONT_INFO_FROM_FACE): Deleted.
12569 (face_for_font): Adjust prototype.
12570
12571 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12572 conditionals. Don't check enable_font_backend. Delete all codes
12573 used only when USE_FONT_BACKEND is not defined.
12574 (get_font_info_func, list_font_func, load_font_func)
12575 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12576 (get_font_repertory_func): Delete them.
12577 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12578 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12579 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12580 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12581 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12582 (fontset_compare_rfontdef): New function.
12583 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12584 rfont-defs by qsort. Adjusted for the change of font-group vector.
12585 (load_font_get_repertory): Deleted.
12586 (fontset_find_font): Use new macros to ref/set elements of
12587 font-def and rfont-def.
12588 (fontset_font): Fix the timing of remembering that no font for C.
12589 (free_face_fontset): Do nothing if the face has no fontset.
12590 (face_suitable_for_char_p): Use new macros to ref/set elements of
12591 rfont-def.
12592 (face_for_char): Likewise. Call face_for_char with font_object.
12593 (fs_load_font): Delete. Delete #pragma surrounding it.
12594 (fs_query_fontset): Use strcasecmp instead of strcmp.
12595 (generate_ascii_font_name): Adjusted for the format change of
12596 font-spec.
12597 (Fset_fontset_font): Likewise. Use new macros to set elements of
12598 font-def.
12599 (Fnew_fontset): Use font_unparse_xlfd to generate
12600 FONTSET_ASCII (fontset).
12601 (new_fontset_from_font_name): Deleted.
12602 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12603 a fontset is already created for the font. FIx updating of
12604 Vfontset_alias_alist.
12605 (fontset_ascii_font): Deleted.
12606 (Ffont_info): Adjusted for the format change of font-spec.
12607 (Finternal_char_font): Likewise.
12608 (Ffontset_info): Likewise.
12609 (syms_of_fontset): Don't check load_font_func.
12610
12611 * fns.c (internal_equal): Handle PREV_FONT.
12612
12613 * frame.h: Delete USE_FONT_BACKEND conditional.
12614
12615 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12616 conditionals. Don't check enable_font_backend. Delete all codes
12617 used only when USE_FONT_BACKEND is not defined.
12618 (x_set_font): Call x_new_font, not x_new_fontset2.
12619 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12620 already set for the frame.
12621
12622 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12623 a font-entity by font_make_entity. Use font_intern_prop instead
12624 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12625 font property. If a font is scalable, set avgwidth property to 0.
12626 Set font-entity property by font_put_extra.
12627 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12628 (ffont_driver): Adjusted for the change of struct font_driver.
12629 (ftfont_spec_pattern): New function.
12630 (ftfont_list): Return a list, not vector.
12631 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12632 (ftfont_list_family): Don't downcase names.
12633 (ftfont_free_entity): Deleted.
12634 (ftfont_open): Return a font-object. Adjusted for the change of
12635 struct font. Get underline_thickness and underline_position from
12636 font property. Don't update dpyinfo->smallest_font_height and
12637 dpyinfo->smallest_char_width.
12638 (ftfont_close): Don't free `struct font'.
12639 (ftfont_has_char): Adjusted for the format change of font-entity.
12640 (ftfont_encode_char, ftfont_text_extents): Likewise.
12641
12642 * ftxfont.c (ftxfont_list): Return a list, not vector.
12643 (ftxfont_open): Return a font-object. Adjusted for the change of
12644 struct font. Get underline_thickness and underline_position from
12645 font property. Don't update dpyinfo->smallest_font_height and
12646 dpyinfo->smallest_char_width.
12647 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12648 (ftxfont_draw): Adjusted for the change of struct font.
12649
12650 * image.c (image_ascent): Don't include "charset.h". Include
12651 "character.h" and "font.h".
12652
12653 * lisp.h (enum pvec_type): New member PREV_FONT.
12654 (Fassoc_string): EXFUN it.
12655
12656 * print.c: Include font.h.
12657 (print_object): Handle font-related objects.
12658
12659 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12660 conditionals. Don't check enable_font_backend. Delete all codes
12661 used only when USE_FONT_BACKEND is not defined.
12662 (handle_auto_composed_prop): Do nothing if it->f is not on a
12663 window system. Check how many following characters can be
12664 displayed by the same font.
12665 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12666 'struct font *'.
12667 (get_char_face_and_encoding): Assign the whole encoding task to
12668 the `encode-char' method of a font driver.
12669 (fill_composite_glyph_string): Adjusted for the change of `struct
12670 face' and `struct glyph_string'.
12671 (fill_glyph_string): Likewise.
12672 (get_per_char_metric): Arguments changed.
12673 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12674 and `struct glyph_string'.
12675 (produce_stretch_glyph, calc_line_height_property)
12676 (x_produce_glyphs): Likewise.
12677
12678 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12679 conditionals. Don't check enable_font_backend. Delete all codes
12680 used only when USE_FONT_BACKEND is not defined. Use
12681 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12682 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12683 (Qp): Extern them.
12684 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12685 Deleted.
12686 (struct font_name): Deleted.
12687 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12688 (compare_fonts_by_sort_order): New function.
12689 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12690 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12691 Deleted.
12692 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12693 compare_fonts_by_sort_order.
12694 (Fx_font_family_list): Call Ffont_family_list.
12695 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12696 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12697 (face_symbolic_slant, face_symbolic_swidth)
12698 (split_font_name_into_vector, build_font_name_from_vector)
12699 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12700 (font_rescale_ratio, split_font_name, build_font_name)
12701 (free_font_names, sort_fonts, x_face_list_fonts)
12702 (face_font_available_p, sorted_font_list, cmp_font_names)
12703 (font_list_1, concat_font_list, font_list, remove_duplicates):
12704 Deleted.
12705 (Fx_list_fonts): Use Ffont_list.
12706 (LFACE_AVGWIDTH): Deleted.
12707 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12708 by FONTP.
12709 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12710 (set_lface_from_font_name): Delete it.
12711 (set_lface_from_font): Renamed from
12712 set_lface_from_font_and_fontset. Caller changed. Don't set
12713 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12714 for face.
12715 (merge_face_vectors): Copy font-spec if necessary.
12716 Clear properties of the font-spec if necessary.
12717 (merge_face_ref): Clear properties of the font-spec if necessary.
12718 (Finternal_set_lisp_face_attribute): Likewise.
12719 (set_font_frame_param): Use font_load_for_lface to load a
12720 font-object, and call Fmodify_frame_parameters with it.
12721 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12722 font name by Ffont_xlfd_name.
12723 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12724 QCslant, and QCwidth.
12725 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12726 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12727 Compare fonts by EQ.
12728 (lookup_non_ascii_face): Deleted.
12729 (face_for_font): The 2nd argument changed.
12730 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12731 Check atomic font properties by case insensitive.
12732 (realize_non_ascii_face): Set face->overstrike correctly.
12733 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12734 (dump_realized_face): Get font name from
12735 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12736
12737 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12738 conditionals. Don't check enable_font_backend. Delete all codes
12739 used only when USE_FONT_BACKEND is not defined.
12740 (xic_create_xfontset): Original code deleted and renamed from
12741 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12742 (x_make_gc): Don't set GCFont in GCs.
12743 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12744 opened by "fixed".
12745 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12746 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12747 get_font_repertory_func.
12748
12749 * xfont.c: Include <stdlib.h> and "ccl.h".
12750 (struct xfont_info): New structure.
12751 (xfont_query_font): Deleted.
12752 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12753 moved from xterm.c.
12754 (xfont_driver): Adjusted for the change of struct font_driver.
12755 (compare_font_names): New function.
12756 (xfont_list_pattern): Sort font names case insensitively. Make
12757 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12758 (xfont_list): Return a list, not vector.
12759 (xfont_match): If the font doesn't have QCname property, generate
12760 a name from the other font properties.
12761 (xfont_open): Return a font-object. Adjusted for the change of
12762 struct font. Get underline_thickness and underline_position from
12763 font property. Don't update dpyinfo->smallest_font_height and
12764 dpyinfo->smallest_char_width.
12765 (xfont_close): Don't free struct font.
12766 (xfont_prepare_face): Adjusted for the change of struct font.
12767 (xfont_done_face): Deleted.
12768 (xfont_has_char): Adjusted for the change of struct font.
12769 (xfont_encode_char, xfont_draw): Likewise.
12770 (xfont_check): New function.
12771
12772 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12773 callback function.
12774 (xftfont_match): Adjusted for the format change of font-entity.
12775 (xftfont_open): Adjusted for the format change of font-entity and
12776 font-object. Adjusted for the change of struct font. Return a
12777 font-object. Don't update dpyinfo->smallest_font_height and
12778 dpyinfo->smallest_char_width.
12779 (xftfont_close): Block input while calling XftFontClose.
12780 (xftfont_prepare_face): Don't block input while calling
12781 xftfont_get_colors. Adjusted for the change of struct font.
12782 (xftfont_shape): Return value of error case fixed.
12783
12784 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12785
12786 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12787 conditionals.
12788 (FONT_WIDTH): Return (f)->max_width.
12789 (struct x_display_info): Delete member `font'.
12790 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12791 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12792 (struct x_output): Change type of `font' to `struct font *'.
12793
12794 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12795 conditionals. Don't check enable_font_backend. Delete all codes
12796 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12797 (x_per_char_metric, x_encode_char): Deleted.
12798 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12799 (x_compute_glyph_string_overhangs): Adjusted for the change of
12800 `struct face'.
12801 (x_draw_glyph_string_foreground)
12802 (x_draw_composite_glyph_string_foreground): Likewise.
12803 (x_draw_glyph_string): Likewise. Use font->underline_position and
12804 font->underline_thickness.
12805 (x_new_font): Renamed from x_new_fontset2.
12806 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12807 (x_check_font): Call `check' method of a font driver.
12808 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12809 (x_query_font, x_get_font_repertory): Deleted.
12810 (x_find_ccl_program): Renamed and moved to xfont.c.
12811 (x_redisplay_interface): Adjusted for the change of `struct
12812 redisplay_interface'.
12813
12814 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12815 conditionals. Don't check enable_font_backend. Delete all codes
12816 used only when USE_FONT_BACKEND is not defined. Surround non-used
12817 code by "#ifdef OLD_FONT" and "endif".
12818 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12819
12820 * w32font.h (struct w32font_info): New member.
12821 (FONT_COMPAT): New macro.
12822 (w32font_open_internal): Prototype adjusted.
12823
12824 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12825 OLD_FONT" and "endif".
12826
12827 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12828 conditionals. Don't check enable_font_backend. Delete all codes
12829 used only when USE_FONT_BACKEND is not defined.
12830 (w32font_open): Return a font-object. Make a font-object by
12831 font_make_object. Adjusted for the change of struct w32font_info.
12832 (w32font_close): Don't free struct font. Adjusted for the change
12833 of struct w32font_info.
12834 (w32font_encode_char, w32font_text_extents, w32font_draw):
12835 Adjusted for the change of struct w32font_info.
12836 (w32font_draw): Likewise.
12837 (w32font_list_internal): Return a list, not vector.
12838 (w32font_open_internal): Change the 4th arg to font-object.
12839 Adjusted for the change of struct w32font_info and font-object format.
12840 (add_font_name_to_list): Don't downcase names.
12841 (w32_enumfont_pattern_entity): Make a font-entity by
12842 font_make_entity. Adjusted for the format change of font-entity.
12843 Use FONT_SET_STYLE to set a style-related font property. If a
12844 font is scalable, set avgwidth property to 0. Set font-entity
12845 property by font_put_extra.
12846 (font_matches_spec): Adjusted for the format change of font-entity.
12847 (w32_weight_table, w32_decode_weight): New variables.
12848 (w32_encode_weight): New function.
12849 (fill_in_logfont): Adjusted for the format change of font-spec.
12850 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12851 weight value.
12852 (w32font_driver): Adjusted for the change of struct font_driver.
12853
12854 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12855 conditionals. Don't check enable_font_backend. Surround non-used
12856 code by "#ifdef OLD_FONT" and "endif".
12857 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12858 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12859
12860 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12861 conditionals. Don't check enable_font_backend. Delete all codes
12862 used only when USE_FONT_BACKEND is not defined. Surround non-used
12863 code by "#ifdef OLD_FONT" and "endif".
12864
12865 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12866 (uniscribe_open): Return value changed to font-object.
12867 Adjusted for the format change of font-object.
12868 (uniscribe_otf_capability): Adjusted for the change of struct font.
12869 (add_opentype_font_name_to_list): Don't downcase names.
12870 (uniscribe_font_driver): Adjusted for the change of struct
12871 font_driver.
12872
128732008-05-13 Chong Yidong <cyd@stupidchicken.com>
12874
12875 * dispnew.c (update_frame_1): Check if tty output is still valid
12876 before flushing it.
12877
128782008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12879
12880 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12881 to Gtk+ menus.
12882
128832008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12884
12885 * dired.c (file_name_completion): Tweak the code so as to always do it
12886 in a single pass. Tighten the scope of some variables.
12887
12888 * dired.c (Qdefault_directory): New var.
12889 (file_name_completion): Use it instead of Fexpand_file_name.
12890 (syms_of_dired): Initialize it.
12891
128922008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12893
12894 * fileio.c (double_dollars): Remove dead code.
12895
128962008-05-10 Eli Zaretskii <eliz@gnu.org>
12897
12898 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12899 Mention w32-get-true-file-attributes in doc string.
12900
12901 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12902
129032008-05-09 Glenn Morris <rgm@gnu.org>
12904
12905 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12906 2008-04-23.
12907
129082008-05-09 Eli Zaretskii <eliz@gnu.org>
12909
12910 Support for reporting owner and group of each file on MS-Windows:
12911 * dired.c (stat_uname, stat_gname): New functions, with special
12912 implementation for w32.
12913 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12914
12915 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12916 (dflt_group_name): New static variable.
12917 (dflt_group): Rename from the_group.
12918 (init_user_info): Init dflt_group fields. Get user's group name
12919 from LookupAccountSid.
12920 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12921 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12922 New initialization states.
12923 (globals_of_w32): Initialize them to zero. Initialize the default
12924 group name to "None".
12925 (GetFileSecurity_Name): New global var, the name of the function
12926 to call for GetFileSecurity.
12927 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12928 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12929 (get_file_security, get_security_descriptor_owner)
12930 (get_security_descriptor_group, is_valid_sid)
12931 (get_file_security_desc, get_rid, get_name_and_id)
12932 (get_file_owner_and_group): New functions.
12933 (stat): Use get_file_security_desc and get_file_owner_and_group to
12934 report the owner and primary group of each file. Don't ignore the
12935 high 32 bits of file's size, now that st_size is 64-bit wide.
12936 Fix test when to get true file attributes.
12937 (init_user_info): Use get_rid instead of equivalent inline code.
12938 (fstat): Don't ignore the high 32 bits of file's size.
12939
129402008-05-09 Chong Yidong <cyd@stupidchicken.com>
12941
12942 * image.c (png_load): Use correct bit-depth for setting background
12943 color.
12944
129452008-05-08 Eli Zaretskii <eliz@gnu.org>
12946
12947 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12948 epa-hook.elc.
12949
129502008-05-08 Juanma Barranquero <lekktu@gmail.com>
12951
12952 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12953
129542008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12955
12956 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12957 because the original parameters are in pure storage now.
12958 (mac_window): Remove unused params. Update callers.
12959
129602008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12961
12962 * lread.c (substitute_object_recurse): Use lower-level primitives.
12963 Don't signal errors when traversing sub-char-tables.
12964 Don't loop over all the possible characters when traversing char-tables.
12965
12966 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12967 just like we do in print.c.
12968
129692008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12970
12971 * minibuf.c (Ftry_completion): Remove code left over from when we used
12972 scmp instead of Fcompare_strings.
12973
129742008-05-04 Juanma Barranquero <lekktu@gmail.com>
12975
12976 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12977
129782008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12979
12980 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12981 Create bitmap context in native byte order.
12982
12983 * macterm.c (XDrawLine)
12984 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12985 context in native byte order.
12986
129872008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12988
12989 * config.in: Regenerate.
12990
12991 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12992 New definitions for Image I/O support.
12993 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12994 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12995 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12996 (mac_data_provider_release_data, image_load_image_io)
12997 [USE_MAC_IMAGE_IO]: New functions.
12998 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12999 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13000 (init_image_func_pointer) [MAC_OSX]: Remove function.
13001 (image_load_quartz2d) [MAC_OSX]: Check availability of
13002 CGImageCreateWithPNGDataProvider at compile time.
13003 Use lowercase `false' for boolean constant.
13004 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13005 Use image_load_image_io.
13006 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13007 Don't check MyCGImageCreateWithPNGDataProvider.
13008 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13009 Don't call init_image_func_pointer.
13010
13011 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13012
13013 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13014 Make variable non-static.
13015 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13016 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13017
13018 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13019 (RED_FROM_ULONG): Mask off higher bits.
13020 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13021
13022 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13023 Include AvailabilityMacros.h.
13024 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13025 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13026
130272008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13028
13029 * chartab.c (Fset_char_table_range): If range is t, really set all
13030 chars to that value.
13031
130322008-05-03 Eli Zaretskii <eliz@gnu.org>
13033
13034 * dired.c (Ffile_attributes): Don't allow the device number become
13035 negative.
13036
130372008-05-02 Daiki Ueno <ueno@unixuser.org>
13038
13039 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13040
130412008-05-02 Juri Linkov <juri@jurta.org>
13042
13043 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13044 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13045 DEFAULT argument as a list of default values in docstrings.
13046
130472008-05-01 Chong Yidong <cyd@stupidchicken.com>
13048
13049 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13050
130512008-05-01 Martin Rudalics <rudalics@gmx.at>
13052
13053 * dispnew.c (change_frame_size_1): Preserve small windows when
13054 shrinking frames by calling set_window_height|width with third
13055 arg 2.
13056
13057 * window.h (struct window): Replace field too_small_ok by field
13058 resize_proportionally.
13059
13060 * window.c (make_window): Initialize resize_proportionally.
13061 (enlarge_window): Temporarily set resize_proportionally to make
13062 sure that shrink_windows does scale the window proportionally.
13063 (shrink_windows): When window has resize_proportionally set try
13064 to shrink it proportionally by stealing from other windows.
13065 (struct saved_window, Fset_window_configuration)
13066 (compare_window_configurations): Handle resize_proportionally.
13067 (WINDOW_TOTAL_SIZE): New macro.
13068 (window_min_size, shrink_windows, size_window): Use it.
13069 (check_min_window_sizes): Remove. Invalid values of
13070 window-min-height|width are handled by window_min_size_2 now.
13071 (size_window, Fsplit_window, enlarge_window)
13072 (adjust_window_trailing_edge, grow_mini_window): Don't call
13073 check_min_window_sizes.
13074 (window_min_size_2, window_min_size_1, window_min_size):
13075 New argument safe_p for retrieving "safe" minimum sizes.
13076 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13077 (adjust_window_trailing_edge, grow_mini_window):
13078 Adjust arguments of window_min_size... functions.
13079 (shrink_windows): Argument min_size removed. New argument
13080 safe_p allows shrinking windows to their safe minimum sizes.
13081 Calculate minimum size and decide whether a window shall be
13082 deleted for each window individually.
13083 (size_window): When nodelete_p equals 2, tell shrink_windows to
13084 delete windows only if their new minimum size is no more safe.
13085 (shrink_window_lowest_first): Call window_min_size_1 to make
13086 sure to preserve modeline of bottom-most window when resizing
13087 the minibuffer.
13088 (Fset_window_configuration, Fcurrent_window_configuration)
13089 (compare_window_configurations): Do not handle
13090 window-min-height|width any more.
13091 (syms_of_window): Clarify window-min-height|width doc-strings.
13092
130932008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13094
13095 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13096 some more. Copy some of the code from Ftry_completions.
13097 Remove special case code that dates back to initial revision when the
13098 slash was only added when necessary and that can't trigger nowadays.
13099
131002008-04-27 Kenichi Handa <handa@m17n.org>
13101
13102 * font.c (font_prop_validate): Signal `error' instead of `font'.
13103
131042008-04-29 Jason Rumney <jasonr@gnu.org>
13105
13106 * w32fns.c (Fw32_battery_status): New defun.
13107 (syms_of_w32fns): Defsubr it.
13108
131092008-04-28 Andreas Schwab <schwab@suse.de>
13110
13111 * dired.c (file_name_completion): Fix another mixing of encoded
13112 and decoded names.
13113
131142008-04-28 Juanma Barranquero <lekktu@gmail.com>
13115
13116 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13117
131182008-04-27 Juanma Barranquero <lekktu@gmail.com>
13119
13120 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13121
131222008-04-27 Andreas Schwab <schwab@suse.de>
13123
13124 * dired.c (file_name_completion): Fix inappropriate mixing of
13125 encoded and decoded names.
13126
13127 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13128
13129 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13130
131312008-04-26 Eli Zaretskii <eliz@gnu.org>
13132
13133 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13134 2008-03-31, it's not needed anymore with `struct stat' definition
13135 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13136 for the same reasons.
13137
131382008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13139
13140 * m/sparc.h: Additional redefinitions for GNU/Linux.
13141
131422008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13143
13144 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13145 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13146 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13147 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13148 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13149 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13150 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13151 Likewise.
13152
13153 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13154 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13155 (mac_ax_number_of_characters): Add externs.
13156 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13157 [USE_MAC_TSM]: Likewise.
13158 (mac_handle_text_input_event) [MAC_OSX]:
13159 Handle kEventTextInputOffsetToPos for no active input area case.
13160 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13161 (mac_handle_document_access_event)
13162 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13163 (install_application_handler) [MAC_OSX]: Register handlers for
13164 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13165 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13166 Register mac_handle_document_access_event.
13167
13168 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13169 Make functions non-static.
13170
131712008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13172
13173 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13174 (read_file_name_completion_ignore_case, insert_default_directory)
13175 (Qdefault_directory): Move to minibuffer.el.
13176 (Fread_file_name): Call the new `read-file-name' instead.
13177
131782008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13179
13180 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13181 Make function non-static.
13182 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13183 Remove function.
13184 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13185 Move to mactoolbox.c.
13186 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13187
13188 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13189 (mac_rect_make): New macro.
13190
13191 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13192 instead of float.
13193 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13194 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13195 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13196 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13197 CGRectMake.
13198 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13199 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13200 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13201 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13202 instead of WindowRef in argument type.
13203 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13204 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13205 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13206 instead of DISPLAY. All uses changed.
13207 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13208 (x_calc_absolute_position): Simplify so as not to use
13209 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13210
13211 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13212 instead of WindowRef in argument type.
13213 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13214 [TARGET_API_MAC_CARBON]: Remove externs.
13215 (create_apple_event, mac_event_parameters_to_lisp)
13216 [TARGET_API_MAC_CARBON]: Add externs.
13217
13218 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13219 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13220 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13221 is clicked.
13222 (x_activate_menubar): Remove extern for saved_menu_event_location.
13223 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13224 Move from mac.c.
13225
132262008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13227
13228 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13229 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13230
132312008-04-23 Jason Rumney <jasonr@gnu.org>
13232
13233 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13234 attributes only for local files.
13235
13236 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13237 default to Qlocal.
13238
132392008-04-22 Juri Linkov <juri@jurta.org>
13240
13241 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13242 read-buffer-to-switch instead of using the letter "B".
13243
132442008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13245
13246 * fileio.c (Qdefault_directory): New variable.
13247 (Fread_file_name): Use it to pass `dir' to the completion functions.
13248
132492008-04-20 Chong Yidong <cyd@stupidchicken.com>
13250
13251 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13252
132532008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13254
13255 * keyboard.c (Vpre_help_message): Remove.
13256 (show_help_echo): Remove default C code.
13257
13258 * dired.c (directory_files_internal, file_name_completion):
13259 Only call ENCODE_FILE if the string is indeed decoded.
13260
132612008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * Makefile.in (TOOLKIT_DEFINES): Remove.
13264 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13265
132662008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13267
13268 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13269 (mactoolbox.o): New target.
13270
13271 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13272 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13273
13274 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13275 Use mac_set_frame_window_background instead of XSetWindowBackground.
13276 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13277 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13278 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13279 instead of SetWindowTitleWithCFString.
13280 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13281 Move function to mactoolbox.c.
13282 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13283 Use mac_set_window_modified instead of SetWindowModified.
13284 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13285 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13286 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13287 FrontNonFloatingWindow. Use mac_activate_window instead of
13288 ActivateWindow. Use mac_active_non_floating_window instead of
13289 ActiveNonFloatingWindow.
13290 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13291 Use mac_show_hourglass and mac_hide_hourglass.
13292 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13293 instead of GetGlobalMouse.
13294 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13295 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13296 Use mac_bring_window_to_front instead of BringToFront.
13297 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13298 mactoolbox.c.
13299 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13300 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13301 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13302 mactoolbox.c.
13303
13304 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13305 (XtPointer): Move typedef from macmenu.c.
13306 (enum button_type): Move enum from macmenu.c.
13307 (widget_value): Move typedef from macmenu.c.
13308 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13309 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13310 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13311 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13312 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13313 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13314 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13315 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13316 (Selection): Move typedef from macselect.c.
13317 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13318 macterm.c.
13319 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13320 (mac_is_window_collapsed, mac_bring_window_to_front)
13321 (mac_send_window_behind, mac_hide_window, mac_show_window)
13322 (mac_collapse_window, mac_front_non_floating_window)
13323 (mac_active_non_floating_window, mac_activate_window)
13324 (mac_move_window_structure, mac_move_window, mac_size_window)
13325 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13326
13327 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13328 (enum mac_menu_kind): Move enum to mactoolbox.c.
13329 (min_menu_id): Move variable to mactoolbox.c.
13330 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13331 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13332 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13333 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13334 [TARGET_API_MAC_CARBON]: Likewise.
13335 (XtPointer): Move typedef to macgui.h.
13336 (enum button_type): Move enum to macgui.h.
13337 (widget_value): Move typedef to macgui.h.
13338 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13339 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13340 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13341 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13342 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13343 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13344 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13345 (popup_activated_flag): Make variable non-static.
13346 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13347 (add_menu_item, fill_menu, dispose_menus):
13348 Move functions to mactoolbox.c.
13349 (restore_show_help_function, menu_target_item_handler)
13350 (install_menu_target_item_handler, mac_handle_dialog_event)
13351 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13352 [TARGET_API_MAC_CARBON]: Likewise.
13353 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13354 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13355 (find_and_call_menu_selection, name_is_separator): Make function
13356 non-static.
13357 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13358 to mactoolbox.c.
13359 (set_frame_menubar): Don't call install_menu_quit_handler.
13360 (menu_item_selection): New variable.
13361 (mac_menu_show): Use create_and_show_popup_menu.
13362 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13363 selection but set variable menu_item_selection. All uses changed.
13364 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13365 Call install_menu_quit_handler. Move to mactoolbox.c.
13366
13367 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13368 (Selection): Move typedef to macgui.h.
13369 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13370 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13371 Make variables non-static.
13372 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13373 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13374 Make functions non-static.
13375 (Vmac_service_selection) [MAC_OSX]: Likewise.
13376 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13377 (mac_valid_selection_target_p, mac_clear_selection)
13378 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13379 (mac_put_selection_value, mac_selection_has_target_p)
13380 (mac_get_selection_value, mac_get_selection_target_list)
13381 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13382 Move functions to mactoolbox.c.
13383 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13384 Likewise.
13385 (copy_scrap_flavor_data, mac_handle_service_event)
13386 (install_service_handler) [MAC_OSX]: Likewise.
13387 (syms_of_macselect) <Vmac_dnd_known_types>:
13388 Use mac_dnd_default_known_types.
13389
13390 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13391 Move to mactoolbox.c.
13392 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13393 (Fx_selection_owner_p): Add EXFUN.
13394 (install_window_handler, remove_window_handler, XSetWindowBackground):
13395 Remove externs.
13396 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13397 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13398 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13399 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13400 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13401 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13402 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13403 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13404 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13405 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13406 (mac_valid_selection_target_p, mac_clear_selection)
13407 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13408 (mac_put_selection_value, mac_selection_has_target_p)
13409 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13410 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13411 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13412 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13413 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13414 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13415 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13416 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13417 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13418
13419 * mactoolbox.c: New file.
13420
134212008-04-18 Jason Rumney <jasonr@gnu.org>
13422
13423 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13424
134252008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * character.c (Fmultibyte_char_to_unibyte):
13428 Return latin1 chars unchanged.
13429
13430 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13431 relocated if it points to `name'.
13432
134332008-04-17 Kenichi Handa <handa@m17n.org>
13434
13435 * data.c (Faset): Allow setting a multibyte character in an
13436 ASCII-only unibyte string.
13437
13438 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13439
134402008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13441
13442 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13443 done in config.h.
13444
134452008-04-16 Juanma Barranquero <lekktu@gmail.com>
13446
13447 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13448 (Fchar_direction): Add usage in the docstring.
13449
134502008-04-15 Chong Yidong <cyd@stupidchicken.com>
13451
13452 * keyboard.c (read_key_sequence): Remove always-true checks.
13453
134542008-04-14 Jason Rumney <jasonr@gnu.org>
13455
13456 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13457 compatibility struct, for better underline positioning.
13458
134592008-04-13 David Hansen <david.hansen@gmx.net>
13460
13461 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13462 string.
13463
134642008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13465
13466 * m/hp800.h (XUINT, XSET): Remove.
13467
134682008-04-12 Juanma Barranquero <lekktu@gmail.com>
13469
13470 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13471 previous change.
13472
134732008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13474
13475 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13476 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13477
134782008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13479
13480 * keymap.h (map_keymap_canonical): Declare.
13481 * xmenu.c (single_keymap_panes): Use it.
13482
134832008-04-11 Glenn Morris <rgm@gnu.org>
13484
13485 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13486 set the target's value to that of the alias.
13487
134882008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13489
13490 * term.c (set_tty_color_mode): Left over typo.
13491
134922008-04-10 Michael Albinus <michael.albinus@gmx.de>
13493
13494 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13495 only after check for file name handler functions. Signal, when
13496 native functionality is not supported.
13497 (syms_of_fileio): Declare it unconditionally.
13498
134992008-04-10 Jason Rumney <jasonr@gnu.org>
13500
13501 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13502 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13503
13504 * w32.c (logon_network_drive): Also logon to remote drives that
13505 are mapped to drive letters.
13506
135072008-04-10 Glenn Morris <rgm@gnu.org>
13508
13509 * xdisp.c (truncate-partial-width-windows): Doc fix.
13510
135112008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13512
13513 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13514 Move functions to minibuffer.el.
13515 (syms_of_fileio): Don't declare them.
13516
135172008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13518
13519 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13520 (syms_of_minibuf): Remove its initialization.
13521
13522 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13523
135242008-04-09 Juanma Barranquero <lekktu@gmail.com>
13525
13526 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13527
135282008-04-09 Jason Rumney <jasonr@gnu.org>
13529
13530 * makefile.w32-in (distclean): Delete makefile too.
13531 (maintainer-clean): New target.
13532
13533 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13534
13535 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13536 for new font backend and composite cases.
13537
135382008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13539
13540 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13541 Most of the code moved to run_timers.
13542 (do_pending_atimers): Call run_timers.
13543 (run_timers): New function.
13544
13545 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13546 run atimers.
13547
13548 * process.c (wait_reading_process_output): The same as above.
13549
135502008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13551
13552 * minibuf.c (last_exact_completion): Remove variable.
13553 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13554 (complete_and_exit_1, complete_and_exit_2)
13555 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13556 (Fdisplay_completion_list, display_completion_list_1)
13557 (Fminibuffer_completion_help, Fself_insert_and_exit)
13558 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13559 minibuffer.el.
13560 (syms_of_minibuf): Remove corresponding initializations.
13561
13562 * keyboard.c (Qdeactivate_mark): New var.
13563 (command_loop_1): Use it to call `deactivate-mark'.
13564 (syms_of_keyboard): Initialize it.
13565
13566 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13567 to another frame.
13568 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13569 Don't call set_tty_color_mode.
13570 (store_frame_param): Reset previous_frame rather than call
13571 set_tty_color_mode.
13572 * term.c (set_tty_color_mode): Rewrite.
13573 * dispextern.h (set_tty_color_mode): New type.
13574 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13575
135762008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13577
13578 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13579 for generic chars, which do not exist any more in emacs-unicode.
13580
135812008-04-08 Michael Albinus <michael.albinus@gmx.de>
13582
13583 * coding.c (detect_coding_emacs_mule)
13584 (Ffind_operation_coding_system): Fix typo.
13585
135862008-04-08 Jason Rumney <jasonr@gnu.org>
13587
13588 * w32uniscribe.c (SNAME): Extract only symbol name.
13589
13590 * w32font.h (struct w32_metric_cache): New struct.
13591 (w32font_info): Use it.
13592 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13593 (CACHE_BLOCKSIZE): New constants.
13594
13595 * w32font.c (Qja, Qko, Qzh): New symbols.
13596 (syms_of_w32font): Initialise them.
13597 (font_matches_spec): Use them to filter by language.
13598 (recompute_cached_metrics): Remove function.
13599 (compute_metrics, clear_cached_metrics): New functions.
13600 (w32font_encode_char): Use them to manage metric cache.
13601 (w32font_text_extents): Cache metrics for all glyphs on demand.
13602 Delay converting glyph indices to WORD until needed.
13603 (w32font_open_internal): Initialize metric cache to empty.
13604 (registry_to_w32_charset): Charset should always be a symbol.
13605 (fill_in_logfont, list_all_matching_fonts): Family should
13606 always be a symbol.
13607
136082008-04-06 Jason Rumney <jasonr@gnu.org>
13609
13610 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13611 Give up if glyph indices not supported. Use uniscribe obtained
13612 ABC widths for individual metrics. Map glyph clusters back to
13613 characters using fClusterStart flag. Return number of glyphs
13614 produced, not chars processed.
13615 (uniscribe_shape): Map char at FROM to current glyph.
13616
136172008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13618
13619 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13620 Use SetMenuItemHierarchicalMenu.
13621
136222008-04-05 Jason Rumney <jasonr@gnu.org>
13623
13624 * image.c (pbm_load): Allow color values up to 65535.
13625 Throw an error if max_color_idx is outside the supported range.
13626 Report an error when image size is invalid.
13627 Read two bytes at a time when raw images have max_color_idx above 255.
13628
136292008-04-05 Eli Zaretskii <eliz@gnu.org>
13630
13631 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13632 cFileName a file name that includes `?' characters, use the 8+3
13633 alias in cAlternateFileName instead.
13634
136352008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13636
13637 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13638 append "CCL: Quitted" when the CCL program is quitted.
13639 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13640
13641 * ccl.h (struct ccl_program): New member quit_silently.
13642
136432008-04-05 Chong Yidong <cyd@stupidchicken.com>
13644
13645 * search.c (compile_pattern_1): Treat non-nil and non-string of
13646 search-spaces-regexp as nil.
13647
13648 * minibuf.c (Fassoc_string): Tweak docstring.
13649
136502008-04-05 Eli Zaretskii <eliz@gnu.org>
13651
13652 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13653 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13654 2008-03-14 to force inode be positive.
13655
13656 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13657 _S_* ones, since we now use our own sys/stat.h.
13658 (stat, fstat): Don't mangle the inode number.
13659 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13660
136612008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13662
13663 * frame.h (struct frame): Give one more bit to `visible' since we use
13664 values larger than 1 to indicate obscured frames on ttys.
13665
13666 * keymap.c (Qkeymap_canonicalize): New var.
13667 (Fmap_keymap_internal): New fun.
13668 (describe_map): Use keymap-canonicalize.
13669
13670 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13671 (Fundo_boundary): Set them.
13672 (syms_of_undo): Initialize them.
13673 (record_point): Use them instead of last_point_position*.
13674 (last_undo_buffer): Change type.
13675
136762008-04-04 Jason Rumney <jasonr@gnu.org>
13677
13678 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13679 (recompute_cached_metrics): Don't set ascent and descent per char.
13680
13681 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13682 (uniscribe_check_otf): Add GC protection before consing.
13683 Rearrange loop for counting features.
13684
136852008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13686
13687 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13688 buffer with byte-size of source buffer.
13689
136902008-04-03 Chong Yidong <cyd@stupidchicken.com>
13691
13692 * callint.c (Fcall_interactively): Handle temporary region even
13693 when shift-select-mode is off.
13694
136952008-04-03 Jason Rumney <jasonr@gnu.org>
13696
13697 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13698
136992008-04-03 Kenichi Handa <handa@m17n.org>
13700
13701 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13702 (CATEGORY_MASK_UTF_16): Likewise.
13703 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13704 binary file.
13705 (detect_coding): Add null-byte detection for a binary file.
13706 (detect_coding_system): Likewise.
13707
137082008-04-03 Jason Rumney <jasonr@gnu.org>
13709
13710 * w32uniscribe.c: New file.
13711
13712 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13713
13714 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13715
13716 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13717 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13718 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13719 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13720 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13721 (Qphonetic): New symbols.
13722 (syms_of_w32font): Initialize them.
13723 (font_supported_scripts): Use them.
13724 (w32font_list_family): List all charsets.
13725 (w32font_text_extents, recompute_cached_metrics): Fix metric
13726 calculations.
13727 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13728 Give opentype fonts their own format.
13729 (font_matches_spec): New arguments backend and logfont.
13730 Handle :otf spec for uniscribe backend.
13731 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13732 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13733
13734 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13735 font backend.
13736 (globals_of_w32fns): Initialize uniscribe font backend.
13737
13738 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13739 dependencies.
13740 (w32uniscribe.$(O)): New file to build.
13741 (FONT_OBJ): Include w32uniscribe.$(O).
13742 (LIBS): Add uniscribe libraries.
13743
13744 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13745
137462008-04-02 Chong Yidong <cyd@stupidchicken.com>
13747
13748 * callint.c (Vshift_select_mode): New var.
13749 (Finteractive): Document new ^ spec.
13750 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13751 is present.
13752
13753 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13754 (command_loop_1): Avoid running the direct display versions of
13755 forward-char and backward-char if shift-selection may occur.
13756 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13757 shift-translation takes place.
13758
13759 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13760 avoid clobbering by define-minor-mode.
13761
13762 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13763 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13764
13765 * syntax.c (Fforward_word): Add ^ interactive spec.
13766
13767 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13768 (Fscroll_right): Add ^ interactive spec.
13769
137702008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13771
13772 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13773
13774 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13775
13776 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13777
137782008-03-31 Juri Linkov <juri@jurta.org>
13779
13780 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13781
137822008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13783
13784 * gtkutil.c (xg_set_geometry): Fix indentation.
13785 (xg_resize_outer_widget): Remove.
13786 (x_wm_size_hint_off): Fix indentation.
13787 (xg_frame_set_char_size): Call flush_and_sync after
13788 gtk_window_resize.
13789 (x_wm_set_size_hint): Pass NULL as geometry window to
13790 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13791 Add menu bar and tool bar height to base height.
13792 (xg_update_frame_menubar, free_frame_menubar)
13793 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13794 (update_frame_tool_bar, free_frame_tool_bar):
13795 Change xg_resize_outer_widget to xg_frame_set_char_size.
13796
137972008-03-30 Michael Albinus <michael.albinus@gmx.de>
13798
13799 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13800 (Fdbus_call_method): New parameter TIMEOUT.
13801 (dbus-send-signal): Optimize UNGCPRO call.
13802
138032008-03-29 Juri Linkov <juri@jurta.org>
13804
13805 * window.c (Fdisplay_buffer): Move call to
13806 Vsplit_window_preferred_function out of conditions that check
13807 if window is eligible for vertical splitting.
13808 When Vsplit_window_preferred_function is non-nil, call it and use
13809 its non-nil return value as window. Otherwise, continue doing
13810 vertical splitting using Fsplit_window with arg horflag=nil.
13811 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13812 default value from `split-window' to nil.
13813
138142008-03-29 Juri Linkov <juri@jurta.org>
13815
13816 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13817 for interactive code letters 'b' and 'B'.
13818
138192008-03-29 Eli Zaretskii <eliz@gnu.org>
13820
13821 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13822 multibyte string.
13823
138242008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13825
13826 * keyboard.c (pending_funcalls): New var.
13827 (timer_check): Run it.
13828 (syms_of_keyboard): Initialize it.
13829 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13830 (Vdelete_terminal_functions): New vars.
13831 (syms_of_terminal): Initialize them.
13832 (Fdelete_terminal): Run delete-terminal-functions.
13833 * xdisp.c (safe_eval): Rewrite.
13834 (safe_call2): New fun.
13835 * frame.c (Qdelete_frame_functions): New var.
13836 (syms_of_frame): Initialize it.
13837 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13838 * lisp.h (safe_call2, pending_funcalls): Declare.
13839
138402008-03-28 Andreas Schwab <schwab@suse.de>
13841
13842 * indent.c (Fmove_to_column): Move declaration before statements.
13843
138442008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13847 (struct frame): Use bit fields for boolean vars.
13848
13849 * process.c (server_accept_connection): Simplify naming.
13850 (emacs_get_tty_pgrp): Use SDATA.
13851
13852 * coding.c (decode_coding_object): Fix last change.
13853
138542008-03-27 Jason Rumney <jasonr@gnu.org>
13855
13856 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13857
138582008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13859
13860 * charset.c (Fdefine_charset_internal): Change the way of
13861 registering charsets in Vcharset_order_list.
13862 (syms_of_charset): Make the charset `eight-bit' supplementary.
13863
138642008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13865
13866 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13867 operations, to avoid having the difference between pointers
13868 overflow.
13869
138702008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13871
13872 * indent.c (check_display_width): New fun.
13873 (scan_for_column): Use it.
13874
13875 * data.c (syms_of_data): Mark most-positive-fixnum and
13876 most-negative-fixnum as constants.
13877
13878 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13879
13880 * indent.c (scan_for_column): Extract from current_column_1.
13881 Merge with the same code from Fmove_to_column.
13882 (current_column_1, Fmove_to_column): Use it.
13883
138842008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13885
13886 * keymap.c (map_keymap_internal): New fun.
13887 (map_keymap): Use it.
13888 (Fmap_keymap_internal): New fun.
13889 (Fmap_keymap): Remove left-out test from before make_save_value.
13890
13891 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13892
13893 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13894 Use XCAR/XCDR.
13895
13896 * process.h (struct Lisp_Process): Remove filter_multibyte.
13897 * process.c (QCfilter_multibyte): Remove.
13898 (setup_process_coding_systems): Don't use filter_multibyte.
13899 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13900 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13901 (Fset_process_filter_multibyte): Change the coding-system to
13902 approximate the previous behavior.
13903 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13904 coding-system.
13905
13906 * coding.c (decode_coding_object): When not decoding into a buffer,
13907 obey the coding system's preference of (uni|multi)byte.
13908
139092008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13910
13911 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13912 every char is changed and has a different byte-length.
13913 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13914 Fix int -> EMACS_INT.
13915
139162008-03-23 David Hansen <david.hansen@gmx.net>
13917
13918 * dbusbind.c (xd_read_message): Remove extra copying of message
13919 strings. Check for NULL `interface' or `member'.
13920
139212008-03-22 Eli Zaretskii <eliz@gnu.org>
13922
13923 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13924 cFileName a file name that includes `?' characters, use the 8+3
13925 alias in cAlternateFileName instead.
13926
139272008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13928
13929 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13930
139312008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13932
13933 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13934 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13935 work on current_buffer only instead (that was already the case
13936 for some of the code anyway).
13937 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13938 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13939 (SET_PT, SET_PT_BOTH): Adjust.
13940 * intervals.h (set_point, temp_set_point, set_point_both)
13941 (temp_set_point_both): Remove redundant declarations.
13942
139432008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13944
13945 * fileio.c (Finsert_file_contents):
13946 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13947 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13948 when buffer != current_buffer anyway.
13949
139502008-03-20 Andreas Schwab <schwab@suse.de>
13951
13952 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13953 as default.
13954
139552008-03-19 Jason Rumney <jasonr@gnu.org>
13956
13957 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13958 (syms_of_w32fns): Initialize them.
13959 (HOURGLASS_ID): New constant.
13960 (x_window_to_frame): Don't check hourglass_window.
13961 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13962 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13963 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13964 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13965 Only change the cursor if hourglass is not active.
13966 (Fx_create_frame): Initialize frame's current_cursor.
13967 (hourglass_atimer): Remove.
13968 (hourglass_started): New function.
13969 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13970 (show_hourglass): Adapt to w32, changing argument to frame.
13971
13972 * w32term.h (struct w32_output): Remove hourglass_window.
13973 Add current_cursor.
13974
13975 * eval.c (call_debugger, Fsignal):
13976 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13977 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13978 (Fexecute_extended_command, cancel_hourglass_unwind):
13979 * minibuf.c (read_minibuf):
13980 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13981
139822008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13983
13984 * window.c (run_funs): New fun.
13985 (run_window_configuration_change_hook): Use it to run the buffer-local
13986 and the global part of the hook.
13987
13988 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13989 (unwind_format_mode_line): Restore selected window.
13990 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13991
139922008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13993
13994 * editfns.c (Fchar_equal): Check they are valid characters.
13995
13996 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13997
139982008-03-17 Andreas Schwab <schwab@suse.de>
13999
14000 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14001 against a charset.
14002
14003 * lisp.h (Fbuffer_list): Declare.
14004
140052008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14006
aac0c6e3
MR
14007 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14008 handlebox_widget is != 0.
14009
140102008-03-16 Juri Linkov <juri@jurta.org>
14011
14012 * callint.c (Fcall_interactively): For interactive code letters
14013 'b' and 'B' put the buffer list into the list of default "future"
14014 values of the minibuffer.
14015
140162008-03-16 Andreas Schwab <schwab@suse.de>
14017
14018 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14019 modifiers.
14020
14021 * regex.c (re_match_2_internal): Correct matching of a charset
14022 against latin-1 characters.
14023
140242008-03-16 Kenichi Handa <handa@m17n.org>
14025
14026 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14027 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14028 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14029 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14030 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14031 CHAR_STRING_ADVANCE.
14032 (produce_chars): Fix for the case that the source and the
14033 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14034 instead of CHAR_STRING_ADVANCE.
14035 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14036 STRING_CHAR_ADVANCE.
14037
140382008-03-15 Andreas Schwab <schwab@suse.de>
14039
14040 * regex.c (re_match_2_internal): Correct matching of eight bit
14041 characters in unibyte strings.
14042
140432008-03-15 Martin Rudalics <rudalics@gmx.at>
14044
14045 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14046 at end of range when it coincides with the end of the buffer.
14047
140482008-03-14 Eli Zaretskii <eliz@gnu.org>
14049
14050 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14051
14052 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14053
140542008-03-14 Jason Rumney <jasonr@gnu.org>
14055
14056 * editfns.c (initial_tz): New variable.
14057 (syms_of_editfns): Initialize it.
14058 (Fset_time_zone_rule): Set it when first called.
14059 Use it when TZSTRING is nil.
14060
14061 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14062 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14063 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14064 (globals_of_w32fns): Initialize them.
14065 (compute_tip_xy): Use them to position tooltips.
14066
140672008-03-14 Glenn Morris <rgm@gnu.org>
14068
14069 * emacs.c (main): Revert previous change.
14070 (standard_args): Revert -internal-script back to -scriptload,
14071 and remove the long-option form.
14072
140732008-03-13 Glenn Morris <rgm@gnu.org>
14074
14075 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14076 Remove option -enable-font-backend.
14077
140782008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14079
14080 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14081
140822008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14083
14084 * xterm.c (x_connection_closed): For GTK: If this is the last
14085 terminal just exit without closing the display.
14086
140872008-03-11 Jason Rumney <jasonr@gnu.org>
14088
14089 * w32font.c (w32font_full_name): Use floor to round.
14090
f0131492 140912008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14092
14093 * sound.c (alsa_configure): Declare vol at beginning of block.
14094
14095 * fontset.c (Ffontset_info): Remove extra semicolon.
14096
140972008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14098
14099 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14100 size of resulting string.
14101
141022008-03-10 Jason Rumney <jasonr@gnu.org>
14103
14104 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14105
141062008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14107
14108 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14109 Don't pretend as if characters with display property haven't been
14110 consumed for string-replacing-string case.
14111
141122008-03-08 Kim F. Storm <storm@cua.dk>
14113
14114 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14115 (get_next_display_element, next_element_from_string)
14116 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14117
141182008-03-08 Andreas Schwab <schwab@suse.de>
14119
14120 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14121
141222008-03-06 Jason Rumney <jasonr@gnu.org>
14123
14124 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14125 when charset not specified. Only translate ANSI to unicode when
14126 font_type is truetype.
14127 (w32font_coverage_ok): New function.
14128 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14129
141302008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14131
14132 * lread.c (Fread_char): Resolve modifiers.
14133 (Fread_char_exclusive): Likewise.
14134
14135 * character.c (char_resolve_modifier_mask): New function.
14136 (char_string): Use char_resolve_modifier_mask.
14137 (Fchar_resolve_modifiers): New function.
14138 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14139 function.
14140
141412008-03-04 Jason Rumney <jasonr@gnu.org>
14142
14143 * makefile.w32-in: Always include w32font.c in the build.
14144 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14145
141462008-03-04 Andreas Schwab <schwab@suse.de>
14147
14148 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14149 (versionclean): Likewise.
14150
141512008-03-04 Juanma Barranquero <lekktu@gmail.com>
14152
14153 * .cvsignore: Add oo.
14154
141552008-03-03 Andreas Schwab <schwab@suse.de>
14156
14157 * coding.c (decode_coding_object): Inhibit gap shrinking while
14158 decoding in place.
14159
141602008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14161
14162 * w32term.c: Remove unused include "gnu.h".
14163 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14164
14165 * gnu.h: Rename to ...
14166 * emacs-icon.h: ... this.
14167 * xterm.c: Use emacs-icon.h instead of gnu.h.
14168 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14169
141702008-03-03 Juanma Barranquero <lekktu@gmail.com>
14171
14172 * w32font.c: Include math.h.
14173
141742008-03-03 Jason Rumney <jasonr@gnu.org>
14175
14176 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14177 Compute options separately.
14178 (w32font_open_internal): Set glyph_idx before caching metrics.
14179
14180 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14181 Define if system headers don't.
14182 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14183 (w32font_encode_char): Don't declare here.
14184
14185 * w32font.c (Quniscribe, QCformat): New symbols.
14186 (syms_of_w32font): Define them.
14187 (w32font_has_char): Indicate uncertainty.
14188 (w32font_encode_char): Encode as glyph point. Make static.
14189 (recompute_cached_metrics): New function.
14190 (w32font_open_internal): Use it. Set font to use glyph points
14191 initially. Set format based on type of font.
14192 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14193 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14194 on it. Set format based on information available here.
14195 (add_font_entity_to_list): Identify backend based on opentype_only.
14196
141972008-03-02 Andreas Schwab <schwab@suse.de>
14198
14199 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14200
14201 * coding.c (decode_coding_big5, produce_chars):
14202 Fix typos in last change.
14203
142042008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14205
14206 * gnu.h: New icon.
14207
142082008-03-02 Kenichi Handa <handa@m17n.org>
14209
14210 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14211 `dos', don't decode '\r' if that is the last in the source.
14212 (decode_coding_utf_16, decode_coding_emacs_mule)
14213 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14214 (decode_coding_raw_text, decode_coding_charset): Likewise.
14215 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14216
142172008-03-01 Jason Rumney <jasonr@gnu.org>
14218
14219 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14220
142212008-03-01 Kim F. Storm <storm@cua.dk>
14222
14223 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14224
142252008-03-01 Jason Rumney <jasonr@gnu.org>
14226
14227 * w32font.c (w32font_full_name): New function.
14228 (w32font_open_internal): Use it.
14229
142302008-03-01 Kim F. Storm <storm@cua.dk>
14231
14232 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14233
142342008-03-01 Jason Rumney <jasonr@gnu.org>
14235
14236 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14237
142382008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14239
14240 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14241 xg_frame_resized when the event is for the edit widget.
14242
14243 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14244
14245 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14246 set_char_size.
14247 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14248 operations on widgets here. Just set frame size if needed.
14249 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14250 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14251 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14252 the whole frame.
14253 (xg_create_tool_bar): Move attachment of the tool bar to
14254 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14255 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14256
142572008-03-01 Jason Rumney <jasonr@gnu.org>
14258
14259 * w32fns.c (w32_msg_pump): Disable debug code.
14260
142612008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14262
14263 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14264
142652008-02-29 Chong Yidong <cyd@stupidchicken.com>
14266
14267 * xdisp.c (next_overlay_string): Don't set
14268 overlay_strings_at_end_processed_p if we're currently reading from
14269 a display string.
14270
142712008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14272
14273 * xdisp.c (get_overlay_strings_1): Fix typo.
14274
142752008-02-29 Chong Yidong <cyd@stupidchicken.com>
14276
14277 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14278
142792008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14280
14281 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14282
14283 * xdisp.c (display_mode_element): Cancel the previous change.
14284 (decode_mode_spec): Likewise.
14285 (handle_auto_composed_prop): Don't make composition if it->string
14286 is a string.
14287
142882008-02-27 Kim F. Storm <storm@cua.dk>
14289
14290 * lisp.h (GLYPH): Change type from int to struct with separate char
14291 and face_id members.
14292 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14293 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14294 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14295 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14296 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14297 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14298 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14299 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14300 handle new Lisp glyph code encoding, either an integer or a cons.
14301
14302 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14303 (GLYPH_ALIAS): Delete.
14304 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14305 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14306 (GLYPH_FROM_CHAR): Replace macro by ...
14307 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14308
14309 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14310 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14311 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14312 (GLYPH_INVALID_P): New macro.
14313 (spec_glyph_lookup_face): Update prototype.
14314
14315 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14316 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14317 new glyph code encoding.
14318 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14319 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14320
14321 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14322 Adapt to new glyph type and new glyph code encoding.
14323
14324 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14325
14326 * indent.c (current_column, current_column_1, Fmove_to_column)
14327 (compute_motion): Adapt to new glyph code encoding.
14328
14329 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14330
143312008-02-27 Chong Yidong <cyd@stupidchicken.com>
14332
14333 * process.c (wait_reading_process_output): Check for window
14334 changes caused by timers.
14335 Suggested by Johan Bockgård.
14336
143372008-02-27 Glenn Morris <rgm@gnu.org>
14338
14339 * emacs.c (USAGE1): Add `--disable-font-backend'.
14340
143412008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14342
14343 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14344 is made to the buffer.
14345
143462008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14347
14348 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14349 (face_at_string_position):
14350 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14351 (face_at_string_position):
14352 * xdisp.c (display_string, next_overlay_change):
14353 * buffer.h (overlays_at):
14354 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14355 Update callers.
14356
143572008-02-26 Chong Yidong <cyd@stupidchicken.com>
14358
14359 * editfns.c (Fformat): Doc fix.
14360
143612008-02-26 Juanma Barranquero <lekktu@gmail.com>
14362
14363 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14364 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14365 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14366
143672008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14368
14369 * buffer.c (Fbuffer_swap_text): New function.
14370 (syms_of_buffer): Defsubr it.
14371
143722008-02-25 Chong Yidong <cyd@stupidchicken.com>
14373
14374 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14375
143762008-02-25 Jason Rumney <jasonr@gnu.org>
14377
14378 * w32font.c (w32font_draw): Draw one character at a time when padding.
14379
143802008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14381
14382 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14383 Handle a nil arg. Use run_window_configuration_change_hook.
14384 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14385 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14386 Use run_window_configuration_change_hook.
14387
143882008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14389
14390 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14391 1-pixel width.
14392
143932008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14394
14395 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14396 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14397 if the glyph in the font is zero pixel with.
14398
14399 * dispextern.h (struct glyph_string): New member padding_p.
14400
14401 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14402
14403 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14404
14405 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14406
14407 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14408
14409 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14410
144112008-02-25 Jason Rumney <jasonr@gnu.org>
14412
14413 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14414
144152008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14416
14417 Allow fine-grained image-cache flushing.
14418 * dispextern.h (struct image): Add `dependencies' field.
14419 (clear_image_caches): Change arg to Lisp_Object.
14420 * image.c (make_image): Initialize `dependencies' field.
14421 (clear_image_cache): Change arg to allow fine-grained flushing.
14422 Perform the flush even if image-cache-eviction-delay is nil.
14423 (clear_image_caches): Change arg to Lisp_Object.
14424 (Fclear_image_cache): Expand meaning of the argument.
14425 (mark_image): Mark `dependencies' field.
14426 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14427 (lface_hash): Use XHASH rather than XFASTINT.
14428 (face_at_buffer_position): Fix int -> EMACS_INT position.
14429 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14430 (select_frame_for_redisplay): Remove code duplication.
14431 (redisplay_internal): Adapt arg to call to clear_image_caches.
14432
144332008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14434
14435 * s/vms4-0.h:
14436 * s/vms4-2.h:
14437 * s/vms4-4.h:
14438 * s/vms5-5.h: Remove, unused.
14439
14440 * s/irix5-2.h:
14441 * s/irix6-0.h:
14442 * s/riscos5.h:
14443 * s/mach-bsd4-3.h:
14444 * m/mips4.h: Remove files for obsolete systems.
14445
14446 * Makefile.in:
14447 * filelock.c:
14448 * unexmips.c:
14449 * m/hp9000s300.h:
14450 * m/iris4d.h:
14451 * s/aix3-1.h:
14452 * s/hpux.h:
14453 * s/msdos.h:
14454 * s/usg5-0.h:
14455 * s/usg5-2-2.h:
14456 * s/usg5-2.h:
14457 * s/usg5-3.h: Remove references to obsolete variables.
14458
14459 * s/irix5-0.h: Remove, move all the contents ...
14460 * s/irix6-5.h: ... here. Simplify.
14461 * config.in: Regenerate.
14462
144632008-02-24 Jason Rumney <jasonr@gnu.org>
14464
14465 * w32term.c (x_draw_glyph_string_background): Clear the background
14466 manually when cleartype is in use.
14467 (x_draw_glyph_string_foreground): Draw text transparently when
14468 cleartype is in use.
14469
14470 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14471 a font into it unless we have to.
14472
144732008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14474
14475 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14476 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14477
aac0c6e3
MR
144782008-02-18 Jason Rumney <jasonr@gnu.org>
14479
14480 * w32fns.c (Fw32_shell_execute): Encode parameters.
14481
144822008-02-09 Eli Zaretskii <eliz@gnu.org>
14483
14484 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14485
144862008-02-05 Juanma Barranquero <lekktu@gmail.com>
14487
14488 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14489
144902008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14491
14492 * xterm.c (x_set_offset): Don't change the gravity if
14493 CHANGE_GRAVITY is -1.
14494
144952008-02-23 Chong Yidong <cyd@stupidchicken.com>
14496
14497 * fileio.c (auto_save_error_occurred): New var.
14498 (auto_save_error): Set it.
14499 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14500 error occurred.
14501
145022008-02-23 Eli Zaretskii <eliz@gnu.org>
14503
14504 * w32.c (globals_of_w32): Add initializations for
14505 g_b_init_get_sid_sub_authority and
14506 g_b_init_get_sid_sub_authority_count.
14507
145082008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14509
14510 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14511 (font_parse_xlfd): Use them for sanity check.
14512 (Finternal_set_font_style_table): Make sure the table is bijective.
14513
14514 Consolidate the image_cache to the terminal struct.
14515 * termhooks.h (P_): Remove redundant def.
14516 (struct terminal): New field `image_cache'.
14517 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14518 of FRAME_X_IMAGE_CACHE.
14519 * xterm.h (struct x_display_info): Remove image_cache field.
14520 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14521 * w32term.h (struct w32_display_info): Remove image_cache field.
14522 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14523 * macterm.h (struct mac_display_info): Remove image_cache field.
14524 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14525 * xterm.c (x_term_init):
14526 * w32term.c (w32_term_init):
14527 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14528 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14529 Remove declarations.
14530 (clear_image_caches, mark_image_cache): New declarations.
14531 * xfaces.c (clear_face_cache):
14532 * xdisp.c (redisplay_internal): Use clear_image_caches.
14533 * image.c (clear_image_cache): Don't check that a frame is on
14534 a window-system before checking if it shares the same cache.
14535 (clear_image_caches): New function.
14536 (Fclear_image_cache): Use it.
14537 (mark_image): Move from allo.c.
14538 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14539 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14540 (mark_object): Don't call mark_image_cache for frames.
14541 (mark_terminals): Call mark_image_cache.
14542
14543 * lisp.h (Fdelete_terminal): Declare.
14544
14545 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14546 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14547 wrong_type_argument.
14548
145492008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14550
14551 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14552 malayalam.el, and tamil.el. Add sinhala.el.
14553
145542008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14555
14556 * xterm.c (x_connection_closed): Consolidate identical tests.
14557 (x_delete_terminal): Don't crash if called via x_connection_closed.
14558
145592008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14560
14561 * xdisp.c (decode_mode_spec): New arg string.
14562 (display_mode_element): Adjust for the above change.
14563
145642008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14565
14566 * callint.c (Fcall_interactively): Use AREF.
14567
145682008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14571
145722008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14573
14574 * xfns.c (Fx_show_tip): Set string to " " if empty.
14575
145762008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14577
14578 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14579 with Qt.
14580
145812008-02-17 Kenichi Handa <handa@m17n.org>
14582
14583 * ftfont.c (ftfont_shape): Return Lispy number.
14584
14585 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14586 for GCs.
14587 (Finternal_set_font_selection_order): Call font_update_sort_order
14588 only when enable_font_backend is set.
14589 (realize_x_face): Set face->font_info to that of default face only
14590 when enable_font_backend is set.
14591
14592 * xdisp.c (handle_composition_prop): Set it->c to the fist
14593 character of the composed region.
14594 (fill_composite_glyph_string): Set base_face->font_info to
14595 s->font_info. Get a face for ascii from base_face->ascii_face.
14596 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14597 with a face already decided.
14598 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14599 non-negative.
14600 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14601 call font_prepare_composition unconditionally.
14602
14603 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14604
14605 * xterm.h (struct x_display_info): New member font.
14606
14607 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14608 (x_set_mouse_face_gc, x_new_font): Likewise.
14609 (x_term_init): Setup display_info->font.
14610 (x_delete_terminal): Free display_info->font.
14611
14612 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14613
14614 * ftxfont.c (ftxfont_default_fid): Delete it.
14615 (ftxfont_open): Set xfont->fid to 0.
14616 (ftxfont_end_for_frame): Clear data specific to the frame and the
14617 font-driver.
14618
14619 * xftfont.c (xftfont_default_fid): Delete it.
14620 (xftfont_open): Set xfont->fid to 0.
14621
14622 * fontset.c (FONTSET_OBJLIST): New macro.
14623 (fontset_find_font): Update font-object list of the fontset.
14624 (free_realized_fontset): New function.
14625 (free_face_fontset): Call free_realized_fontset.
14626 (Ffont_info): Call font_close_object only when enable_font_backend
14627 is set.
14628
14629 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14630 [HAVE_NTGUI]: Include w32term.h.
14631 [MAC_OS]: Include macterm.ch.
14632 (font_otf_ValueRecord): Use make_number.
14633 (font_finish_cache): Fix handling of reference count.
14634 (font_clear_cache): Update num_fonts.
14635 (font_open_entity): Update smallest_char_width and
14636 smallest_font_height of the frame.
14637 (font_close_object): Update num_fonts.
14638 (Fclear_font_cache): Fix finding the target cache data.
14639
146402008-02-16 Glenn Morris <rgm@gnu.org>
14641
14642 * fontset.c (Finternal_char_font): Fix compilation warning.
14643
146442008-02-16 Eli Zaretskii <eliz@gnu.org>
14645
14646 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14647 instead of char arrays. Enlarge the size of array passed to
14648 get_token_information.
14649
14650 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14651 warnings.
14652
146532008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14654
14655 * .gdbinit: Don't set `args', it breaks gdb --args.
14656
146572008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14658
14659 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14660 within a narrowed buffer.
14661
146622008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14663
14664 * coding.c (decode_coding_object, encode_coding_object):
14665 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14666
146672008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14670 hardcoding 1.
14671 (detect_coding_system):
14672 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14673 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14674 * insdel.c (insert_from_gap):
14675 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14676 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14677 (string_to_multibyte):
14678 * character.c (chars_in_text, multibyte_chars_in_text):
14679 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14680
14681 * character.h (FETCH_STRING_CHAR_ADVANCE)
14682 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14683 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14684 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14685
14686 * casefiddle.c (casify_region): Only call after-change and composition
14687 functions on the part of the region that was changed.
14688
14689 * keyboard.c (read_avail_input):
14690 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14691
146922008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14693
14694 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14695 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14696
146972008-02-11 Juanma Barranquero <lekktu@gmail.com>
14698
14699 * w32menu.c (push_submenu_start, push_submenu_end)
14700 (push_left_right_boundary, push_menu_pane, push_menu_item):
14701 * keyboard.c (read_key_sequence): Don't pass args with side effects
14702 to AREF, it fails when compiling with -DENABLE_CHECKING.
14703
147042008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14705
14706 * Makefile.in (${lispsource}international/charprop.el):
14707 Delete this target.
14708
14709 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14710 emacs-unicode-2.
14711
147122008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14713
14714 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14715
147162008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14717
14718 * frame.c (Qnoelisp): New symbol.
14719 (syms_of_frame): Initialize it.
14720 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14721 harmless Elisp code, from a strong `force' from x_connection_closed.
14722 * frame.h (Qnoelisp): Declare.
14723 * xterm.c (x_connection_closed): Pass `noelisp'.
14724
14725 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14726 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14727 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14728 rather than `int' for the type of `type'.
14729
147302008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14731
14732 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14733
14734 * Makefile.in (GNUC): Remove support for gcc-1.x.
14735
147362008-02-10 Richard Stallman <rms@gnu.org>
14737
14738 * lisp.h (ASET): Use AREF, not ASLOT.
14739
147402008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14741
14742 * lisp.h (ASET): Check bounds.
14743
147442008-02-10 Glenn Morris <rgm@gnu.org>
14745
14746 * buffer.c (mode-name): Doc fix.
14747
147482008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14749
14750 * Makefile.in:
14751 * emacs.c:
14752 * gmalloc.c:
14753 * keyboard.c:
14754 * lisp.h:
14755 * m/ibm370aix.h:
14756 * process.c:
14757 * regex.c:
14758 * s/hpux.h:
14759 * sysdep.c:
14760 * sysselect.h:
14761 * systty.h:
14762 * unexec.c:
14763 * w32term.c:
14764 * xsmfns.c:
14765 * xterm.c: Remove code that deals with obsolete variables.
14766
14767 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14768
14769 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14770 nothing else needs it anymore.
14771
147722008-02-09 Eli Zaretskii <eliz@gnu.org>
14773
14774 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14775 instead of unibyte_char_to_multibyte.
14776
147772008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14778
14779 * s/gnu-linux.h: Remove commented out code.
14780
14781 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14782
14783 * Makefile.in: Update what RMS says about using autoconf.
14784 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14785 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14786 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14787 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14788
147892008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14790
14791 * keymap.c (Fkey_description): Move side effect outside of macro call.
14792
14793 * xfaces.c (Finternal_make_lisp_face):
14794 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14795
14796 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14797 (syms_of_fontset): Use ASET.
14798
14799 * fns.c (concat): Move side effect outside of macro call.
14800 (hash_clear): Use ASET.
14801
148022008-02-08 Richard Stallman <rms@gnu.org>
14803
14804 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14805 If FORCE, and frame has a surrogate minibuffer for another frame,
14806 delete the other frame first.
14807
148082008-02-07 Timo Savola <timo.savola@iki.fi>
14809
14810 * xterm.c (x_detect_focus_change): Handle embed client message.
14811 (handle_one_xevent): Ditto.
14812 (handle_one_xevent): If embedded and we get a button press/release,
14813 request focus.
14814 (xembed_set_info, xembed_send_message): New functions.
14815 (x_make_frame_visible): Call xembed_set_info if embedded.
14816 (x_make_frame_invisible): Call xembed_set_info if embedded.
14817 (x_term_init): Initialize Xatom_XEMBED.
14818 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14819 (x_iconify_frame): Ditto.
14820
14821 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14822 (enum xembed_info, enum xembed_message, enum xembed_focus)
14823 (enum xembed_modifier, enum xembed_accelerator): New.
14824 (xembed_set_info, xembed_send_message): Declare.
14825 (FRAME_X_EMBEDDED_P): New.
14826
14827 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14828 gtk_plug_new.
14829
14830 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14831 window ID of a frame.
14832 (x_window): Reparent frame if embedded.
14833 (Fx_create_frame): Don't set border width if embedded.
14834
14835 * emacs.c (USAGE3): Add --parent-id.
14836 (standard_args): Ditto.
14837
148382008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14839
14840 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14841
148422008-02-07 Jim Meyering <meyering@redhat.com>
14843
14844 Use "do...while (0)", not "if (1)...else" in macro definitions.
14845 The latter provokes a warning from gcc about the empty else, when
14846 followed by ";". Also, without that trailing semicolon, it would
14847 silently swallow up any following statement.
14848 * syntax.h (SETUP_SYNTAX_TABLE)
14849 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14850 * buffer.h (DECODE_POSITION): Likewise.
14851 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14852 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14853 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14854 (FETCH_CHAR_ADVANCE): Likewise.
14855 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14856
148572008-02-07 Jim Meyering <meyering@redhat.com>
14858
14859 * lread.c [lint]: Don't include <sys/inode.h>.
14860
148612008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14862
14863 * xselect.c (x_handle_dnd_message):
14864 * xmenu.c (digest_single_submenu, xmenu_show):
14865 * xdisp.c (with_echo_area_buffer_unwind_data)
14866 (format_mode_line_unwind_data, unwind_format_mode_line)
14867 (display_menu_bar):
14868 * eval.c (Ffetch_bytecode):
14869 * doc.c (store_function_docstring):
14870 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14871 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14872 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14873
148742008-02-07 Kenichi Handa <handa@m17n.org>
14875
14876 * ftxfont.c (ftxfont_open): Don't set
14877 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14878
14879 * ftfont.c (ftfont_open): Fix previous change.
14880
148812008-02-06 Jason Rumney <jasonr@gnu.org>
14882
14883 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14884 Use cached metrics for ASCII characters.
14885 (w32font_open_internal): Don't set font's owning_frame.
14886 Cache metrics for ASCII characters.
14887
14888 * w32font.h (struct w32font_info): Add ascii_metrics.
14889 Remove owning_frame.
14890
148912008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14892
14893 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14894 to negative value.
14895
14896 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14897
14898 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14899
14900 * charset.c (syms_of_charset): Set QCtest and Qeq.
14901
149022008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14903
14904 * process.c (Fstart_process):
14905 * callproc.c (Fcall_process): Handle the case where
14906 Funhandled_file_name_directory returns nil.
14907
14908 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14909 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14910 * font.c (check_gstring): Use them and AREF to access the vector before
14911 we know it's really a gstring.
14912 (Ffont_shape_text): Fix typo.
46e722a9 14913 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14914
14915 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14916 Declare.
14917
14918 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14919
149202008-02-05 Jason Rumney <jasonr@gnu.org>
14921
14922 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14923 Set smallest_font_height and smallest_char_width in display info.
14924
149252008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14926
14927 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14928
149292008-02-05 Miles Bader <miles@gnu.org>
14930
14931 * xfaces.c (get_lface_attributes, merge_named_face)
14932 (lookup_named_face, lookup_derived_face, realize_named_face):
14933 Revert 2008-02-01 change by cyd@stupidchicken.com.
14934
149352008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14936
14937 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14938 fallback fonts.
14939 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14940
149412008-02-04 Jason Rumney <jasonr@gnu.org>
14942
14943 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14944 set full_name.
14945 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14946
149472008-02-03 Jason Rumney <jasonr@gnu.org>
14948
14949 * makefile.w32-in (OBJ1): Include font.o here.
14950 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14951
149522008-02-02 Jason Rumney <jasonr@gnu.org>
14953
14954 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14955
149562008-02-01 Jason Rumney <jasonr@gnu.org>
14957
14958 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14959
14960 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14961
149622008-02-01 Andreas Schwab <schwab@suse.de>
14963
14964 * Makefile.in (shortlisp, lisp): Update for rename of
14965 ../lisp/language/myanmar.el.
14966
149672008-02-01 Chong Yidong <cyd@stupidchicken.com>
14968
14969 * xfaces.c (get_lface_attributes): Delete function.
14970 (merge_named_face, lookup_named_face, lookup_derived_face)
14971 (realize_named_face): Call lface_from_face_name directly, and use
14972 the fact that merge_face_vectors does not alter its FROM argument.
14973
149742008-02-01 Jason Rumney <jasonr@gnu.org>
14975
14976 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14977 input in the default locale. Handle non-Unicode multibyte input.
14978
149792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14980
14981 * fontset.c (reorder_font_vector): Exclude nil elements from the
14982 font group. Don't try multiple fonts.
14983 (fontset_font): Adjust for the above change.
14984 (Finternal_char_font): Return nil if the found font doesn't
14985 contain the character ch.
14986
14987 * Makefile.in (lisp, shortlisp): Add cham.el.
14988
149892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14990
14991 * font.h (FONTP): Make it return 1 also for a font-object.
14992
14993 * .gdbinit (xfontset): New function.
14994
14995 * font.c (font_find_for_lface): Check if the character C is
14996 supported or not only for the first font.
14997
14998 * fontset.c (reorder_font_vector): Fix typo.
14999 (fontset_find_font): Don't add a font-spec specifying a script.
15000 Use 0 (not Qt) for the indication of empty font-group. Change the
15001 format of RFONT-DEF. Return Qt if no font in the font-group
15002 support the character.
15003 (fontset_font): Adjust for the above change. If no font was
15004 found the character, remember that.
15005 (face_for_char): Adjust for the change of RFONT-DEF.
15006 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15007 no font for the target.
15008 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15009
150102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15011
15012 * font.c (font_load_for_face): Handle the case that the font in
15013 face->lface is a string.
15014
150152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15016
15017 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15018
150192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15020
15021 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15022 Fix previous change. If the frame is not on a window system,
15023 signal an error.
15024
150252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15026
15027 * coding.c (decode_coding_object, encode_coding_object): Adjust
15028 marker positions after conversion.
15029
15030 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15031
150322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15033
15034 * font.c (font_find_for_lface): Fix the handling of the return
15035 value of font_has_char.
15036 (Ffont_shape_text): Fix previous change.
15037
15038 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15039 (fontset_ref_and_range): Delete it.
15040 (fontset_find_font): Call char_table_ref_and_range instead of
15041 FONTSET_REF_AND_RANGE.
15042 (make_fontset): Don't setup font groups of Latin here.
15043 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15044 (new_fontset_from_font): Make the specified font the default for
15045 all Latin characters.
15046
150472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15048
15049 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15050 is on a window system before accessing the fontset of the frame.
15051
150522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15053
15054 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15055
15056 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15057 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15058
15059 * font.c (Ffont_shape_text): If the font driver doesn't have a
15060 shaper function, make zero-width glyphs to have at least one-pixel
15061 width. Fix setting of `to' field of glyphs.
15062
150632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15064
15065 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15066 glyphs.
15067
15068 * font.h (struct font_driver): Improve docstring of member `shape'.
15069
150702008-02-01 Kenichi Handa <handa@m17n.org>
15071
15072 * composite.c (syms_of_composite): Fix docstring of
15073 auto-composition-function.
15074
15075 * font.h (LGLYPH_SIZE): New macro.
15076
15077 * font.c (Ffont_fill_gstring): Stop filling when a character not
15078 supported by the font is found.
15079 (Ffont_shape_text): When a shape callback function returns nil,
15080 try at most two more times with larger gstring.
15081 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15082
15083 * xdisp.c (handle_auto_composed_prop): Change the argument to
15084 auto-composition-function.
15085
15086 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15087 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15088 Lispy glyph and store it in the lgstring.
15089
15090 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15091
15092 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15093
150942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15095
15096 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15097
15098 * fontset.c (Vfont_encoding_charset_alist): New variable.
15099 (syms_of_fontset): DEFVAR it.
15100 (reorder_font_vector, fontset_find_font): Optimize for the case of
15101 no need of reordering.
15102 (face_for_char): Map the charset property by
15103 Vfont_encoding_charset_alist.
15104
151052008-02-01 Jason Rumney <jasonr@gnu.org>
15106
15107 * w32font.c (logfonts_match): Don't check adstyle here.
15108 (font_matches_spec): Check here against physical font instead.
15109 (add_font_entity_to_list): Avoid some substitutions.
15110
15111 * font.c (font_parse_fcname): Default weight and slant to normal.
15112 (font_score): Prefer normal fonts if weight or slant unspecified.
15113 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15114 match freetype scores.
15115
151162008-02-01 Jason Rumney <jasonr@gnu.org>
15117
15118 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15119 font, as it may have been deleted.
15120 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15121 most common hyphenless variation.
15122 (logfonts_match): Check generic family.
15123 (font_matches_spec): Don't check generic family here.
15124 (fill_in_logfont): Set generic family based on adstyle.
15125
15126 * w32font.h (w32font_get_cache): Update declaration.
15127
151282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15129
15130 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15131
15132 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15133 If none of the new drivers are available, call font_update_drivers
15134 with the old drivers.
15135
15136 * w32font.c (w32font_get_cache): Adjust the argument type.
15137
15138 * xfont.c (xfont_get_cache): Adjust the argument type.
15139
15140 * font.h (struct font_driver): Change argument type of get_cache.
15141
15142 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15143
15144 * font.c (Ffont_get): Fix arguments to Fassoc.
15145 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15146 (font_clear_cache): New function.
15147 (font_list_entities, font_matching_entity): Use font_get_cache.
15148 (font_update_drivers): Call font_clear_cache when finishing a driver.
15149
15150 * fontset.c (fontset_find_font): Fix previous change.
15151
151522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15153
15154 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15155 dpyinfo->font_table.
15156 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15157 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15158
15159 * font.c (font_at): Handle the case that the arg C is negative.
15160 Handle the unibyte case.
15161 (Ffont_at): Call font_at with the arg C -1.
15162
15163 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15164 the position here, and call font_at with the arg C -1.
15165 Don't check the range of the existing composition at the point.
15166
151672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15168
15169 * fontset.c (fontset_add): New args charset_id and family.
15170 Change caller.
15171 (load_font_get_repertory, fontset_find_font): Assume that
15172 font_spec is always a font-spec object.
15173 (Fset_fontset_font): Always store a font-spec object in a fontset.
15174
15175 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15176 instead of get_property_and_range.
15177
151782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15179
15180 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15181 (xftfont_open): Don't keep locking face.
15182 (xftfont_close): Don't unlock face.
15183 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15184
15185 * fontset.c (fontset_find_font): Don't prefer a font of
15186 supplementary charset.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15191 script, langsys_tag to langsys, new member script.
15192 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15193 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15194 listing to the script specified in that property. Fix arg to
15195 OTF_check_features.
15196
151972008-02-01 Jason Rumney <jasonr@gnu.org>
15198
15199 * w32font.h: New file.
15200
15201 * w32font.c: Include it.
15202 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15203 (w32font_open): Set owning_frame.
15204 (w32font_text_extents): Use owning_frame.
15205 (struct font_callback_data): Add opentype_only field.
15206 (add_font_entity_to_list): Use it to filter fonts.
15207 Don't check against full name.
15208 (w32font_list_internal): New function.
15209 (w32font_list): Use it.
15210 (w32font_match_internal): New function.
15211 (w32font_match): Use it.
15212 (w32font_open_internal): New function.
15213 (w32font_open): Use it.
15214 (w32font_get_cache, w32font_close, w32font_has_char)
15215 (w32font_encode_char, w32font_text_extents, w32font_draw):
15216 Make non-static.
15217
15218 * makefile.w32-in (w32font.o): Depend on w32font.h.
15219
152202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15221
15222 * charset.c (Fdefine_charset_internal): Record a supplementary
15223 charset at the tail of Vcharset_order_list.
15224
15225 * font.c (Ffont_shape_text): Fix the return value.
15226
15227 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15228
15229 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15230
152312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15232
15233 * ftfont.c (struct OpenTypeSpec): New struct.
15234 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15235 (ftfont_get_open_type_spec): New function.
15236 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15237
15238 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15239
152402008-02-01 Jason Rumney <jasonr@gnu.org>
15241
15242 * w32font.c (add_font_entity_to_list): Compare only the beginning
15243 of full name.
15244
152452008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15248 Never return HANDLED_RECOMPUTE_PROPS.
15249
152502008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * font.c (font_gstring_produce): Delete it.
15253
15254 * composite.h (COMPOSITION_METHOD):
15255 Handle COMPOSITION_WITH_GLYPH_STRING.
15256
152572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15258
15259 * xfont.c (Qx): Delete.
15260 (syms_of_xfont): Don't initialize Qx.
15261
15262 * composite.h (enum composition_method):
15263 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15264
152652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15266
15267 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15268 (choose_face_font): Accept new form of font-spec.
15269
15270 * frame.h (font_driver_list): Declare it unconditionally.
15271 (struct frame): Define members font_driver_list and font_data_list
15272 unconditionally.
15273
15274 * fontset.c: Include "font.h" unconditionally.
15275 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15276 (Fset_fontset_font): Accept a font-spec object.
15277
15278 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15279 PIXEL_SIZE part a wild card.
15280
15281 * dispextern.h (struct glyph_string): Define members clip and
15282 num_clips unconditionally.
15283 (struct face): Define members font_info and extra unconditionally.
15284
15285 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15286 ftfont_info only when HAVE_LIBOTF is defined.
15287
152882008-02-01 Andreas Schwab <schwab@suse.de>
15289
15290 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15291 and end.
15292
152932008-02-01 Jason Rumney <jasonr@gnu.org>
15294
15295 * w32font.c (w32font_driver): Add new fields.
15296
152972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15298
15299 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15300 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15301 (LIBES): Add @M17N_FLT_CFLAGS@.
15302
15303 * composite.c (compose_text): Don't treat the new style
15304 composition specially.
15305
15306 * emacs.c (main): Call syms_of_font unconditionally.
15307
15308 * font.h (FONT_ENTITY_NOT_LOADABLE)
15309 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15310 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15311 (struct font_driver): New member shape.
15312 (font_registry_charsets): Extern it.
15313 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15314 (font_otf_capability, font_drive_otf): Delete their externs.
15315
15316 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15317 (font_charset_alist, font_registry_charsets): Move from xfont.c
15318 and rename.
15319 (font_prop_validate_otf): New function.
15320 (font_property_table): Register it for QCotf.
15321 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15322 (font_drive_otf): Delete.
15323 (font_prepare_composition): New arg F. Adjust for the change of
15324 lispy gstring.
15325 (font_find_for_lface): New arg C.
15326 (font_load_for_face): Adjust for the change of font_find_for_lface.
15327 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15328 lispy gstring.
15329 (Ffont_shape_text): New function.
15330 (Fopen_font): If the font size is not given, use 12-pixel.
15331 (Ffont_at): New arg STRING.
15332 (syms_of_font): Initalize font_charset_alist.
15333 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15334 conditionally.
15335
15336 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15337 fonts of the same font-spec. Change the format of RFONT-DEF.
15338 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15339 Adjust for the change of RFONT-DEF.
15340 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15341
15342 * ftfont.h: New file.
15343
15344 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15345 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15346 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15347 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15348 font_otf_capability and font_drive_otf, set ftfont_shape.
15349 (ftfont_list): Adjust for the change of :otf property value.
15350 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15351 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15352 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15353 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15354 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15355 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15356
15357 * w32term.c (x_draw_composite_glyph_string_foreground):
15358 Adjust for the change of lispy gstring.
15359
15360 * xdisp.c (handle_composition_prop): Adjust for the change of
15361 lispy gstring. Call a function for auto-composition with the
15362 third arg it->window.
15363 (fill_composite_glyph_string): Adjust for the change of lispy string.
15364 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15365
15366 * xfaces.c (set_font_frame_param): Adjust for the change of
15367 font_find_for_lface.
15368
15369 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15370 (xfont_registry_charsets): Likewise. Change caller.
15371 (syms_of_xfont): Don't handle x_font_charset_alist.
15372
15373 * xftfont.c: Include "ftfont.h".
15374 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15375 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15376 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15377 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15378 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15379 Set xftfont_driver.shape to xftfont_shape.
15380
15381 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15382 the change of lispy gstring.
15383
153842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15385
15386 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15387
153882008-02-01 Jason Rumney <jasonr@gnu.org>
15389
15390 * w32font.c (w32font_draw): Fill background manually.
15391
153922008-02-01 Jason Rumney <jasonr@gnu.org>
15393
15394 * font.c (Qfontp): Remove unused symbol.
15395 (QCantialias): New symbol.
15396 (syms_of_font): Define it.
15397 (font_property_table): Set a validator for QCantialias.
15398
15399 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15400 Define if not already.
15401 (QCfamily): Share with xfaces.c.
15402 (Qstandard, Qsubpixel, Qnatural): New symbols.
15403 (syms_of_w32font): Define them. Don't define QCfamily here.
15404 (w32_antialias_type, lispy_antialias_type): New functions.
15405 (w32_enumfont_pattern_entity): New arg requested_font.
15406 Set antialias parameter if non-default was requested.
15407 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15408
154092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15410
15411 * lread.c (read1): Undo the previous change.
15412
154132008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15414
15415 * frame.c (Fdelete_frame): Call font_update_drivers only when
15416 USE_FONT_BACKEND is defined.
15417
154182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15419
15420 * font.h (struct font_bitmap): New member bits_per_pixel.
15421 (struct font_driver): New members start_for_frame and end_for_frame.
15422 (struct font_data_list): New struct.
15423 (font_put_frame_data, font_get_frame_data): Extern them.
15424
15425 * frame.h (struct frame): New member font_data_list.
15426
15427 * font.c (font_update_drivers): Call driver->start_for_frame and
15428 driver->end_for_frame at proper timings.
15429 (font_put_frame_data, font_get_frame_data): New functions.
15430 (Ffont_spec): Add usage in the docstring.
15431
15432 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15433 (Fdelete_frame): Call font_update_drivers.
15434
15435 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15436 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15437 (xftfont_get_xft_draw): New function.
15438 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15439 (xftfont_end_for_frame): New function.
15440 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15441
15442 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15443 Change argument. Cache GCs in the per-frame data.
15444 (struct ftxfont_frame_data): New struct.
15445 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15446 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15447 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15448 (ftxfont_end_for_frame): New function.
15449 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15450
15451 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * xselect.c (Vselection_coding_system)
15456 (Vnext_selection_coding_system): Delete them.
15457 (syms_of_xselect): Don't declare selection-coding-system and
15458 next-selection-coding-system. They are declared in select.el.
15459
154602008-02-01 Jason Rumney <jasonr@gnu.org>
15461
15462 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15463
15464 * w32fns.c: Include imm.h.
15465 (get_composition_string_fn, get_ime_context_fn): New optional
15466 system functions.
15467 (globals_of_w32fns): Load them from imm32.dll.
15468 (ignore_ime_char): New flag.
15469 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15470 WM_IME_ENDCOMPOSITION messages.
15471
15472 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15473 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15474
154752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15476
15477 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15478 (READCHAR_REPORT_MULTIBYTE): New macro.
15479 (readchar): New 2nd arg MULTIBYTE.
15480 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15481 Make symbol's name multibyte according to the multibyteness of the
15482 source.
15483
154842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15485
15486 * xfaces.c (face_for_overlay_string): Call lookup_face with
15487 correct arguments (fix of synching with the trunk).
15488
154892008-02-01 Kenichi Handa <handa@m17n.org>
15490
15491 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15492 (font_prop_validate_non_neg, font_prop_validate_spacing):
15493 Delete argument prop_index.
15494 (font_property_table): Change arguments to validater. Change Callers.
15495 (font_lispy_object): Delete.
15496 (font_at): Use font_find_object instead fo font_lispy_object.
15497
154982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15499
15500 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15501 and file names.
15502
155032008-02-01 Jason Rumney <jasonr@gnu.org>
15504
15505 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15506 (font_matches_spec): Remove debug output.
15507 (add_font_entity_to_list): Avoid using substituted fonts.
15508
155092008-02-01 Jason Rumney <jasonr@gnu.org>
15510
15511 * doc.c (Fsnarf_documentation):
15512 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15513
155142008-02-01 Miles Bader <miles@gnu.org>
15515
15516 * dispextern.h (struct glyph_row): Only define "clip" field if
15517 HAVE_WINDOW_SYSTEM is defined.
15518
155192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15520
15521 Fix up multi-tty merge.
15522
15523 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15524 and indentation.
15525
15526 * xfaces.c (free_realized_face, clear_face_gcs):
15527 Include font_done_for_face in the input_blocked section, just in case.
15528
15529 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15530 (get_char_face_and_encoding): Undo last change and remove the *other*
15531 duplicate definition (i.e. keep the one that's better scoped and that
15532 includes code for the font-backend).
15533
15534 * terminal.c (create_terminal): Default keyboard_coding to
15535 `no-conversion' and terminal_coding to `undecided'.
15536
15537 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15538
15539 * fontset.c (free_realized_fontsets): Check that the table entry does
15540 contain a fontset before trying to compare it to `base'.
15541
15542 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15543 syms_of_charset, and syms_of_coding earlier because init_window_once
15544 now needs Vcoding_system_hash_table to be setup.
15545
15546 * coding.h (default_buffer_file_coding): Remove.
15547
15548 * coding.c (default_buffer_file_coding): Remove.
15549 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15550 than ->symbol, and use the terminal-local coding system.
15551 (syms_of_coding): Don't setup the coding-systems that are not
15552 terminal-local.
15553 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15554
15555 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15556 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15557
15558 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15559 in chartab.c and were re-added here by mistake.
15560 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15561
15562 * doc.c (Fsnarf_documentation):
15563 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15564 src to etc.
15565
15566 * ChangeLog.10: Add mistakenly removed entry.
15567
155682008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15569
15570 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15571
155722008-02-01 Miles Bader <miles@gnu.org>
15573
15574 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15575 Add extra args to FACE_FOR_CHAR.
15576
155772008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15580 in sequence.
15581
15582 * chartab.c (map_sub_char_table, map_char_table): If the range
15583 contains just one character, call the function with that character
15584 even if the depth is not 3.
15585
155862008-02-01 Jason Rumney <jasonr@gnu.org>
15587
15588 * w32font.c (w32font_text_extents): Calculate metrics for the
15589 whole string.
15590
155912008-02-01 Jason Rumney <jasonr@gnu.org>
15592
15593 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15594
155952008-02-01 Jason Rumney <jasonr@gnu.org>
15596
15597 * w32term.c (x_set_glyph_string_clipping): Use
15598 get_glyph_string_clip_rects.
15599 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15600 Adjust for the change of struct glyph_string.
15601
15602 * w32font.c (w32font_draw): Do clipping here.
15603
156042008-02-01 Kenichi Handa <handa@m17n.org>
15605
15606 * xftfont.c (xftfont_draw): Adjust for the change of struct
15607 glyph_string.
15608
15609 * xterm.c (x_set_glyph_string_clipping): Use
15610 get_glyph_string_clip_rects.
15611 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15612 Adjust for the change of struct glyph_string.
15613
15614 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15615 the resulting clip(s}.
15616 (expose_overlaps): Add arg r. Change callers. Set it to
15617 row->clip temporarily.
15618 (expose_window): Redraw rows overlapping the exposed area.
15619
15620 * dispextern.h (struct glyph_row): New member clip.
15621 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15622 clip_height, new member clip, and num_clips.
15623
156242008-02-01 Kenichi Handa <handa@m17n.org>
15625
15626 * data.c (Fchar_or_string_p): Fix docstring.
15627
156282008-02-01 Kenichi Handa <handa@m17n.org>
15629
15630 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15631 create a temporary XftDraw object.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * font.c (Ffontp): Fix docstring.
15636
15637 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15638 strong evidence of ISO-2022.
15639
156402008-02-01 Kenichi Handa <handa@m17n.org>
15641
15642 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15643 SYNTAX_ENTRY_FOLLOW_PARENT.
15644
156452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15646
15647 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15648 its type.
15649 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15650 Update to the new type of weak_hash_tables and next_weak.
15651
15652 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15653 a plain C pointer to Lisp_Hash_Table.
15654
15655 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15656 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15657 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15658 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15659 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15660 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15661 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15662 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15663 (GC_EQ): Remove since they've been identical to their non-GC_
15664 alter-egos ever since the markbit was eradicated.
15665
15666 * alloc.c:
15667 * buffer.c:
15668 * buffer.h:
15669 * data.c:
15670 * fileio.c:
15671 * filelock.c:
15672 * fns.c:
15673 * frame.h:
15674 * lisp.h:
15675 * macterm.c:
15676 * print.c:
15677 * process.c:
15678 * w32fns.c:
15679 * w32menu.c:
15680 * w32term.c:
15681 * xfns.c:
15682 * xmenu.c:
15683 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15684
156852008-02-01 Kenichi Handa <handa@m17n.org>
15686
15687 * chartab.c (map_sub_char_table): Make it work for the top-level
15688 char-table. Fix handling of parent char-table.
15689 (map_char_table): Adjust for the above change.
15690
156912008-02-01 Jason Rumney <jasonr@gnu.org>
15692
15693 * w32font.c (Qgdi): Rename from Qw32.
15694
156952008-02-01 Jason Rumney <jasonr@gnu.org>
15696
15697 * w32bdf.c (get_quoted_string): Make function static.
15698
156992008-02-01 Kenichi Handa <handa@m17n.org>
15700
15701 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15702 bigger ascent and descent than those of the font, use them as
15703 font's ascent and descent.
15704
157052008-02-01 Kenichi Handa <handa@m17n.org>
15706
15707 * Makefile.in (${lispsource}international/charprop.el): Move this
15708 target within "#ifdef HAVE_UNIDATA" and "#endif".
15709
157102008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15713 (shortlisp): Add ../lisp/language/tai-viet.el.
15714
157152008-02-01 Ulrich Mueller <ulm@gentoo.org>
15716
15717 * Makefile.in (${lispsource}international/charprop.el): Depend on
15718 temacs${EXEEXT}.
15719
157202008-02-01 Jason Rumney <jasonr@gnu.org>
15721
15722 * w32font.c (w32font_close): Delete the GDI font object.
15723
15724 * w32menu.c: Include character.h.
15725
15726 * w32proc.c: Likewise.
15727
15728 * w32select.c: Likewise.
15729
15730 * makefile.w32-in (w32proc.o): Depend on character.h.
15731
157322008-02-01 Jason Rumney <jasonr@gnu.org>
15733
15734 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15735
15736 * w32menu.c (syms_of_w32menu): Likewise.
15737
15738 * w32proc.c (syms_of_ntproc): Likewise.
15739
15740 * w32select.c (syms_of_w32select): Likewise.
15741
15742 * w32term.c (syms_of_w32term): Likewise.
15743
157442008-02-01 Jason Rumney <jasonr@gnu.org>
15745
15746 * w32font.c (w32font_draw): Delete brush after using it.
15747
157482008-02-01 Jason Rumney <jasonr@gnu.org>
15749
15750 * w32font.c (w32font_open): Don't set font_idx.
15751 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15752 to font settings.
15753 (w32font_draw): Fill background explicitly.
15754
157552008-02-01 Jason Rumney <jasonr@gnu.org>
15756
15757 * w32term.c (w32_initialize): Don't call w32font_initialize.
15758
15759 * w32font.c (w32font_info): Remove subranges.
15760 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15761 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15762 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15763 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15764 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15765 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15766 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15767 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15768 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15769 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15770 New symbols.
15771 (font_callback_data): New struct.
15772 (w32font_list, w32font_match): Use it.
15773 (w32font_open): Don't populate subranges.
15774 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15775 (w32font_encode_char): Always return unicode code-point as-is.
15776 (w32font_text_extents): Supply a transformation matrix to
15777 GetGlyphOutline. Never look up by glyph index. Avoid looping
15778 twice. Use unicode version of GetTexExtentPoint32 instead of
15779 glyph index version.
15780 (set_fonts_frame): Remove.
15781 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15782 set frame parameter. Use backward compatible fake foundries.
15783 Save generic family in extra slot under QCfamily. Make width slot
15784 constant. Save QCspacing value. Save list of scripts instead of
15785 binary subranges.
15786 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15787 (add_font_entity_to_list): Use font_callback_data struct. Filter
15788 unwanted fonts.
15789 (add_one_font_entity_to_list): Use font_callback_data struct.
15790 (w32_registry): Default to iso10646_1.
15791 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15792 string font registries. Don't fill in font name if it is a generic
15793 family name, fill family instead. Use spacing, family and script
15794 extra info to fill pitch, family and charset fields.
15795 (list_all_matching_fonts): Use font_callback_data struct.
15796 (unicode_range_for_char): Remove.
15797 (font_supported_scripts): New function.
15798 (w32font_initialize): Remove.
15799 (syms_of_w32font): Update which symbols are defined.
15800
158012008-02-01 Jason Rumney <jasonr@gnu.org>
15802
15803 * font.c (font_pixel_size): Reverse assq_no_quit args.
15804
15805 * w32term.h (FONT_WIDTH): Report max width, not average.
15806 (FONT_MAX_WIDTH): Remove.
15807 (FONT_AVG_WIDTH): New macro.
15808
15809 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15810 redefinition of FONT_WIDTH.
15811
15812 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15813 (w32_cache_char_metrics): Use FONT_WIDTH.
15814
15815 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15816
158172008-02-01 Jason Rumney <jasonr@gnu.org>
15818
15819 * w32font.c (w32font_open): Make lfHeight negative.
15820
15821 * w32fns.c (x_default_font_parameter): Use new style font name.
15822 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15823
158242008-02-01 Jason Rumney <jasonr@gnu.org>
15825
15826 * w32font.c (QCsubranges): New symbol.
15827 (w32font_open, w32font_has_char): Get subranges from subproperty
15828 of extra.
15829 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15830 (syms_of_w32font): Define :subranges symbol.
15831
15832 * font.c (font_put_extra): Expose externally.
15833
15834 * font.h (font_put_extra): Move declaration from font.c.
15835
15836 * font.c (Ffont_get): Use font driver to determine otf capability.
15837 (adjust_anchor): Check if driver defines anchor_point before using.
15838
15839 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15840 (w32font_draw): Use options.
15841 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15842 Fix detection of truetype fonts.
15843 (registry_to_w32_charset): Handle charsets other than iso8859-1
15844 expressed as lisp symbols.
15845 (w32_registry): Express charset as lisp symbol.
15846 (fill_in_logfont): Reverse pixel and point height logic.
15847 Don't set width here. Set quality to default.
15848
15849 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15850 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15851
15852 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15853 Remove redundant loop and allocation.
15854
15855 * makefile.w32-in (font.o, w32font.o): New objects.
15856 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15857 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15858
15859 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15860 STORE_XCHARB a valid l-value.
15861
15862 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15863 calculations for non-Truetype fonts.
15864 (x_draw_glyph_string): Sync with xterm.c.
15865 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15866 Remove redundant code.
15867 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15868
15869 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15870 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15871
15872 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15873 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15874
15875 * w32font.c: New file for w32 font backend.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * term.c: Don't include "buffer.h" twice.
15880
158812008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * character.c (Funibyte_string): New function.
15884 (syms_of_character): Defsubr it.
15885
158862008-02-01 Jason Rumney <jasonr@gnu.org>
15887
15888 * w32term.c [USE_FONT_BACKEND]:
15889 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15890 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15891 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15892 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15893 (x_free_frame_resources): Sync with xterm.c.
15894
158952008-02-01 Andreas Schwab <schwab@suse.de>
15896
15897 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15898 char-table size.
15899
159002008-02-01 Kenichi Handa <handa@m17n.org>
15901
15902 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15907 font_otf_gpos, add font_drive_otf.
15908
15909 * fontset.c (fontset_find_font): Pay attention to font size
15910 specified for a font.
15911 (reorder_font_vector): Check contents of font_def.
15912
15913 * font.c (struct otf_list): Delete it.
15914 (otf_list): Make it a lisp variable.
15915 (otf_open): Use lispy otf_list.
15916 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15917 (check_otf_features): New function.
15918 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15919 New functions.
15920 (font_drive_otf): New function merging font_otf_gsub and
15921 font_otf_gpos.
15922 (font_open_for_lface): New arg spec. Change argument order.
15923 (font_load_for_face): Adjust for the change of font_open_for_lface.
15924 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15925 Ffont_otf_gpos.
15926 (syms_of_font): Staticpro otf_list. Delete defsubr of
15927 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15928
15929 * xfaces.c (set_font_frame_param): Adjust for the change of
15930 font_open_for_lface.
15931
15932 * font.h (font_open_for_lface): Adjust prototype.
15933 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15934 member otf_drive.
15935 (font_otf_gsub, font_otf_gpos): Delete externs.
15936 (font_drive_otf): Extern it.
15937
159382008-02-01 Kenichi Handa <handa@m17n.org>
15939
15940 * font.c (font_at): If the window W is not on a window system,
15941 return Qnil.
15942
15943 * coding.c (produce_chars, encode_coding): Don't call
15944 insert_from_gap if no characters to produce.
15945
159462008-02-01 Kenichi Handa <handa@m17n.org>
15947
15948 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15949 Fclear_face_cache.
15950
15951 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15952
159532008-02-01 Miles Bader <miles@gnu.org>
15954
15955 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15956 Parse "--disable-font-backend" option.
15957 (standard_args): Add "--disable-font-backend" option.
15958
159592008-02-01 Kenichi Handa <handa@m17n.org>
15960
15961 * fontset.c (fontset_find_font): New function.
15962 (fontset_font): Use fontset_find_font.
15963 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15964 Register the specified font for all Latin characters.
15965 (new_fontset_from_font): Register the specified font for all Latin
15966 characters.
15967 (dump_fontset): For a realized fontset, include the base fontset
15968 name in the returned vector.
15969
159702008-02-01 Kenichi Handa <handa@m17n.org>
15971
15972 * character.h (CHAR_STRING): Cast C to unsigned on calling
15973 char_string.
15974
15975 * character.c (char_string): Type of arg C changed to unsigned.
15976 Signal an error if C is an invalid character code.
15977
15978 * editfns.c (general_insert_function, Fchar_to_string):
15979 Use CHARACTERP, not INTEGERP.
15980
159812008-02-01 Kenichi Handa <handa@m17n.org>
15982
15983 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15984 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15985
15986 * regex.c (analyse_first): Fix for multibyte characters in "case
15987 charset:" and "case categoryspec:".
15988
159892008-02-01 Andreas Schwab <schwab@suse.de>
15990
15991 * Makefile.in (LIBES): Move standard libraries to the end.
15992
159932008-02-01 Kenichi Handa <handa@m17n.org>
15994
15995 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15996 nonzero, don't shrink the buffer nextb.
15997
15998 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15999
16000 * coding.c (coding_alloc_by_making_gap): New arg offset.
16001 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16002 offset.
16003 (decode_coding_iso_2022): Update coding->safe_charsets.
16004 (decode_coding_gap): Temporarily set
16005 current_buffer->text->inhibit_shrinking to 1.
16006
160072008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16010 indexing into elements of s->cmp and s->char2b.
16011
160122008-02-01 Juanma Barranquero <lekktu@gmail.com>
16013
16014 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16015
160162008-02-01 Kenichi Handa <handa@m17n.org>
16017
16018 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16019 target_multibyte instead of multibyte.
16020 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16021 (bcmp_translate): Change the argument name from multibyte to
16022 target_multibyte.
16023
160242008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 These changes are to compile a regexp into a pattern that can be
16027 used both for multibyte and unibyte targets.
16028
16029 * Makefile.in (search.o): Depend on charset.h.
16030
16031 * character.c (multibyte_char_to_unibyte_safe): New function.
16032
16033 * search.c: Include "charset.h".
16034 (compile_pattern_1): Delete argument multibyte. Don't set
16035 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16036 (compile_pattern): Don't compare cp->buf.target_multibyte.
16037 Compare cp->buf.charset_unibyte.
16038 (compile_pattern): Set cp->buf.target_multibyte.
16039
16040 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16041
16042 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16043
16044 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16045 multibyte. Change callers.
16046 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16047 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16048 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16049 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16050 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16051 (regex_compile): Make the compiled pattern usable both for
16052 multibyte and unibyte targets.
16053 (analyse_first): Make the fastmap usable both for multibyte and
16054 unibyte targets.
16055 (TRANSLATE_VIA_MULTIBYTE): Delete.
16056 (re_match_2_internal): Pay attention to the case that the
16057 multibyteness of bufp and target may be different.
16058
160592008-02-01 Kenichi Handa <handa@m17n.org>
16060
16061 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16062 empty box occupy at least one column width.
16063
160642008-02-01 Miles Bader <miles@gnu.org>
16065
16066 * Makefile.in: Remove redundant HAVE_XFT clause.
16067
160682008-02-01 Kenichi Handa <handa@m17n.org>
16069
16070 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16071
160722008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16075 being nil.
16076
160772008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16080
160812008-02-01 Kenichi Handa <handa@m17n.org>
16082
16083 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16084
160852008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 * search.c (simple_search): Fix previous change.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * xftfont.c (ftfont_font_format): Extern declaration.
16092
16093 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16094
16095 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16096 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16097
16098 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16099 (ftfont_font_format): Fix previous change.
16100
16101 * font.h (Ffont_xlfd_name): EXFUN it.
16102
16103 * font.c (font_parse_xlfd): Fix the array size of `f'.
16104 (register_font_driver): Use EQ to compare driver->type.
16105
16106 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16107 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16108 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16109
161102008-02-01 Kenichi Handa <handa@m17n.org>
16111
16112 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16113 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16114
161152008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * xfont.c (xfont_open): Set font->format.
16118
16119 * xftfont.c (xftfont_open): Set font->format.
16120
16121 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16122 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16123 (ftfont_open): Set font->format.
16124 (ftfont_font_format): New function.
16125
16126 * font.h (struct font): New member format.
16127
16128 * font.c (Qopentype): New variable.
16129 (syms_of_font): Defsym it.
16130 (Fquery_font): Change the format of the last element of the return
16131 value.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16136 last resort.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * coding.c (detect_coding_charset): Fix detection of multi-byte
16141 charset.
16142
161432008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16144
16145 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16146
161472008-02-01 Kenichi Handa <handa@m17n.org>
16148
16149 * xdisp.c (get_next_display_element): Set it->face_id for the
16150 first component of a composition.
16151 (x_produce_glyphs): Check if the font is changed or not for composition.
16152
161532008-02-01 Kenichi Handa <handa@m17n.org>
16154
16155 * fontset.c (Qlatin): New variable.
16156 (syms_of_fontset): Define it as a lisp symbol.
16157 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16158
161592008-02-01 Kenichi Handa <handa@m17n.org>
16160
16161 * font.c (font_unparse_fcname): Pay attention to the case that
16162 some of font property is a null string.
16163
161642008-02-01 Kenichi Handa <handa@m17n.org>
16165
16166 * term.c: Include "composite.h".
16167 (encode_terminal_code): Output all components of composition.
16168 Check the size of encode_terminal_src.
16169 (produce_glyphs): For composition, call produce_composite_glyph.
16170 (append_composite_glyph, produce_composite_glyph): New functions.
16171
16172 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16173 is not found, get font_info from the current ascii face.
16174
161752008-02-01 Kenichi Handa <handa@m17n.org>
16176
16177 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16178 buffer-file-name to Qnil before calling insert_from_buffer.
16179
16180 * font.c (font_unparse_fcname): Pay attention to the case that
16181 foundry is a null string.
16182
161832008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16186
16187 * font.c (Qunicode_sip): New variable.
16188 (syms_of_font): Declare it as a Lisp symbol.
16189
16190 * font.h (Qunicode_sip): Extern it.
16191
161922008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * composite.c (get_composition_id): Pay attention to TAB component.
16195
16196 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16197 TAB. Adjust for the change of s->char2b which always points to
16198 the first element of allocated memory.
16199
16200 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16201
16202 * xdisp.c (handle_composition_prop): Set it->c to the first
16203 non-TAB component.
16204 (fill_composite_glyph_string): Change argument.
16205 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16206 (x_produce_glyphs): Fix handling of left/right padding.
16207
162082008-02-01 Kenichi Handa <handa@m17n.org>
16209
16210 * coding.c (detect_coding_system): Fix for handling off
16211 inhibit_iso_escape_detection. Fix for the case that no coding
16212 system is defined for a specific coding category.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * font.c (font_matching_entity): Delete unused local var.
16217
16218 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16219 opening a font.
16220
16221 * fileio.c (Finsert_file_contents): On recovering a file, assume
16222 Unix-like eol.
16223 (choose_write_coding_system): On auto-saving a file, force
16224 Unix-like eol.
16225
16226 * coding.c (setup_coding_system): Fix setting of
16227 coding->common_flags based on eol_type.
16228 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16229 inherit from it.
16230
162312008-02-01 Kenichi Handa <handa@m17n.org>
16232
16233 * alloc.c (NSTATICS): Increas to 0x600.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16238 (ftfont_list): Don't check :name property.
16239 (ftfont_match): New function.
16240 (ftfont_pattern_entity): If the pattern doesn't contain
16241 FC_SPACING, don't assume FC_MONO.
16242
16243 * font.h (struct font_driver): New member `match'.
16244 (font_update_drivers): Adjust prototype.
16245
16246 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16247 property of FONT.
16248 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16249 them unconditionally.
16250 (font_matching_entity): New function.
16251 (font_open_by_name): Try font_matching_entity if exact match is
16252 not found.
16253 (font_update_drivers): Delete the arg FONT. Return a list of
16254 actually used backends. Don't free faces, font caches here.
16255 Don't store data in frame parameters. Don't call x_set_font.
16256 (Ffont_spec): Store :name property as is.
16257 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16258 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16259 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16260 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16261 Call font->driver->otf_gsub instead of font_otf_gsub.
16262
16263 * frame.c (x_set_font_backend): Do more works that were done in
16264 font_update_drivers before.
16265
16266 * xfont.c (xfont_match): New function.
16267 (xfont_driver): Set xfont_driver.match to xfont_match.
16268 (xfont_draw): Set font in GC if necessary.
16269
16270 * ftxfont.c (ftxfont_match): New function.
16271 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16272
16273 * xftfont.c (xftfont_match): New function.
16274 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * font.h (struct font): New member scalable.
16279 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16280 (font_otf_gsub): Adjust prototype.
16281
16282 * font.c (font_otf_capability): Fix handling of the default langsys.
16283 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16284 Check the contents of SPEC.
16285 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16286 (check_gstring): New function.
16287 (REPLACEMENT_CHARACTER): New macro.
16288 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16289 glyph codes of GSTRING.
16290 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16291 (font_prepare_composition): Set cmp->glyph_len.
16292 (font_open_entity): Set font->scalable.
16293 (Ffont_get): Handle :otf property.
16294 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16295 functions.
16296 (Fquery_font): Use font->font.full_name.
16297 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16298 Sfont_otf_alternates.
16299
16300 * ftfont.c (ftfont_open): Set font->font.full_name and
16301 font->font.name properly. Fix calculation of font->font.height
16302 and font->min_width.
16303
16304 * ftxfont.c (ftxfont_create_gcs): New function.
16305 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16306 (ftxfont_draw_backgrond): Fix filling region.
16307 (ftxfont_default_fid): New function.
16308 (ftxfont_open): Set xfont->fid to the return value of
16309 ftxfont_default_fid.
16310 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16311 (ftxfont_done_face): Free only GCs that are created by
16312 ftxfont_create_gcs.
16313 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16314
16315 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16316 Clip to src->width, etc (not src->clip_XXX).
16317
16318 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16319 FontBackend frame parameter.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * font.h (struct font_driver_list): New member `on'.
16324 (Fclear_font_cache): EXFUN it.
16325 (font_update_drivers): Extern it.
16326
16327 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16328 (font_list_entities): Check driver_list->on.
16329 (register_font_driver): Initalize `on' member to 0.
16330 (font_update_drivers): New function.
16331 (Fclear_font_cache): Check driver_list->on.
16332
16333 * frame.h (Qfont_backend): Extern it.
16334 (x_set_font_backend): Extern it.
16335
16336 * frame.c (Qfont_backend): New variable.
16337 (frame_parms): New element for font-backend.
16338 (x_set_font_backend): New function.
16339
16340 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16341 FontBackend frame parameter.
16342 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16343 x_set_font_backend.
16344
16345 * xfont.c (xfont_list): Don't try listing by :name property if the
16346 name is not for XLFD.
16347
163482008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16351 (LGLYPH_SET_TO): New macros.
16352 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16353 element of G is vector or not.
16354 (font_at): Extern it.
16355
16356 * font.c: Include window.h.
16357 (font_lispy_object): New function.
16358 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16359 end of valid glyph.
16360 (font_close_object): Fix getting (struct font *).
16361 (font_at): New function.
16362 (Ffont_get): If FONT is a font-object, get entity from it.
16363 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16364 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16365 range check.
16366 (Ffont_at): New function.
16367 (syms_of_font): Defsubr Sfont_at.
16368
16369 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16370 before the entry for Qcomposition.
16371 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16372 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16373 the font in gstring.
16374 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16375 LGLYPH_FORM (g) to detect the end of valid glyph.
16376 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16377 we are composing with gstring.
16378
16379 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16380 Check if adjustment is vector or not.
16381
16382 * Makefile.in (font.o): Make it depends on window.h.
16383
163842008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16387 adjustment is vector or not.
16388
163892008-02-01 Miles Bader <miles@gnu.org>
16390
16391 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16392
163932008-02-01 Kenichi Handa <handa@m17n.org>
16394
16395 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16396 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16397 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16398
16399 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16400 (DEVICE_DELTA): Fix typo.
16401 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16402 LGLYPH format.
16403
16404 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16405 the change of LGLYPH format.
16406
164072008-02-01 Kenichi Handa <handa@m17n.org>
16408
16409 * ftfont.c (ftfont_list): Fix typo.
16410 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16411
164122008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16413
16414 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16415
16416 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16417 xftface_info is non-NULL.
16418
164192008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16420
16421 * ftfont.c (ftfont_list): Move misplaced #endif.
16422
164232008-02-01 Kenichi Handa <handa@m17n.org>
16424
16425 * ftfont.c (ftfont_list): Pay attention to the case that
16426 FC_CAPABILITY is not defined.
16427
164282008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * xftfont.c (xftfont_open): Set charset related members to -1.
16431
16432 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16433 QCname.
16434 (ftfont_open): Set charset related members to -1.
16435
16436 * fontset.c (Votf_script_alist): New variable.
16437 (syms_of_fontset): Initialize it.
16438 (fontset_font): Delete unused variable.
16439
16440 * fontset.h (Votf_script_alist): Extern it.
16441
16442 * font.c (font_find_for_lface): Optimize code.
16443
16444 * font.h (font_close_object, font_merge_old_spec): Extern them.
16445
164462008-02-01 Kenichi Handa <handa@m17n.org>
16447
16448 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16449 (syms_of_font): Initialize them.
16450 (font_pixel_size): Allow float value in dpi.
16451 (font_prop_validate_type): Delete.
16452 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16453 Change caller.
16454 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16455 (font_prop_validate_extra): Delete.
16456 (font_prop_validate_spacing): New function.
16457 (font_property_table): Add elements for all known properties.
16458 (get_font_prop_index): Rename from check_font_prop_name. New
16459 argument FROM. Change caller.
16460 (font_prop_validate): Validate all known properties.
16461 (font_put_extra): Delete argument force. Change caller.
16462 (font_expand_wildcards): Make it static. Fix the way of shrinking
16463 the possible range.
16464 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16465 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16466 Change caller.
16467 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16468 (font_parse_fcname): Delete argument merge. Fix parsing of point
16469 size. Don't validate properties values here. Change caller.
16470 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16471 (font_open_by_name): Delete unused variable.
16472 (Ffont_spec): Likewise. Validate property values.
16473 (Ffont_match_p): New function.
16474
16475 * font.h (QCscalable): Extern it.
16476 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16477
16478 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16479
16480 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16481 (xfont_list_pattern): New function.
16482 (xfont_list): Use xfont_list_pattern.
16483
164842008-02-01 Kenichi Handa <handa@m17n.org>
16485
16486 * font.h (Flist_fonts): EXFUN it.
16487
164882008-02-01 Jason Rumney <jasonr@gnu.org>
16489
16490 * w32term.c (w32_initialize): Add back smoothing_type and
16491 smoothing_enabled definitions.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16496 s->face->font on determining underline position.
16497
164982008-02-01 Kenichi Handa <handa@m17n.org>
16499
16500 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16501 (font_has_char): Accept font-object too.
16502 (font_find_for_lface): Try at first with a size specified in face.
16503
165042008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16507 font_open_by_name.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * font.h (QCspacing, QCdpi): Extern them.
16512 (enum font_spacing): New enum.
16513 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16514
16515 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16516 (QCspacing, QCdpi): New variables.
16517 (syms_of_font): Initialize them.
16518 (font_pixel_size): New function.
16519 (font_put_extra): New function.
16520 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16521 in FONT_EXTRA.
16522 (font_parse_fcname): Handle enumerated values (e.g. bold).
16523 Fix handling font size. Add QCname property that contains only
16524 unknown properties.
16525 (font_score): Change argument. Change caller. Pay attention to
16526 FONT_PIXEL_SIZE_QUANTUM.
16527 (font_sort_entites, font_list_entities, font_find_for_lface)
16528 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16529 (Ffont_spec): Add QCname property that contains only unknown properties.
16530
16531 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16532 include weight in listing pattern, instead check weight of each
16533 listed font. Don't include scalable in pattern. Pay attention to
16534 FONT_PIXEL_SIZE_QUANTUM.
16535
165362008-02-01 Kenichi Handa <handa@m17n.org>
16537
16538 * font.c (font_parse_fcname): Fix parsing of point-size.
16539 (font_unparse_fcname): Produce symbolic names for style properties.
16540 (font_list_entities): Handle float size correctly.
16541 (font_open_by_name): Prefer `normal' property values if the name
16542 doesn't specify them.
16543
16544 * fontset.c (Finternal_char_font): Use font_get_name, not
16545 Ffont_xlfd_name.
16546
16547 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16548 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16549 pattern. Don't force scalable.
16550
16551 * xftfont.c (xftfont_open): For generating a name, start from
16552 96-byte buffer.
16553
165542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16555
16556 * frame.h (x_new_fontset2): Fix prototype.
16557
165582008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * font.h (struct font_driver): Delete member parse_name.
16561 (font_match_p, font_get_spec, font_parse_fcname)
16562 (font_unparse_fcname): Extern them.
16563 (font_get_name): Adjust prototype.
16564
16565 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16566 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16567 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16568 unnecessary checks for weight, slant, and swidth.
16569 (font_parse_fcname): New function.
16570 (font_unparse_fcname): New function.
16571 (font_parse_name): New function.
16572 (font_match_p): New function.
16573 (font_get_name): Change return value to Lisp string.
16574 (font_get_spec): New function.
16575 (Qunspecified, Qignore_defface): Don't extern them.
16576 (font_find_for_lface): Assume that LFACE is fully specified.
16577 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16578 object, use it for FACE.
16579 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16580 driver->parse_name.
16581 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16582
16583 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16584 prototype.
16585
16586 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16587 argument F. Don't call Fnew_fontset. Instead, directly call
16588 make_fontset.
16589
16590 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16591
16592 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16593 of x_new_fontset2.
16594
16595 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16596 (Qsans__serif): New variables.
16597 (ftfont_generic_family_list): New variable.
16598 (syms_of_ftfont): Initialize the above variables.
16599 (ftfont_pattern_entity): Delete argument NAME.
16600 (ftfont_list_generic_family): New function.
16601 (ftfont_parse_name): Delete this function.
16602 (ftfont_list): Try generic family only when FcFontList found no font.
16603 (ftfont_list_family): Fix args to FcObjectSetBuild.
16604
16605 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16606 object in attrs[LFACE_FONT_INDEX].
16607 (set_lface_from_font_name): Cancel all changes for font-backend.
16608 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16609 function.
16610 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16611 font object in QCfont attribute.
16612 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16613 (realize_default_face) [USE_FONT_BACKEND]: Call
16614 set_lface_from_font_and_fontset.
16615
16616 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16617 "fixed", and signal error here if no suitable font was found.
16618
16619 * xfont.c (xfont_parse_name): Delete this function.
16620
16621 * xftfont.c (xftfont_open): Change coding style of error
16622 handling. Generate fontconfig's fontname pattern.
16623
16624 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16625 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16626
16627 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16628 Both args FONTSET and FONT_OBJECT must be existing ones.
16629
166302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16631
16632 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16637
16638 * font.h (struct font): Fix typo.
16639
16640 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16641 XLFD_XXX_INDEX.
16642 (enum xlfd_field_mask): New enum.
16643 (intern_font_field): Changed argument. Change caller. If digits
16644 are followed by non-digits, return a symbol.
16645 (font_expand_wildcards): New function.
16646 (font_parse_xlfd): Fix wildcard handling.
16647 (Ffont_spec): If :name is specified, reflect the info in the other
16648 properties.
16649
16650 * ftfont.c (ftfont_pattern_entity): Fix typo.
16651 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16652 locale.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16657
16658 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16659 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16660 registry doesn't specify encoding part.
16661 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16662 (font_open_by_name): At first try parsing the name.
16663 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16664 as Lisp symbols.
16665
16666 * fontset.c (reorder_font_vector): Pay attention to the case that
16667 the 3rd element of font_def is nil.
16668 (fontset_font): For the default fontset, append one more fontset
16669 elements for a script-based font specification. Don't add script
16670 attribute on finding a font.
16671 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16672 font name.
16673 (fontset_ascii_font): If a font can't be opened, return nil.
16674
16675 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16676 (ftfont_pattern_entity): New function.
16677 (ftfont_get_cache): Assume that freetype_font_cache is already
16678 initialized.
16679 (ftfont_list): Handle the case that a file is specified in font
16680 name. Use ftfont_pattern_entity to generate entities.
16681 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16682 (syms_of_ftfont): Initialize freetype_font_cache.
16683
16684 * xftfont.c (xftfont_open): Make the font name fontconfig's
16685 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16686 (xftfont_close): Free font->font.name if not NULL.
16687
16688 * xfont.c (xfont_list): If script is specified for a font, return
16689 null_vector.
16690 (xfont_list_family): Declare argument type.
16691
16692 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16693 name, set LFACE_FONT (lface) to nil.
16694
16695 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16696 return Qnil.
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16701 (standard_args): Add "-enable-font-backend".
16702
167032008-02-01 Kenichi Handa <handa@m17n.org>
16704
16705 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16706 (struct xftdraw_list, xftdraw_list): Delete them.
16707 (register_xftdraw, check_xftdraw): Delete them.
16708 (xftfont_prepare_face): Don't call register_xftdraw.
16709 (xftfont_done_face): Don't call check_xftdraw.
16710 (xftfont_draw): Get background color only when with_background is
16711 nonzero.
16712
16713 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16714
167152008-02-01 Kenichi Handa <handa@m17n.org>
16716
16717 These changes are for the new font handling codes.
16718
16719 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16720 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16721 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16722 (FONTSRC, FONTOBJ): New variables.
16723 (obj): Add $(FONTOBJ).
16724 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16725 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16726 @LIBOTF_LIBS@.
16727 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16728 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16729
16730 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16731
16732 * character.h (Vscript_representative_chars): Extern it.
16733
16734 * character.c (Vscript_representative_chars): New variable.
16735 (syms_of_character): Declare it as a Lisp variable.
16736
16737 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16738 enable_font_backend is nonzero, accept the composition method
16739 COMPOSITION_WITH_GLYPH_STRING.
16740
16741 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16742 enumeration COMPOSITION_WITH_GLYPH_STRING.
16743
16744 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16745 members clip_x, clip_y, clip_width, and clip_height.
16746 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16747
16748 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16749 --enable-font-backend. Call syms_of_font.
16750
16751 * fns.c (assoc_no_quit): New function.
16752
16753 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16754 (face_for_font, new_fontset_from_font)
16755 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16756
16757 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16758 (fontset_font, fontset_ascii, face_for_char)
16759 (make_fontset_for_ascii_face, Ffont_info)
16760 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16761 is nonzero, use font-backend mechanism.
16762 (find_font_encoding): Make it non-static.
16763 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16764 New functions.
16765
16766 * frame.h (struct frame): New members resx and resy.
16767 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16768 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16769
16770 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16771 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16772
16773 * lisp.h (assoc_no_quit): Extern it.
16774
16775 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16776 Through out the file, use FONT_INFO_FROM_FACE instead of
16777 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16778 rif->per_char_metric.
16779 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16780 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16781 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16782 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16783 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16784 nonzero, use font-backend mechanism.
16785 (get_per_char_metric): New function.
16786
16787 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16788 (set_lface_from_font_name)
16789 (set_font_frame_param, free_realized_face)
16790 (prepare_face_for_display, clear_face_gcs)
16791 (Finternal_set_font_selection_order, realize_x_face)
16792 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16793 font-backend mechanism.
16794 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16795 (load_face_font) [USE_FONT_BACKEND]: Abort.
16796 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16797 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16798
16799 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16800 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16801 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16802 nonzero, register all available font drivers. Call
16803 x_default_font_parameter for deciding a font.
16804 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16805
16806 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16807 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16808 (x_set_glyph_string_clipping_exactly)
16809 (x_compute_glyph_string_overhangs)
16810 (x_draw_glyph_string_foreground)
16811 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16812 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16813 enable_font_backend is nonzero, use font-backend mechanism.
16814 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16819 system_eol_type.
16820 (syms_of_coding): Initialize system_eol_type.
16821
16822 * process.c (Fset_process_coding_system): Inherit system's eol
16823 format if necessary.
16824
168252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16826
16827 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16828
168292008-02-01 Kenichi Handa <handa@m17n.org>
16830
16831 * coding.c (decode_eol): Pay attention to buffer relocation in
16832 del_range_2.
16833 (decode_coding): Call decode_eol before restoring undo_list.
16834
168352008-02-01 Kenichi Handa <handa@m17n.org>
16836
16837 * charset.c (Fdefine_charset_internal): Fix setting of
16838 emacs_mule_bytes.
16839
168402008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * keyboard.c (read_char): Check if C is a character or not before
16843 looking up Vkeyboard_translate_table.
16844
168452008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16848 condition to terminate the loop.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * coding.c (produce_composition): Compare charbuf[i] instead of
16853 args[i] against 0.
16854 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16859 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16860 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16861 detect_coding.
16862 (emacs_mule_char): Handle old style (Emacs 20) component character
16863 of a composition.
16864 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16865 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16866 composition rule.
16867 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16868
168692008-02-01 Kenichi Handa <handa@m17n.org>
16870
16871 * coding.c (encode_coding_ccl): Allocate destination dynamically
16872 when necessary.
16873
168742008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16877 the loop. When quitted, show a proper error message.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16882 src->clip_head and src->clip_tail temporarily instead of src->hl.
16883
16884 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16885 character sequence.
16886 (Fccl_execute_on_string): Use ASET, not XSET.
16887
168882008-02-01 Kenichi Handa <handa@m17n.org>
16889
16890 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16891
168922008-02-01 Kenichi Handa <handa@m17n.org>
16893
16894 * coding.c (decode_coding): Fix the condition of terminating the
16895 decoding loop.
16896
168972008-02-01 Kenichi Handa <handa@m17n.org>
16898
16899 * data.c (Faset): On setting a character bigger than 255 in a
16900 unibyte string, signal an error instead of make the string multibyte.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16905 made by a mapping table.
16906
169072008-02-01 Kenichi Handa <handa@m17n.org>
16908
16909 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16910 not.
16911 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16912 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16913
16914 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16915 s->face is NULL or not.
16916
169172008-02-01 Kenichi Handa <handa@m17n.org>
16918
16919 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16920 (x_draw_glyph_string): Fix drawing of right_overhang and
16921 left_overhang around/on cursor.
16922
16923 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16924
169252008-02-01 Kenichi Handa <handa@m17n.org>
16926
16927 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16928
169292008-02-01 Kenichi Handa <handa@m17n.org>
16930
16931 * coding.c (Fdefine_coding_system_internal)
16932 (Fdefine_coding_system_alias): Avoid a duplicated element in
16933 Vcoding_system_alist.
16934
169352008-02-01 Kenichi Handa <handa@m17n.org>
16936
16937 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16938
16939 * coding.c (Qcoding_system_define_form): New variable.
16940 (syms_of_coding): Intern and staticpro it.
16941 (Fcoding_system_p): Check Qcoding_system_define_form.
16942 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16943
16944 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16945 Fcoding_system_p.
16946 (CHECK_CODING_SYSTEM): If ID is not available, call
16947 Fcheck_coding_system.
16948 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16949 Try also Fcheck_coding_system.
16950
169512008-02-01 Kenichi Handa <handa@m17n.org>
16952
16953 * coding.c (code_conversion_restore): GCPRO arg.
16954
169552008-02-01 Kenichi Handa <handa@m17n.org>
16956
16957 * character.c (lisp_string_width): Check multibyteness of STRING.
16958
169592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16960
16961 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16962 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16963 (decode_mac_font_name): Use decode_coding_c_string instead of
16964 decode_coding.
16965 (x_load_font): Initialize fontp->fontset to -1. Set
16966 fontp->encoding_type.
16967
169682008-02-01 Kenichi Handa <handa@m17n.org>
16969
16970 * search.c (search_buffer): Give up BM search on case-fold-search
16971 if one of a target character has a case-equivalence of different
16972 byte length even if that target charcter is an ASCII.
16973 (simple_search): Fix calculation of byte length of matched text.
16974 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16975
169762008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 * coding.c (decode_coding): Fix handling of invalid bytes.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16983 Unicode characters.
16984
169852008-02-01 Kenichi Handa <handa@m17n.org>
16986
16987 * coding.c (encode_coding_object): If a pre-write-conversion
16988 function makes a new buffer, kill it.
16989
169902008-02-01 Kenichi Handa <handa@m17n.org>
16991
16992 * coding.c (QCascii_compatible_p): New variable.
16993 (syms_of_coding): Initialize it.
16994 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16995 calling string_char.
16996 (record_conversion_result): Add `default:' case.
16997 (coding_charset_list): Delete unused variable `coding_type'.
16998 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16999 property in the plist of the coding system.
17000 (Fcoding_system_put): Check QCascii_compatible_p.
17001
170022008-02-01 Miles Bader <miles@gnu.org>
17003
17004 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17005 removed calculation of frame `f', as it's now used.
17006
170072008-02-01 Kenichi Handa <handa@m17n.org>
17008
17009 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17010 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17011 (UNIDATA): New variable.
17012 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17013 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17014 $(RUN_TEMACS) unconditionally.
17015
170162008-02-01 Kenichi Handa <handa@m17n.org>
17017
17018 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17019 (admindir): New variable.
17020 ($(lispsource)international/charprop.el): New target.
17021
170222008-02-01 Miles Bader <miles@gnu.org>
17023
17024 * character.c (chars-in-region): Remove obsolete function.
17025 (syms_of_character): Remove its initialization.
17026
170272008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17028
17029 * w32select.c (validate_coding_system)
17030 (setup_windows_coding_system): New functions.
17031 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17032 setup_windows_coding_system.
17033 (setup_config, Fw32_get_clipboard_data): Use
17034 validate_coding_system.
17035 (Fx_selection_exists): Move call to setup_config to a place
17036 where signals are allowed.
17037
17038 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17039 (Fcheck_coding_system): Add declarations.
17040
170412008-02-01 Kenichi Handa <handa@m17n.org>
17042
17043 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17044
170452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17046
17047 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17048 string as the second argument for x_new_fontset.
17049
170502008-02-01 Kenichi Handa <handa@m17n.org>
17051
17052 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17053 (encode_coding_object): Use safe_call instead of call2.
17054
170552008-02-01 Kenichi Handa <handa@m17n.org>
17056
17057 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17058
17059 * Makefile.in (lisp): Include charprop.el.
17060
170612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17062
17063 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17064 Not sure if it's unnecessary.
17065
170662008-02-01 Steven Tamm <steventamm@mac.com>
17067
17068 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17069 some possibly unnecessary fontset checking code that crashed
17070 when creating a new frame.
17071
170722008-02-01 Kenichi Handa <handa@m17n.org>
17073
17074 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17075 lookup_face.
17076
17077 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17078
17079 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17080
170812008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17084 (coding_charset_list): New function.
17085
17086 * coding.h (coding_charset_list): Extern it.
17087
170882008-02-01 Kenichi Handa <handa@m17n.org>
17089
17090 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17091 concatenation of family and registry.
17092
170932008-02-01 Kenichi Handa <handa@m17n.org>
17094
17095 * character.h (BYTE8_STRING): Fix typo.
17096
17097 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17098 string to multibyte (sync to HEAD).
17099
17100 * casefiddle.c (casify_region): Handle changes in byte-length
17101 using replace_range_2 (sync to HEAD).
17102
171032008-02-01 Andreas Schwab <schwab@suse.de>
17104
17105 * chartab.c (map_char_table): GCPRO table and arg.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17110 already at limit.
17111
171122008-02-01 Kenichi Handa <handa@m17n.org>
17113
17114 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17115 instead of fast_c_string_match_ignore_case.
17116 (find_font_encoding): Change argument to Lisp_Object. Use
17117 fast_string_match_ignore_case instead of
17118 fast_c_string_match_ignore_case. Change caller.
17119
171202008-02-01 Kenichi Handa <handa@m17n.org>
17121
17122 * xdisp.c (get_next_display_element): In unibyte case, decide to
17123 display in octal form by checking a character by
17124 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17125
17126 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17127
17128 * character.c (unibyte_has_multibyte_table): New variable.
17129
17130 * character.h (unibyte_has_multibyte_table): Extern it.
17131 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * coding.c (encode_coding_iso_2022): Fix handling of charset
17136 annotation.
17137
171382008-02-01 Kenichi Handa <handa@m17n.org>
17139
17140 * coding.c (setup_coding_system): If coding_system is nil, use
17141 Qundecided.
17142 (Fterminal_coding_system): Return nil if terminal coding system is
17143 `undecided'.
17144 (syms_of_coding): Define coding-system `undecided' here. Setup
17145 terminal_coding as `undecided'.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * xdisp.c (message_dolog, set_message_1): Call
17150 unibyte_char_to_multibyte with arg type int.
17151
17152 * lread.c (read1): Fix reading of a char-table.
17153
17154 * print.c (print_object): Include sub char-table in circularities
17155 detection.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17160 Append the found sequences in car of ARGS instead of prepending.
17161
171622008-02-01 Kenichi Handa <handa@m17n.org>
17163
17164 * fileio.c (report_file_error): Make a unibyte string from
17165 strerror (errorno).
17166 (Fsubstitute_in_file_name): Fix the arg to
17167 unibyte_char_to_multibyte. It is evaluated twice.
17168
171692008-02-01 Kenichi Handa <handa@m17n.org>
17170
17171 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17172
171732008-02-01 Kenichi Handa <handa@m17n.org>
17174
17175 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17176 BOM is not found.
17177 (detect_coding, detect_coding_system): Optimization for ISO-2022
17178 when no 8-bit data is found.
17179
171802008-02-01 Jason Rumney <jasonr@gnu.org>
17181
17182 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17183
171842008-02-01 Kenichi Handa <handa@m17n.org>
17185
17186 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17187 CHARS.
17188
171892008-02-01 Steven Tamm <steventamm@mac.com>
17190
17191 * macterm.c (mac_encode_char): Add charset argument and update
17192 to use encoding_type.
17193 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17194 switch to pure fontset.
17195 (decode_mac_font_name): Temporarily remove decoding.
17196 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17197 (x_load_font): Temporarily remove encoding.
17198
171992008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * xfaces.c (Fface_font): If frame is not on a window system,
17202 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17203 refer to face->font.
17204 (split_font_name_into_vector, build_font_name_from_vector)
17205 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17206 when HAVE_WINDOW_SYSTEM is defined.
17207
172082008-02-01 Kenichi Handa <handa@m17n.org>
17209
17210 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17211 (x_produce_glyphs): Fix setting of members of cmp in case
17212 cmp->glyph_len is zero.
17213
17214 * fontset.c (Fset_fontset_font): Fix docstring.
17215 (Ffontset_info): Make it backward compatible. New arg ALL.
17216
172172008-02-01 Kim F. Storm <storm@cua.dk>
17218
17219 * process.c (read_process_output): Grow decoding_buf when needed;
17220 this could cause a crash in allocate_string and compact_small_strings.
17221
172222008-02-01 Kenichi Handa <handa@m17n.org>
17223
17224 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17225
172262008-02-01 Kenichi Handa <handa@m17n.org>
17227
17228 * coding.c (setup_coding_system): Set coding->common_flags
17229 correctly for raw-text.
17230 (consume_chars): On encoding unibyte text by raw-text, don't check
17231 multibyte form.
17232 (encode_coding): On encoding by raw-text, never use translation tables.
17233
17234 * fileio.c (e_write): Short cut for the case of no encoding.
17235
172362008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * coding.c (detect_coding, detect_coding_system): Delete unused
17239 variables.
17240
172412008-02-01 Kenichi Handa <handa@m17n.org>
17242
17243 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17244 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17245
172462008-02-01 Kenichi Handa <handa@m17n.org>
17247
17248 * coding.c (Ffind_coding_systems_region_internal): Include
17249 raw-text and no-conversion in the result.
17250
172512008-02-01 Kenichi Handa <handa@m17n.org>
17252
17253 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17254 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17255 FONT_DEF.
17256 (font_def_arg, add_arg, from_arg, to_arg): New args.
17257 (set_fontset_font): Change argument.
17258 (Fset_fontset_font): Fix for the case that TARGET is a script
17259 name and charset name.
17260 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17261
172622008-02-01 Kenichi Handa <handa@m17n.org>
17263
17264 * fontset.c (fontset_font): Rename from fontset_face. Change return
17265 value.
17266 (face_suitable_for_char_p, face_for_char): Adjust for the change
17267 of fontset_font.
17268 (make_fontset_for_ascii_face): Fix setting of the fontset element
17269 for ASCII.
17270 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17271 to get a font name.
17272 (Ffontset_info): Adjust for the change of fontset_font.
17273
17274 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17275
17276 * character.h (LEADING_CODE_LATIN_1_MIN)
17277 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * editfns.c (check_translation): New function.
17282 (Ftranslate_region_internal): Handle M:N mapping.
17283
172842008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17291 goto invalid_code.
17292 (decode_coding_iso_2022): Fix handling of invalid designation.
17293
17294 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17295 after calling code_conversion_save.
17296
172972008-02-01 Kenichi Handa <handa@m17n.org>
17298
17299 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17300
17301 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17302
17303 * fontset.c: Include "intervals.h".
17304 (fontset_face): Fix comparing of Lisp_Objects.
17305 (free_face_fontset, new_fontset_from_font_name): Fix
17306 Lisp_Object/int mixup.
17307
17308 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17309
17310 * coding.c: Add many prototypes for static functions.
17311 (get_translation_table): Allow max_lookup to be NULL.
17312 (decode_coding, Ffind_coding_systems_region_internal)
17313 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17314 get_translation_table with max_lookup NULL.
17315
173162008-02-01 Kenichi Handa <handa@m17n.org>
17317
17318 * coding.c (get_translation_table): Declare it as Lisp_Object.
17319 (LOOKUP_TRANSLATION_TABLE): New macro.
17320 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17321 instead of CHAR_TABLE_REF.
17322
173232008-02-01 Kenichi Handa <handa@m17n.org>
17324
17325 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17326 annotation data format.
17327 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17328 Change arguments FROM and TO to single argument NCHARS. Change caller.
17329 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17330 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17331 (decode_coding_ccl, decode_coding_charset): Pay attention to
17332 coding->charbuf_used.
17333 (get_translation): New function.
17334 (produce_chars): New arguments translation_table and last_block.
17335 Translate characters here. Return number of carryover chars.
17336 Change caller.
17337 (produce_composition): New argument pos. Change caller.
17338 Adjust for the change of annotation data format.
17339 (produce_charset, produce_annotation): Likewise.
17340 (decode_coding, encode_coding): Don't call translate_chars.
17341 (consume_chars): New arg translation_table. Change caller.
17342 (translate_chars): Delete.
17343 (syms_of_coding): Make translation-table's number of extra slots 2.
17344
173452008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * search.c (simple_search): Fix setting this_pos_byte in backward
17348 search.
17349
17350 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17351 byte sequence.
17352 (detect_coding_ccl): Fix setting of the variable valids.
17353
173542008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17357
17358 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17359
17360 * editfns.c (Ftranslate_region_internal): Rename from
17361 Ftranslate_region. Accept a char-table in TABLE.
17362 (syms_of_editfns): Defsubr Stranslate_region_internal.
17363
17364 * xfaces.c (set_lface_from_font_name): If a font is specified for
17365 a frame, generate a fontset from the font.
17366 (build_scalable_font_name): If the scalable font is requested for
17367 a specific size, don't change that size.
17368 (try_font_list): Try a scalable font also in the case that a
17369 pattern string is specified.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * xfaces.c (Fface_font): New optional arg CHARACTER.
17374
173752008-02-01 Kenichi Handa <handa@m17n.org>
17376
17377 * charset.h (CHARSET_OFFSET): New macro.
17378
173792008-02-01 Kenichi Handa <handa@m17n.org>
17380
17381 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17382
17383 * fontset.c (fontset_face): Handle the case that repertory is a
17384 char-table.
17385 (find_font_encoding): Return nil for unknown encoding.
17386 (Fset_fontset_font): Ignore a font of unknown encoding.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * keymap.c (describe_vector): Handle default value of a char table.
17391
17392 * fontset.c (fontset_face): Handle fallback fonts correctly.
17393 (Ffontset_info): Return infomation about fallback fonts.
17394
173952008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * fontset.c (FONTSET_DEFAULT): New macro.
17398 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17399 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17400 the case that it is nil.
17401 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17402 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17403
17404 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17405 subset or superset.
17406
174072008-02-01 Kenichi Handa <handa@m17n.org>
17408
17409 * emacs.c (main): Call init_charset after syms_of_XXX.
17410
17411 * charset.c (Vcharset_map_directory): Delete.
17412 (Vcharset_map_path): New variable.
17413 (load_charset_map_from_file): Use Vcharset_map_path instead.
17414 (init_charset): Initialize Vcharset_map_path.
17415 (syms_of_charset): Delete declaration of "charset-map-directory",
17416 add declaration of "charset-map-path".
17417
174182008-02-01 Kenichi Handa <handa@m17n.org>
17419
17420 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17421 ASCII only string.
17422
17423 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17424
17425 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17426 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17427
174282008-02-01 Kenichi Handa <handa@m17n.org>
17429
17430 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17431
17432 * coding.c (QCmnemonic, QCdefalut_char)
17433 (QCdecode_translation_table, QCencode_translation_table)
17434 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17435 (get_translation_table): Return a list of translation tables if
17436 necessary.
17437 (decode_coding): Call get_translation_table with ENCODEP 0.
17438 (char_encodable_p): If translation_table is non-nil, always call
17439 translate_char.
17440 (Fdefine_coding_system_internal): Accept list of translation
17441 tables as :encode-translation-table and :decode-translation-table.
17442 (Fcoding_system_put): New function.
17443 (syms_of_coding): Declare new symbols. Defsubr
17444 Scoding_system_put.
17445 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17446 typically JISX0212.
17447
17448 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17449 when the charset is superset type.
17450
17451 * character.c (translate_char): Accept list of translation tables.
17452
174532008-02-01 Kenichi Handa <handa@m17n.org>
17454
17455 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17456 (CODING_ATTR_TRANS_TBL): New macro.
17457
17458 * coding.c (get_translation_table): New function.
17459 (translate_chars): Fix the bug of skipping annotation data.
17460 (decode_coding, encode_coding): Utilize get_translation_table.
17461 (char_encodable_p, Funencodable_char_position): Translate char if
17462 necessary.
17463 (Ffind_coding_systems_region_internal)
17464 (Fcheck_coding_systems_region): Setup translation table for encode
17465 in a coding system attribute vector in advance.
17466 (Fdefine_coding_system_internal): Allow a symbol as translation
17467 table. For shift-jis type coding system, allow 4th charset.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17472
17473 * xdisp.c (get_next_display_element): Pass -1 as POS to
17474 FACE_FOR_CHAR if displaying a C-string.
17475
174762008-02-01 Kenichi Handa <handa@m17n.org>
17477
17478 * composite.c (get_composition_id): Handle xoff and yoff in a
17479 composition rule.
17480
17481 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17482 (struct composition): New member lbearing and rbearing.
17483
17484 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17485 (x_get_glyph_overhangs): Handle a composition glyph.
17486 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17487
17488 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17489 composition glyph.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * print.c: Include charset.h.
17494 (Vprint_charset_text_property): New variable.
17495 (Qdefault): Extern it.
17496 (PRINT_STRING_NON_CHARSET_FOUND)
17497 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17498 (print_check_string_result): New variable.
17499 (print_check_string_charset_prop): New function.
17500 (print_prune_charset_plist): New variable.
17501 (print_prune_string_charset): New function.
17502 (print_object): Call print_prune_string_charset if
17503 Vprint_charset_text_property is not t.
17504 (print_interval): Print nothing if interval->plist is nil.
17505 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17506 variable. Init and staticpro print_prune_charset_plist.
17507
175082008-02-01 Kenichi Handa <handa@m17n.org>
17509
17510 * fontset.c (new_fontset_from_font_name): Use the specified font
17511 for all characters in the new fontset.
17512
17513 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17514 OBJECT args.
17515
17516 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17517 OBJECT args for composition too.
17518
17519 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17520 OBJECT args.
17521
175222008-02-01 Kenichi Handa <handa@m17n.org>
17523
17524 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17525
17526 * fontset.c (reorder_font_vector): Adjust for the change of
17527 FONT_DEF format.
17528 (fontset_face): New arg id. Change caller.
17529 (face_for_char): New args pos and object.
17530 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17531 (fs_query_fontset): Check NAME by Fassoc too.
17532 (Fset_fontset_font): Allow non-XLFD font name.
17533 (Ffontset_info): Adjust for the change of FONT_DEF format.
17534
17535 * fontset.h (face_for_char): Adjust prototype.
17536
17537 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17538 (append_space, extend_face_to_end_of_line)
17539 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17540 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17541
17542 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17543 POS and OBJECT args.
17544
17545 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17546 POS and OBJECT args.
17547
175482008-02-01 Jason Rumney <jasonr@gnu.org>
17549
17550 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17551 of GlobalAlloc'ed memory.
17552
175532008-02-01 Kenichi Handa <handa@m17n.org>
17554
17555 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17556
17557 * charset.h (charset_table_used): Delete extern.
17558
17559 * charset.c (charset_table_used): Make it static.
17560 (map_charset_chars): Fix args to c_function with.
17561
17562 * chartab.c (map_sub_char_table_for_charset): Fix args to
17563 c_function with.
17564
17565 * coding.h (enum coding_result_code): Delete
17566 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17567
17568 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17569 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17570 (Vlast_code_conversion_error): New variables.
17571 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17572 (ONE_MORE_BYTE): Record error if any instead of signaling an
17573 error. If non-ASCII multibyte char is found, return the negative
17574 value of the code. All callers changed to check it.
17575 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17576 (record_conversion_result): New function. Change all codes setting
17577 coding->result to call this function.
17578 (detect_coding_utf_8, decode_coding_utf_8)
17579 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17580 Don't use the local variable incomplete.
17581 (emacs_mule_char): Change the second arg to `const'.
17582 (decode_coding): Fix of flushing out unprocessed data.
17583 (make_conversion_work_buffer): Fix making of a work buffer.
17584 (decode_coding_object): Return coding->dst_object.
17585
17586 * fontset.c (set_fontset_font): Fix args.
17587
17588 * lisp.h (CHARACTERBITS): Define as 22.
17589
17590 * process.c (send_process): Be sure to set coding->src_multibyte.
17591
17592 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17593
175942008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * xdisp.c (handle_auto_composed_prop): Give limit to
17597 Fnext_single_char_property_change.
17598
175992008-02-01 Kenichi Handa <handa@m17n.org>
17600
17601 * composite.c (syms_of_composite): Don't make the composition hash
17602 table weak.
17603
17604 * fontset.c (Fset_fontset_font): Fix docstring.
17605
17606 * lisp.h (detect_coding_system): Adjust prototype.
17607
17608 * fileio.c (kill_workbuf_unwind): Delete this function.
17609 (Finsert_file_contents): Adjust the call of detect_coding_system.
17610 Get conversion_buffer by code_conversion_save. Use the macro
17611 CODING_MAY_REQUIRE_DECODING. After decoding, update
17612 coding_system.
17613
17614 * coding.h (make_conversion_work_buffer): Delete extern.
17615 (code_conversion_save): Extern it.
17616
17617 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17618 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17619 (decode_coding_utf_8): Don't do eol converion.
17620 (detect_coding_utf_16): Check coding->src_chars, not
17621 coding->src_bytes. Add heuristics for those that have no signature.
17622 (decode_coding_emacs_mule, decode_coding_iso_2022)
17623 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17624 Don't do eol converion.
17625 (adjust_coding_eol_type): Return a new coding system.
17626 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17627 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17628 each change.
17629 (decode_coding): Pay attention to undo_list. Do eol conversion for
17630 all types of coding-systems (if necessary).
17631 (Vcode_conversion_work_buf_list): Delete it.
17632 (Vcode_conversion_reused_workbuf): Rename from
17633 Vcode_conversion_reused_work_buf.
17634 (Vcode_conversion_workbuf_name): New variable.
17635 (reused_workbuf_in_use): New variable.
17636 (make_conversion_work_buffer): Delete the arg DEPTH.
17637 (code_conversion_restore): Change argument to cons.
17638 (code_conversion_save): Delete the argument BUFFER. Change callers.
17639 (detect_coding_system): New argument src_chars. Change callers.
17640 Fix for utf-16 detection.
17641 (init_coding_once): Don't use ISO_carriage_return.
17642 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17643 reused_workbuf_in_use.
17644
176452008-02-01 Kenichi Handa <handa@m17n.org>
17646
17647 * keymap.c (store_in_keymap): Pay attention to the case that idx
17648 is a cons specifying a character range.
17649
176502008-02-01 Kenichi Handa <handa@m17n.org>
17651
17652 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17653 HANDLED_RECOMPUTE_PROPS.
17654
17655 * coding.c (Fdefine_coding_system_internal): Fix checking of
17656 ascii compatibility.
17657
176582008-02-01 Kenichi Handa <handa@m17n.org>
17659
17660 * charset.c (find_charsets_in_text): Delete unused locale variable.
17661 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17662
17663 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17664 Resync charset_list to Vemacs_mule_charset_list.
17665
17666 * keymap.c (store_in_keymap): Pay attention to the case that idx
17667 is a cons specifying a character range.
17668
176692008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * composite.c (update_compositions): Bind inhibit-read-only, etc
17672 to t before calling remove-list-of-text-properties.
17673
17674 * print.c (print_object): Always print ASCII chars as is.
17675
176762008-02-01 Kenichi Handa <handa@m17n.org>
17677
17678 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17679
17680 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17681 is a char table.
17682
176832008-02-01 Kenichi Handa <handa@m17n.org>
17684
17685 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17686
176872008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * xfaces.c (set_lface_from_font_name): Fix for the case that
17690 FONTNAME is not fontset name.
17691
176922008-02-01 Kenichi Handa <handa@m17n.org>
17693
17694 * fns.c (base64_encode_1): Fix previous change.
17695
176962008-02-01 Kenichi Handa <handa@m17n.org>
17697
17698 * fontset.c (set_fontset_font): New function.
17699 (Fset_fontset_font): If a font is specified for a charset, use
17700 map_charset_chars to store the font spec in a fontset.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * fontset.c (fontset_face): Create a fallback fontset on demand.
17705 (make_fontset): Don't create a fallback fontset here.
17706 (free_face_fontset): Free a fallback fontset (if any) too.
17707 (n_auto_fontsets): Delete this variable.
17708 (auto_fontset_alist): New variable.
17709 (new_fontset_from_font_name): Check auto_fontset_alist.
17710 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17711 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17712 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17713 Defsubr Sfontset_list_all.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17718
177192008-02-01 Kenichi Handa <handa@m17n.org>
17720
17721 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17722
177232008-02-01 Kenichi Handa <handa@m17n.org>
17724
17725 * editfns.c (Fgoto_char): Fix docstring.
17726
177272008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * insdel.c (insert_from_gap): Adjust intervals correctly.
17730
177312008-02-01 Jason Rumney <jasonr@gnu.org>
17732
17733 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17734 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17735 (w32_initialize): Try to load it.
17736 (x_get_font_repertory): Use it if available.
17737 (w32_encode_char): Add shortcut for unicode output.
17738
17739 * w32fns.c (w32_load_system_font): Default charset to -1.
17740 (x_to_w32_charset): Match all fonts for unicode.
17741 (w32_to_x_charset): New parameter matching. Don't return partial
17742 or wildcard charsets.
17743 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17744 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17745 (w32_to_x_font): Match charset to real charset.
17746 (enum_font_cb2): Always list unicode versions.
17747
17748 * makefile.w32-in (temacs): Increase EMHEAP.
17749
177502008-02-01 Jason Rumney <jasonr@gnu.org>
17751
17752 * w32term.c (w32_encode_char): New charset parameter.
17753 font_info.encoding becomes encoding_type.
17754 (x_get_font_repertory): New function. Warning: stub only!
17755 (x_new_font): Return quickly if font already set.
17756 (x_new_fontset): fontsetname parameter is Lisp_Object.
17757 Use new fs_query_fontset. Try new_fontset_from_font_name.
17758 Use fontset_name for return value.
17759
17760 * w32term.h: Declare x_get_font_repertory.
17761
17762 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17763 place of find_charset_in_text. Use encode_coding_object in place
17764 of encode_coding.
17765 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17766 decode_coding.
17767
17768 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17769 of x_new_fontset.
17770 (w32_load_system_font): Initialize charset as unicode.
17771 font_info.encoding becomes encoding_type.
17772 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17773 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17774 (syms_of_w32fns): Set get_font_repertory_func.
17775
17776 * w32console.c: Include character.h. Use terminal_encode_buffer
17777 from term.c.
17778 (write_glyphs): Use new version of encode_terminal_code. Use
17779 encode_coding_object in place of encode_coding.
17780
17781 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17782 encoding becomes encoding_type.
17783
17784 * term.c (terminal_encode_buffer): Make externally visible.
17785
17786 * makefile.w32-in: Add character.h dependancies.
17787 (character.o, chartab.o): New targets.
17788
177892008-02-01 Kenichi Handa <handa@m17n.org>
17790
17791 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17792 CODING_ID_EOL_TYPE.
17793
177942008-02-01 Andreas Schwab <schwab@suse.de>
17795
17796 * coding.c (produce_chars): Revert last change.
17797
177982008-02-01 Kenichi Handa <handa@m17n.org>
17799
17800 * charset.h (charset_unicode): Extern it.
17801
17802 * charset.c (string_xstring_p): Check by (C >= 0x100).
17803 (find_charsets_in_text): Change format of the arc CHARSETS. New
17804 arg MULTIBYTE.
17805 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17806 change of find_charsets_in_text.
17807 (Fsplit_char): Fix doc. Never return unknown.
17808
17809 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17810
17811 * coding.c (Fdefine_coding_system_alias): Update
17812 Vcoding_system_list.
17813
17814 * fontset.c (load_font_get_repertory): Pay attention to the case
17815 that ENCODING of a font is specified by a char-table.
17816
17817 * xterm.c (x_get_font_repertory): Handle the case that the
17818 encoding of font is other than Unicode.
17819
178202008-02-01 Kenichi Handa <handa@m17n.org>
17821
17822 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17823 if a character is encodable by the terminal coding system. If
17824 not, produces proper number of `?'s. Update
17825 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17826 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17831 variables.
17832 (encode_terminal_code): Change argument. Encode multiple
17833 characters at once. Store the result of encoding in
17834 terminal_encode_buffer.
17835 (write_glyphs, insert_glyphs): Adjust for the change of
17836 encode_terminal_code.
17837 (term_init): Initialize terminal_encode_buffer and
17838 terminal_encode_buf_size.
17839
17840 * coding.c (consume_chars): If coding->src_object is nil, don't
17841 check annotation.
17842
178432008-02-01 Kenichi Handa <handa@m17n.org>
17844
17845 * character.c (char_string): Use ASCII_CHAR_P instead of
17846 SINGLE_BYTE_CHAR_P.
17847
178482008-02-01 Kenichi Handa <handa@m17n.org>
17849
17850 * xdisp.c (handle_auto_composed_prop): Check if the last
17851 characters of auto-composed region is newly composed with the
17852 following characters.
17853 (handle_composition_prop): Fix checking of point being inside
17854 composition.
17855
178562008-02-01 Kenichi Handa <handa@m17n.org>
17857
17858 * fns.c (concat): Don't change multibyteness of the result by
17859 concatenating an 8-bit character.
17860
17861 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17862 multibyteness of the result when newelt is an 8-bit character.
17863
178642008-02-01 Dave Love <fx@gnu.org>
17865
17866 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17867 EMACS_INT.
17868
17869 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17870
17871 * xfaces.c (face_numeric_value): Declare dim size_t.
17872 (Finternal_lisp_face_equal_p): Remove unused f.
17873
17874 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17875 (MATRIX_ROW): Remove unused vars.
17876 (draw_glyphs, x_insert_glyphs, fast_find_position)
17877 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17878 byte/char counts.
17879
17880 * regex.c (regex_compile): Remove unused var.
17881
17882 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17883
17884 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17885 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17886
17887 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17888
17889 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17890
17891 * fileio.c (Fwrite_region): Remove unused var.
17892
17893 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17894 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17895
17896 * composite.c (Fremove_list_of_text_properties): Declare.
17897
17898 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17899 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17900 (coding_inherit_eol_type): Remove unused attrs.
17901 (detect_coding): Cast arg of detect_eol.
17902
17903 * charset.c (syms_of_charset): Remove unused var p.
17904 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17905 byte/char counts.
17906
17907 * casetab.c (set_case_table): Remove unused var.
17908
17909 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17910 unused vars.
17911
179122008-02-01 Dave Love <fx@gnu.org>
17913
17914 * xterm.c (x_bitmap_mask): Declare.
17915
179162008-02-01 Dave Love <fx@gnu.org>
17917
17918 * xterm.c (x_term_init): Fix type error.
17919
17920 * lisp.h: Add Funibyte_char_to_multibyte.
17921
17922 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17923 (Fset_coding_system_priority): Doc fix.
17924
17925 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17926
17927 * indent.c (check_composition): Make start and end EMACS_INT.
17928
17929 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17930
17931 * xdisp.c (handle_composition_prop, check_point_in_composition):
17932 Make buffer positions EMACS_INT.
17933
17934 * composite.c (find_composition, run_composition_function)
17935 (update_compositions, Ffind_composition_internal): Make buffer
17936 positions EMACS_INT.
17937
17938 * composite.h (find_composition, update_compositions): Make
17939 position args EMACS_INT.
17940
17941 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17942
17943 * intervals.c (get_property_and_range):
17944 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17945
17946 * unexalpha.c: Don't include varargs.h.
17947
179482008-02-01 Dave Love <fx@gnu.org>
17949
17950 * coding.h (ENCODE_UTF_8): New.
17951
17952 * Makefile.in (gtkutil.o): Depend on coding.h.
17953
17954 * coding.c (Fset_coding_system_priority): Doc fix.
17955
179562008-02-01 Kenichi Handa <handa@m17n.org>
17957
17958 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17959 the case of auto saving.
17960
179612008-02-01 Andreas Schwab <schwab@suse.de>
17962
17963 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17964 `range' from GC.
17965
179662008-02-01 Kenichi Handa <handa@m17n.org>
17967
17968 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17969
179702008-02-01 Kenichi Handa <handa@m17n.org>
17971
17972 * fileio.c (choose_write_coding_system): Return a decided coding system.
17973 (Fwrite_region): Set Vlast_coding_system_used to the return value
17974 of choose_write_coding_system.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * charset.c (Fset_charset_priority): Pay attention to duplicated
17979 arguments.
17980
17981 * coding.c (QCcategory): New variable.
17982 (syms_of_coding): Defsym it. Set all elements of
17983 Vcoding_category_table and their symbol values.
17984 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17985 coding-category-XXX, and coding-category-list.
17986 (Fdefine_coding_system_internal): Add category in the plist.
17987
179882008-02-01 Kenichi Handa <handa@m17n.org>
17989
17990 * callproc.c (Fcall_process): Handle carryover correctly.
17991
17992 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17993 (raw_text_coding_system): Check NILP (coding_system).
17994 (coding_inherit_eol_type): Check NILP (coding_system) and
17995 NILP (parent).
17996 (consume_chars): Fix for the case of raw-text.
17997
17998 * process.c (read_process_output): Handle carryover correctly.
17999
180002008-02-01 Dave Love <fx@gnu.org>
18001
18002 * regex.c (re_search_2): Fix last change.
18003
180042008-02-01 Kenichi Handa <handa@m17n.org>
18005
18006 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18007 target_multibyte. Even in a unibyte case, return a converted
18008 multibyte char.
18009 (GET_CHAR_AFTER): New macro.
18010 (PATFETCH): Translate via multibyte char.
18011 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18012 (SETUP_MULTIBYTE_RANGE): New macro.
18013 (regex_compile): Setup compiled code so that its multibyteness
18014 matches that of a target. Fix the handling of "[X-YZ]" using
18015 SETUP_MULTIBYTE_RANGE.
18016 (analyse_first) <charset>: For filling fastmap for all multibyte
18017 characters, don't check by BASE_LEADING_CODE_P.
18018 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18019 the same as RE_MULTIBYTE_P (bufp) now.
18020 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18021 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18022 (TRANSLATE_VIA_MULTIBYTE): New macro.
18023 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18024 It is the same as RE_MULTIBYTE_P (bufp) now.
18025 <exactn>: Translate via multibyte.
18026 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18027 translate it.
18028 <charset, charset_not>: Fetch a character by
18029 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18030 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18031 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18032 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18033 by GET_CHAR_AFTER.
18034 (bcmp_translate): Likewise.
18035
18036 * search.c (compile_pattern): Check the member target_multibyte,
18037 not the member multibyte of buf.
18038
18039 * lread.c (read1): While reading a string, set force_singlebyte
18040 and force_multibyte correctly.
18041
18042 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18043 up of unibyte_to_multibyte_table.
18044
180452008-02-01 Kenichi Handa <handa@m17n.org>
18046
18047 * coding.c (setup_coding_system): If coding has
18048 post-read-conversion or pre-write-conversion, set
18049 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18050 respectively.
18051 (decode_coding_gap): Run post-read-conversion if any.
18052
18053 * fileio.c (Finsert_file_contents): Even if we read into a
18054 unibyte buffer, check if we must decode the result or not.
18055
180562008-02-01 Kenichi Handa <handa@m17n.org>
18057
18058 * coding.c (make_conversion_work_buffer): Change the work buffer
18059 name to the same one as that of Emacs 21.
18060
180612008-02-01 Kenichi Handa <handa@m17n.org>
18062
18063 * coding.h (make_conversion_work_buffer): Adjust prototype.
18064 (code_conversion_restore): Don't extern it.
18065
18066 * coding.c (detected_mask): Delete unused variable.
18067 (decode_coding_iso_2022): Pay attention to the byte sequence of
18068 CTEXT extended segment, and retain those bytes as is.
18069 (decode_coding_ccl): Delete unused variable `valids'.
18070 (setup_coding_system): Delete unused variable `category'.
18071 (consume_chars): Delete unused variable `category'. Make it work
18072 for non-multibyte case.
18073 (make_conversion_work_buffer): Change argument.
18074 (saved_coding): Delete unused variable.
18075 (code_conversion_restore): Don't check saved_coding->destination.
18076 (code_conversion_save): New function.
18077 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18078 instead of record_unwind_protect.
18079 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18080 (detect_coding_system): Delete unused variable `mask'.
18081 (Fdefine_coding_system_internal): Delete unused variable id.
18082
18083 * fileio.c (kill_workbuf_unwind): New function.
18084 (Finsert_file_contents): On replacing, call
18085 make_conversion_work_buffer with correct args, and call
18086 record_unwind_protect with the first arg kill_workbuf_unwind.
18087
18088 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18089
180902008-02-01 Kenichi Handa <handa@m17n.org>
18091
18092 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18093 (fontset_add): Fix for the case that TO is less than TO1.
18094 (Ffontset_info): Don't use fallback fontset on checking the
18095 default fontset.
18096 (dump_fontset): New function for debugging.
18097
18098 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18099 coding_type is Qcharset.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18104 (map_char_table): Don't inherit the value from the parent on
18105 initializing VAL. Adjust for the above change.
18106
181072008-02-01 Kenichi Handa <handa@m17n.org>
18108
18109 * coding.c (Qsignature, Qendian): Delete these variables.
18110 (syms_of_coding): Don't initialize them.
18111 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18112 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18113 detect_info->found.
18114 (decode_coding_utf_16): Don't detect BOM here.
18115 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18116 is NOT utf_16_without_bom.
18117 (setup_coding_system): For a coding system of type utf-16, check
18118 if the attribute :endian is Qbig or not (not nil or not), and set
18119 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18120 (detect_coding): If coding type is utf-16 and BOM detection is
18121 required, detect it.
18122 (Fdefine_coding_system_internal): For a coding system of type
18123 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18124
181252008-02-01 Kenichi Handa <handa@m17n.org>
18126
18127 * coding.c (coding_set_source): Fix for the case that the current
18128 buffer is different from coding->src_object.
18129 (decode_coding_object): Don't use the conversion work buffer if
18130 DST_OBJECT is a buffer.
18131
181322008-02-01 Dave Love <fx@gnu.org>
18133
18134 * lread.c (read_emacs_mule_char) [len==2]: Index
18135 emacs_mule_charset correctly.
18136
181372008-02-01 Dave Love <fx@gnu.org>
18138
18139 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18140 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18141 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18142 treated specially.)
18143 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18144 (detected_mask): Remove Big5 bits.
18145
181462008-02-01 Kenichi Handa <handa@m17n.org>
18147
18148 The following changes are to make the font rescaling facility
18149 compatible with Emacs 21.
18150
18151 * xfaces.c (Vface_font_rescale_alist): Rename from
18152 Vface_resizing_fonts.
18153 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18154 (font_rescale_ratio): Rename from font_resizing_ratio.
18155 (split_font_name): Set font->rescale_ratio.
18156 (better_font_p): Pay attention to font->rescale_ratio.
18157 (build_scalable_font_name): Likewise. Change RESX, and RESY
18158 fields.
18159 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18160
181612008-02-01 Kenichi Handa <handa@m17n.org>
18162
18163 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18164 (Qutf_16_le): Remove these variables.
18165 (syms_of_coding): Don't DEFSYM them.
18166 (decode_coding_utf_16): Fix handling of BOM.
18167 (encode_coding_utf_16): Fix handling of BOM.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * fileio.c (Finsert_file_contents): On replacing, before decoding
18172 the file into the work buffer, set point of the work buffer to the end.
18173
181742008-02-01 Dave Love <fx@gnu.org>
18175
18176 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18177
181782008-02-01 Dave Love <fx@gnu.org>
18179
18180 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18181 and fix C types.
18182
181832008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * xdisp.c (SKIP_GLYPHS): New macro.
18186 (set_cursor_from_row): Pay attention to string display properties.
18187
18188 * category.c (copy_category_entry): Fix for the case that RANGE
18189 is an integer.
18190
18191 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18192
18193 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18194
181952008-02-01 Kenichi Handa <handa@m17n.org>
18196
18197 * charset.c (Fcharset_id_internal): New function.
18198 (syms_of_charset): Defsubr it.
18199
18200 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18201 with the last arg charset_list acquired from coding.
18202 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18203 the attribute coding_attr_ccl_valids.
18204
18205 * coding.h (enum define_coding_ccl_arg_index): Set the first
18206 member coding_arg_ccl_decoder to coding_arg_max.
18207
18208 * ccl.h (ccl_driver): Adjust prototype.
18209
18210 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18211 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18212 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18213 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18214 last arg Qnil.
18215
182162008-02-01 Kenichi Handa <handa@m17n.org>
18217
18218 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18219 call encode_char.
18220
18221 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18222
182232008-02-01 Dave Love <fx@gnu.org>
18224
18225 * composite.c (syms_of_composite): Make composition_hash_table weak.
18226
182272008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18230 (font_name_registry): Don't extern them.
18231 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18232
18233 * fontset.h (Qfontset): Don't extern it.
18234 (new_fontset_from_font_name): Extern it.
18235
18236 * fontset.c: Give 8 extra slots to fontset objects.
18237 (Qfontset_info): New variable.
18238 (syms_of_fontset): Defsym it.
18239 (FONTSET_FALLBACK): New macro.
18240 (fontset_face): Try also the default fontset.
18241 (make_fontset): Realize a fallback fontset from the default fontset.
18242 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18243 using split_font_name_into_vector and build_font_name_from_vector.
18244 (Fset_fontset_font): Access the elements of font_spec by enum
18245 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18246 name by using split_font_name_into_vector.
18247 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18248 generate a proper font name from the fontset name. Update
18249 Vfontset_alias_alist.
18250 (n_auto_fontsets): New variable.
18251 (new_fontset_from_font_name): New function.
18252 (Ffont_info): Store the information about fonts generated from the
18253 default fontset in the first extra slot of the returned char-table.
18254
18255 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18256 (font_name_registry): Delete function.
18257 (split_font_name_into_vector): New function.
18258 (build_font_name_from_vector): New function.
18259 (font_list): The argument REGISTRY is now a list of registry names.
18260 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18261 specifies an explicit font name, return the name as is. Make a
18262 list of registy names.
18263
18264 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18265 of x_new_fontset.
18266 (Fx_create_frame): Don't call x_new_fontset here. Just use
18267 x_list_fonts to check the existence of fonts.
18268
18269 * xterm.h (x_new_fontset): Adjust prototype.
18270
18271 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18272 string. Use new_fontset_from_font_name to create a fontset from a
18273 font name.
18274
182752008-02-01 Kenichi Handa <handa@m17n.org>
18276
18277 * syntax.c (Vfind_word_boundary_function_table): New name for
18278 Vnext_word_boundary_function_table.
18279 (find-word-boundary-function-table): New name for
18280 next-word-boundary-function-table.
18281
182822008-02-01 Dave Love <fx@gnu.org>
18283
18284 * Makefile.in: Fix some dependencies.
18285
18286 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18287 set it to nil before returning.
18288
18289 * composite.c (update_compositions): Fix type error.
18290
18291 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18292
182932008-02-01 Kenichi Handa <handa@m17n.org>
18294
18295 * xterm.c (x_new_font): Optimize for the case that the font is
18296 already set for the frame.
18297
182982008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 * chartab.c (char_table_ascii): Check if the char table contents
18301 is sub-char-table or not.
18302 (char_table_set, char_table_set_range): Fix argument to
18303 char_table_ascii.
18304
18305 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18306 (detect_coding_utf_8, detect_coding_utf_16)
18307 (detect_coding_emacs_mule, detect_coding_iso_2022)
18308 (detect_coding_sjis, detect_coding_big5)
18309 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18310 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18311 sequence is valid in this coding system. Change callers.
18312 (MAX_ANNOTATION_LENGTH): New macro.
18313 (ADD_ANNOTATION_DATA): New macro.
18314 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18315 ADD_ANNOTATION_DATA. Change the format of annotation data.
18316 (ADD_CHARSET_DATA): New macro.
18317 (emacs_mule_char): New argument ID. Change callers.
18318 (decode_coding_emacs_mule, decode_coding_iso_2022)
18319 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18320 Produce charset annotation data in coding->charbuf.
18321 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18322 to charset annotation data in coding->charbuf.
18323 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18324 coding->common_flags if the coding system is iso-2022 based and
18325 uses designation.
18326 (produce_composition): Adjust for the new annotation data format.
18327 (produce_charset): New function.
18328 (produce_annotation): Handle charset annotation.
18329 (handle_composition_annotation, handle_charset_annotation): New
18330 functions.
18331 (consume_chars): Handle charset annotation. Utilize the above two
18332 functions.
18333 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18334 buffer, get the deleted text as a string and set
18335 coding->src_object to that string.
18336 (detect_coding, detect_coding_system): Use the new struct
18337 coding_detection_info.
18338
18339 * coding.h (struct coding_detection_info): New structure.
18340 (struct coding_system): Adjust prototype of the member `detector'.
18341 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18342
183432008-02-01 Kenichi Handa <handa@m17n.org>
18344
18345 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18346
183472008-02-01 Dave Love <fx@gnu.org>
18348
18349 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18350 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18351 to new local and nullify apropos_accumulate before returning.
18352 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18353
183542008-02-01 Kenichi Handa <handa@m17n.org>
18355
18356 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18357 correctly.
e3eea1fc 18358
aac0c6e3
MR
183592008-02-01 Dave Love <fx@gnu.org>
18360
18361 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18362
183632008-02-01 Kenichi Handa <handa@m17n.org>
18364
18365 The following changes are to make character composition happen
18366 automatically on displaying.
18367
18368 * Makefile.in (lisp, shortlisp): Add composite.elc.
18369
18370 * composite.h (Qauto_composed, Vauto_composition_function)
18371 (Qauto_composition_function): Extern them.
18372
18373 * composite.c (Vcomposition_function_table)
18374 (Qcomposition_function_table): Delete variables.
18375 (Qauto_composed, Vauto_composition_function)
18376 (Qauto_composition_function): New variables.
18377 (run_composition_function): Don't call
18378 compose-chars-after-function.
18379 (update_compositions): Clear `auto-composed' text property.
18380 (compose_chars_in_text): Delete this function.
18381 (syms_of_composite): Staticpro Qauto_composed and
18382 Qauto_composition_function. Declare Vauto_composition_function as
18383 a Lisp variable.
18384
18385 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18386
18387 * xdisp.c (it_props): Add an entry for Qauto_composed.
18388 (handle_auto_composed_prop): New function.
18389
18390 * xselect.c (selection_data_to_lisp_data): Don't call
18391 compose_chars_in_text.
18392
183932008-02-01 Dave Love <fx@gnu.org>
18394
18395 * keyboard.c (read_char): Modify checking around use of
18396 Vkeyboard_translate_table.
18397
18398 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18399 and fix C types.
18400
184012008-02-01 Kenichi Handa <handa@m17n.org>
18402
18403 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18404 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18405 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18406 the case that the last byte is '\r' correctly.
18407 (decode_coding): Flush out the unprocessed data correctly.
18408 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18409
184102008-02-01 Dave Love <fx@gnu.org>
18411
18412 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18413 Add XK_ISO... case.
18414 (xaw_scroll_callback): Revert last change.
18415
184162008-02-01 Kenichi Handa <handa@m17n.org>
18417
18418 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18419
184202008-02-01 Kenichi Handa <handa@m17n.org>
18421
18422 * xfaces.c (Vface_resizing_fonts): New variable.
18423 (struct font_name): New member `resizing_ratio'.
18424 (font_resizing_ratio): New function.
18425 (split_font_name): Set font->resizing_ratio.
18426 (better_font_p): Pay attention to font->resizing_ratio.
18427 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18428 RESX, and RESY fields.
18429 (try_alternative_families): Try scalable fonts if
18430 Vscalable_fonts_allowed is not Qt.
18431 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18432
184332008-02-01 Dave Love <fx@gnu.org>
18434
18435 * xterm.c (xaw_scroll_callback): Cast correctly.
18436
184372008-02-01 Dave Love <fx@gnu.org>
18438
18439 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18440 (lispy_kana_keys): Comment out.
18441 (make_lispy_event) [XK_kana_A]: Comment out.
18442
18443 * xterm.c (xaw_scroll_callback): Cast call_data.
18444 (XTread_socket): Deal with ASCII keysyms.
18445 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18446
184472008-02-01 Dave Love <fx@gnu.org>
18448
18449 * xterm.c (Vx_keysym_table): New.
18450 (syms_of_xterm): Initialize it.
18451 (XTread_socket): Use it.
18452 From head: Eliminate incorrect optimization that tried to avoid
18453 decoding the output of X*LookupString.
18454 (x_get_font_repertory): Delete charset declaration.
18455
184562008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18459 return 0.
18460 (Fdefine_coding_system_internal): Setup
18461 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18462
184632008-02-01 Dave Love <fx@gnu.org>
18464
18465 * coding.c (Fcheck_coding_system): Doc fix.
18466
18467 * editfns.c (Finsert_byte): Return a proper value.
18468
184692008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * coding.c (decode_coding): Fix args to translate_chars. Pay
18472 attention to Vstandard_translation_table_for_decode.
18473 (encode_coding): Fix args to translate_chars. Pay attention to
18474 Vstandard_translation_table_for_encode.
18475
18476 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18477 SINGLE_BYTE_CHAR_P.
18478
18479 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18480 not by SINGLE_BYTE_CHAR_P.
18481
18482 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18483 SINGLE_BYTE_CHAR_P.
18484
18485 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18486 SINGLE_BYTE_CHAR_P.
18487
18488 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18489 by SINGLE_BYTE_CHAR_P.
18490
18491 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18492 SINGLE_BYTE_CHAR_P.
18493
184942008-02-01 Dave Love <fx@gnu.org>
18495
18496 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18497
184982008-02-01 Dave Love <fx@gnu.org>
18499
18500 * fns.c (Flanginfo): Fix typo.
18501
18502 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18503
185042008-02-01 Kenichi Handa <handa@m17n.org>
18505
18506 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18507 (detect_coding_emacs_mule, detect_coding_iso_2022)
18508 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18509 incomplete byte sequence. Don't update *mask when correctly detected.
18510 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18511 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18512 (detect_coding, detect_coding_system): Adjust for the changes above.
18513
185142008-02-01 Kenichi Handa <handa@m17n.org>
18515
18516 * character.c (char_string): Rename from
18517 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18518 (string_char): Rename from string_char.
18519
18520 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18521 if C is greater than MAX_3_BYTE_CHAR.
18522 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18523 string_char instead of string_char_with_unification.
18524
185252008-02-01 Dave Love <fx@gnu.org>
18526
18527 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18528
185292008-02-01 Kenichi Handa <handa@m17n.org>
18530
18531 * keymap.c (push_key_description): Pay attention to force_multibyte.
18532
18533 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18534
185352008-02-01 Dave Love <fx@gnu.org>
18536
18537 * charset.c (define_charset_internal): Rename `supprementary'.
18538
18539 * Makefile.in (lisp, shortlisp): Remove latin-N.
18540
185412008-02-01 Dave Love <fx@gnu.org>
18542
18543 * xfns.c (x_window, x_window): Use use_xim.
18544
18545 * xterm.c (use_xim): Initialize.
18546 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18547 (x_term_init): Maybe set use_xim.
18548
18549 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18550
185512008-02-01 Kenichi Handa <handa@m17n.org>
18552
18553 * search.c (search_buffer): Fix case-fold-search of multibyte
18554 characters.
18555 (boyer_moore): Rename the last argument to char_high_bits.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * xdisp.c (display_string): Fix for the case of zero width glyph.
18560
18561 * xfns.c (x_set_font): Change the error message of the case that
18562 x_new_fontset returns Qt.
18563
18564 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18565 (Finternal_set_lisp_face_attribute): Use signal_error for the
18566 error of invalid fontset.
18567
18568 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18569 fontset, return Qt.
18570
185712008-02-01 Dave Love <fx@gnu.org>
18572
18573 * unexelf.c (unexec): Make .got handling not SGI-specific.
18574
18575 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18576
18577 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18578
18579 * keyboard.c (read_key_sequence): Fix type error.
18580
18581 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18582 type error.
18583
18584 * fontset.c (fontset_add): Return Lisp_Object.
18585
185862008-02-01 Dave Love <fx@gnu.org>
18587
18588 * charset.h (charset_ordered_list_tick): Declare extern.
18589
185902008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 The following changes (and some of 2008-02-01 changes of mine) are
18593 for handling syntax, category, and case conversion for unibyte
18594 characters by converting them to multibyte on the fly. With these
18595 changes, we don't have to setup syntax and case tables for unibyte
18596 characters in each language environment.
18597
18598 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18599 multibyte if necessary.
18600
18601 * bytecode.c (Fbyte_code): Likewise.
18602
18603 * character.h (LEADING_CODE_LATIN_1_MIN)
18604 (LEADING_CODE_LATIN_1_MAX): New macros.
18605 (unibyte_to_multibyte_table): Extern it.
18606 (unibyte_char_to_multibyte): New macro.
18607 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18608 (CHAR_LEADING_CODE): New macro.
18609 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18610
18611 * character.c (unibyte_to_multibyte_table): New variable.
18612 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18613 (multibyte_char_to_unibyte): If C is an eight-bit character,
18614 convert it to the corresponding byte value.
18615
18616 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18617 not 1, signals an error. Update the elements of
18618 unibyte_to_multibyte_table.
18619 (init_charset_once): Initialize unibyte_to_multibyte_table.
18620 (syms_of_charset): Define the charset `iso-8859-1'.
18621
18622 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18623 as is without converting it to unibyte. In a unibyte buffer,
18624 convert C to multibyte before checking the syntax.
18625
18626 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18627
18628 * minibuf.c (Fminibuffer_complete_word): Use the macro
18629 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18630
18631 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18632
18633 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18634 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18635 that is zero, convert an eight-bit char to multibyte.
18636 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18637 non-emacs case.
18638 (PATFETCH): Convert an eight-bit char to multibyte.
18639 (HANDLE_UNIBYTE_RANGE): New macro.
18640 (regex_compile): Setup the compiled pattern for multibyte chars
18641 even if the given regex string is unibyte. Use PATFETCH_RAW
18642 instead of PATFETCH in many places. To handle `charset'
18643 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18644 only for ASCII chars.
18645 (analyse_first) <exactn>: Simplify because the compiled pattern
18646 is multibyte.
18647 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18648 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18649 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18650 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18651 multibyte always 1.
18652 (re_search_2): In emacs, set the locale variable multibyte to 1,
18653 otherwise to 0. New local variable target_multibyte. Check it
18654 to decide the multibyteness of STR1 and STR2. If
18655 target_multibyte is zero, convert unibyte chars to multibyte
18656 before translating and checking fastmap.
18657 (TARGET_CHAR_AND_LENGTH): New macro.
18658 (re_match_2_internal): In emacs, set the locale variable multibyte
18659 to 1, otherwise to 0. New local variable target_multibyte. Check
18660 it to decide the multibyteness of STR1 and STR2. Use
18661 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18662 <charset, charset_not>: If multibyte is nonzero, check fastmap
18663 only for ASCII chars. Call bcmp_translate with
18664 target_multibyte, not with multibyte.
18665 <begline>: Declare the local variable C as `unsigned'.
18666 (bcmp_translate): Change the last arg name to target_multibyte.
18667
18668 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18669 the regexp pattern and the matching target. Set cp->buf.multibyte
18670 to the multibyteness of the regexp pattern. Set
18671 cp->but.target_multibyte to the multibyteness of the matching target.
18672 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18673 FETCH_STRING_CHAR_ADVANCE.
18674 (Freplace_match): Convert unibyte chars to multibyte.
18675
18676 * syntax.c (char_quoted, back_comment, scan_words)
18677 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18678 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18679 unibyte chars to multibyte.
18680 (skip_chars): Delete the arg syntaxp, and move the code for
18681 handling syntaxes to skip_syntaxes. Change callers.
18682 Fix the case that the multibyteness of STRING and the current
18683 buffer doesn't match.
18684 (skip_syntaxes): New function.
18685 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18686 SINGLE_BYTE_CHAR_P.
18687
186882008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * xfaces.c (QCfontset): New variable.
18691 (LFACE_FONTSET): New macro.
18692 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18693 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18694 (Finternal_set_lisp_face_attribute)
18695 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18696 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18697 check also LFACE_FONTSET_INDEX.
18698 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18699 attrs[LFACE_FONT_INDEX].
18700 (syms_of_xfaces): Intern and staticpro QCfontset.
18701
18702 * dispextern.h (enum lface_attribute_index): New member
18703 LFACE_FONTSET_INDEX.
18704
18705 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18706
187072008-02-01 Kenichi Handa <handa@m17n.org>
18708
18709 * coding.c (coding_set_destination): Fix coding->destination for
18710 the case converting a region.
18711 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18712 (encode_coding_object): Fix coding->dst_pos and
18713 coding->dst_pos_byte for the case converting a region.
18714
18715 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18716
18717 * character.h (BYTE8_STRING): New macro.
18718
18719 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18724 characters by octal form.
18725
18726 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18727
18728 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18729 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18730 _fetch_multibyte_char_len.
18731 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18732
18733 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18734
18735 * casefiddle.c (casify_object): Simplify. Handle the case that
18736 the case conversion change the byte length.
18737 (casify_region): Likewise.
18738
18739 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18740
18741 * character.c (_fetch_multibyte_char_len): Delete this variable.
18742 (syms_of_character): Setup Vprintable_chars.
18743
18744 * editfns.c (Fchar_equal): Fix for the unibyte case.
18745 (Finsert_byte): New function.
18746 (syms_of_editfns): Defsubr it.
18747
18748 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18749 of direct code 0x3ffff.
18750
18751 * search.c (Freplace_match): Fix for the unibyte case.
18752
187532008-02-01 Kenichi Handa <handa@m17n.org>
18754
18755 * lread.c (safe_to_load_p): Fix the logic.
18756
18757 * syntax.c (scan_words): Don't treat characters belonging to
18758 different scripts as constituting a word.
18759
18760 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18761
18762 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18763
18764 * emacs.c (main): In the case of --unibyte, instead of aborting on
18765 finding non-empty buffer, make it unibyte.
18766
187672008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18770 to create a fontset.
18771
187722008-02-01 Dave Love <fx@gnu.org>
18773
18774 * character.c (Funibyte_char_to_multibyte): Doc fix.
18775
18776 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18777
187782008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * fontset.c (fontset_add): Make the type `int'.
18781 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18782
18783 * character.c (unibyte_char_to_multibyte)
18784 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18785 charset_unibyte, not charset_primary.
18786
18787 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18788
18789 * charset.c (charset_unibyte): Rename from charset_primary.
18790 (Funibyte_charset): Rename from Fprimary_charset.
18791 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18792 (syms_of_charset): Adjust for the above changes.
18793
18794 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18795 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18796 it->multibyte_p is zero.
18797
18798 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18799 Delete extern.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * coding.c (Fdefine_coding_system_internal): Fix category setting
18804 for a coding system of type iso-2022.
18805
188062008-02-01 Kenichi Handa <handa@m17n.org>
18807
18808 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18809
188102008-02-01 Kenichi Handa <handa@m17n.org>
18811
18812 * syntax.c (Vnext_word_boundary_function_table): New variable.
18813 (next-word-boundary-function-table): Declare it as a Lisp variable
18814 in syms_of_syntax.
18815 (scan_words): Call functions in Vnext_word_boundary_function_table
18816 if any.
18817
18818 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18819
18820 * fontset.c (fs_load_font): If fontp->charset is not negative,
18821 return fontp without setting its members.
18822
188232008-02-01 Dave Love <fx@gnu.org>
18824
18825 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18826
18827 * m/sparc.h (HAVE_ALLOCA): Delete.
18828
18829 * s/irix6-5.h: Don't include strings.h.
18830 (bcopy, bzero, bcmp): Don't undef.
18831
18832 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18833
18834 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18835 (TIOCSIGSEND): Don't test IRIX6.
18836 (bcopy, bzero, bcmp): Define conditionally.
18837
188382008-02-01 Kenichi Handa <handa@m17n.org>
18839
18840 * buffer.c (Qas, Qmake, Qto): New variables.
18841 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18842 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18843
18844 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18845 we are inserting a process output into a multibyte buffer.
18846
18847 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18848 multibyte_char_to_unibyte.
18849
18850 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18851 by the primary charset, make it eight-bit char.
18852 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18853
18854 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18855 (charset_8_bit__control, charset_8_bit_graphic)
18856 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18857 (define_charset_internal): New function.
18858 (syms_of_charset): Call define_charset_internal for pre-defined
18859 charsets.
18860
18861 * charset.h (charset_8_bit): Extern it.
18862
18863 * coding.c (make_conversion_work_buffer): Adjust for the change
18864 of Fset_buffer_multibyte.
18865 (encode_coding_raw_text): Increment p0 in the loop.
18866
18867 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18868
18869 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18870 for the change of Fset_buffer_multibyte.
18871
18872 * fns.c (Fstring_to_multibyte): New function.
18873 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18874
188752008-02-01 Dave Love <fx@gnu.org>
18876
18877 * xfns.c (x_put_x_image): Declare args.
18878
18879 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18880 (try_font_list): Declare an arg.
18881
18882 * xdisp.c (message2_nolog, set_message): Declare an arg.
18883
18884 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18885
18886 * syntax.c (scan_sexps_forward): Declare an arg.
18887
18888 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18889 Declare an arg.
18890
18891 * lisp.h (Fnew_fontset): Declare.
18892
18893 * keymap.c (push_key_description): Call CHARACTERP correctly.
18894
18895 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18896 (face_for_char): Delete unused vars.
18897 (Fset_fontset_font): Doc fix. Delete unused vars.
18898
18899 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18900
18901 * composite.c (update_compositions): Declare arg.
18902
18903 * cm.c (calccost, cmgoto): Declare args.
18904
18905 * charset.c: Remove `emacs' conditional. Doc fixes.
18906 (map_char_table_for_charset): Declare.
18907
18908 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18909
18910 * ccl.c: Remove `emacs' conditional.
18911
189122008-02-01 Kenichi Handa <handa@m17n.org>
18913
18914 The following changes are to allow specifying multiple font
18915 patterns for a character range (specified by script or charset).
18916
18917 * Makefile.in (abbrev.o): Depend on syntax.h.
18918 (xfaces.o): Depend on charset.h.
18919
18920 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18921 SINGLE_BYTE_CHAR_P.
18922
18923 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18924
18925 * character.h (Vchar_script_table): Extern it.
18926
18927 * character.c (Vscript_alist): Delete.
18928 (Vchar_script_table, Qchar_script_table): New variable.
18929 (syms_of_character): Declare Vchar_script_table as a lisp variable
18930 and initialize it.
18931
18932 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18933 have property char-table-extra-slots, make no extra slot.
18934
18935 * dispextern.h (struct face): Delete member `charset'.
18936 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18937 SINGLE_BYTE_CHAR_P.
18938 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18939 Add prototypes.
18940 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18941 (generate_ascii_font_name): Rename from generate_ascii_font.
18942
18943 * fontset.h (get_font_repertory_func): New prototype.
18944 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18945 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18946
18947 * fontset.c (Qprepend, Qappend): New variables.
18948 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18949 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18950 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18951 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18952 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18953 (load_font_get_repertory): New functions.
18954 (fontset_set): Delete.
18955 (fontset_face): New arg FACE. Return face ID, not face.
18956 Complete re-write to handle new fontset structure. Change caller.
18957 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18958 (face_for_char): Don't call lookup_face.
18959 (make_fontset_for_ascii_face): New arg FACE.
18960 (fs_load_font): New arg CHARSET_ID. Don't check
18961 Vfont_encoding_alist here.
18962 (find_font_encoding): New function.
18963 (list_fontsets): Use STRINGP, not ! NILP.
18964 (accumulate_script_ranges): New function.
18965 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18966 re-written to handle new fontset structure.
18967 (Ffontset_font): Return a copy of element.
18968 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18969 docstring of font-encoding-alist.
18970
18971 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18972 (Fset_fotset_font): Fix arguments to 5.
18973
18974 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18975
18976 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18977 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18978 (highlight_trailing_whitespace): Adjust for the change of
18979 lookup_named_face.
18980
18981 * xfaces.c: Include charset.h.
18982 (load_face_font): Delete argument C. Change caller.
18983 (generate_ascii_font_name): Rename from generate_ascii_font.
18984 (font_name_registry): New function.
18985 (cache_face): Store ascii faces before non-ascii faces in buckets.
18986 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18987 Lookup only ascii faces.
18988 (lookup_non_ascii_face): New function.
18989 (lookup_named_face): Delete argument C. Change caller.
18990 (lookup_derived_face): Delete argument C. Change caller.
18991 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18992 a string, just call font_list with it.
18993 (choose_face_font): Delete arguments FACE and C. New arg
18994 FONT_SPEC. Change caller.
18995 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18996 Change caller.
18997 (realize_non_ascii_face): New function.
18998 (realize_x_face): Call load_face_font here.
18999 (realize_tty_face): Delete argument C. Change caller.
19000 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19001 get a face ID.
19002 (dump_realized_face): Don't print charset of FACE.
19003
19004 * xfns.c (x_set_font): Always call x_new_fontset and
19005 store_frame_parameter.
19006 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19007 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19008
19009 * xterm.h (x_get_font_repertory): Extern it.
19010
19011 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19012 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19013 it->multibyte_p is zero.
19014 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19015 (x_new_fontset): If FONTSETNAME doesn't match any existing
19016 fontsets, create a new one.
19017 (x_get_font_repertory): New function.
19018
190192008-02-01 Kenichi Handa <handa@m17n.org>
19020
19021 * coding.c (Ffind_coding_systems_region_internal): Detect an
19022 ASCII only string correctly.
19023
19024 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19025 version is 0.
19026
190272008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * lread.c: Include "coding.h".
19030 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19031 (load_each_byte, unread_char): New variables.
19032 (readchar_backlog): Delete.
19033 (readchar): Return a character unless load_each_byte is nonzero.
19034 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19035 cons. If unread_char is not -1, simply return it.
19036 (unreadchar): Handle the case that readcharfun is
19037 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19038 (read_multibyte): Delete.
19039 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19040 (read_emacs_mule_char): New functions.
19041 (Fload): Even if the file doesn't have the extension ".elc", if
19042 safe_to_load_p returns a positive version number, assume that the
19043 file contains bytecompiled code. If the version is less than 22,
19044 load the file while decoding multibyte sequences by emacs-mule.
19045 (readevalloop): Don't use readchar_backlog.
19046 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19047 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19048 (read_escape): Delete the arg BYTEREP.
19049 (read1): Set load_each_byte to 1 temporarily while handling
19050 #@NUMBER. Don't call read_multibyte.
19051 (read_vector): Call Fread with a cons. If readcharfun is
19052 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19053 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19054 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19055 and Qload_force_doc_strings.
19056
190572008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * xdisp.c (face_before_or_after_it_pos): Call
19060 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * character.h (TRAILING_CODE_P): New macro.
19065 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19066 (string_char_with_unification): Fix prototype.
19067 (Vscript_alist): Extern it.
19068
19069 * character.c (Vscript_alist): New variable.
19070 (string_char_with_unification, str_as_unibyte)
19071 (string_escape_byte8): Add `const' to local variables.
19072 (syms_of_character): Declare script-alist as a Lisp variable.
19073
19074 * charset.h (Vcharset_ordered_list): Extern it.
19075 (charset_ordered_list_tick): Extern it.
19076 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19077 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19078 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19079 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19080 (Funify_charset): Adjust for the change of Funify_charset.
19081
19082 * charset.c (charset_ordered_list_tick): New variable.
19083 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19084 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19085 deunify intead of unify a charset.
19086 (string_xstring_p): Add `const' to local variables.
19087 (find_charsets_in_text): Add `const' to arguments and local variables.
19088 (encode_char): Adjust for the change of Funify_charset. Fix
19089 detecting of invalid code.
19090 (Fset_charset_priority): Increment charset_ordered_list_tick.
19091 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19092 and TO_CODE.
19093
19094 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19095 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19096 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19097 (decode_coding_ccl, consume_chars)
19098 (Ffind_coding_systems_region_internal)
19099 (Fcheck_coding_systems_region): Add `const' to local variables.
19100
19101 * print.c (print_object): Use octal form for printing the
19102 contents of a bool vector.
19103
191042008-02-01 Dave Love <fx@gnu.org>
19105
19106 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19107 <version == 20>: Refuse to load.
19108
191092008-02-01 Dave Love <fx@gnu.org>
19110
19111 * fns.c: Move coding.h.
19112 (Qcodeset, Qdays, Qmonths): New.
19113 (concat): Use CHARACTERP instead of INTEGERP.
19114 (Flocale_codeset): Delete.
19115 (Flanginfo): New function.
19116 (syms_of_fns): Change accordingly.
19117
19118 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19119
191202008-02-01 Dave Love <fx@gnu.org>
19121
19122 * casetab.c (init_casetab_once, init_casetab_once): Fix
19123 CHAR_TABLE_SET call.
19124
19125 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19126
19127 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19128
19129 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19130 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19131 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19132
19133 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19134
19135 * coding.c (ENCODE_DESIGNATION, decode_eol)
19136 (make_conversion_work_buffer, code_conversion_restore)
19137 (Fdefine_coding_system_internal): Convert Lisp types.
19138 (code_conversion_restore): Use EQ, not ==.
19139 (Fencode_coding_string): Fix code_convert_string call.
19140
19141 * coding.h (code_convert_region): Fix prototype.
19142
19143 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19144
19145 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19146 (Ffontset_info): Convert Lisp types.
19147
19148 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19149
19150 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19151
19152 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19153
19154 * chartab.c: Include "...h", not <...h> in some cases.
19155
19156 * callproc.c (Fcall_process): Remove unused variables.
19157
191582008-02-01 Dave Love <fx@gnu.org>
19159
19160 * coding.c (Fset_coding_system_priority): Allow null arg list.
19161
191622008-02-01 Dave Love <fx@gnu.org>
19163
19164 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19165 (Fself_insert_and_exit): Use CHARACTERP.
19166
19167 * callproc.c (Fcall_process): Remove unused vars.
19168
19169 * xterm.c (XTread_socket): Add extra dead keysyms.
19170
19171 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19172
19173 * dispextern.h: Remove prototypes for redraw_frame,
19174 redraw_garbaged_frames.
19175
19176 * cmds.c (Fself_insert_command): Use CHARACTERP.
19177
19178 * chartab.c (make_sub_char_table): Remove unused var.
19179 (Fset_char_table_default, Fmap_char_table): Doc fix.
19180
19181 * keymap.c (access_keymap): Remove generic char code.
19182 (push_key_description): Use CHARACTERP.
19183
191842008-02-01 Dave Love <fx@gnu.org>
19185
19186 * charset.c: Doc fixes.
19187 (Funify_charset): Extra checking.
19188
191892008-02-01 Dave Love <fx@gnu.org>
19190
19191 * lread.c: Remove some unused variables.
19192 (safe_to_load_p): If safe, return the magic number version byte.
19193 (Fload): Maybe use load-with-code-conversion.
19194
191952008-02-01 Kenichi Handa <handa@m17n.org>
19196
19197 * category.c (Fmodify_category_entry): Don't modify the contents
19198 of category_set for characters out of the range. Avoid
19199 unnecessary modification.
19200
19201 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19202 Vchar_unify_table. The default value of the table is now nil.
19203
19204 * character.c (syms_of_character): Setup Vchar_width_table for
19205 eight-bit-control and raw-byte chars.
19206
19207 * charset.h (enum define_charset_arg_index): Delete
19208 charset_arg_parents and add charset_arg_subset and
19209 charset_arg_superset.
19210 (enum charset_attr_index): Delete charset_parents and add
19211 charset_subset and charset_superset.
19212 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19213 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19214 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19215 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19216 (CHARSET_SUPERSET): New macros.
19217 (charset_work): Extern it.
19218 (ENCODE_CHAR): Use charset_work.
19219 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19220 (map_charset_chars): Extern it.
19221
19222 * charset.c (load_charset_map): Set the default value of encoder
19223 and deunifier char-tables to nil.
19224 (map_charset_chars): Change argument. Change callers. Use
19225 map_char_table_for_charset instead of map_char_table.
19226 (Fmap_charset_chars): New optional args from_code and to_code.
19227 (Fdefine_charset_internal): Adjust for the change of
19228 `define-charset' (:parents -> :subset or :superset).
19229 (charset_work): New variable.
19230 (encode_char, syms_of_charset): Adjust for the change of
19231 Fdefine_charset_internal.
19232 (Ffind_charset_string): Setup the vector `charsets' correctly.
19233
19234 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19235 the previous change.
19236 (char_table_ref_and_range): Adjust for the above change.
19237 (map_sub_char_table_for_charset): New function.
19238 (map_char_table_for_charset): New function.
19239
19240 * keymap.c (describe_vector): Handle a char-table directly here.
19241 (describe_char_table): Delete.
19242
19243 * lisp.h (map_charset_chars): Delete.
19244
192452008-02-01 Dave Love <fx@gnu.org>
19246
19247 * fns.c (count_combining): Comment out (unused).
19248 (Flocale_codeset): New.
19249 (syms_of_fns): Defsubr it.
19250
19251 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19252 (size_t): Remove.
19253
192542008-02-01 Dave Love <fx@gnu.org>
19255
19256 * Makefile.in (chartab.o): Depend on charset.h.
19257
192582008-02-01 Kenichi Handa <handa@m17n.org>
19259
19260 * character.c (syms_of_character): Set the default value of
19261 Vprintable_chars to Qnil.
19262
192632008-02-01 Dave Love <fx@gnu.org>
19264
19265 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19266
192672008-02-01 Kenichi Handa <handa@m17n.org>
19268
19269 * charset.c (load_charset_map): Handle the case that from < to
19270 correctly.
19271
19272 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19273 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19274 Pay attention to raw-8-bit chars.
19275
192762008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19279 It is not bytecompiled now.
19280
19281 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19282 (charset_jisx0208): New variables.
19283 (Fdefine_charset_internal): Setup them if appropriate.
19284 (init_charset_once): Initialize them to -1.
19285
19286 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19287 (charset_jisx0208): Extern them.
19288
19289 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19290 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19291 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19292 (setup_iso_safe_charsets): Fix arguments to Fassq.
19293 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19294 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19295 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19296 (encode_coding_iso_2022): Change the 1st arg to
19297 ENCODE_ISO_CHARACTER to a variable.
19298
192992008-02-01 Kenichi Handa <handa@m17n.org>
19300
19301 * charset.h (enum define_charset_arg_index): New enums
19302 charset_arg_min_code and charset_arg_max_code.
19303 (struct charset): New member char_index_offset.
19304
19305 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19306 Take charset->char_index_offset into account.
19307 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19308 args[charset_arg_max_code]. Setup charset.char_index_offset.
19309 (syms_of_charset): Fix args to Fdefine_charset_internal.
19310
193112008-02-01 Dave Love <fx@gnu.org>
19312
19313 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19314
193152008-02-01 Dave Love <fx@gnu.org>
19316
19317 * coding.c: Doc fixes.
19318 (Fcoding_system_aliases): Fix return value.
19319 (Qmac): Remove (duplicated) definition.
19320
193212008-02-01 Dave Love <fx@gnu.org>
19322
362654a6
JB
19323 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19324 New functions.
aac0c6e3
MR
19325
19326 * character.c (Fstring): Doc fix.
19327
19328 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19329
362654a6 19330 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19331 (font-encoding-alist): Doc fix.
19332
193332008-02-01 Dave Love <fx@gnu.org>
19334
19335 * term.c (costs_set): Declare static, non-initialized for pcc.
19336 (encode_terminal_code): Remove unused var.
19337
19338 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19339 for K&R.
19340
19341 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19342
19343 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19344 (suffixes): Move out of make_subsidiaries for K&R.
19345
19346 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19347
19348 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19349
193502008-02-01 Dave Love <fx@gnu.org>
19351
19352 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19353
19354 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19355
193562008-02-01 Yong Lu <lyongu@asia-infonet.com>
19357
19358 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19359
19360 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19361
193622008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19365 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19366
193672008-02-01 Kenichi Handa <handa@m17n.org>
19368
19369 * coding.c (decode_coding_charset): Adjust for the change of
19370 Fdefine_coding_system_internal.
19371 (Fdefine_coding_system_internal): For a coding system of
19372 `charset' type, store a list of charset IDs in
19373 `charset_attr_charset_valids' element of coding attributes.
19374
193752008-02-01 Kenichi Handa <handa@m17n.org>
19376
19377 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19378 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19379 caller. Handle 2-byte and 3-byte charsets correctly.
19380 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19381 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19382 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19383 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19384 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19385 sequence.
19386 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19387 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19388 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19389 and alt&rule composition.
19390 (decode_coding_iso_2022): Handle composition correctly.
19391 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19392
19393 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19394 re-defining a charset. If the charset has :emacs-mule-id, setup
19395 emacs_mule_bytes.
19396 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19397
193982008-02-01 Kenichi Handa <handa@m17n.org>
19399
19400 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19401 (encode_coding_big5, encode_coding_charset): If coding requires safe
19402 encoding, produce a character specified by
19403 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19404
194052008-02-01 Dave Love <fx@gnu.org>
19406
19407 * xterm.c (XSetIMValues): Declare.
19408
19409 * process.c: Conditionally include sys/wait.h, pty.h.
19410
19411 * print.c (print_object): Fix print format for 64-bit systems.
19412
19413 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19414
19415 * buffer.c (emacs_strerror): Declare.
19416
19417 * fontset.c (Fclear_face_cache): Declare.
19418 (accumulate_font_info): Comment-out (unused).
19419 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19420 variables.
19421
19422 * character.h (string_escape_byte8): Declare.
19423
19424 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19425 unused vars.
19426 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19427 (Fmap_charset_chars): Doc fix.
19428
19429 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19430 (Fset_coding_system_priority, Fset_coding_system_priority)
19431 (Fdefine_coding_system_internal): Doc fix.
19432
194332008-02-01 Dave Love <fx@gnu.org>
19434
19435 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19436
194372008-02-01 Kenichi Handa <handa@m17n.org>
19438
19439 * character.c (string_escape_byte8): Make multibyte string with
19440 correct size.
19441
19442 * charset.c (Fmake_char): Delete unnecessary code.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * xfns.c (x_encode_text): Allocate coding.destination here, and
19447 call encode_coding_object with dst_object Qnil.
19448
19449 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19450 multibyte form correctly.
19451
19452 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19453 against Vfont_encoding_alist.
19454
19455 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19456 handling of charset list.
19457 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19458 (decode_coding_object): Move point to coding->dst_pos before
19459 calling post-read-conversion function.
19460 (encode_coding_object): Give correct arguments to
19461 pre-write-conversion. Ignore the return value of
19462 pre-write-conversion function. Pay attention to the case that
19463 pre-write-conversion changes the current buffer. If dst_object is
19464 Qt, even if coding->src_bytes is zero, allocate at least one byte
19465 to coding->destination.
19466
19467 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19468
19469 * charset.c (Fmake_char): Make it more backward compatible.
19470 (Fmap_charset_chars): Fix docstring.
19471
194722008-02-01 Dave Love <fx@gnu.org>
19473
19474 * coding.c: Doc fixes.
19475 (Fdefine_coding_system_alias): Use names, not symbols, in
19476 coding-system-alist.
19477
194782008-02-01 Kenichi Handa <handa@m17n.org>
19479
19480 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19481 of calling free_realized_face.
19482
194832008-02-01 Yong Lu <lyongu@asia-infonet.com>
19484
19485 * charset.c (read_hex): Don't treat SPC as a comment starter.
19486 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19487 (Fdecode_char): Fix typo.
19488
194892008-02-01 Kenichi Handa <handa@m17n.org>
19490
19491 * charset.h (struct charset): New member `code_space_mask'.
19492
19493 * coding.c (coding_set_source): Delete the local variable beg_byte.
19494 (encode_coding_charset, Fdefine_coding_system_internal):
19495 Delete the local variable charset.
19496 (Fdefine_coding_system_internal): Setup
19497 attrs[coding_attr_charset_valids] correctly.
19498
19499 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19500 member to check if CODE is valid or not.
19501 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19502 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19503 is within the range of charset->min_code and carset->max_code.
19504
195052008-02-01 Dave Love <fx@gnu.org>
19506
19507 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19508
19509 * dispextern.h (generate_ascii_font): Fix return type.
19510
19511 * xfaces.c (generate_ascii_font): Fix arg declaration.
19512
19513 * coding.c (coding_inherit_eol_type)
19514 (Fset_terminal_coding_system_internal)
19515 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19520 multiple charsets correctly.
19521
195222008-02-01 Kenichi Handa <handa@m17n.org>
19523
19524 * search.c (boyer_moore): Fix handling of multibyte character
19525 translation.
19526
19527 * xdisp.c (display_mode_element): When the variable `elt' is
19528 changed, update `this' and `lisp_string'.
19529
195302008-02-01 Kenichi Handa <handa@m17n.org>
19531
19532 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19533
19534 * callproc.c (Fcall_process): Be sure to give the current buffer
19535 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19536
19537 * charset.c (struct charset_map_entries): New struct.
19538 (load_charset_map): Rename from parse_charset_map. New args
19539 entries and n_entries. Change caller.
19540 (load_charset_map_from_file): Rename from load_charset_map.
19541 Change caller. New arg control_flag. Call load_charset_map at
19542 the tail.
19543 (load_charset_map_from_vector): New function.
19544 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19545 (encode_char): If the charset is compact, change a character index
19546 to a code point.
19547
19548 * coding.c (coding_alloc_by_making_gap): Check the case that the
19549 source and destination are the same correctly.
19550 (decode_coding_raw_text): Set coding->consumed_char and
19551 coding->consumed to 0.
19552 (produce_chars): If coding->chars_at_source is nonzero, update
19553 coding->consumed_char and coding->consumed before calling
19554 alloc_destination.
19555 (Fdefine_coding_system_alias): Register ALIAS in
19556 Vcoding_system_alist.
19557 (syms_of_coding): Define `no-conversion' coding system at the tail.
19558
19559 * fileio.c (Finsert_file_contents): Set coding_system instead of
19560 val. If the current buffer is multibyte, always call
19561 decode_coding_gap.
19562
19563 * xfaces.c (try_font_list): Give higher priority to fontset's
19564 family than face's family.
19565
195662008-02-01 Kenichi Handa <handa@m17n.org>
19567
19568 * callproc.c (Fcall_process): Be sure to give the current buffer
19569 to decode_coding_c_string.
19570
19571 * xfaces.c (try_font_list): Give a family specified in a fontset
19572 higher priority than a family specified in a face.
19573
195742008-02-01 Kenichi Handa <handa@m17n.org>
19575
19576 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19577 Fix arguments to insert_from_buffer.
19578
19579 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19580
195812008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19584 (decode_coding_gap): Set coding->dst_multibyte correctly.
19585
195862008-02-01 Kenichi Handa <handa@m17n.org>
19587
19588 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19589 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19590 (encode_coding_utf_16): Substitute coding->default_char for
19591 non-Unicode characters.
19592 (decode_coding): Don't call record_insert here.
19593 (setup_coding_system): Initialize `surrogate' of
19594 coding->spec.utf_16 to 0.
19595 (EMIT_ONE_BYTE): Fix for multibyte case.
19596
19597 * insdel.c (insert_from_gap): Call record_insert.
19598
195992008-02-01 Kenichi Handa <handa@m17n.org>
19600
19601 * casefiddle.c (casify_region): Fix multibyte case.
19602
19603 * character.c (c_string_width): Add return type `int'.
19604 (char_string_with_unification): Delete arg ADVANCED.
19605
19606 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19607 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19608 (CHAR_STRING_ADVANCE): Make it do-while statement.
19609
19610 * chartab.c (sub_char_table_set_range): Optimize for the case
19611 DEPTH == 3. Add workaround code for a GCC optimization bug.
19612
19613 * charset.c (parse_charset_map): Remove an unused variable.
19614
19615 * coding.c: Delete unused variables.
19616
19617 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19618 earlier. If inserted is zero and the coding system doesn't
19619 require flushing, don't call decode_coding_gap.
19620
19621 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 The following changes are for using Unicode as an internal
19626 character model, and use UTF-8 format for buffer/string
19627 representation.
19628
19629 * .gdbinit (xchartable): Adjust for the change of char table structure.
19630 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19631
19632 * Makefile.in (obj): Add character.o and chartab.o.
19633 (lisp, shortlisp): Remove utf-8.elc.
19634 (*.o): For many files, change dependency on charset.h to
19635 character.h, and add dependency on character.h.
19636 (character.o, chartab.o): New targets.
19637
19638 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19639 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19640 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19641 of "charset.h".
19642
19643 * dired.c, filelock.c: Include "character.h".
19644
19645 * alloc.c: Include "character.h" instead of "charset.h".
19646 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19647 (syms_of_alloc): Remove defsubr for Smake_char_table.
19648
19649 * buffer.c: Include "character.h" instead of "charset.h", don't
19650 include "coding.h".
19651 (Fset_buffer_multibyte): Adjust for UTF-8.
19652
19653 * buffer.h: EXFUN Fbuffer_live_p.
19654
19655 * callproc.c: Include "character.h" instead of "charset.h".
19656 (Fcall_process): Big change for the new code-conversion APIs.
19657
19658 * casetab.c: Include "character.h" instead of "charset.h".
19659 (set_canon, set_identity, shuffle): Adjust for the new
19660 map_char_table spec.
19661 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19662 accessing the char table structure.
19663
19664 * chartab.c: New file that implements char table.
19665
19666 * category.c: Include "character.h".
19667 (copy_category_entry): New function.
19668 (copy_category_table): Call map_char_table and copy_category_entry.
19669 (Fmake_category_table): Initialize all top-level slots.
19670 (char_category_set): New function.
19671 (modify_lower_category_set): Delete.
19672 (Fmodify_category_entry): Call char_table_ref_and_range.
19673
19674 * category.h (CATEGORY_SET): Just call char_category_set.
19675
19676 * ccl.c: Include "character.h".
19677 (Qccl, Qcclp): New variables.
19678 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19679 it's less than 256.
19680 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19681 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19682 and DST type.
19683 (ccl_driver): Change types of argument, adjust code accordingly.
19684 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19685 ccl_driver.
19686 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19687
19688 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19689 New members src_multibyte, dst_multibyte, consumed, and produced.
19690 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19691 (CODING_SPEC_CCL_PROGRAM): New macro.
19692 (ccl_driver): Update prototype.
19693 (Qccl, Qcclp, Fccl_program_p): Extern them.
19694 (CHECK_CCL_PROGRAM): New macro.
19695
19696 * character.c, character.h, chartab.c: New files.
19697
19698 * charset.c: Mostly re-written. Move character and multibyte sequence
19699 handling codes to character.c.
19700
19701 * charset.h: Mostly re-written. Move character and multibyte sequence
19702 handling codes to character.h.
19703
19704 * coding.c, coding.h: Mostly re-written.
19705
19706 * composite.c: Include "character.h" instead of "charset.h".
19707 (CHAR_WIDTH): Move to character.h.
19708 (HASH_KEY, HASH_VALUE): Delete.
19709
19710 * composite.h (enum composition_method): Change order of enumeration
19711 symbols.
19712
19713 * data.c: Include "character.h" instead of "charset.h".
19714 (Faref): Call CHAR_TABLE_REF for a char table.
19715 (Faset): Call CHAR_TABLE_SET for a char table.
19716
19717 * dispextern.h (free_realized_face, check_face_attribytes)
19718 (generate_ascii_font): Extern them.
19719 (free_realized_multibyte_face): Delete extern.
19720
19721 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19722 table structure.
19723
19724 * editfns.c: Include "character.h" instead of "charset.h".
19725 (Fchar_to_string): Always call CHAR_STRING.
19726
19727 * emacs.c (main): Call init_charset_once, init_charset,
19728 syms_of_chartab, and syms_of_character.
19729
19730 * fileio.c: Include "character.h" instead of "charset.h".
19731 (Finsert_file_contents): Big change for the new code-conversion API.
19732 (choose_write_coding_system, Fwrite_region): Likewise.
19733 (build_annotations_2): Delete.
19734 (e_write): Big change for the new code-conversion API.
19735
19736 * fns.c: Include "character.h" instead of "charset.h".
19737 (copy_sub_char_table): Move to chartab.c.
19738 (Fcopy_sequence): Call copy_char_table for a char table.
19739 (concat): Delete codes calling count_multibyte.
19740 (string_char_to_byte, string_byte_to_char): Adjust for the new
19741 multibyte form.
19742 (internal_equal): Adjust for the change of char table structure.
19743 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19744 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19745 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19746 (char_table_translate, optimize_sub_char_table)
19747 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19748 chartab.c.
19749 (char_table_ref_and_index): Delete.
19750 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19751 (Fmd5): Call preferred_coding_system instead of accessing
19752 Vcoding_category_list. Adjust for the new code-conversion API.
19753 (syms_of_fns): Move defsubr for char table related functions to
19754 chartab.c.
19755
19756 * fontset.c: Mostly re-written.
19757
19758 * fontset.h (struct font_info): Change type of the member encoding_type.
19759 (enum FONT_SPEC_INDEX): New enum.
19760 (fontset_font_pattern, fs_load_font): Update prototype.
19761 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19762
19763 * indent.c: Include "character.h" instead of "charset.h".
19764 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19765
19766 * insdel.c: Include "character.h" instead of "charset.h".
19767 (copy_text): Don't refer to Vnonascii_translation_table.
19768 (insert_from_gap): New function.
19769
19770 * keyboard.c: Include "character.h" instead of "charset.h".
19771 (command_loop_1): Never call direct_output_forward_char before
19772 a non-ASCII character.
19773 (read_char): If Vkeyboard_translate_table is a char table, always
19774 translate a character.
19775
19776 * keymap.c: Include "character.h".
19777 (store_in_keymap): Handle the case that IDX is a cons.
19778 (Fdefine_key): Handle the case that KEY is a cons and the car part
19779 is also a cons (range).
19780 (push_key_description): Adjust for the new character code.
19781 (describe_vector): Call describe_char_table for a char table.
19782 (describe_char_table): New function.
19783
19784 * keymap.h (describe_char_table): Extern it.
19785
19786 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19787 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19788 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19789 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19790 Delete.
19791 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19792 structure.
19793 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19794 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19795 (CHARTAB_SIZE_BITS_3): New macros.
19796 (chartab_size): Extern it.
19797 (struct Lisp_Char_Table): Re-design.
19798 (struct Lisp_Sub_Char_Table): New structure.
19799 (HASH_KEY, HASH_VALUE): Move from fns.c.
19800 (CHARACTERBITS): Define as 22.
19801 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19802 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19803 (GC_SUB_CHAR_TABLE_P): New macro.
19804 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19805 (code_convert_string_norecord): Deleted extern.
19806 (init_character_once, syms_of_character, init_charset)
19807 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19808
19809 * lread.c: Include "character.h".
19810 (read_multibyte): New arg NBYTES.
19811 (read_escape): Change the meaning of returned *BYTEREP.
19812 (to_multibyte): Delete.
19813 (read1): Adjust the handling of char table and string.
19814
19815 * print.c: Include "character.h" instead of "charset.h".
19816 (print_string): Convert 8-bit raw bytes to octal form by
19817 string_escape_byte8.
19818 (print_object): Adjust for the new multibyte form. Print 8-bit
19819 raw bytes always in octal form. Handle sub char table correctly.
19820
19821 * process.c: Include "character.h" instead of "charset.h".
19822 (read_process_output, send_process): Adjust for the new
19823 code-conversion API.
19824
19825 * puresize.h (BASE_PURESIZE): Increase.
19826
19827 * regex.c: Include "character.h" instead of "charset.h".
19828 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19829 (regex_compile): Accept a range whose starting and ending
19830 character have different leading bytes.
19831 (analyse_first): Adjust for the above change.
19832
19833 * search.c: Include "character.h" instead of "charset.h".
19834 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19835 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19836
19837 * syntax.c: Include "character.h" instead of "charset.h".
19838 (syntax_parent_lookup): Delete.
19839 (Fmodify_syntax_entry): Accept a cons as CHAR.
19840 (skip_chars): Adjust for the new multibyte form.
19841 (init_syntax_once): Call char_table_set_range instead of directly
19842 accessing the structure of a char table.
19843
19844 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19845 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19846 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19847 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19848
19849 * term.c: Include "buffer.h" and "character.h".
19850 (encode_terminal_code, write_glyphs): Adjust for the new
19851 code-conversion API.
19852 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19853
19854 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19855
19856 * xdisp.c: Include "character.h".
19857 (get_next_display_element): Adjust for the new multibyte form.
19858 (disp_char_vector): Adjust for the new char table structure.
19859 (decode_mode_spec_coding): Adjust for the new structure of
19860 coding system.
19861 (decode_mode_spec): Adjust for the new code-conversion API.
19862
19863 * xfaces.c: Include "character.h" instead of "charset.h".
19864 (load_face_font): Adjust for the change of choose_face_font and
19865 FS_LOAD_FONT.
19866 (generate_ascii_font): New function.
19867 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19868 (set_font_frame_param): Adjust for the change of choose_face_font.
19869 (free_realized_face): Make it public.
19870 (free_realized_faces_for_fontset): Rename from
19871 free_realized_multibyte_face. Free also faces realized for ASCII.
19872 (choose_face_font): Change arguments. Adjust for the change of
19873 fontset_font_pattern and FS_LOAD_FONT.
19874
19875 * xfns.c: Include "character.h".
19876 (x_encode_text): Adjust for the new code-conversion API.
19877
19878 * xselect.c: Don't include "charset.h".
19879 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19880
19881 * xterm.c: Include "character.h".
19882 (x_encode_char): New argument CHARSET. Change caller.
19883 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19884 Call ENCODE_CHAR instead of SPLIT_CHAR.
19885 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19886 CHAR_WIDTH instead of CHARSET_WIDTH.
19887 (XTread_socket): Adjust for the new code-conversion API.
19888 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19889 (x_load_font): Adjust for the change of struct font.
19890
198912008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19892
19893 * xfaces.c (face_at_buffer_position): Remove unused vars.
19894
198952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19896
19897 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19898 Fix overflow checking.
19899
199002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19901
19902 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19903 Cancel previous change.
19904
199052008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19906
19907 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19908 ccl->eight_bit_control. Fix check for buffer overflow.
19909 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19910 (ccl_driver): Initialize extra_bytes to 0.
19911
199122008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19913
19914 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19915 return it ORed with ctrl_modifier.
19916
199172008-01-29 Miles Bader <miles@gnu.org>
19918
19919 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19920
199212008-01-28 Jason Rumney <jasonr@gnu.org>
19922
19923 * w32.c (stat): Don't double check for networked drive.
19924
199252008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 * window.c (run_window_configuration_change_hook): New function.
19928 Code extracted from set_window_buffer. Set the selected frame.
19929 (set_window_buffer): Use it.
19930 * window.h (run_window_configuration_change_hook): Declare.
19931 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19932
19933 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19934
199352008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19936
19937 * Makefile.in: Remove references to unused macros.
19938
199392008-01-26 Eli Zaretskii <eliz@gnu.org>
19940
19941 * w32.c (g_b_init_get_sid_sub_authority)
19942 (g_b_init_get_sid_sub_authority_count): New static variables.
19943 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19944 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19945 (init_user_info): Use them to retrieve uid and gid.
19946 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19947 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19948 st_uid and st_gid of the file.
19949
199502008-01-26 Jason Rumney <jasonr@gnu.org>
19951
19952 * w32.c (logon_network_drive): New function.
19953 (stat): Use it.
19954
199552008-01-26 Chong Yidong <cyd@stupidchicken.com>
19956
19957 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19958 invisible text covered with an ellipsis.
19959
199602008-01-25 Richard Stallman <rms@gnu.org>
19961
19962 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19963 jump back to beginning. Move some other initializations after that.
19964 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19965 New variables.
19966 (syms_of_xdisp): Init them.
19967
19968 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19969
19970 * buffer.c (reset_buffer_local_variables):
19971 Implement `permanent-local-hook'.
19972 (Qpermanent_local_hook): New variable.
19973 (syms_of_buffer): Init and staticpro it.
19974
199752008-01-25 Michael Albinus <michael.albinus@gmx.de>
19976
19977 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19978
199792008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19980
19981 * fns.c (Fclrhash): Return TABLE.
19982
199832008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19984
19985 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19986 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19987 is set even without positional changes.
19988 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19989
19990 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19991
199922008-01-23 Jason Rumney <jasonr@gnu.org>
19993
19994 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19995
19996 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19997 the unicode range available in MULE by locale-coding-system.
19998 Improve dbcs lead byte detection. Set event timestamp and modifiers
19999 earlier.
20000
200012008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20002
20003 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20004 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20005 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20006 when used on child processes.
20007
200082008-01-21 Michael Albinus <michael.albinus@gmx.de>
20009
20010 * dbusbind.c (Fdbus_method_return_internal): Rename from
20011 Fdbus_method_return.
20012 (Fdbus_unregister_object): Move to dbus.el.
20013 (Fdbus_call_method, Fdbus_method_return_internal)
20014 (Fdbus_send_signal): Improve debug messages.
20015
200162008-01-20 Martin Rudalics <rudalics@gmx.at>
20017
20018 * undo.c (undo_inhibit_record_point): New variable.
20019 (syms_of_undo): Initialize it.
20020 (record_point): Don't record point when undo_inhibit_record_point
20021 is set.
20022
200232008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20024
20025 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20026
20027 * xdisp.c (Qauto_hscroll_mode): New var.
20028 (syms_of_xdisp): Initialize it.
20029 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20030 window's buffer.
20031 (hscroll_windows): Don't check automatic_hscrolling_p here.
20032
20033 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20034 vscroll if we're setting window-buffer to the value it already has.
20035
200362008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20037
20038 * m/intel386.h: Remove references to XENIX.
20039
200402008-01-17 Andreas Schwab <schwab@suse.de>
20041
20042 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20043 instead of HAVE_X86_64_LIB64_DIR.
20044 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20045
200462008-01-17 Glenn Morris <rgm@gnu.org>
20047
20048 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20049 to HAVE_X86_64_LIB64_DIR.
20050
200512008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20052
20053 * s/irix3-3.h:
20054 * s/irix4-0.h:
20055 * s/386-ix.h:
20056 * s/domain.h:
20057 * s/hpux9-x11r4.h:
20058 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20059
20060 * sysdep.c: Remove code containing references to symbols defined
20061 by unsupported systems.
20062
200632008-01-16 Glenn Morris <rgm@gnu.org>
20064
20065 * coding.c (select-safe-coding-system-function): Doc fix.
20066
200672008-01-15 Glenn Morris <rgm@gnu.org>
20068
20069 * config.in: Revert 2008-01-13 change: this is a generated file.
20070
200712008-01-13 Tom Tromey <tromey@redhat.com>
20072
20073 * lisp.h: Fix typo.
20074
200752008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20076
20077 * m/sequent-ptx.h:
20078 * m/sequent.h:
20079 * s/ptx.h:
20080 * s/ptx4-2.h:
20081 * s/ptx4.h: Remove files for systems no longer supported.
20082
20083 * callproc.c (Fcall_process): Fix previous change.
20084
200852008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20086
20087 * unexsunos4.c: Remove file, system not supported anymore.
20088
20089 * m/mips.h:
20090 * m/intel386.h:
20091 * callproc.c:
20092 * config.in:
20093 * ecrt0.c:
20094 * emacs.c:
20095 * fileio.c:
20096 * frame.c:
20097 * getpagesize.h:
20098 * keyboard.c:
20099 * lread.c:
20100 * process.c:
20101 * puresize.h:
20102 * sysdep.c:
20103 * systty.h:
20104 * syswait.h:
20105 * unexec.c:
20106 * xdisp.c:
20107 * alloc.c: Remove code containing references to symbols defined by
20108 unsupported systems.
20109
201102008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20111
20112 * coding.c (detect_coding_mask): Fix previous change.
20113
201142008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20115
20116 * coding.c (detect_coding_iso2022): New arg
20117 latin_extra_code_state. Allow Latin extra codes only
20118 when *latin_extra_code_state is nonzero.
20119 (detect_coding_mask): If there is a NULL byte, detect the encoding
20120 as UTF-16 or binary. If Latin extra codes exist, detect the
20121 encoding as ISO-2022 only when there's no other proper encoding is
20122 found.
20123
201242008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20125
20126 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20127 #ifdef MAC_OS.
20128
201292008-01-08 Richard Stallman <rms@gnu.org>
20130
20131 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20132
201332008-01-06 Nick Roberts <nickrob@snap.net.nz>
20134
20135 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20136 menu bar in parentheses.
20137
201382008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20139
20140 * m/7300.h:
20141 * m/acorn.h:
20142 * m/alliant-2800.h:
20143 * m/alliant.h:
20144 * m/alliant1.h:
20145 * m/alliant4.h:
20146 * m/altos.h:
20147 * m/amdahl.h:
20148 * m/apollo.h:
20149 * m/att3b.h:
20150 * m/aviion-intel.h:
20151 * m/aviion.h:
20152 * m/celerity.h:
20153 * m/clipper.h:
20154 * m/cnvrgnt.h:
20155 * m/convex.h:
20156 * m/cydra5.h:
20157 * m/delta88k.h:
20158 * m/dpx2.h:
20159 * m/dual.h:
20160 * m/elxsi.h:
20161 * m/f301.h:
20162 * m/gould-np1.h:
20163 * m/gould.h:
20164 * m/i860.h:
20165 * m/ibmps2-aix.h:
20166 * m/ibmrt-aix.h:
20167 * m/ibmrt.h:
20168 * m/irist.h:
20169 * m/is386.h:
20170 * m/isi-ov.h:
20171 * m/mega68.h:
20172 * m/mg1.h:
20173 * m/news-r6.h:
20174 * m/news-risc.h:
20175 * m/news.h:
20176 * m/nh3000.h:
20177 * m/nh4000.h:
20178 * m/ns16000.h:
20179 * m/ns32000.h:
20180 * m/nu.h:
20181 * m/orion.h:
20182 * m/orion105.h:
20183 * m/paragon.h:
20184 * m/pfa50.h:
20185 * m/plexus.h:
20186 * m/pyramid.h:
20187 * m/pyrmips.h:
20188 * m/sh3el.h:
20189 * m/sps7.h:
20190 * m/sr2k.h:
20191 * m/stride.h:
20192 * m/sun1.h:
20193 * m/sun2.h:
20194 * m/sun3-68881.h:
20195 * m/sun3-fpa.h:
20196 * m/sun3-soft.h:
20197 * m/sun3.h:
20198 * m/sun386.h:
20199 * m/symmetry.h:
20200 * m/tad68k.h:
20201 * m/tahoe.h:
20202 * m/targon31.h:
20203 * m/tek4300.h:
20204 * m/tekxd88.h:
20205 * m/tower32.h:
20206 * m/tower32v3.h:
20207 * m/ustation.h:
20208 * m/wicat.h:
20209 * m/xps100.h:
20210 * s/cxux.h:
20211 * s/cxux7.h:
20212 * s/dgux.h:
20213 * s/dgux4.h:
20214 * s/dgux5-4-3.h:
20215 * s/dgux5-4r2.h:
20216 * s/esix.h:
20217 * s/esix5r4.h:
20218 * s/hiuxmpp.h:
20219 * s/hiuxwe2.h:
20220 * s/iris3-5.h:
20221 * s/iris3-6.h:
20222 * s/isc2-2.h:
20223 * s/isc3-0.h:
20224 * s/isc4-0.h:
20225 * s/isc4-1.h:
20226 * s/newsos5.h:
20227 * s/newsos6.h:
20228 * s/osf1.h:
20229 * s/osf5-0.h:
20230 * s/riscix1-1.h:
20231 * s/riscix12.h:
20232 * s/sco4.h:
20233 * s/sco5.h:
20234 * s/sunos4-0.h:
20235 * s/sunos4-1.h:
20236 * s/sunos413.h:
20237 * s/sunos4shr.h:
20238 * s/umax.h:
20239 * s/unipl5-2.h:
20240 * s/xenix.h:
20241 * cxux-crt0.s:
20242 * unexapollo.c:
20243 * unexconvex.c:
20244 * unexenix.c:
20245 * unexsni.c: Remove files for systems no longer supported.
20246
20247 * m/intel386.h: Remove references to unsupported systems.
20248
20249 * w32.c (get_emacs_configuration): Remove reference to i860.
20250
20251 * sysdep.c: Remove dead code.
20252
202532008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20254
20255 * s/rtu.h:
20256 * m/masscomp.h: Remove files. Platform is obsolete.
20257
202582008-01-04 Michael Albinus <michael.albinus@gmx.de>
20259
20260 * dbusbind.c (Fdbus_method_return): New function.
20261 (xd_read_message): Add the serial number to the event.
20262 (Fdbus_register_method): Activate the function.
20263
202642008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20265
20266 * keyboard.c (read_key_sequence): Fix typo.
20267
202682008-01-03 Michael Albinus <michael.albinus@gmx.de>
20269
20270 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20271 (xd_signature, xd_append_arg): Handle element type detection for
20272 empty arrays.
20273 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20274 SDATA () calls; this must be solved more general.
20275 (Fdbus_register_signal): Use SBYTES instead of strlen.
20276
202772008-01-03 Magnus Henoch <magnus@zemdatav>
20278
20279 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20280 unsigned int for byte values (necessary for big-endian platform).
20281 (Fdbus_call_method): Handle the case of no returned arguments.
20282
202832007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20284
20285 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20286
202872007-12-31 Magnus Henoch <mange@freemail.hu>
20288
20289 * dbusbind.c (xd_signature): Signature of variant is just "v".
20290
202912007-12-30 Michael Albinus <michael.albinus@gmx.de>
20292
20293 * dbusbind.c: Fix several errors and compiler warnings.
20294 Reported by Tom Tromey <tromey@redhat.com>.
20295 (XD_ERROR, XD_DEBUG_MESSAGE)
20296 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20297 (xd_append_arg): Part for basic D-Bus types rewritten.
20298 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20299 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20300 appropriate.
20301 (xd_read_message): Return Qnil. Don't signal an error; it is not
20302 useful during event reading.
20303 (Fdbus_register_signal): Signal an error if the check for
20304 FUNCTIONP fails.
20305 (Fdbus_register_method): New function. The implementation is not
20306 complete, the call of the function signals an error therefore.
20307 (Fdbus_unregister_object): New function, renamed from
20308 Fdbus_unregister_signal. The initial check signals an error, if
20309 the object is not well formed.
20310
203112007-12-30 Richard Stallman <rms@gnu.org>
20312
20313 * textprop.c (get_char_property_and_overlay):
20314 Signal error if POSITION is out of range in a buffer.
20315
203162007-12-29 Martin Rudalics <rudalics@gmx.at>
20317
20318 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20319 because the original parameters are in pure storage now.
20320
203212007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20322
20323 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20324
203252007-12-22 Eli Zaretskii <eliz@gnu.org>
20326
20327 * callint.c (syms_of_callint) <command-history>: Add reference to
20328 history-length in the doc string.
20329
203302007-12-17 Jason Rumney <jasonr@gnu.org>
20331
20332 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20333 before passing as wParam.
20334
203352007-12-22 Michael Albinus <michael.albinus@gmx.de>
20336
20337 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20338 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20339 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20340 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20341 as number.
20342 (Fdbus_call_method): Fix docstring.
20343
203442007-12-21 Michael Albinus <michael.albinus@gmx.de>
20345
20346 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20347 New macros.
20348 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20349 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20350 Simplify.
20351 (xd_signature): New function.
20352 (xd_append_arg): Compute also signatures. Major rewrite.
20353 (xd_retrieve_arg): Make debug messages friendly.
20354 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20355 Check for signatures of arguments.
20356
203572007-12-19 Michael Albinus <michael.albinus@gmx.de>
20358
20359 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20360 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20361 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20362 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20363 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20364 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20365 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20366 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20367 (xd_retrieve_value): Remove. Functionality included in ...
20368 (xd_append_arg): New function.
20369 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20370
203712007-12-16 Michael Albinus <michael.albinus@gmx.de>
20372
20373 * dbusbind.c (top): Include <stdio.h>.
20374 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20375 dbus_message_new_method_call and dbus_message_new_signal.
20376 (Fdbus_register_signal): Rename unique_name to uname.
20377 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20378 non-existing unique name. Fix typos in matching rule. Return an
20379 object which is useful in Fdbus_unregister_signal.
20380 (Fdbus_unregister_signal): Reimplementation, in order to remove
20381 only the corresponding entry.
20382 (Vdbus_registered_functions_table): Change the order of entries.
20383 Apply these changes in xd_read_message and Fdbus_register_signal.
20384
203852007-12-16 Andreas Schwab <schwab@suse.de>
20386
20387 * fileio.c (Finsert_file_contents): Fix overflow check to not
20388 depend on undefined integer overflow.
20389
203902007-12-14 Jason Rumney <jasonr@gnu.org>
20391
20392 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20393 for characters above 127.
20394
203952007-12-13 Jason Rumney <jasonr@gnu.org>
20396
20397 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20398 before dereferencing array.
20399 (lookup_vk_code): Remove zero comparison.
20400
204012007-12-14 Michael Albinus <michael.albinus@gmx.de>
20402
20403 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20404 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20405 Use `unsigned int' instead of `uint'.
20406 (xd_read_message, Fdbus_register_signal): Split expressions into
20407 multiple lines before operators "&&" and "||", according to the
20408 GNU Coding Standards.
20409
204102007-12-14 Eli Zaretskii <eliz@gnu.org>
20411
20412 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20413
204142007-12-12 Juri Linkov <juri@jurta.org>
20415
20416 * buffer.c (Frename_buffer): In interactive spec replace
20417 `read-buffer' with `read-string' that uses `buffer-name-history'
20418 as history, and the current buffer's name as default.
20419
204202007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20421
20422 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20423 manipulating the backtrace manually.
20424 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20425 (struct backtrace, backtrace_list): Remove.
20426 (command_loop_1): Remove dead var `no_direct'.
20427
20428 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20429 preserve non-built-in buffer-local variables.
20430 (Fkill_all_local_variables): Don't re-create&re-set permanent
20431 buffer-local variables.
20432
204332007-12-09 Juri Linkov <juri@jurta.org>
20434
20435 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20436 Lisp code that uses `read-buffer' with current buffer as default.
20437
204382007-12-08 Michael Albinus <michael.albinus@gmx.de>
20439
20440 * dbusbind.c (xd_read_message): Generate an event for every
20441 registered handler. There might be several handlers registered
20442 for the same signal.
20443 (Fdbus_register_signal): Don't overwrite a registration for the
20444 same signal. Add a new registration if handlers are different.
20445 (Vdbus_registered_functions_table): Rework doc string.
20446
204472007-12-07 Michael Albinus <michael.albinus@gmx.de>
20448
20449 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20450 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20451 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20452 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20453 Unify argument lists.
20454 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20455 arguments and hash table keys. Use unique name for service.
20456 (Fdbus_unregister_signal): Remove checks.
20457 (Vdbus_registered_functions_table): Fix doc string.
20458
204592007-12-05 Magnus Henoch <mange@freemail.hu>
20460
20461 * process.c (make_process): Initialize pty_flag to 0.
20462
204632007-12-05 Jason Rumney <jasonr@gnu.org>
20464
20465 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20466 specified XBMs.
20467
204682007-12-05 Richard Stallman <rms@gnu.org>
20469
20470 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20471
204722007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20473
20474 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20475 New variable.
20476 (mac_try_close_socket) [MAC_OSX]: New function.
20477 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20478 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20479
20480 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20481 Use mac_try_close_socket.
20482
204832007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20484
20485 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20486 reloc_base.
20487 (copy_dysymtab): Compute relocation base here.
20488 (rebase_reloc_address) [__ppc64__]: New function.
20489 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20490 changed.
20491
204922007-12-05 Jason Rumney <jasonr@gnu.org>
20493
20494 * w32proc.c (sys_spawnve): Quote args with wildcards.
20495
204962007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20497
20498 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20499 __objc_* sections.
20500 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20501
205022007-12-05 Michael Albinus <michael.albinus@gmx.de>
20503
20504 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20505 Move check for Vdbus_registered_functions_table to
20506 xd_read_queued_messages.
20507 (xd_read_queued_messages): Protect xd_read_message calls by
20508 internal_condition_case_1.
20509
205102007-12-04 Michael Albinus <michael.albinus@gmx.de>
20511
20512 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20513 Qdbus_system_bus and Qdbus_session_bus, respectively.
20514 (Vdbus_intern_symbols): Remove.
20515 (Vdbus_registered_functions_table): New hash table.
20516 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20517 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20518 Rewrite in order to manage registered functions by hash table
20519 Vdbus_registered_functions_table.
20520
205212007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20522
20523 * xterm.c: Update URL to Window Manager Specification in comment.
20524
205252007-12-02 Michael Albinus <michael.albinus@gmx.de>
20526
20527 * config.in (HAVE_DBUS): Add.
20528
20529 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20530 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20531 (obj): Add $(DBUS_OBJ).
20532 (LIBES): Add $(DBUS_LIBS).
20533 (dbusbind.o): New target.
20534
20535 * dbusbind.c: New file.
20536
20537 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20538
20539 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20540 (Qdbus_event): New Lisp symbol.
20541 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20542 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20543 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20544
20545 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20546
205472007-12-01 Richard Stallman <rms@gnu.org>
20548
20549 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20550
205512007-11-30 Jason Rumney <jasonr@gnu.org>
20552
20553 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20554 (w32con_reset_terminal_modes): Clear screen buffer.
20555 (w32_face_attributes): Don't use color indexes that are out of range.
20556 Only reverse the default colors.
20557
20558 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20559 WINDOWSNT.
20560
20561 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20562
205632007-11-29 Jason Rumney <jasonr@gnu.org>
20564
20565 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20566 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20567 if the terminal colors are initialized.
20568 (unspecified_fg, unspecified_bg): Remove unused declarations.
20569
205702007-11-29 Andreas Schwab <schwab@suse.de>
20571
20572 * keyboard.c (apply_modifiers): Fix typo.
20573
205742007-11-29 Richard Stallman <rms@gnu.org>
20575
20576 * keymap.c (Fcurrent_local_map): Doc fix.
20577
205782007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20579
20580 * s/gnu-kfreebsd.h: New file.
20581
205822007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20583
20584 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20585 Don't cast redundantly.
20586
20587 * keyboard.c (KEY_TO_CHAR): New macro.
20588 (parse_modifiers, apply_modifiers): Accept integer arguments.
20589 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20590 for chars and symbol keys.
20591 After doing such remapping, apply function-key-map again.
20592
205932007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20594
20595 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20596 compiled anymore.
20597
205982007-11-26 Andreas Schwab <schwab@suse.de>
20599
20600 * process.c (list_processes_1): Fix indentation level of the
20601 command column.
20602
206032007-11-23 Andreas Schwab <schwab@suse.de>
20604
20605 * editfns.c (Fformat): Handle %c specially since it requires the
20606 argument to be of type int.
20607
206082007-11-23 Markus Triska <markus.triska@gmx.at>
20609
20610 * emacs.c (main): Call init_editfns before init_process, since
20611 init_process sets Vprocess_connection_type depending on OS release.
20612
206132007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20614
20615 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20616 (find_symbol_value): Use do_symval_forwarding.
20617
20618 * data.c (set_internal): Set the value in the `cons-cell' (for
20619 Buffer_Local_values) not only for frame-local variables.
20620
206212007-11-22 Andreas Schwab <schwab@suse.de>
20622
20623 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20624 values to sprintf.
20625 * keymap.c (Fsingle_key_description): Likewise.
20626 * print.c (print_object): Likewise.
20627
206282007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20629
20630 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20631 file for image is nil.
20632
206332007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20634
20635 * term.c: Include stdarg.h.
20636 (fatal): Implement using varargs.
20637 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20638
206392007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20640
20641 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20642 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20643 Update call to buffer_slot_type_mismatch.
20644 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20645 (buffer_slot_type_mismatch): Update.
20646 * buffer.c (buffer_local_types): Remove.
20647 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20648 (defvar_per_buffer): Set the type in the buffer_objfwd.
20649
206502007-11-21 Jason Rumney <jasonr@gnu.org>
20651
20652 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20653 CreateFileMapping returns NULL on failure.
20654
206552007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20656
20657 * search.c (Fset_match_data): Remove the `evaporate' feature.
20658 (unwind_set_match_data): Don't use the `evaporate' feature.
20659
206602007-11-21 Jason Rumney <jasonr@gnu.org>
20661
20662 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20663
20664 * w32console.c (w32con_write_glyphs): Remove unused variables.
20665
206662007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20667
20668 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20669
20670 * s/darwin.h (MULTI_KBOARD): Remove.
20671
20672 * macfns.c (x_create_tip_frame, Fx_create_frame)
20673 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20674
206752007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20676
20677 * buffer.c (Fbuffer_local_value): Remove redundant test.
20678 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20679 than in `current-buffer' to match the comment.
20680 Do the swap using swap_in_global_binding.
20681
20682 * data.c (store_symval_forwarding, set_internal):
20683 * eval.c (specbind): Remove dead code.
20684
20685 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20686 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20687 Since we do not want to see internal Lisp_*fwd objects here.
20688
206892007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20690
20691 * sysdep.c (init_system_name): Use getaddrinfo if available.
20692
20693 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20694 (x_scroll_bar_note_movement): start, end, with, height in struct
20695 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20696
206972007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20698
20699 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20700
207012007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20702
20703 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20704 This undoes Richard's change of 14-Oct-2002.
20705
20706 * alloc.c (allocate_other_vector):
20707 * lisp.h (allocate_other_vector): Remove.
20708
20709 * window.c (struct save_window_data): Move non-lisp data to the end
20710 and make it `int' rather than Lisp_Object.
20711 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20712 Done wrap/unwrap integer values.
20713 (Fset_window_configuration, compare_window_configurations):
20714 Update use of fields to their new types.
20715
20716 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20717 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20718 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20719 (SET_SCROLL_BAR_X_WINDOW): Remove.
20720 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20721 Access the new x_window field directly.
20722 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20723 Don't wrap/unwrap integers into Lisp_Objects.
20724 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20725 (x_scroll_bar_report_motion):
20726 Don't wrap/unwrap integers into Lisp_Objects.
20727 (x_term_init): Use SDATA.
20728 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20729 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20730 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20731 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20732 * xfns.c (x_set_background_color):
20733 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20734 Access the new x_window field directly.
20735
20736 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20737 (allocate_pseudovector): Make non-static.
20738
20739 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20740 (allocate_pseudovector): Declare.
20741 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20742
207432007-11-15 Andreas Schwab <schwab@suse.de>
20744
20745 * editfns.c (Fformat): Correctly format EMACS_INT values.
20746 Also take precision into account when formatting an integer.
20747
20748 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20749
207502007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20751
20752 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20753 (syms_of_keyboard): Defsubr it.
20754
20755 * data.c (swap_in_global_binding): Fix longstanding bug where
20756 store_symval_forwarding was not called with the right second argument,
20757 thus causing objfwd-ing from being dropped.
20758
207592007-11-14 Juanma Barranquero <lekktu@gmail.com>
20760
20761 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20762 (Fx_display_pixel_height, Fx_display_planes)
20763 (Fx_display_color_cells, Fx_server_max_request_size)
20764 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20765 (Fx_display_visual_class, Fx_display_save_under):
20766 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20767 (Fx_display_pixel_height, Fx_display_planes)
20768 (Fx_display_color_cells, Fx_server_max_request_size)
20769 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20770 (Fx_display_mm_height, Fx_display_mm_width)
20771 (Fx_display_backing_store, Fx_display_visual_class)
20772 (Fw32_select_font, Fx_display_save_under):
20773 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20774 (Fx_display_pixel_height, Fx_display_planes)
20775 (Fx_display_color_cells, Fx_server_max_request_size)
20776 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20777 (Fx_display_save_under): Fix typos in docstrings.
20778
207792007-11-14 Juanma Barranquero <lekktu@gmail.com>
20780
20781 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20782 corresponding to deleted entries; they are an implementation detail.
20783 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20784 Remove variables.
20785 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20786 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20787 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20788 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20789 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20790 (Fw32_define_rgb_color, Fw32_load_color_file)
20791 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20792 Fix typos in docstrings.
20793 (Fx_server_version): Reflow docstring.
20794 (Fw32_shell_execute): Doc fixes.
20795
207962007-11-13 Juanma Barranquero <lekktu@gmail.com>
20797
20798 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20799 if w32_parse_hot_key returned nil.
20800
208012007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20802
20803 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20804
208052007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20806
aac0c6e3
MR
20807 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20808
20809 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20810
20811 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20812 Remove W32_SCROLL_BAR_CLICK_EVENT.
20813
20814 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20815 Add MULTIMEDIA_KEY_EVENT.
20816
20817 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20818 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20819 (make_lispy_event) [WINDOWSNT]: Use it to translate
20820 MULTIMEDIA_KEY_EVENT.
20821
20822 * w32term.h (WM_APPCOMMAND): Define if not already.
20823 (GET_APPCOMMAND_LPARAM): Likewise.
20824
20825 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20826 WM_APPCOMMAND.
20827
20828 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20829 (syms_of_w32fns): Export and initialize it.
20830 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20831
208322007-11-09 Chong Yidong <cyd@stupidchicken.com>
20833
20834 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20835 twice.
20836
20837 * xdisp.c (handle_face_prop): Fix last change.
20838
208392007-11-09 Richard Stallman <rms@gnu.org>
20840
20841 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20842 not just for after-strings and before-strings.
20843 Call face_for_overlay_string and pass the overlay to it.
20844 (handle_display_prop): Determine whether property came from an overlay.
20845 Pass OVERLAY arg to handle_single_display_spec.
20846 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20847 (load_overlay_strings): Fill in it->string_overlays.
20848 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20849
20850 * xfaces.c (face_for_overlay_string): Function renamed from
20851 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20852
20853 * dispextern.h (struct it): New elt string_overlays.
20854 New elt from_overlay, also in stack.
20855 Rearrange a few elements.
20856 (face_for_overlay_string): Decl renamed from
20857 face_at_buffer_position_no_overlays, and add argument.
20858
208592007-11-09 Richard Stallman <rms@gnu.org>
20860
20861 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20862 to get the base face for an overlay string.
20863
20864 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20865
20866 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20867
20868 * xdisp.c (handle_stop): Move some code out of loop.
20869
208702007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20871
20872 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20873 Fix conversion from Lisp object to ATSUFontID.
20874
208752007-11-09 Jason Rumney <jasonr@gnu.org>
20876
20877 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20878
208792007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20880
20881 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20882 Don't assume regions are aligned to page boundary.
20883 (print_load_command_name): Add LC_UUID if defined.
20884
208852007-11-09 Richard Stallman <rms@gnu.org>
20886
20887 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20888
208892007-11-07 Jason Rumney <jasonr@gnu.org>
20890
20891 * s/windows95.h: Remove.
20892
208932007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20894
20895 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20896 abort with a message on unhandled store_type values.
20897
208982007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20899
20900 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20901 Remove HAVE_X11R5 and HAVE_X11R4.
20902
209032007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20904
20905 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20906
209072007-11-01 Johan Bockgård <bojohan@gnu.org>
20908
20909 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20910 Don't set s->stippled_p here, since it has already been set by
20911 x_set_glyph_string_gc from x_draw_glyph_string.
20912
209132007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20914
20915 * sunfns.c: Remove file.
20916
20917 * m/sun386.h:
20918 * m/sun2.h:
20919 * m/sparc.h: Remove Sun windows code.
20920
209212007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20922
20923 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20924 (init_keyboard): Set current_kboard's window-system to nil.
20925 (tty_read_avail_input): Typo.
20926 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20927
209282007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20929
20930 * s/usg5-4.h:
20931 * s/usg5-3.h:
20932 * s/ptx.h:
20933 * m/is386.h:
20934 * m/ibmps2-aix.h:
20935 * Makefile.in: Remove all mentions of X10.
20936
20937 * dispnew.c (syms_of_display): Don't mention version 10.
20938
209392007-10-28 Juanma Barranquero <lekktu@gmail.com>
20940
20941 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20942 ($(BLD)/abbrev.$(O)): Remove.
20943
209442007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20945
20946 Rewrite abbrev.c in Elisp.
20947 * image.c (Qcount): Don't declare as extern.
20948 (syms_of_image): Initialize and staticpro `Qcount'.
20949 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20950 * emacs.c (main): Don't call syms_of_abbrev.
20951 * Makefile.in (obj): Remove abbrev.o.
20952 (abbrev.o): Remove.
20953 * abbrev.c: Remove.
20954
209552007-10-26 Martin Rudalics <rudalics@gmx.at>
20956
20957 * window.c (window_min_size_2): Don't count header-line.
20958
209592007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20960
20961 * frame.h (struct frame): Move all bit fields after the first bit
20962 field to take advantage of the available space. Group all the
20963 chars together to reduce wasted space due to padding.
20964
209652007-10-26 Juanma Barranquero <lekktu@gmail.com>
20966
20967 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20968
20969 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20970 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20971 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20972 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20973 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20974 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20975 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20976 (last_marked, mark_object_loop_halt): Make static.
20977
20978 * frame.c (syms_of_frame) <delete-frame-functions>:
20979 Fix typo in docstring.
20980
209812007-10-25 Juanma Barranquero <lekktu@gmail.com>
20982
20983 * w32.c (init_environment): Fix tiny memory leak.
20984 (w32_get_resource): Remove unused variable `ok'.
20985
209862007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20987
20988 Make `window-system' into a keyboard-local variable (rather than
20989 frame-local as done originally by multi-tty).
20990
20991 * keyboard.h (struct kboard): Add Vwindow_system.
20992 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20993 (mark_kboards): Mark Vwindow_system.
20994
20995 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20996 (init_display): Don't set the obsolete `window-system' frame-param.
20997
20998 * xterm.c (x_term_init):
20999 * w32term.c (w32_create_terminal):
21000 * term.c (init_tty): Set Vwindow_system.
21001 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21002 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21003
21004 * xfns.c (Fx_create_frame, x_create_tip_frame):
21005 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21006 * macfns.c (Fx_create_frame):
21007 Don't set the obsolete `window-system' frame-param.
21008
21009 * frame.h (Qwindow_system): Remove.
21010 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21011 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21012
210132007-10-24 Richard Stallman <rms@gnu.org>
21014
21015 * frame.c (x_figure_window_size): For fullscreen case,
21016 set USPosition | PPosition without clobbering rest of window_prompting.
21017
21018 * keyboard.c (Fcurrent_idle_time): Doc fix.
21019
21020 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21021
210222007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21023
21024 * process.c (unwind_request_sigio): Only define if __ultrix__.
21025
21026 * callproc.c (child_setup): Remove spurious *.
21027
21028 * lisp.h (Fget_text_property): Declare.
21029 (have_menus_p): Declare it here rather than in sys-dep header files.
21030 * macterm.h (have_menus_p):
21031 * msdos.h (have_menus_p):
21032 * xterm.h (have_menus_p): Remove.
21033
21034 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21035 (Fmake_variable_frame_local): Just check the variable's const-ness
21036 rather than checking nil or t.
21037
210382007-10-22 Jason Rumney <jasonr@gnu.org>
21039
21040 * w32fns.c: Include math.h.
21041 (w32_abort): Declaration moved to nt/config.nt.
21042
21043 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21044 (abort): Redefinition moved to nt/config.nt.
21045
21046 * m/windowsnt.h: Remove.
21047
210482007-10-22 Juanma Barranquero <lekktu@gmail.com>
21049
21050 * emacs.c (Fdump_emacs): Fix typo in message.
21051 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21052 <installation-directory>: Reflow docstring.
21053
210542007-10-22 Juri Linkov <juri@jurta.org>
21055
21056 * minibuf.c: Allow minibuffer default to be a list of default values.
21057 With empty input use the first element of this list as returned default.
21058 (string_to_object)
21059 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21060 (read_minibuf): If defalt is cons, set histstring to its car.
21061 (Fread_string): If default_value is cons, set val to its car.
21062 (Fread_buffer): If def is cons, use its car.
21063 (Fcompleting_read): If defalt is cons, set val to its car.
21064
210652007-10-21 Michael Albinus <michael.albinus@gmx.de>
21066
21067 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21068
210692007-10-20 Juanma Barranquero <lekktu@gmail.com>
21070
21071 * doc.c (Fdocumentation): Check for advice in all cases.
21072
210732007-10-19 Chong Yidong <cyd@stupidchicken.com>
21074
21075 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21076
210772007-10-19 Richard Stallman <rms@gnu.org>
21078
21079 * doc.c (Fdocumentation): Check for and handle an advised function.
21080
210812007-10-19 Juanma Barranquero <lekktu@gmail.com>
21082
21083 * process.c (Fset_process_filter): Doc fix.
21084
210852007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21086
21087 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21088 which caused key-translation-map to applied repeatedly (thus breaking
21089 double-mode).
21090
210912007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21092
21093 * xselect.c (x_own_selection, x_handle_selection_clear)
21094 (x_clear_frame_selections):
21095 * w32menu.c (list_of_panes, list_of_items):
21096 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21097 * textprop.c (validate_plist, interval_has_all_properties)
21098 (interval_has_some_properties, interval_has_some_properties_list)
21099 (add_properties, text_property_list):
21100 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21101 * minibuf.c (Fassoc_string):
21102 * macselect.c (x_own_selection, x_clear_frame_selections)
21103 (Fx_disown_selection_internal):
21104 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21105 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21106
211072007-10-17 Chong Yidong <cyd@stupidchicken.com>
21108
21109 * process.c: Link to libs for calling res_init() if available.
21110 (Fmake_network_process): Call res_init() before getaddrinfo or
21111 gethostbyname, if possible.
21112
211132007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21114
21115 * lread.c (read1): Set pvectype for char_tables.
21116
21117 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21118 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21119 Add type checks.
21120 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21121
21122 * alloc.c (free_misc): Use XMISCTYPE.
21123 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21124
211252007-10-17 Glenn Morris <rgm@gnu.org>
21126
21127 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21128 (syms_of_minibuf): Add Qcompletion_ignore_case.
21129 * dired.c (Qcompletion_ignore_case): Change to external.
21130 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21131 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21132 (Fread_file_name): Use it rather than intern'ing.
21133
21134 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21135 (Fread_coding_system): Ignore case of user input.
21136
211372007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21138
21139 * xdisp.c (handle_display_prop): Ignore display specs after
21140 replacing one when string text is being replaced.
21141 (handle_single_display_spec): Pretend as if characters with display
21142 property haven't been consumed only when buffer text is being replaced.
21143
211442007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21145
21146 * xfns.c (Fx_create_frame, Fx_display_list):
21147 * window.c (window_fixed_size_p, enlarge_window)
21148 (shrink_window_lowest_first):
21149 * macterm.c (init_font_name_table):
21150 * macfns.c (Fx_create_frame, Fx_display_list):
21151 * lread.c (close_load_descs):
21152 * keyboard.c (read_char_x_menu_prompt):
21153 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21154 * coding.c (code_convert_region_unwind): Test the type of an object
21155 rather than just !NILP before extracting data from it.
21156
21157 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21158
21159 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21160 (XMISCANY): New macro.
21161 (XMISCTYPE): Use it.
21162 (struct Lisp_Misc_Any): New type.
21163 (union Lisp_Misc): Use it.
21164 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21165 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21166 (find_symbol_value, set_internal, default_value, Fset_default)
21167 (Fmake_variable_buffer_local, Fmake_local_variable)
21168 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21169 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21170 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21171 * alloc.c (allocate_buffer): Set the size and tag.
21172 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21173 Use XMISCANY.
21174 (die): Follow the GNU convention for error messages.
21175 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21176 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21177 tag any more.
21178 (set_buffer_internal_1):
21179 * frame.c (store_frame_param):
21180 * eval.c (specbind):
21181 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21182
21183 * doc.c (Fsnarf_documentation): Simplify.
21184
211852007-10-14 Juanma Barranquero <lekktu@gmail.com>
21186
21187 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21188 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21189
211902007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21191
21192 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21193
211942007-10-14 Juanma Barranquero <lekktu@gmail.com>
21195
21196 * eval.c (do_autoload): Don't save autoloads.
21197
21198 * data.c (Ffset): Save autoload of the function being set.
21199
212002007-10-07 John Paul Wallington <jpw@pobox.com>
21201
21202 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21203 parameter before setting up faces.
21204
212052007-10-13 Eli Zaretskii <eliz@gnu.org>
21206
21207 * ccl.c (Fregister_code_conversion_map):
21208 * keyboard.c (append_tool_bar_item): Reformat last change.
21209
21210 * lisp.h (eabs): Rename from `abs'. All callers changed.
21211
212122007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21213
21214 * buffer.c (add_overlay_mod_hooklist):
21215 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21216 * fontset.c (make_fontset):
21217 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21218 (append_tool_bar_item):
21219 * macmenu.c (grow_menu_items):
21220 * w32menu.c (grow_menu_items):
21221 * xmenu.c (grow_menu_items): Use larger_vector.
21222
212232007-10-13 Eli Zaretskii <eliz@gnu.org>
21224
21225 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21226 selected frame'' on MSDOS).
21227
212282007-10-12 Martin Rudalics <rudalics@gmx.at>
21229
21230 * frame.c (Qexplicit_name): New variable.
21231 (x_report_frame_params): Report it in parameter alist.
21232 (syms_of_frame): Intern and staticpro it.
21233
212342007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21235
21236 * macfns.c (x_create_tip_frame): Set terminal for frame.
21237
212382007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21239
21240 * frame.c (Qenvironment): Remove.
21241 (syms_of_frame) <Qenvironment>: Don't initialize.
21242 (Fdelete_frame): Don't treat the `environment' param specially.
21243 * frame.h (Qenvironment): Don't declare.
21244 * callproc.c (set_initial_environment): Don't set unused frame param.
21245
21246 * frame.c (Fframe_with_environment): Remove.
21247 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21248
21249 * lisp.h (Fframe_with_environment): Don't declare.
21250
212512007-10-10 Juanma Barranquero <lekktu@gmail.com>
21252
21253 * indent.c (indent_tabs_mode, last_known_column)
21254 (last_known_column_modified): Make static.
21255 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21256
212572007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21258
21259 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21260
212612007-10-09 Jason Rumney <jasonr@gnu.org>
21262
21263 * w32term.c (x_set_window_size): Disable code that attempts to tell
21264 Lisp code about a size change before it actually happens.
21265
212662007-10-09 Richard Stallman <rms@gnu.org>
21267
21268 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21269 return HANDLED_RETURN.
21270
212712007-10-08 Martin Rudalics <rudalics@gmx.at>
21272
21273 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21274 when there's an unread command event.
21275
21276 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21277 window autoselection act appropriately when leaving selected frame.
21278 (syms_of_frame): Initialize focus_follows_mouse.
21279 * frame.h (focus_follows_mouse): Extern it.
21280 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21281 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21282 * msdos.c (dos_rawgetc): Likewise.
21283 * w32term.c (w32_read_socket): Likewise.
21284 * xterm.c (handle_one_xevent): Likewise.
21285 * xdisp.c (syms_of_xdisp): In doc-string of
21286 mouse-autoselect-window mention focus-follows-mouse.
21287
212882007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21289
21290 * macterm.c (mac_load_query_font): Fix missing return value.
21291 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21292 Add BLOCK_INPUT.
21293
212942007-10-08 Richard Stallman <rms@gnu.org>
21295
21296 * xdisp.c (get_window_cursor_type): Implement documented behavior
21297 for cursor-in-non-selected-windows = t.
21298
212992007-10-08 Jason Rumney <jasonr@gnu.org>
21300
21301 * w32.c (w32_get_resource): Always close registry keys.
21302
213032007-10-08 Jason Rumney <jasonr@gnu.org>
21304
21305 * makefile.w32-in (LIBS): Add COMCTL32.
21306
21307 * w32fns.c (globals_of_w32fns): Init common controls.
21308
213092007-10-08 Richard Stallman <rms@gnu.org>
21310
21311 * image.c (our_memory_buffer): Rename from omfib_buffer.
21312
213132007-10-08 Richard Stallman <rms@gnu.org>
21314
21315 * buffer.c (Foverlays_at): Doc fix.
21316
213172007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21318
21319 * fns.c (Fplist_put): Preserve uneven tail data.
21320
213212007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21322
21323 * termhooks.h (enum event_kind): Remove trailing comma.
21324
21325 * frame.h (enum): Remove trailing comma.
21326
213272007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21328
21329 * w32proc.c (delete_child): Don't terminate threads of zombies.
21330
213312007-10-08 Martin Rudalics <rudalics@gmx.at>
21332
21333 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21334
21335 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21336 last-repeatable-command.
21337 (init_kboard): Initialize Vlast_repeatable_command.
21338 (command_loop_1): Set it to real_this_command unless that was
21339 bound to an input event.
21340 (mark_kboards): Mark it.
21341
213422007-10-08 Richard Stallman <rms@gnu.org>
21343
21344 * eval.c (condition-case): Doc fix.
21345
213462007-10-08 Masatake YAMATO <jet@gyve.org>
21347
21348 * xfaces.c (tty_supports_face_attributes_p): Fix code
21349 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21350 was copied and not edited.
21351
213522007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21353
21354 Add new `input-decode-map' keymap and use it for terminal
21355 escape sequences.
21356 * keyboard.h (struct kboard): Add Vinput_decode_map.
21357 Remove Vlocal_key_translation_map.
21358 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21359 (init_kboard): Init input-decode-map.
21360 Replace local-key-translation-map back with key-translation-map.
21361 (syms_of_keyboard): Declare input-decode-map.
21362 Remove local-key-translation-map. Update docstrings.
21363 (mark_kboards): Mark Vinput_decode_map.
21364 Don't mark Vlocal_key_translation_map.
21365 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21366 Replace local-key-translation-map back with key-translation-map.
21367 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21368 Bind in input-decode-map rather than function-key-map.
21369
21370 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21371 This was made redundant by the previous introduction of XSETPVECTYPE.
21372
213732007-10-09 Richard Stallman <rms@gnu.org>
21374
21375 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21376
213772007-09-29 Richard Stallman <rms@gnu.org>
21378
21379 * eval.c (internal_condition_case_2, internal_condition_case_1)
21380 (internal_condition_case): Reenable abort if x_catching_errors ()
21381 to see if that really happens and why.
21382
213832007-10-06 Andreas Schwab <schwab@suse.de>
21384
21385 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21386
213872007-10-04 Juanma Barranquero <lekktu@gmail.com>
21388
21389 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21390
213912007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21392
21393 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21394
213952007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21396
21397 * window.h (struct window):
21398 * window.c (struct save_window_data, struct saved_window):
21399 * termhooks.h (struct terminal):
21400 * process.h (struct Lisp_Process):
21401 * frame.h (struct frame):
21402 * buffer.h (struct buffer):
21403 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21404 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21405 The size field of (pseudo)vectors is now unsigned.
21406 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21407
21408 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21409 Turn `count' into an integer.
21410
21411 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21412 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21413 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21414 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21415 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21416
21417 * alloc.c (allocate_pseudovector): New fun.
21418 (ALLOCATE_PSEUDOVECTOR): New macro.
21419 (allocate_window, allocate_terminal, allocate_frame)
21420 (allocate_process): Use it.
21421 (mark_vectorlike): New function.
21422 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21423 (mark_terminals): Use it.
21424 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21425 (Fmake_byte_code): Use XSETPVECTYPE.
21426
21427 * frame.c (Fframe_parameters): Minor simplification.
21428
21429 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21430
21431 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21432
21433 * buffer.c (Fget_buffer_create, init_buffer_once):
21434 * lread.c (defsubr):
21435 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21436
21437 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21438 defined differently in the m/*.h files.
21439 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21440 (XSETPVECTYPE): New macro.
21441 (XSETPSEUDOVECTOR): Use it.
21442
21443 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21444 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21445
21446 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21447 * lread.c (defvar_per_buffer):
21448 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21449
21450 * window.c (candidate_window_p): Only consider as visible frames that
21451 are on the same terminal.
21452
21453 * m/ibms390x.h (MARKBIT): Remove unused macro.
21454
214552007-10-01 Juanma Barranquero <lekktu@gmail.com>
21456
21457 * lread.c (Fload): Fix typo in docstring.
21458
214592007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21460
21461 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21462 of a non-zero value can't yield zero.
21463
214642007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21465
21466 * term.c (term_clear_mouse_face, term_mouse_highlight)
21467 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21468
21469 * print.c (safe_debug_print): Use XHASH.
21470
21471 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21472 Lisp elements such as tags.
21473 (XHASH): New macro.
21474 (EQ): Use it.
21475 (SREF, SSET, STRING_COPYIN): Use SDATA.
21476 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21477
21478 * alloc.c (mark_terminal): Remove left-over declaration.
21479 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21480 (allocate_vectorlike): Remove type argument. Adjust callers.
21481 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21482 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21483
21484 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21485 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21486 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21487 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21488 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21489 Use them.
21490
21491 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21492 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21493 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21494
214952007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21496
21497 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21498 loaded by default.
21499
215002007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21501
21502 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21503 on this tty.
21504 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21505
21506 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21507 Update all users.
21508 (handle_one_term_event): Use Gpm_DrawPointer.
21509 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21510 Signal errors instead of returning nil. Always return nil.
21511 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21512 Make it a noop if gpm-mouse was not activated.
21513 (syms_of_term): Update names.
21514
215152007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21516
21517 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21518 (init_sys_modes): Check that gpm_tty is the current tty.
21519
21520 * alloc.c (allocate_terminal): Set the vector size to only count the
21521 lisp fields. Initialize those to nil.
21522 (mark_object): Don't treat terminals specially.
21523 (mark_terminal): Remove.
21524 (mark_terminals): Use mark_object instead.
21525
21526 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21527 the GC to the beginning.
21528
21529 * indent.h:
21530 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21531
21532 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21533
215342007-09-25 Jason Rumney <jasonr@gnu.org>
21535
21536 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21537
21538 * w32console.c (create_w32cons_output): Remove.
21539
21540 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21541
21542 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21543 (reset_sys_modes): Use reset_terminal_modes_hook.
21544
215452007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21546
21547 * eval.c (do_autoload): Don't output any message.
21548
215492007-09-24 Juri Linkov <juri@jurta.org>
21550
21551 * emacs.c (standard_args): Change priority of "--no-splash"
21552 from 40 to 3. Add "--no-desktop" with the same priority.
21553
215542007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21555
21556 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21557 and optimize the case where they are all 1.
21558
215592007-09-23 Johannes Weiner <hannes@saeurebad.de>
21560
21561 * lisp.h (abs): Define if not defined.
21562 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21563 Don't define `abs', since it's defined in lisp.h.
21564
215652007-09-22 Eli Zaretskii <eliz@gnu.org>
21566
21567 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21568 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21569 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21570 (init_tty): Use DEV_TTY instead of "/dev/tty".
21571 [WINDOWSNT]: No need to protect from NAME arg being null.
21572
215732007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21574
21575 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21576 up the tty state.
21577
215782007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21579
21580 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21581 (gpm_tty): Change its type.
21582 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21583 (gpm_tty): Change its type and initialize it.
21584 (Fterm_open_connection): Check the frame is indeed a tty.
21585 Use the new gpm_tty.
21586 (Fterm_close_connection): Use the new gpm_tty.
21587 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21588 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21589
215902007-09-21 Juanma Barranquero <lekktu@gmail.com>
21591
21592 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21593 underline_color, to draw strike-through.
21594
215952007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21596
21597 * lisp.h (allocate_terminal): Declare.
21598
21599 * window.c (candidate_window_p): Consider frames that are being placed
21600 by the user as somewhere between visible and iconified.
21601 (window_loop): Prefer windows on the current frame.
21602 (Fselect_window): Move the use of select-frame to the beginning so we
21603 can just delegate all the work (it'll call us back anyway).
21604
21605 * frame.c (Qdisplay_environment_variable):
21606 * frame.h (Qdisplay_environment_variable): Delete.
21607
21608 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21609 of the first arg, since that value may be a union.
21610
21611 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21612 parameter rather than Qdisplay_environment_variable. If all else
21613 fails, look for DISPLAY in initial-environment.
21614
216152007-09-21 Glenn Morris <rgm@gnu.org>
21616
21617 * Makefile.in (emacstool): Remove target.
21618 (lisp, shortlisp): Remove termdev.elc.
21619
216202007-09-21 Markus Triska <markus.triska@gmx.at>
21621
21622 * xterm.c (x_delete_display): Compile session management conditionally.
21623
216242007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21625
21626 * callproc.c (getenv_internal_1): New function.
21627 (getenv_internal): Use it.
21628 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21629
21630 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21631 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21632 (Fset_terminal_parameter): Work with dead terminals as well.
21633 (Fmodify_terminal_parameters): Remove.
21634
21635 * terminal.c (get_terminal): Handle terminals.
21636 Make sure the terminal returned is live.
21637 (create_terminal): Use allocate_terminal.
21638 (mark_terminals): Move to alloc.c.
21639 (delete_terminal): Use terminal->name as liveness status.
21640 NULL out fields after freeing their contents.
21641 Don't deallocate the object.
21642 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21643 rather than an int.
21644 (Fterminal_live_p): Accept non-integer arguments.
21645 (Fterminal_list): Return terminal objects rather than an ints.
21646
21647 * alloc.c (enum mem_type): New member for `terminal' objects.
21648 (allocate_terminal): New function.
21649 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21650 Handle terminals.
21651 (mark_terminal): New fun.
21652 (mark_terminals): Move from terminal.c.
21653
21654 * term.c (get_tty_terminal): Don't treat output_initial specially.
21655 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21656 (delete_tty): Use terminal->name as liveness status.
21657
21658 * termhooks.h (struct terminal): Make it into a pseudovector.
21659 Remove `deleted' replaced by checking `name's nullness.
21660
21661 * print.c (print_object): Handle terminals.
21662
21663 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21664 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21665
21666 * frame.c (make_terminal_frame):
21667 * keyboard.c (tty_read_avail_input):
21668 * w32term.c (x_delete_terminal):
21669 * xfns.c (Fx_create_frame, x_create_tip_frame):
21670 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21671
216722007-09-20 Glenn Morris <rgm@gnu.org>
21673
21674 * process.c (Fmake_network_process): Doc fix.
21675
216762007-09-19 Jason Rumney <jasonr@gnu.org>
21677
21678 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21679
216802007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21681
21682 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21683 Fix a C warning regarding variable constness.
21684
21685 * xterm.c (handle_one_xevent): Fix a C warning.
21686
216872007-09-18 Jason Rumney <jasonr@gnu.org>
21688
21689 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21690
216912007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21692
21693 * gtkutil.c (gdpy_def): New variable.
21694 (xg_initialize): Initialize gdpy_def.
21695 (xg_display_close): If no other display exists, set gdpy_def to a
21696 new connection.
21697
216982007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21699
21700 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21701 when we have no file name for the icon.
21702 (xg_tool_bar_expose_callback): Remove.
21703 (xg_create_tool_bar): Don't connect expose signal to
21704 xg_tool_bar_expose_callback.
21705 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21706
217072007-09-16 Andreas Schwab <schwab@suse.de>
21708
21709 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21710 values instead of zapping them.
21711
217122007-09-14 Glenn Morris <rgm@gnu.org>
21713
21714 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21715 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21716 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21717 scope and rename to omfib_buffer for clarity.
21718 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21719
217202007-09-14 Kenichi Handa <handa@m17n.org>
21721
21722 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21723
217242007-09-13 Jason Rumney <jasonr@gnu.org>
21725
21726 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21727
21728 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21729
21730 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21731 (mac_term_init): Call here instead, passing rif.
21732
217332007-09-13 Glenn Morris <rgm@gnu.org>
21734
21735 * s/hpux.h: No longer define `static' as nothing.
21736
217372007-09-13 Johan Bockgård <bojohan@gnu.org>
21738
21739 * callint.c (Fcall_interactively): Remove unused var `fun'.
21740
217412007-09-12 Romain Francoise <romain@orebokech.com>
21742
21743 * window.c (prefer_window_split_horizontally, display_buffer):
21744 Revert 2007-09-08 change.
21745
217462007-09-12 Glenn Morris <rgm@gnu.org>
21747
21748 * alloca.c: Remove file.
21749 * Makefile.in (alloca): Do not undef.
21750 (allocaobj, alloca.o): Remove.
21751 (otherobj): Remove allocaobj.
21752 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21753 * regex.c (C_ALLOCA): Remove all references and code that was only
21754 used when this was defined.
21755 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21756 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21757 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21758
21759 * Makefile.in (SOURCES, unlock, relock): Delete.
21760
21761 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21762 (menu_grab_callback): All uses changed.
21763
21764 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21765 (x_reply_selection_request): All uses changed.
21766
217672007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21768
21769 * lread.c (load_warn_old_style_backquotes): Change message to look
21770 better when it appears in the middle of byte-compiler messages.
21771
217722007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21773
21774 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21775
21776 * xterm.c (x_create_terminal): Add comment.
21777
21778 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21779
217802007-09-10 Richard Stallman <rms@gnu.org>
21781
21782 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21783
217842007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21785
21786 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21787 (DEFUN): Document `intspec', use it instead of `prompt'.
21788
21789 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21790
21791 * data.c (Finteractive_form): If the interactive specification starts
21792 with a `(', use it as a Lisp form.
21793
21794 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21795 name and file modes.
21796
21797 * callint.c (Fcall_interactively): Comment fixes.
21798
217992007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21800
21801 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21802 and compiled functions.
21803
218042007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21805
21806 * window.c (prefer_window_split_horizontally): New variable.
21807 (display_buffer): Consider splitting window horizontally depending
21808 on prefer_window_split_horizontally.
21809
218102007-09-08 Eli Zaretskii <eliz@gnu.org>
21811
21812 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21813
218142007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21815
21816 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21817
21818 * frame.c (x_set_frame_parameters): Check number is positive before
21819 using XFASTINT.
21820
21821 * window.c (freeze_window_start): Don't presume selected_window holds
21822 a window object.
21823 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21824
218252007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21826
21827 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21828
218292007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21830
21831 * window.c (Vsplit_window_preferred_function): New var.
21832 (Fdisplay_buffer): Use it.
21833 (syms_of_window): Export, and initialize it.
21834
218352007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21836
21837 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21838
218392007-09-06 Glenn Morris <rgm@gnu.org>
21840
21841 * gtkutil.c (menu_grab_callback) <cnt>:
21842 * xselect.c (x_reply_selection_request) <cnt>: Move static
21843 variable to file scope.
21844
218452007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21846
21847 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21848 consistent values of selected_frame and selected_window.
21849
218502007-09-04 Jason Rumney <jasonr@gnu.org>
21851
21852 * w32console.c (initialize_w32_display): Zero unused hooks.
21853
218542007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21855
21856 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21857 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21858
218592007-09-04 Jason Rumney <jasonr@gnu.org>
21860
21861 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21862 in w32console.c. Set up input. Remove XXX comments that have been
21863 confirmed as correct.
21864
21865 * s/ms-w32.h (MULTI_KBOARD): Define.
21866
21867 * w32console.c (one_and_only_w32cons): Remove.
21868 (initialize_w32_display): Take terminal argument.
21869
21870 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21871 initialize_w32_display.
21872 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21873
21874 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21875
21876 * keyboard.c (discard_mouse_events): Discard it.
21877 (make_lispy_event): Translate it to a lisp event.
21878 (lispy_wheel_names): Add wheel-left and right events.
21879 (syms_of_keyboard): Enlarge wheel_syms.
21880
21881 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21882 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21883
21884 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21885
21886 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21887 from WM_MOUSEHWHEEL.
21888 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21889
21890 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21891 terminal.
21892
21893 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21894 keyboard for the terminal.
21895
218962007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21897
21898 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21899 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21900 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21901 and resume-tty-function to resume-tty-hook.
21902 (Fsuspend_tty, Fresume_tty): Use new names.
21903
219042007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21905
21906 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21907 if it starts with "n:".
21908
219092007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21910
21911 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21912
219132007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21914
21915 * frame.h:
21916 * frame.c (Qterm_environment_variable): Remove.
21917 (syms_of_frame): Don't init and staticpro it.
21918
21919 * callproc.c (getenv_internal): Remove special case for $TERM.
21920
21921 * callproc.c (Vinitial_environment): New variable.
21922 (set_initial_environment): Initialize it.
21923 (syms_of_callproc): Declare it.
21924 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21925 TERM under which a process runs is never related to the TERM in which
21926 Emacs is running.
21927
219282007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21929
21930 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21931 * s/darwin.h: ... do it here.
21932
219332007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21934
21935 * lisp.h (set_initial_environment): Rename from set_global_environment.
21936
21937 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21938 removed by mistake on the multi-tty branch.
21939
21940 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21941 (Fmodify_frame_parameters): Return a value.
21942
21943 * image.c (png_load): Comment-out var only used in commented-out code.
21944
21945 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21946 before passing it to mark_object.
21947
21948 * xfaces.c (internal_resolve_face_name): Return a value.
21949 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21950
21951 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21952 (x_icon): Comment-out var only used in commented-out code.
21953
219542007-08-29 Romain Francoise <romain@orebokech.com>
21955
21956 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21957 QUIT hasn't been provided.
21958
219592007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21960
21961 * callproc.c (child_setup, getenv_internal): Use the
21962 display-environment-variable and term-environment-variable frame params.
21963 (set_initial_environment): Initialise Vprocess_environment.
21964
21965 * config.in: Disable multi-keyboard support on a mac.
21966
21967 * frame.c (Qterm_environment_variable)
21968 (Qdisplay_environment_variable): New variables.
21969 (syms_of_frame): Intern and staticpro them.
21970 (Fmake_terminal_frame): Disable output method test.
21971
21972 * frame.h: Declare them here.
21973
21974 * macfns.c (x_set_mouse_color): Get rif from the frame.
21975 (x_set_tool_bar_lines): Don't use updating_frame.
21976 (mac_window): Add 2 new parameters for consistency with other systems.
21977 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21978 frame parameters following what is done in X11 and w32. Don't use
21979 FRAME_MAC_DISPLAY_INFO.
21980 (Fx_open_connection, start_hourglass): Remove window-system check.
21981 (x_create_tip_frame): Get the keyboard from the terminal.
21982
21983 * macmenu.c: Reorder includes.
21984 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21985
21986 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21987 terminal parameter.
21988 (x_clear_frame): Add a frame parameter.
21989 (note_mouse_movement): Get rif from the frame.
21990 (mac_term_init): Initialize the terminal.
21991 (mac_initialize): Make static and move terminal initialization ...
21992 (mac_create_terminal): ... to this new function.
21993
21994 * macterm.h (struct mac_display_info): Add terminal.
21995 (mac_initialize): Delete declaration.
21996
21997 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21998
21999 * sysdep.c: Comment out text after #endif.
22000
22001 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22002 is defined. Better initialize ttys in windows. Use terminal
22003 specific mouse_position_hook.
22004
22005 * termhooks.h (union display_info): Add mac_display_info.
22006
22007 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22008 Set the default minibuffer frame, window_system and the rest of the
22009 frame parameters following what is done in X11.
22010
22011 * w32term.c (w32_initialize): Make static.
22012
22013 * xselect.c (x_handle_selection_clear): Only access
22014 terminal->kboard when MULTI_KBOARD is defined.
22015
22016 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22017 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22018
220192007-08-29 Jason Rumney <jasonr@gnu.org>
22020
22021 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22022 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22023
22024 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22025 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22026
22027 * keyboard.c (restore_kboard_configuration): Only define when
22028 MULTI_KBOARD defined.
22029
22030 * makefile.w32-in: Update dependancies from Makefile.in.
22031 (OBJ1): Add terminal.$(O)
22032
22033 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22034 Don't define function body.
22035 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22036
22037 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22038
22039 * w32.c (request_sigio, unrequest_sigio): Remove.
22040
22041 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22042 (w32con_clear_frame, w32con_clear_end_of_line)
22043 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22044 (w32con_delete_glyphs, w32con_set_terminal_window)
22045 (scroll_line, w32_sys_ring_bell): Add frame arg.
22046 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22047 Add terminal arg.
22048 (PICK_FRAME): Remove.
22049 (w32con_write_glyphs): Use frame specific terminal coding.
22050 (one_and_only_w32cons): New global variable.
22051 (initialize_w32_display): Use it for storing hooks.
22052 (create_w32cons_output): New function.
22053
22054 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22055 arg a frame.
22056
22057 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22058 Set window_system.
22059 (x_set_tool_bar_lines): Don't use updating_frame.
22060 (Fx_create_frame): Set terminal and ref count.
22061 (Fx_open_connection): Remove window-system check.
22062
22063 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22064
22065 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22066 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22067 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22068 Add frame arg.
22069 (x_delete_terminal, w32_create_terminal): New functions.
22070 (w32_term_init): Create a terminal.
22071 (w32_initialize): Move terminal specific initialization to
22072 w32_create_terminal.
22073
22074 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22075 (w32_clear_rect, w32_clear_area): Use background from frame.
22076 (w32_display_info): Add terminal.
22077 (w32_sys_ring_bell, x_delete_display): Declare here.
22078
22079 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22080
22081 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22082
220832007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22084
22085 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22086 Fix get_named_tty calls for the controlling tty.
22087
220882007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22089
194d44e7 22090 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22091
220922007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22093
22094 * term.c (tty_insert_glyphs): Add missing first parameter.
22095
220962007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22097
22098 * buffer.c (Fbuffer_list, Fbury_buffer):
22099 Take frame->buried_buffer_list into account.
22100
22101 * cm.c (current_tty): New variable, for cmputc().
22102 (cmputc): Use it.
22103 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22104 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22105 (cmgoto): Add tty parameter. Pass it on to calccost().
22106 Use emacs_tputs() instead of tputs().
22107
22108 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22109 tputs().
22110 (current_tty): New variable, for cmputc().
22111 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22112
22113 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22114 (internal_condition_case, internal_condition_case_1)
22115 (internal_condition_case_2): Don't abort when x_catching_errors.
22116
22117 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22118 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22119 prevent crashes caused by bogus longjmps in read_char.
22120
22121 * keymap.h (Fset_keymap_parent): Add EXFUN.
22122
22123 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22124 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22125 Remove redundant definition.
22126
22127 * macfns.c (x_set_mouse_color, x_make_gc):
22128 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22129
22130 * w32term.c (x_free_frame_resources):
22131 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22132 (w32_initialize): Use the accessor macros for terminal characteristics.
22133
22134 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22135 Use the accessor macros for terminal characteristics.
22136 * msdos.c (internal_terminal_init): Use the accessor macros for
22137 terminal characteristics.
22138 (ScreenVisualBell, internal_terminal_init):
22139 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22140
22141 * termopts.h (no_redraw_on_reenter): Declare.
22142
22143 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22144 (mark_terminals, mark_ttys): Declare.
22145 (Fgarbage_collect): Call them.
22146 (mark_object): Mark buried_buffer_list.
22147
22148 * prefix-args.c: Include stdlib.h for exit.
22149
22150 * syssignal.h: Add comment.
22151
22152 * indent.c: Include stdio.h.
22153
22154 * window.h (Vinitial_window_system): Declare.
22155 (Vwindow_system): Delete declaration.
22156
22157 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22158
22159 * image.c (lookup_image): Don't initialize `c' until the xasserts
22160 have been run.
22161
22162 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22163 FRAME_FOREGROUND_PIXEL.
22164
22165 * print.c (print_preprocess): Don't lose print_depth levels while
22166 iterating.
22167
22168 * widget.c (update_from_various_frame_slots):
22169 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22170
22171 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22172 frames.
22173 (window_internal_height): Remove bogus make_number call.
22174 (init_window_once): Call make_terminal_frame with two zero parameters.
22175
22176 * fileio.c (Fread_file_name): Update comment.
22177
22178 * callint.c (Fcall_interactively):
22179 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22180 Make sure it is correctly unwound.
22181
22182 * xsmfns.c (x_session_close): New function.
22183
22184 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22185 Delete declarations.
22186
22187 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22188 (x_output): Remove background_pixel and foreground_pixel fields.
22189 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22190 (x_delete_device, x_session_close): Declare.
22191
22192 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22193 (read_filtered_event): Call `read_char' with a local
22194 `wrong_kboard_jmpbuf'.
22195
22196 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22197 Don't call single_kboard_state. Use FRAME_RIF.
22198
22199 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22200 systems.
22201
22202 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22203 (Fframe_with_environment, Fset_input_meta_mode)
22204 (Fset_quit_char): EXFUN.
22205 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22206 (init_sys_modes, reset_sys_modes): Update prototypes.
22207 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22208
22209 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22210 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22211 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22212 Delete declarations.
22213 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22214 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22215 New declarations.
22216
22217 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22218 already does that during init_display(). Call syms_of_keymap
22219 before syms_of_keyboard. Call `syms_of_terminal'.
22220 Call set_initial_environment, not set_process_environment.
22221 (shut_down_emacs): Call reset_all_sys_modes() instead of
22222 reset_sys_modes().
22223
22224 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22225 (internal_resolve_face_name, resolve_face_name_error): New functions.
22226 (resolve_face_name): Protect against loops and errors thrown by Fget.
22227 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22228 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22229
22230 * scroll.c: Replace CURTTY() with local variables throughout the
22231 file (where applicable).
22232 (calculate_scrolling, calculate_direct_scrolling)
22233 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22234 characteristics.
22235
22236 * keymap.c (Vfunction_key_map): Remove.
22237 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22238 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22239 (Vkey_translation_map): Remove.
22240 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22241 (Fdescribe_buffer_bindings)
22242 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22243 Update for terminal-local key-translation-map.
22244
22245 * Makefile.in (callproc.o): Update dependencies.
22246 (lisp, shortlisp): Add termdev.elc.
22247 (obj): Add terminal.o.
22248 (terminal.o): Add dependencies.
22249 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22250 (data.o, fns.o): Add termhooks.h dependency.
22251 (SOME_MACHINE_LISP): Add dnd.elc.
22252 (minibuf.o): Fix typo.
22253 Update dependencies.
22254
22255 * data.c (do_symval_forwarding, store_symval_forwarding)
22256 (find_symbol_value): Use the selected frame's keyboard, not
22257 current_kboard.
22258
22259 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22260 Vwindow_system.
22261
22262 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22263 Fmenu_bar_open.
22264 (syms_of_xmenu): Update defsubr.
22265 (mouse_position_for_popup, Fx_popup_menu)
22266 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22267 (set_frame_menubar, free_frame_menubar)
b97439ce 22268 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22269 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22270 an X frame.
22271
22272 * xselect.c (x_own_selection): Abort if not an X frame.
22273 (some_frame_on_display): Check if it is an X frame.
22274 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22275
22276 * coding.c: Include frame.h and termhooks.h.
22277 (terminal_coding, keyboard_coding): Delete.
22278 (Fset_terminal_coding_system_internal)
22279 (Fset_keyboard_coding_system_internal)
22280 (Fkeyboard_coding_system)
22281 (Fterminal_coding_system): Add a terminal parameter.
22282 Get terminal_coding from the terminal.
22283 (init_coding_once): Don't call setup_coding_system here.
22284
22285 * dispextern.h (set_scroll_region, turn_off_insert)
22286 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22287 (tty_clear_end_of_line, tty_setup_colors)
22288 (delete_tty, updating_frame)
22289 (produce_special_glyphs, produce_glyphs, write_glyphs)
22290 (insert_glyphs): Remove.
22291 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22292 (tty_turn_off_highlight, get_tty_size): Add declaration.
22293 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22294
22295 * frame.h (enum output_method): Add output_initial.
22296 (struct x_output): Delete.
22297 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22298 Access foreground_pixel and background_pixel directly from the frame.
22299 (tty_display): Delete.
22300 (struct frame): Add buried_buffer_list, foreground_pixel,
22301 background_pixel and terminal. Delete kboard.
22302 (union output_data): Add tty.
22303 (FRAME_KBOARD): Get the kboard from the terminal.
22304 (FRAME_INITIAL_P): New macro.
22305 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22306 (Qterm_environment_variable, Qdisplay_environment_variable)
22307 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22308 New declarations.
22309
22310 * termchar.h (tty_output, tty_display_info): New structures.
22311 (tty_list): Declare.
22312 (FRAME_TTY, CURTTY): New macros.
22313 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22314 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22315 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22316 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22317
22318 * callproc.c: Include frame.h and termhooks.h, for terminal
22319 parameters.
22320 (add_env): New function.
22321 (child_setup): Use it.
22322 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22323 (getenv_internal): Fix get_terminal_param call.
22324 (Fgetenv_internal, egetenv): Update doc.
22325 (syms_of_callproc): Initialize Vprocess_environment to nil.
22326 Register and initialize them. Remove obsolete defvars. Update doc
22327 strings.
22328 (child_setup): Handle Vlocal_environment_variables.
22329 (getenv_internal): Add terminal parameter.
22330 Handle Vlocal_environment_variables.
22331 (Fgetenv_internal): Add terminal parameter.
22332 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22333 environment in a frame (not terminal) parameter. Update doc strings.
22334 (set_initial_environment): Rename from set_global_environment.
22335 Store Emacs environment in initial frame parameter.
22336
22337 * xdisp.c (redisplay_internal): Update references to
22338 `previous_terminal_frame'.
22339 (display_mode_line, Fformat_mode_line): Replace calls to
22340 `push_frame_kboard' with `push_kboard'.
22341 (get_glyph_string_clip_rects): Add extra parentheses and
22342 braces to prevent compiler warnings.
22343 (calc_pixel_width_or_height): Add xassert to check that the
22344 frame is alive. Don't call `lookup_image' on a termcap frame.
22345 (message2_nolog, message3_nolog, redisplay_internal)
22346 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22347 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22348 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22349 (Fx_display_pixel_width, Fx_display_pixel_height)
22350 (Fx_display_planes, Fx_display_color_cells)
22351 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22352 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22353 (Fx_display_backing_store, Fx_display_visual_class)
22354 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22355 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22356
22357 * xfns.c (x_set_foreground_color x_set_background_color)
22358 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22359 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22360 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22361 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22362 terminal that is being deleted.
22363 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22364 frame parameter, and make sure it overrides any user-supplied setting.
22365 (Fx_close_connection, Fx_synchronize): Unify argument names with
22366 the rest of the DEFUNs.
22367
22368 * dispnew.c (Fsend_string_to_terminal): Update call to
22369 `get_tty_terminal'.
22370 (Fredraw_frame, Fsend_string_to_terminal)
22371 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22372 FRAME_TERMCAP_P and FRAME_TTY.
22373 (window_change_signal): Don't believe width/height values that are
22374 impossibly small.
22375 (Vinitial_window_system): Rename from Vwindow_system.
22376 (termscript, Wcm, rif): Delete.
22377
22378 * termhooks.h (struct terminal): New struct containing the
22379 previously global text display hooks and new members NAME,
22380 DELETED and PARAM_ALIST.
22381 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22382 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22383 (FRAME_RIF): New macros.
22384 (get_terminal_param, get_device): New declarations.
22385 (termscript): Delete declaration.
22386
22387 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22388 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22389 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22390 FRAME_FOREGROUND_PIXEL.
22391 (x_fully_uncatch_errors): Disable definition.
22392 (x_scroll_bar_expose): Fix reference to foreground pixel.
22393 (XTread_socket): Disable loop on all X displays.
22394 (x_delete_terminal): Don't set terminal->deleted and let
22395 delete_terminal delete the frames on the terminal.
22396 (x_delete_display): Doc update to reflect changes in
22397 delete_terminal.
22398 (x_display_info) <terminal>: Move member earlier in the struct.
22399 (deleting_tty): Remove old variable.
22400 (Fsuspend_tty): Call clear_tty_hooks.
22401 (Fresume_tty, init_tty): Call set_tty_hooks.
22402 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22403 errors on X frames.
22404 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22405 (handle_one_xevent): Initialize `f' to NULL.
22406 (x_delete_terminal, x_create_terminal): New functions.
22407 (XTset_terminal_modes, XTreset_terminal_modes)
22408 (XTread_socket, x_connection_closed, x_term_init)
22409 (x_term_init, x_delete_display): Add terminal parameter.
22410 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22411 X connections.
22412
22413 * frame.c: Include termchar.h.
22414 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22415 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22416 (Qdisplay_environment_variable): New vars.
22417 (Fframep): Deal with output_initial.
22418 (Fframe-live-p): Doc fix.
22419 (Fwindow-system): New function.
22420 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22421 (make_terminal_frame): Don't create frames on a terminal that is
22422 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22423 (store_frame_param): Check for found_for_frame before calling XFRAME.
22424 (Fmake_terminal_frame): Handle NULL tty names correctly.
22425 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22426 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22427 frames to refer to a deleted frame in their 'environment parameter.
22428 (Fframe_with_environment): New function.
22429 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22430 (get_future_frame_param): New function.
22431 (Fmake_terminal_frame): Use it.
22432 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22433
22434 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22435 * sysdep.c (reset_sys_modes): Update for renames.
22436
22437 * keyboard.c (tty_read_avail_input): New function.
22438 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22439 (syms_of_keyboard): Defsubr them.
22440 (Fset_input_meta_mode, Fset_quit_char): New functions.
22441 (Fset_input_mode): Split to above functions.
22442 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22443 parameter. Use it in call to `read_char'.
22444 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22445 Set wrong_kboard_jmpbuf correctly in recursive calls.
22446 Use current_kboard to access Vkeyboard_translate_table.
22447 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22448 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22449 Update longjmp invocations. Remember the original current_kboard,
22450 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22451 changes it. Comment out unnecessary calls to
22452 `record_single_kboard_state' and `any_kboard_state'.
22453 Update recursive calls.
22454 (wrong_kboard_jmpbuf): Remove global variable.
22455 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22456 Handle deleted interrupted_kboards correctly; that is a legal
22457 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22458 and read_char calls. Abort if interrupted_kboard died in read_char.
22459 (any_kboard_state, single_kboard_state)
22460 (push_frame_kboard): Remove function.
22461 (pop_kboard): Switch out of single_kboard mode if the kboard has
22462 been deleted. Remove unused variable. Help debugging by not
22463 changing current_kboard unnecessarily. Set current_kboard to the
22464 kboard of the selected frame when the stored kboard object has
22465 been deleted before pop_kboard.
22466 (temporarily_switch_to_single_kboard): Change first parameter to a
22467 frame pointer. Throw an error when caller wants to change kboards
22468 while in single_kboard mode. Don't push_kboard if we weren't in
22469 single kboard state. Don't pop_kboard if we popped into any
22470 kboard state.
22471 (restore_kboard_configuration): Abort if pop_kboard changed the
22472 kboard in single_kboard mode. Call pop_kboard only after setting
22473 up single_kboard mode.
22474 (Frecursive_edit): Switch to single_kboard mode only in nested
22475 command loops.
22476 (cmd_error, command_loop, command_loop_1, timer_check):
22477 Comment out unnecessary call to `any_kboard_state' and
22478 `record_single_kboard_state'.
22479 (delete_kboard): Exit single_kboard mode if we have just deleted
22480 that kboard. Use FRAME_KBOARD.
22481 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22482 `fatal_error_signal'.
22483 (record_single_kboard_state): Don't push_kboard if we weren't in
22484 single kboard state. Don't pop_kboard if we popped into any
22485 kboard state.
22486 (push_frame_kboard): Rename to push_kboard.
22487 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22488 (read_avail_input): Read input from all terminals.
22489 (mark_kboards): Also mark Vkeyboard_translate_table.
22490 (kbd_buffer_store_event_hold): Simplify condition.
22491 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22492 (Vkeyboard_translate_table): Move to struct kboard.
22493 (init_kboard): Initialize Vkeyboard_translate_table.
22494 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22495 Vkeyboard_translate_table. Update doc strings. Update docs of
22496 local-function-key-map and function-key-map.
22497
22498 * terminal.c: New file.
22499
22500 * term.c: Include errno.h.
22501 (Vring_bell_function, device_list, initial_device)
22502 (next_device_id, ring_bell, update_begin, update_end)
22503 (set_terminal_window, cursor_to, raw_cursor_to)
22504 (clear_to_end, clear_frame, clear_end_of_line)
22505 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22506 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22507 (syms_of_term): Move their initialization to terminal.c.
22508 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22509 (Ftty_display_color_cells)
22510 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22511 (clear_tty_hooks, set_tty_hooks)
22512 (init_tty, maybe_fatal): New functions.
22513 (Ftty_type): Return nil if terminal is not on a tty instead of
22514 throwing an error. Doc update.
22515 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22516 Doc update. Initialize new subrs and variables.
22517 (delete_tty): Use terminal->deleted.
22518 (tty_set_terminal_modes): Rename from set_terminal_modes.
22519 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22520 (set_scroll_region): Rename to `tty_set_scroll_region'.
22521 (turn_on_insert): Rename to `tty_turn_on_insert'.
22522 (turn_off_insert): Rename to `tty_turn_off_insert'.
22523 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22524 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22525 (toggle_highligh): Rename to `tty_toggle_highlight'.
22526 (background_highlight): Rename to `tty_background_highlight'.
22527 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22528 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22529 (tty_set_scroll_region, tty_background_highlight)
22530 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22531 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22532 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22533 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22534 Add static modifier.
22535 (tty_reset_terminal_modes, tty_set_terminal_window)
22536 (tty_set_scroll_region, tty_background_highlight)
22537 (tty_highlight_if_desired, tty_cursor_to)
22538 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22539 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22540 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22541 renames.
22542
225432007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22544
22545 * keyboard.c: Qrtl is new.
22546 (parse_tool_bar_item): Handle :rtl keyword.
22547 (syms_of_keyboard): Intern :rtl keyword.
22548
22549 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22550
22551 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22552 so no Lisp code is executed.
22553 (file_for_image, find_rtl_image): New functions.
22554 (xg_get_image_for_pixmap): Use file_for_image.
22555 (update_frame_tool_bar): If direction is RTL, use RTL image if
22556 defined. Use Gtk stock images if defined.
22557
225582007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22559
22560 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22561 for nonexistent or zero-width glyph in composition glyph.
22562
225632007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22564
22565 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22566
22567 * xdisp.c (Finvisible_p): New function.
22568 (syms_of_xdisp): defsubr it.
22569
225702007-08-24 Juanma Barranquero <lekktu@gmail.com>
22571
22572 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22573 Doc fixes.
22574
225752007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22576
22577 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22578
225792007-08-24 Martin Rudalics <rudalics@gmx.at>
22580
22581 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22582 whether decoding has modified buffer contents.
22583
225842007-08-24 Jason Rumney <jasonr@gnu.org>
22585
22586 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22587 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22588 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22589 (init_svg_functions) [HAVE_NTGUI]: New function.
22590 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22591 (svg_load_image): Use them.
22592 (svg_load_image) [HAVE_NTGUI]: Implement background.
22593
225942007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22595
22596 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22597 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22598 (LIBX): Remove @RSVG_LIBS@.
22599 (LIBES): Add $(RSVG_LIBS).
22600
22601 * image.c (svg_load_image): Blend with specified background if exists.
22602 Use IMAGE_BACKGROUND. Add Mac OS Support.
22603
22604 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22605 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22606 Remove macros.
22607 [MAC_OSX] (socket_callback): Do nothing.
22608 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22609 ReceiveNextEvent.
22610 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22611 socket_callback.
22612 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22613
226142007-08-22 Glenn Morris <rgm@gnu.org>
22615
22616 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22617
226182007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22619
22620 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22621
22622 * image.c: Add support for SVG images. Some additional comments
22623 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22624 (svg_image_p): New function to test for SVG image.
22625 (svg_load): New function to load SVG image.
22626 (svg_load_image): New function, helper for svg_load.
22627 (Qsvg): New Lisp_object.
22628 (svg_keyword_index): New enum.
22629 (svg_format): New static `image_keyword' struct.
22630 (svg_type): New static `image_type' struct.
22631 (librsvg/rsvg.h): Include it.
22632
226332007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22634
22635 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22636
226372007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22638
22639 * lread.c (Qold_style_backquotes): New var.
22640 (syms_of_lread): Init and staticpro it.
22641 (load_warn_old_style_backquotes): New fun.
22642 (Fload): Use them to warn about old style backquotes.
22643 (end_of_file_error, Fload): Remove unused vars.
22644
22645 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22646
22647 * lread.c (Vold_style_backquotes): New var.
22648 (syms_of_lread): Init and export it to Elisp.
22649 (read1): Set it when we find an old-style (back)quote.
22650
226512007-08-22 Jason Rumney <jasonr@gnu.org>
22652
22653 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22654
226552007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22656
22657 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22658
226592007-08-19 Richard Stallman <rms@gnu.org>
22660
22661 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22662
226632007-08-19 Andreas Schwab <schwab@suse.de>
22664
22665 * alloc.c (pure): Round PURESIZE up.
22666
226672007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22668
22669 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22670 active frame.
22671
226722007-08-16 Richard Stallman <rms@gnu.org>
22673
22674 * eval.c (Fcommandp): Add parens to clarify.
22675
22676 * minibuf.c (Fall_completions): Use enum for type of table.
22677
22678 * emacs.c (USAGE2): Improve text.
22679
226802007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22681
22682 * term.c (tty_default_color_capabilities): Declare static
22683 variables in file scope, to avoid HPUX compiler problem.
22684
226852007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22686
22687 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22688 to gtk_toolbar_insert.
22689
226902007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22691
22692 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22693
22694 * insdel.c (reset_var_on_error): New fun.
22695 (signal_before_change, signal_after_change):
22696 Use it to reset (after|before)-change-functions to nil in case of error.
22697 Bind inhibit-modification-hooks to t.
22698 Don't bind (after|before)-change-functions to nil while they run.
22699
227002007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22701
22702 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22703 filling pixmap with stippled background.
22704
227052007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22706
22707 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22708 Don't use invisible frame as parent window for repositioning.
22709
227102007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22711
22712 * print.c (new_backquote_output): Rename from old_backquote_output.
22713 (print): Inverse its logic (according to its name) so as to match the
22714 behavior of new_backquote_flag in lread.c.
22715
227162007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22717
22718 * gmalloc.c (posix_memalign): New function.
22719
22720 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22721 ActivateControl/DeactivateControl here.
22722 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22723 frame-notice-user-settings is non-nil.
22724 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22725 for kEventParamFMFontStyle.
22726 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22727 mac_pass_command_to_system and mac_pass_control_to_system here.
22728 (XTread_socket): Call ActivateControl/DeactivateControl here.
22729 (XTread_socket) [TARGET_API_MAC_CARBON]:
22730 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22731 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22732 for window repositioning.
22733
227342007-08-08 Glenn Morris <rgm@gnu.org>
22735
22736 * Replace `iff' in doc-strings and comments.
22737
227382007-08-07 Chong Yidong <cyd@stupidchicken.com>
22739
22740 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22741
227422007-08-07 Martin Rudalics <rudalics@gmx.at>
22743
22744 * fileio.c (Finsert_file_contents): Run format-decode and
22745 after_insert_file_functions on entire buffer when REPLACE is
22746 non-nil and inhibit modification_hooks and point_motion_hooks.
22747 For consistency, run after_insert_file_functions iff something
22748 got inserted. Move signal_after_change and update_compositions
22749 after code running after_insert_file_functions. Make sure that
22750 undo_list doesn't record intermediate steps of the decoding process.
22751
227522007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22753
22754 * emacs.c (main)
22755 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22756 Call malloc_enable_thread on interactive startup.
22757
22758 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22759 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22760 [USE_PTHREAD]: Conditionalize with it.
22761 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22762 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22763 New functions.
22764
227652007-08-06 Chong Yidong <cyd@stupidchicken.com>
22766
22767 * xdisp.c (redisplay_window): When restoring original buffer
22768 position, make sure it is still valid.
22769
22770 * image.c (png_load): Ignore png-supplied background color.
22771
227722007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22773
22774 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22775 Use kCFAbsoluteTimeIntervalSince1970.
22776
22777 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22778 New variable.
22779 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22780 event loop should be quit.
22781 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22782 Quit dialog event loop if quit_dialog_event_loop is set.
22783
22784 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22785 (Selection): New typedef. Use instead of ScrapRef.
22786 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22787 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22788 (mac_clear_selection): Rename from clear_scrap.
22789 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22790 scrap_has_target_type. All uses changed.
22791 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22792 (mac_selection_has_target_p): New functions.
22793 (mac_put_selection_value): Rename from put_scrap_string.
22794 (mac_get_selection_value): Rename from get_scrap_string.
22795 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22796 (put_scrap_private_timestamp, scrap_has_target_type)
22797 (get_scrap_private_timestamp): Remove functions.
22798 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22799 (x_own_selection, x_get_local_selection):
22800 Use mac_valid_selection_value_p.
22801 (x_own_selection): Don't use put_scrap_private_timestamp.
22802 Record OWNERSHIP-INFO into Vselection_alist instead.
22803 (x_get_local_selection): Don't check type if request is local.
22804 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22805 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22806
228072007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22808
22809 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22810 add comment explaining why.
22811
228122007-08-03 Richard Stallman <rms@gnu.org>
22813
22814 * fileio.c (Fvisited_file_modtime): Use make_time.
22815
228162007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22817
22818 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22819 build.
22820
228212007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22822
22823 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22824
228252007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22826
22827 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22828
228292007-07-30 Richard Stallman <rms@gnu.org>
22830
22831 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22832
228332007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22834
22835 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22836
228372007-07-28 Nick Roberts <nickrob@snap.net.nz>
22838
22839 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22840 remote default-directory.
22841
22842 * buffer.c (mode-line-format): Update doc string.
22843
228442007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22845
22846 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22847 scroll bar gap.
22848 (x_scroll_bar_create): Set bar->fringe_extended_p.
22849 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22850 on frame edge. Check fringe background extension. Don't clear
22851 extended fringe background area.
22852
22853 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22854 (w32_fill_area): Enclose multiple statements with do ... while (0).
22855
22856 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22857 Extend fringe background to scroll bar gap.
22858 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22859 Set bar->fringe_extended_p.
22860 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22861 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22862 background extension. Don't clear extended fringe background area.
22863
22864 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22865 New member fringe_extended_p.
22866
228672007-07-25 Glenn Morris <rgm@gnu.org>
22868
22869 * Relicense all FSF files to GPLv3 or later.
22870
22871 * COPYING: Switch to GPLv3.
22872
228732007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22874
22875 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22876
22877 * data.c (Finteractive_form): Check for the presence of an
22878 `interactive-form' symbol property more thoroughly.
22879
22880 * data.c (Finteractive_form): Use an `interactive-form' property if
22881 present, analogous to the function-documentation property.
22882
228832007-07-24 Jason Rumney <jasonr@gnu.org>
22884
22885 * w32fns.c (x_real_positions): Get real position from OS instead of
22886 calculating it.
22887
228882007-07-23 Jason Rumney <jasonr@gnu.org>
22889
22890 * filelock.c (current_lock_owner): Allow for @ sign in username.
22891
228922007-07-22 Nick Roberts <nickrob@snap.net.nz>
22893
22894 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22895 remote default-directory.
22896
22897 * buffer.c (mode-line-format): Describe above case in doc string.
22898
228992007-07-20 Eli Zaretskii <eliz@gnu.org>
22900
22901 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22902 Define if not defined.
22903
229042007-07-18 Jason Rumney <jasonr@gnu.org>
22905
22906 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22907
229082007-07-18 Richard Stallman <rms@gnu.org>
22909
22910 * data.c (Fsetq_default): Doc fix.
22911
22912 * eval.c (Fsetq): Doc fix.
22913
229142007-07-18 Juanma Barranquero <lekktu@gmail.com>
22915
22916 * coding.c (Ffind_operation_coding_system):
22917 * eval.c (For, Fand): Doc fixes.
22918 Reported by Johan Bockgård.
22919
229202007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22921
22922 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22923
22924 * xterm.h: Declare x_ewmh_activate_frame.
22925
22926 * xterm.c (x_ewmh_activate_frame): New function.
22927 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22928
229292007-07-17 Martin Rudalics <rudalics@gmx.at>
22930
22931 * window.c (Fdisplay_buffer): If largest or LRU window is the
22932 only window, split it even if it is not eligible for splitting.
22933 This restores the original behavior broken by the 2007-07-15
22934 change.
22935
229362007-07-17 Glenn Morris <rgm@gnu.org>
22937
22938 * abbrev.c (abbrev_check_chars): New function.
22939 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22940 Call abbrev_check_chars to check abbrev characters are word
22941 constituents. Doc fix.
22942
229432007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22944
22945 * process.c (Fstart_process, Fmake_network_process)
22946 (read_process_output): Fix up last changes.
22947
229482007-07-16 Eli Zaretskii <eliz@gnu.org>
22949
22950 * makefile.w32-in (clean): Don't delete *~.
22951
229522007-07-16 Andreas Schwab <schwab@suse.de>
22953
22954 * window.c (Fdisplay_buffer): Use NILP.
22955 (Fset_window_scroll_bars): Likewise.
22956
229572007-07-15 Martin Rudalics <rudalics@gmx.at>
22958
22959 * window.c (window_min_size_2): New function.
22960 (window_min_size_1, size_window, Fdisplay_buffer)
22961 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22962 windows without mode- or header-lines when window-min-height is
22963 too small.
22964 (size_window): Reset nodelete_p after testing it, following an
22965 earlier note by Kim F. Storm.
22966 (display_buffer): Do not set split_height_threshold to twice the
22967 value of window_min_height to avoid changing the value of a
22968 customizable variable. Rather explicitly check whether the
22969 height of the window that shall be splitted is at least as large
22970 as split_height_threshold.
22971 (Fwindow_full_width_p): New defun.
22972 (syms_of_window): Defsubr it.
22973
22974 * window.h: Add EXFUN for Fwindow_full_width_p.
22975
229762007-07-14 Jason Rumney <jasonr@gnu.org>
22977
22978 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22979
229802007-07-14 Richard Stallman <rms@gnu.org>
22981
22982 * eval.c (maybe_call_debugger): New function.
22983 (find_handler_clause): Use maybe_call_debugger.
22984 Call it when the handler says `debug'.
22985 Eliminate DEBUGGER_VALUE_PTR.
22986 (Fsignal): Eliminate debugger_value.
22987 (Qdebug): New variable.
22988 (syms_of_eval): Initialize it.
22989
229902007-07-14 Juanma Barranquero <lekktu@gmail.com>
22991
22992 * eval.c (Fprogn):
22993 * keyboard.c (Ftrack_mouse):
22994 * print.c (Fwith_output_to_temp_buffer):
22995 * window.c (Fsave_window_excursion): Doc fix.
22996
229972007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22998
22999 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23000
230012007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23002
23003 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23004 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23005 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23006 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23007 Remove unused encoding_carryover.
23008 * process.c: Adjust all functions accordingly.
23009
230102007-07-12 Richard Stallman <rms@gnu.org>
23011
23012 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23013
230142007-07-11 Jason Rumney <jasonr@gnu.org>
23015
23016 * makefile.w32-in (LIBS): Include OLE32.
23017
23018 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23019 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23020
230212007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23022
23023 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23024 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23025 from a Lisp_Object into a bare pointer.
23026 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23027 Adjust the code correspondingly.
23028
23029 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23030
23031 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23032 (term_show_mouse_face): Remove unused var `j'.
23033 (handle_one_term_event): Remove unused vars `i' and `j'.
23034 Don't cast return value of ttyname since it's not necessary.
23035
230362007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23037
23038 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23039 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23040
23041 * fns.c (map_char_table): Use an array of int for `indices' rather than
23042 an array of Lisp_Objects (which are only ever integers anyway).
23043 (Fmap_char_table): Update caller.
23044 * lisp.h: Update prototype.
23045 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23046 * fontset.c (Ffontset_info):
23047 * casetab.c (set_case_table): Update callers.
23048
23049 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23050
23051 * keymap.c (struct accessible_keymaps_data)
23052 (struct where_is_internal_data): New structures.
23053 (accessible_keymaps_1, where_is_internal_1): Use them to change
23054 interface to adhere to the one used by map_keymap.
23055 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23056 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23057
23058 * keymap.h (map_keymap_function_t): More informative prototype.
23059
230602007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23061
23062 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23063 (looking_at_1): Don't change search_regs and last_thing_searched
23064 if `inhibit-changing-match-data' is non-nil.
23065 (string_match_1, search_buffer, set_search_regs): Likewise.
23066 (syms_of_search): Add Lisp level definition for
23067 `inhibit-changing-match-data' and set it to nil.
23068 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23069 start and end of the match, instead of using values in search_regs.
23070
230712007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23072
23073 * minibuf.c (Fcompleting_read): New value `confirm-only'
23074 for `require-match'.
23075
230762007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23077
23078 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23079 part of the 2007-06-27 change to syms_of_fileio.
23080
230812007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23082
23083 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23084 Check WINDOWP before using XWINDOW. Consolidate return statements.
23085
230862007-06-27 Richard Stallman <rms@gnu.org>
23087
23088 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23089
230902007-06-27 Juanma Barranquero <lekktu@gmail.com>
23091
23092 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23093
230942007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23095
23096 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23097 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23098 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23099 (_free_internal, memalign): Use them.
23100 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23101 Initialize to PTHREAD_MUTEX_INITIALIZER.
23102 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23103 (morecore_nolock): Rename from morecore. All uses changed.
23104 Use only nolock versions of internal allocation functions.
23105 (_malloc_internal_nolock, _realloc_internal_nolock)
23106 (_free_internal_nolock): New functions created from
23107 _malloc_internal, _realloc_internal, and _free_internal.
23108 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23109 Copy hook value to automatic variable before its use.
23110 (memalign): Copy hook value to automatic variable before its use.
23111
231122007-06-26 Kenichi Handa <handa@m17n.org>
23113
23114 * coding.c (Ffind_operation_coding_system): Docstring improved.
23115 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23116
231172007-06-25 David Kastrup <dak@gnu.org>
23118
23119 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23120 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23121 cater for additional parameter.
23122
23123 * keymap.h: Adjust number of parameters to `current-active-maps'.
23124
23125 * doc.c (Fsubstitute_command_keys): Adjust call of
23126 `current-active-maps'.
23127
231282007-06-25 David Kastrup <dak@gnu.org>
23129
23130 * callint.c (Fcall_interactively): Make the parsing of interactive
23131 specs somewhat more readable.
23132
231332007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23134
23135 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23136 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23137 if extended background has already been filled.
23138
231392007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23140
23141 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23142 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23143
23144 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23145 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23146 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23147 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23148 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23149 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23150 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23151 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23152 Run timers during dialog popup.
23153 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23154
231552007-06-21 Jason Rumney <jasonr@gnu.org>
23156
23157 * image.c (convert_mono_to_color_image): Swap fore and background.
23158
231592007-06-20 Jason Rumney <jasonr@gnu.org>
23160
23161 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23162 (w32_free_bdf_font): Unmap memory not handle.
23163
231642007-06-20 Sam Steingold <sds@gnu.org>
23165
23166 * gmalloc.c (__morecore): Fix the declaration to comply with the
23167 definition.
23168
231692007-06-20 Juanma Barranquero <lekktu@gmail.com>
23170
23171 * w32term.c (w32_delete_display): Remove leftover declaration.
23172 (w32_define_cursor, w32_initialize): Make static.
23173
23174 * w32.c (_wsa_errlist): Fix typo in error message.
23175 (init_environment): Ignore any environment variable from the
23176 registry having a null value.
23177
231782007-06-20 Glenn Morris <rgm@gnu.org>
23179
23180 * Makefile.in (LIBGIF): Default to -lgif.
23181
231822007-06-17 Jason Rumney <jasonr@gnu.org>
23183
23184 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23185 unicode strings.
23186
231872007-06-16 Juanma Barranquero <lekktu@gmail.com>
23188
23189 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23190 Fix typo in docstring.
23191
231922007-06-16 Eli Zaretskii <eliz@gnu.org>
23193
23194 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23195 and their keybindings.
23196
231972007-06-15 Chong Yidong <cyd@stupidchicken.com>
23198
23199 * composite.c (update_compositions): Fix last fix.
23200
232012007-06-14 Jason Rumney <jasonr@gnu.org>
23202
23203 * w32.c (get_process_times_fn): New function pointer.
23204 (globals_of_w32): Intialize it if present in kernel32.dll.
23205 (w32_get_internal_run_time): New function.
23206
23207 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23208
232092007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23210
23211 * composite.c (update_compositions): Check the validness of
23212 compositions.
23213
232142007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23215
23216 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23217 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23218
23219 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23220 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23221
23222 * macgui.h (USE_MAC_TOOLBAR): New define.
23223
23224 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23225 Return immediately unless popup is activated.
23226
23227 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23228 background to scroll bar gap.
23229 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23230 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23231 scroll bars on frame edge. Check fringe background extension.
23232 Don't clear extended fringe background area.
23233 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23234 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23235 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23236 [USE_MAC_TOOLBAR]: New macros.
23237 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23238 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23239 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23240 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23241 [USE_MAC_TOOLBAR]: New functions.
23242 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23243 manually if previous repositioning has failed.
23244 (mac_handle_keyboard_event): Use precomputed event kind.
23245 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23246 as tool bar item click. Handle mouse movement over tool bar items.
23247
23248 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23249 toolbar_win_gravity.
23250 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23251 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23252 Add externs.
23253
23254 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23255 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23256
232572007-06-14 Chong Yidong <cyd@stupidchicken.com>
23258
23259 * image.c (search_image_cache): Remove unused variable.
23260
232612007-06-13 Chong Yidong <cyd@stupidchicken.com>
23262
23263 * xfns.c, xmenu.c: Link to xaw3d if available.
23264
232652007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23266
23267 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23268 frame_foreground and frame_background.
23269
23270 * image.c (lookup_image): Save frame foreground and background colors.
23271 (search_image_cache): Check if saved and current frame colors match.
23272
232732007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23274
23275 * regex.c (regex_compile): Remove the `regnum' counter.
23276 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23277
232782007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23279
23280 * term.c: Include intervals.h to declare Fget_text_property.
23281
232822007-06-10 Jason Rumney <jasonr@gnu.org>
23283
23284 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23285
232862007-06-08 Juanma Barranquero <lekktu@gmail.com>
23287
23288 * callint.c (Fcall_interactively):
23289 * editfns.c (Fdelete_and_extract_region):
23290 * fileio.c (Fread_file_name):
23291 * fns.c (Fmapconcat):
23292 * keyboard.c (cmd_error_internal):
23293 * keymap.c (Fkey_description):
23294 * lread.c (openp):
23295 * minibuf.c (read_minibuf):
23296 * search.c (wordify):
23297 * sunfns.c (sel_read):
23298 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23299 * xfns.c (x_default_scroll_bar_color_parameter):
23300 * xmenu.c (menu_help_callback):
23301 * xselect.c (Fx_get_atom_name):
23302 * xterm.c (x_term_init): Use empty_unibyte_string.
23303
233042007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23305
23306 * alloc.c (init_strings): Initialize canonical empty strings.
23307 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23308 canonical empty string when the requested size is 0.
23309
23310 * emacs.c (empty_unibyte_string): Rename from empty_string.
23311 (empty_multibyte_string): New canonical empty string.
23312 (syms_of_emacs): Don't initialize empty_string.
23313
23314 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23315 string, if appropriate.
23316 (empty_unibyte_string, empty_multibyte_string): New externs.
23317 (empty_string): Remove extern.
23318
23319 * lread.c (syms_of_lread): Use empty_unibyte_string.
23320
233212007-06-07 Jason Rumney <jasonr@gnu.org>
23322
23323 * s/ms-w32.h: Don't define HAVE_TZNAME.
23324
23325 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23326
233272007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23328
23329 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23330
23331 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23332 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23333
23334 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23335 Don't call next handler.
23336 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23337 Remove argument. Install handler to application.
23338 (set_frame_menubar): Don't change deep_p.
23339 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23340 FRAME_OUTER_TO_INNER_DIFF_Y.
23341 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23342 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23343 [HAVE_DIALOGS]: New macros.
23344 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23345 Use them.
23346 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23347
23348 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23349 init_service_handler. All callers changed. Return OSStatus value.
23350
23351 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23352 All callers changed so as not to call SetPortWindowPort.
23353 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23354 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23355 mac_draw_string_common.
23356 (mac_draw_image_string_qd): Likewise.
23357 (mac_draw_string_common): Use them. Add INLINE.
23358 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23359 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23360 GetGlobalMouse.
23361 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23362 and FRAME_OUTER_TO_INNER_DIFF_Y.
23363 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23364 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23365 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23366 repositioning window to mac_handle_window_event.
23367 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23368 saving window location to mac_handle_window_event
23369 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23370 (install_menu_target_item_handler): Remove argument in extern.
23371 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23372 Also accept command events.
23373 (do_keystroke): New function created from XTread_socket.
23374 (init_command_handler): Remove functions.
23375 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23376 and save window location by kEventWindowShowing and kEventWindowHiding
23377 handlers here. Don't call next handler for window state change and
23378 focus events.
23379 (mac_handle_application_event, mac_handle_keyboard_event)
23380 [TARGET_API_MAC_CARBON]: New functions.
23381 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23382 kEventWindowShowing and kEventWindowHiding events. Move installation
23383 of mouse, font, text input and menu target item handlers to
23384 install_application_handler.
23385 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23386 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23387 New function.
23388 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23389 Register it.
23390 (XTread_socket) [TARGET_API_MAC_CARBON]:
23391 Consolidate SendEventToEventTarget calls.
23392 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23393 Move application activation handler to mac_handle_application_event.
23394 Move keyboard handler to mac_handle_keyboard_event.
23395 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23396 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23397 init_command_handler. Call install_application_handler.
23398
23399 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23400 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23401
234022007-06-07 Glenn Morris <rgm@gnu.org>
23403
23404 * emacs.c (main): Use `emacs-copyright' in --version output.
23405
234062007-06-06 Chong Yidong <cyd@stupidchicken.com>
23407
23408 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23409
234102007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23411
23412 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23413
23414 * macgui.h: Replace WindowPtr with WindowRef.
23415
23416 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23417 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23418 Replace ControlHandle with ControlRef.
23419 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23420
23421 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23422 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23423 Replace ControlHandle with ControlRef.
23424 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23425 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23426
23427 * macterm.h (struct scroll_bar): Rename member control_handle_low
23428 and control_handle_high to control_ref_low and control_ref_high.
23429 All uses changed.
23430 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23431 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23432 respectively. All uses changed.
23433 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23434 (install_window_handler, remove_window_handler): Replace WindowPtr
23435 with WindowRef in externs.
23436
234372007-06-05 Juanma Barranquero <lekktu@gmail.com>
23438
23439 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23440
234412007-06-03 Nick Roberts <nickrob@snap.net.nz>
23442
23443 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23444
23445 * frame.c (Fmouse_position, Fmouse_pixel_position):
23446 Condition on HAVE_GPM too.
23447
23448 * term.c (term_mouse_highlight): Remove unused variables.
23449 (Fterm_open_connection): Set gpm_zerobased to 1.
23450 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23451 Use zero based co-ordinates.
23452 (handle_one_term_event): Report a drag as mouse movement too.
23453
23454 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23455
234562007-06-03 Chong Yidong <cyd@stupidchicken.com>
23457
23458 * image.c (search_image_cache): New function. Require background
23459 color match if background color is unspecified in the image spec.
23460 (uncache_image, lookup_image): Use it.
23461
234622007-06-01 Juanma Barranquero <lekktu@gmail.com>
23463
23464 * window.c (Fshrink_window): Reflow docstring.
23465
234662007-06-02 Chong Yidong <cyd@stupidchicken.com>
23467
23468 * Version 22.1 released.
23469
234702007-06-01 Richard Stallman <rms@gnu.org>
23471
23472 * xfns.c (x_encode_text): Add GCPRO.
23473
234742007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23475
23476 * xfns.c (x_set_name_internal): Save encoded name before
23477 x_encode_text in case string data is relocated.
23478
234792007-05-31 Richard Stallman <rms@gnu.org>
23480
23481 * buffer.c (syms_of_buffer): Doc fix.
23482
234832007-05-30 Nick Roberts <nickrob@snap.net.nz>
23484
23485 * sysdep.c (init_sys_modes): Add rather than replace with
23486 O_NONBLOCK.
23487
23488 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23489 term_mouse_moveto.
23490
23491 * termhooks.h (term_mouse_moveto): New extern.
23492
23493 * term.c (mouse_face_window): Rename...
23494 (Qmouse_face_window): ...to this.
23495 (term_show_mouse_face, term_clear_mouse_face)
23496 (term_mouse_highlight): Use Qmouse_face_window.
23497 (term_mouse_moveto): New function.
23498 (term_mouse_position): Make it work.
23499 (syms_of_term): Uncomment assignment to mouse_position_hook.
23500 Staticpro Qmouse_face_window.
23501
235022007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23503
23504 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23505 around current_column call.
23506
235072007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23508
23509 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23510 * xdisp.c (next_element_from_buffer):
23511 * window.c (delete_window):
23512 * term.c (term_mouse_highlight):
23513 * msdos.c (getdefdir):
23514 * macterm.c (mac_create_bitmap_from_bitmap_data)
23515 (init_font_name_table):
23516 * fns.c (Fsxhash):
23517 * data.c (Fmake_local_variable):
23518 * ccl.c (ccl_driver): Likewise.
23519
235202007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23521
23522 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23523 Call mac_wakeup_from_rne on window size change.
23524
235252007-05-25 Chong Yidong <cyd@stupidchicken.com>
23526
23527 * image.c (uncache_image): Fix typo.
23528
235292007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23530
23531 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23532
235332007-05-22 Richard Stallman <rms@gnu.org>
23534
23535 * xterm.c (x_connection_closed): Remove NO_RETURN.
23536
235372007-05-22 Martin Rudalics <rudalics@gmx.at>
23538
23539 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23540
235412007-05-21 Chong Yidong <cyd@stupidchicken.com>
23542
23543 * image.c (uncache_image): New function.
23544 (Fimage_refresh): New function.
23545
235462007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23547
23548 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23549
235502007-05-20 Nick Roberts <nickrob@snap.net.nz>
23551
23552 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23553 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23554
235552007-05-20 Nick Roberts <nickrob@snap.net.nz>
23556
23557 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23558 conditional on [HAVE_GPM_H].
23559
235602007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23561
23562 * syntax.c (skip_chars): Update syntax-table only after we checked that
23563 the new location is valid.
23564
235652007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23566
23567 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23568 mac_get_window_bounds.
23569
235702007-05-20 Nick Roberts <nickrob@snap.net.nz>
23571
23572 * Makefile.in (LIBGPM): Allow it to be set from configure.
23573 If set then link Emacs with it.
23574
23575 * config.in: Regenerate.
23576
23577 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23578 New externs.
23579
23580 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23581 Include gpm.h.
23582 (handle_one_term_event, term_gpm): New externs.
23583
23584 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23585 and allow it to be interrupted by SIGIO.
23586
23587 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23588 (wait_reading_process_output): Wait on gpm_fd too.
23589 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23590 (add_gpm_wait_descriptor_called_flag): New variable.
23591 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23592
23593 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23594 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23595 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23596 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23597 (make_lispy_event): Add case GPM_CLICK_EVENT.
23598 (read_avail_input): Handle mouse input.
23599
23600 * term.c (write_glyphs_with_face): New function.
23601 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23602 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23603 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23604 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23605 (last_mouse_x, last_mouse_y): New variables.
23606 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23607 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23608 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23609 (Fterm_close_connection): New functions.
23610 (term_init): Initialise mouse_face_window.
23611
236122007-05-19 Chong Yidong <cyd@stupidchicken.com>
23613
23614 * xdisp.c (redisplay_window): If first window line is a
23615 continuation line, recompute the new window start instead of
23616 recentering.
23617
236182007-05-18 Glenn Morris <rgm@gnu.org>
23619
23620 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23621 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23622
236232007-05-17 Glenn Morris <rgm@gnu.org>
23624
23625 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23626
236272007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23628
23629 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23630 dead key repeat and up events.
23631
236322007-05-14 Chong Yidong <cyd@stupidchicken.com>
23633
23634 * image.c (pbm_load): Check image size for monochrome pbm.
23635
236362007-05-13 Chong Yidong <cyd@stupidchicken.com>
23637
23638 * xterm.c (XTread_socket): Revert last change.
23639
236402007-05-12 Chong Yidong <cyd@stupidchicken.com>
23641
23642 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23643
23644 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23645
236462007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23647
23648 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23649 mixup (YAILOM).
23650
236512007-05-07 Andreas Schwab <schwab@suse.de>
23652
23653 * keymap.c (Flookup_key): Fix typo in last change.
23654
236552007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23656
23657 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23658 mapping for unibyte strings.
23659
236602007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23661
23662 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23663 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23664
236652007-04-29 Richard Stallman <rms@gnu.org>
23666
23667 * insdel.c (replace_range): For undo, record insertion first.
23668
236692007-04-29 Andreas Schwab <schwab@suse.de>
23670
23671 * lisp.h (VECSIZE): Use OFFSETOF.
23672
236732007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23674
23675 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23676 disabled lines.
23677
236782007-04-28 Richard Stallman <rms@gnu.org>
23679
23680 * lread.c (read_escape): In a string, \s is always space.
23681
236822007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23683
23684 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23685
23686 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23687 submenu for menu bar items.
23688
23689See ChangeLog.10 for earlier changes.
23690
23691;; Local Variables:
23692;; coding: utf-8
23693;; add-log-time-zone-rule: t
aac0c6e3
MR
23694;; End:
23695
e3eb1dae 23696 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23697
23698 This file is part of GNU Emacs.
23699
23700 GNU Emacs is free software: you can redistribute it and/or modify
23701 it under the terms of the GNU General Public License as published by
23702 the Free Software Foundation, either version 3 of the License, or
23703 (at your option) any later version.
23704
23705 GNU Emacs is distributed in the hope that it will be useful,
23706 but WITHOUT ANY WARRANTY; without even the implied warranty of
23707 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23708 GNU General Public License for more details.
23709
23710 You should have received a copy of the GNU General Public License
23711 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23712
23713;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40