* indent.el (indent-region): Deactivate region (bug#6200).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7f34aec3
GM
12010-05-19 Glenn Morris <rgm@gnu.org>
2
d494e8f2
GM
3 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4
c1d0dcfd
GM
5 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6 (GNULIB_VAR): Remove.
7 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8
9 * m/ibms390x.h (LINKER):
10 * m/macppc.h (LINKER) [GNU_LINUX]:
11 * s/aix4-2.h (ORDINARY_LINK):
12 * s/cygwin.h (LINKER):
13 * s/darwin.h (ORDINARY_LINK):
14 * s/gnu.h (ORDINARY_LINK):
15 * s/netbsd.h (LINKER):
16 * s/usg5-4.h (ORDINARY_LINK):
17 Move to configure.
18
7f34aec3
GM
19 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
20
754790b6
CY
212010-05-18 Chong Yidong <cyd@stupidchicken.com>
22
23 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
24 prevent stack overflow if number of arguments is too large
25 (Bug#6214).
26
161e44d1
JB
272010-05-18 Juanma Barranquero <lekktu@gmail.com>
28
29 * charset.c (load_charset_map_from_file): Don't call close after fclose.
30
be4ff9da
GM
312010-05-18 Glenn Morris <rgm@gnu.org>
32
9539dc5d
GM
33 * s/gnu-linux.h: Combine two conditionals.
34
35 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
36 $(POST_ALLOC_OBJ).
37
40dc6bf4
GM
38 * Makefile.in (RALLOC_OBJ): New, set by configure.
39 (rallocobj): Replace with the previous variable.
40 (otherobj): Use $RALLOC_OBJ.
41
42 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
43 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
44
be4ff9da
GM
45 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
46 (gmallocobj, vmlimitobj): Replace with previous two variables.
47 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
48
16455a85
GM
492010-05-17 Glenn Morris <rgm@gnu.org>
50
51 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
52 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
53
5fdb7468
GM
542010-05-16 Glenn Morris <rgm@gnu.org>
55
7ca1f3f9
GM
56 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
57
7541dad5
GM
58 * Makefile.in (clean): Get rid of HAVE_NS conditional.
59
da53fab9
GM
60 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
61 trailing "/".
62
b02a6645
GM
63 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
64 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
65
8877ca0f
GM
66 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
67 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
68 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
69 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
70 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
71
5fdb7468
GM
72 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
73 Remove ${STARTFLAGS}, nothing ever sets it.
74
95adb4b1
DN
752010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
76
77 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
78
676b6304
GM
792010-05-16 Glenn Morris <rgm@gnu.org>
80
9beab9ce
GM
81 * Makefile.in (LIBX_BASE): Always define.
82
8a95f0e7
GM
83 * Makefile.in (LIBX_OTHER): Move out of cpp section.
84
676b6304
GM
85 * Makefile.in (LIBXT): Always define.
86
6e546d18
GM
872010-05-15 Glenn Morris <rgm@gnu.org>
88
4235ca47 89 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 90
6e546d18
GM
91 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
92 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
93
8c5ff6dd
KR
942010-05-15 Ken Raeburn <raeburn@raeburn.org>
95
560bb7ae 96 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
97 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
98
8b4eb796
KR
99 * emacs.c (main): Initialize initial-environment and
100 process-environment before generating from env, not after.
101
8c5ff6dd
KR
102 Handle --version reasonably in CANNOT_DUMP configuration.
103 * emacs.c (emacs_version, emacs_copyright): New string variables.
104 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
105 (syms_of_emacs): Defvar them, and initialize them from the C
106 string variables.
107 (main): If initialization hasn't been done, print initial version
108 info from the C strings, instead of starting an interactive session.
109
dbd3f723
EZ
1102010-05-15 Eli Zaretskii <eliz@gnu.org>
111
d20e1419
EZ
112 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
113 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
114 (bidi_paragraph_init): Remove redundant assertion that we are at
115 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
116
117 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
118 (syms_of_xdisp): Defsubr it.
119
dbd3f723
EZ
120 * Makefile.in: Fix MSDOS-related comments.
121
02be533b
GM
1222010-05-15 Glenn Morris <rgm@gnu.org>
123
1a82cca9
GM
124 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
125 (really-lwlib, really-oldXMenu): Always define.
126 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
127
3df7b338
GM
128 * Makefile.in: Simplify cpp conditional.
129
2b5f541b
GM
130 * Makefile.in (${ns_appdir}): Simplify using umask.
131
02be533b
GM
132 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
133
4e2db1fe
SM
1342010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
135
136 * eval.c (specbind): Remove left-over duplicate test.
137 Disallow let-binding frame-local vars. Add comment.
138
4b292a22
EZ
1392010-05-14 Eli Zaretskii <eliz@gnu.org>
140
2fe72643 141 Make the cache of bidi iterator states dynamically allocated.
1edbd309 142 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
143 (bidi_init_it): Call it.
144 (bidi_cache_iterator_state): Enlarge the cache if needed.
145
4e2db1fe 146 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
147 bidi_get_next_char_visually. All callers changed.
148
82ebc97b
KH
1492010-05-14 Kenichi Handa <handa@m17n.org>
150
151 * dispextern.h (struct composition_it): New member reversed_p.
152
153 * composite.c (composition_compute_stop_pos): Search backward if
154 ENDPOS < CHARPOS.
155 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
156 Set CMP_IT->reversed_p.
b4b6e17e 157 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 158
4e2db1fe
SM
159 * xdisp.c (set_iterator_to_next):
160 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
161 scanning backward. Call composition_compute_stop_pos if scan
162 direction is changed.
163 (next_element_from_buffer): Call composition_compute_stop_pos with
164 negative ENDPOS if we are scanning backward.
165 (next_element_from_composition): Pay attention to
166 IT->cmp_it.reversed_p.
167
0e5d7800
KH
1682010-05-14 Kenichi Handa <handa@m17n.org>
169
560bb7ae 170 * font.c (font_range): Return the range for the font found at first.
0e5d7800 171
cb027b32
GM
1722010-05-14 Glenn Morris <rgm@gnu.org>
173
177b0288
GM
174 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
175
fbc00890
GM
176 * Makefile.in (mktime, X11, register): Move undefs to configure.
177
f14d1dfd
GM
178 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
179 (MSDOS_X_OBJ): New variable.
180 (MSDOS_SUPPORT_REAL): New constant.
181 (MSDOS_SUPPORT): Set as a variable, not with cpp.
182 (obj): Use MSDOS_X_OBJ.
183 (lisp): Use MSDOS_SUPPORT as a variable.
184
11842bd8
GM
185 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
186 (GPM_MOUSE_SUPPORT): Now it's a constant.
187 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
188 not cpp.
189
489d31a4 190 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 191 (ns_appresdir): Remove, unused.
e20f1f07 192
489d31a4
GM
193 * Makefile.in (SHELL): Move outside cpp section.
194
cb027b32
GM
195 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
196
5a903aa9
GM
1972010-05-13 Glenn Morris <rgm@gnu.org>
198
3369c79f
GM
199 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
200 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
201
d5e982a6
GM
202 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
203 HAVE_WINDOW_SYSTEM must be too.
204
6192e163
GM
205 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
206 (lisp): Remove WINNT_SUPPORT.
207
472c5d6b
GM
208 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
209 Let configure set these variables (to empty) in this case as well.
210
0116466b
GM
211 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
212 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
213
5a903aa9
GM
214 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
215 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
216 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
217 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
218 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 219 the values output by configure.
5a903aa9
GM
220 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
221
1a0d7c06
GM
2222010-05-12 Glenn Morris <rgm@gnu.org>
223
b5457f14
GM
224 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
225 (LINKER_WAS_SPECIFIED): Remove.
226
1a0d7c06
GM
227 * Makefile.in (LIB_GCC): Set using configure, not cpp.
228 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
229 * m/arm.h (LIB_GCC) [GNU_LINUX]:
230 * s/cygwin.h (LIB_GCC):
231 * s/freebsd.h (LIB_GCC):
232 * s/gnu-linux.h (LIB_GCC):
233 * s/msdos.h (LIB_GCC):
234 * s/netbsd.h (LIB_GCC):
235 Move to configure.
236
3ffd4615 2372010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
238
239 * ftfont.c: Fix incorrect parentheses of #if condition for
240 definining M17N_FLT_USE_NEW_FEATURE.
241
acddf8ae
GM
2422010-05-11 Glenn Morris <rgm@gnu.org>
243
244 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
245 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
246
ae5e04fa
EZ
2472010-05-10 Eli Zaretskii <eliz@gnu.org>
248
249 * xdisp.c (init_iterator): Don't turn on bidi reordering in
250 unibyte buffers. See
251 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
252
7490175b
GM
2532010-05-10 Glenn Morris <rgm@gnu.org>
254
97efb629
GM
255 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
256 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
257 (LIBES): Use LIBS_SYSTEM as a variable.
258 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
259 * s/aix4-2.h (LIBS_SYSTEM):
260 * s/freebsd.h (LIBS_SYSTEM):
261 * s/hpux10-20.h (LIBS_SYSTEM):
262 * s/sol2-6.h (LIBS_SYSTEM):
263 * s/unixware.h (LIBS_SYSTEM):
264 Move to configure.
265
7490175b
GM
266 * s/aix4-2.h (MAIL_USE_LOCKF):
267 * s/bsd-common.h (MAIL_USE_FLOCK):
268 * s/darwin.h (MAIL_USE_FLOCK):
269 * s/gnu-linux.h (MAIL_USE_FLOCK):
270 * s/irix6-5.h (MAIL_USE_FLOCK):
271 * s/template.h (MAIL_USE_FLOCK):
272 Move to configure.
273
0235128c 2742010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
275
276 * Version 23.2 released.
277
0235128c 2782010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
279
280 * composite.c (autocmp_chars): Save point as marker before calling
281 auto-composition-function (Bug#5984).
282
283 * lisp.h (restore_point_unwind): Add prototype.
284
285 * fileio.c (restore_point_unwind): Remove static attribute.
286
0235128c 2872010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
288
289 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
290 new feature of libotf and m17n-flt.
0235128c
SM
291 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
292 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
293 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
294 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
295 that OUT is NULL. Use OTF_drive_gsub_with_log and
296 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
297 OTF_drive_gpos.
298 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
299 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
300 Setup mflt_enable_new_feature and mflt_try_otf.
301
4721152c
J
3022010-05-08 Jan Djärv <jan.h.d@swipnet.se>
303
304 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
305
306 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
307 box and toolbar (Bug #6139).
308 (xg_create_tool_bar): Remove comment (Bug #6139).
309 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
310 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
311
ee0a16cf
JB
3122010-05-08 Juanma Barranquero <lekktu@gmail.com>
313
314 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
315 Update dependencies.
316
96d79611
EZ
3172010-05-08 Eli Zaretskii <eliz@gnu.org>
318
319 * fringe.c (update_window_fringes): Set up truncation bitmaps for
320 R2L lines.
321
40c17879
GM
3222010-05-08 Glenn Morris <rgm@gnu.org>
323
7b42b29f
GM
324 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
325
40c17879
GM
326 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
327 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
328 (termcapobj): Replace with TERMCAP_OBJ.
329 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
330 (LIBES): Use LIBS_TERMCAP as a variable.
331
332 * s/freebsd.h (osreldate.h): No longer include, since this file
333 does not use __FreeBSD_version any more.
334
335 * s/aix4-2.h (TERMINFO):
336 * s/cygwin.h (TERMINFO):
337 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
338 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
339 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
340 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
341 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
342 * s/irix6-5.h (TERMINFO):
343 * s/netbsd.h (LIBS_TERMCAP):
344 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
345 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
346 * s/usg5-4.h (TERMINFO):
347 Move to configure.
348
94b612ad
SM
3492010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
350
351 * eval.c (unbind_to): Don't unbind a local binding into the global
352 binding when the local binding disappeared. Inversely, don't unbind
353 a global binding into a newly created local binding.
354 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
355 can specify the frame to use, when applicable. Adjust callers.
356
15e12598
VB
3572010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
358 Stefan Monnier <monnier@iro.umontreal.ca>
359
360 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
361
f724825e
EZ
3622010-05-07 Eli Zaretskii <eliz@gnu.org>
363
5cba3209
EZ
364 * w32fns.c: Include w32.h.
365 (Fw32_shell_execute): Decode the error message before passing it
366 to `error'. (Bug#6126)
367
d16bdfc3
EZ
368 * msdos.c (dos_set_window_size):
369 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
370 instead of `XSYMBOL (foo)->value'.
371
59d93e87
EZ
3722010-05-07 Eli Zaretskii <eliz@gnu.org>
373
9fdec8bc
EZ
374 Fix the MS-DOS build, broken by autoconfiscation.
375
376 * Makefile.in: Don't use Make-style comments past the "start of
377 cpp stuff" line.
378 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
379
380 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
381 edited directly by msdos/sed1v2.inp).
f724825e 382
2f86b22b
GM
3832010-05-07 Glenn Morris <rgm@gnu.org>
384
385 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
386 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
387 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
388 move out of cpp section.
389 * s/freebsd.h (LD_SWITCH_SYSTEM):
390 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
391 * s/netbsd.h (LD_SWITCH_SYSTEM):
392 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
393
49ebbd65
DN
3942010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
395
396 Define LIB_STANDARD and START_FILES using autoconf.
397 * s/usg5-4.h (LIB_STANDARD):
398 * s/netbsd.h (START_FILES):
399 * s/irix6-5.h (LIB_STANDARD):
400 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
401 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
402 * s/freebsd.h (START_FILES):
403 * s/darwin.h (START_FILES):
404 * s/cygwin.h (START_FILES):
405 * s/aix4-2.h (LIB_STANDARD):
406 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
407 * Makefile.in (STARTFILES): Rename to START_FILES, define using
408 autoconf, not cpp.
409
d43c06d6
DN
4102010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
411
28823648
DN
412 Remove NEED_BSDTTY and NEED_UNISTD_H.
413 * s/hpux10-20.h (NEED_BSDTTY): Remove.
414 * s/aix4-2.h (NEED_UNISTD_H): Remove.
415 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
416 <sys/ptyio.h> and <unistd.h>.
417
aca00430
DN
418 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
419
d43c06d6
DN
420 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
421 * s/gnu.h (START_FILES): Remove empty definition.
422
3e56b11d
JD
4232010-05-06 Jan Djärv <jan.h.d@swipnet.se>
424
425 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
426
e3cf0cde
GM
4272010-05-06 Glenn Morris <rgm@gnu.org>
428
429 * Makefile.in (CPP, LN_S): Remove unused variables.
430
774b9a60
SM
4312010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
432
433 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
434
4ab92842
LM
4352010-05-05 Lawrence Mitchell <wence@gmx.li>
436
437 * m/sparc.h: Fix typo in earlier change.
438
178f2507
SM
4392010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
440
441 Misc tweaks.
442 * eval.c (Fdefvaralias): Remove unintended nested if.
443 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
444
80f00217 4452010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
446
447 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
448
ef03a4e6
DN
4492010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
450
58eb6cf0
DN
451 Remove BSD_PGRPS.
452 * s/bsd-common.h (BSD_PGRPS): Remove undef.
453 * s/gnu-linux.h (BSD_PGRPS): Remove.
454 * term.c (dissociate_if_controlling_tty):
455 * sysdep.c (narrow_foreground_group, widen_foreground_group)
456 (init_sys_modes, reset_sys_modes):
457 * emacs.c (main):
458 * callproc.c (Fcall_process, child_setup): Remove code depending
459 on BSD_PGRPS.
460
ef03a4e6
DN
461 Remove POSIX_SIGNALS.
462 * s/usg5-4.h (POSIX_SIGNALS):
463 * s/netbsd.h (POSIX_SIGNALS):
464 * s/msdos.h (POSIX_SIGNALS):
465 * s/ms-w32.h (POSIX_SIGNALS):
466 * s/hpux11.h (POSIX_SIGNALS):
467 * s/gnu.h (POSIX_SIGNALS):
468 * s/gnu-linux.h (POSIX_SIGNALS):
469 * s/freebsd.h (POSIX_SIGNALS):
470 * s/darwin.h (POSIX_SIGNALS):
471 * s/cygwin.h (POSIX_SIGNALS):
472 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
473 * s/unixware.h:
474 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
475 * process.c (create_process):
476 * syssignal.h:
477 * sysdep.c (wait_for_termination, init_signals):
478 * process.c (create_process):
479 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
480 remove all code that assumes the contrary.
481
49628785
GM
4822010-05-04 Glenn Morris <rgm@gnu.org>
483
27a2cdfc
GM
484 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
485 variable.
486 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
487 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
488 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
489 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
490 LD_SWITCH_SYSTEM_tmp.
491 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
492 New variables, set by configure.
493
eb21eab5
GM
494 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
495 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
496 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
497 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
498 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
499
49628785
GM
500 * s/aix4-2.h (C_SWITCH_SYSTEM):
501 * m/alpha.h (C_SWITCH_MACHINE):
502 Move to configure.in.
503 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
504 New variables, set by configure.
505 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
506 $c_switch_machine and $c_switch_system.
507
7dff330b
DN
5082010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
509
510 * s/hpux10-20.h (LIB_STANDARD): New definition.
511 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
512 on it, not used anymore.
513
53967e09
CY
5142010-05-03 Chong Yidong <cyd@stupidchicken.com>
515
516 * eval.c (internal_condition_case_n): Rename from
517 internal_condition_case_2.
518 (internal_condition_case_2): New function.
519
520 * xdisp.c (safe_call): Use internal_condition_case_n.
521
522 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
523 (internal_delete_file, Frename_file): Callers changed.
524
525 * buffer.c (Fkill_buffer):
526 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
527
528 * lisp.h: Update prototypes.
529
3dee6fdb
GM
5302010-05-03 Glenn Morris <rgm@gnu.org>
531
532 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
533 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
534 (LIBXT): Set with configure, not cpp.
535 (LIBX): Remove.
536 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
537
a101e0fb
DN
5382010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
539
540 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
541 The FreeBSD is not needed, the default works, Solaris version is
542 not needed, and the remaining case is not supported by configure.
543
f63d0028
JD
5442010-05-02 Jan Djärv <jan.h.d@swipnet.se>
545
546 * xsmfns.c (CHDIR_OPT): New define.
547 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
548 restarting emacs.
549
550 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
551 shut_down_emacs.
552
553 * emacs.c (USAGE1): Mention --chdir.
554 (main): Handle --chdir.
555 (standard_args): Add --chdir.
556 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
557 #5552).
558
e4814a9f
DN
5592010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
560
cd03c74a
DN
561 Remove LD_SWITCH_MACHINE.
562 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
563 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
564
c3a398a1
DN
565 Clean up IRIX code.
566 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
567 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
568
87e7285c
DN
569 Clean up AIX code.
570 * m/ibmrs6000.inp: Remove file, unused.
571 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
572 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
573 definition ...
574 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
575
80f00217
JB
576 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
577 unused.
e4814a9f 578
59ca28de
EZ
5792010-05-01 Eli Zaretskii <eliz@gnu.org>
580
197daef4
EZ
581 Emulate POSIX_SIGNALS on MS-Windows.
582
583 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
584 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
585
586 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
587 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
588 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
589
80f00217
JB
590 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
591 New stubs.
197daef4 592
af7c7572
EZ
593 Miscellaneous fixes of bidi display.
594
59ca28de
EZ
595 * xdisp.c (find_row_end): New function, refactored from display_line.
596 (display_line): Use it.
017ea819
EZ
597 (extend_face_to_end_of_line): In almost-filled rows, extend only
598 if the row is R2L and not continued.
166e930d 599 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 600 Preserve overlay and string info in row->end.
166e930d
EZ
601 (insert_left_trunc_glyphs): Support addition of left truncation
602 glyphs to R2L rows.
b47e0dcf 603 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
604 glyph between adjacent windows. Fix a crash when a display string
605 is continued to the next line. Don't return zero if cursor was
606 found by `cursor' property of a display string.
b47e0dcf
EZ
607 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
608 test for that explicitly.
59ca28de 609
7acac9f4
GM
6102010-05-01 Glenn Morris <rgm@gnu.org>
611
612 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
613 for clarity.
614 (OTHER_OBJ): Remove.
615 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
616 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
617
45841e65
KK
6182010-05-01 Karel Klíč <kklic@redhat.com>
619
620 * fileio.c (Ffile_selinux_context): Context functions may return null.
621
afc61943
DN
6222010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
623
80f00217 624 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 625
5a1bb006
GM
6262010-04-30 Glenn Morris <rgm@gnu.org>
627
628 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
629 (OTHER_OBJ): Define as a separate variable, for clarity.
630
210af043
J
6312010-04-30 Jan Djärv <jan.h.d@swipnet.se>
632
633 * xsettings.c: include limits.h and update file comment.
634
0a7df391
GM
6352010-04-30 Glenn Morris <rgm@gnu.org>
636
d5096f16
GM
637 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
638 Set with configure, not cpp.
639 (LIBW): Remove, replace with $TOOLKIT_LIBW.
640
7eb1ac33
GM
641 * Makefile.in (mallocobj): Remove.
642 (otherobj): Simplify using @OTHER_OBJ@.
643
517d086b
GM
644 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
645 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
646 Don't bother making nsgui.h dependency platform-specific.
647
0a7df391
GM
648 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
649
d6d23852
SM
6502010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
651
d2630aef
SM
652 * process.c (read_process_output, exec_sentinel): Don't burp if the
653 sentinel/filter kills the current buffer (bug#6060).
654
f9dddf52 655 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
656 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
657 Remove unused var `args'.
658 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
659 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
660 * doc.c (store_function_docstring): Use XSETCAR.
661
f1e3642a
GM
6622010-04-28 Glenn Morris <rgm@gnu.org>
663
faf535f8
GM
664 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
665 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
666
c40f9449
GM
667 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
668
658f86ca
GM
669 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
670 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
671
bc0b5f61
GM
672 * Makefile.in (FONT_OBJ): New, set by configure.
673 (FONT_DRIVERS): Use $FONT_OBJ.
674
294c50a0
GM
675 * Makefile.in (LIBXMU): Set with configure, not cpp.
676 * s/aix4-2.h (LIBXMU):
677 * s/hpux10-20.h (LIBXMU):
678 Remove definition, now set in configure.
679
e6ec4e99
GM
680 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
681
f1e3642a
GM
682 * m/amdx86-64.h [i386]: Move this test to configure.in.
683
c6ea2936
GM
6842010-04-27 Glenn Morris <rgm@gnu.org>
685
8fdac2c3
GM
686 * Makefile.in (LIBXTR6): Set with configure, not cpp.
687 * s/unixware.h (NEED_LIBW): Remove definition.
688
986fb647
GM
689 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
690 (TOOLKIT_LIBW): New, set by configure.
691 (@X_TOOLKIT_TYPE@): No longer define it.
692
c6ea2936
GM
693 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
694 (MOTIF_LIBW): Set with configure, not cpp.
695 * s/aix4-2.h (LIB_MOTIF):
696 * s/gnu-linux.h (LIB_MOTIF):
697 * s/unixware.h (LIB_MOTIF): Move to configure.in.
698
aaa36002
DN
6992010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
700
701 Reduce CPP usage.
702 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
703 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
704 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
705 definitions and undefs. Inline definitions in the only user.
706 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 707
b678dd8b
GM
7082010-04-27 Glenn Morris <rgm@gnu.org>
709
76cda504
GM
710 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
711 since the defaults (set by the system file) are fine in most cases.
712 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
713 * m/ibms390x.h (START_FILES, LIB_STANDARD):
714 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
715 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
716 Remove definitions, since they are set correctly in s/gnu-linux.h.
717 * s/freebsd.h (START_FILES, LIB_STANDARD):
718 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
719 * s/hpux10-20.h (START_FILES):
720 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
721 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
722
b678dd8b
GM
723 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
724 (MOTIF_LIBW): Use $LIBXP.
725 (otherobj): Use $WIDGET_OBJ.
726
9452ded1
DN
7272010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
728
7e10844c
DN
729 * Makefile.in (LIBS_MACHINE): Remove, unused.
730
9452ded1
DN
731 Use autoconf instead of cpp for LIB_MATH.
732 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
733 * s/cygwin.h (LIB_MATH): Likewise.
734 * Makefile.in (LIB_MATH): Do not define with cpp.
735 (LIBES): Use autoconf for LIB_MATH.
736
fcebfc6a
KH
7372010-04-26 Kenichi Handa <handa@m17n.org>
738
739 * composite.c (Ffind_composition_internal): Fix the return value
740 for an automatic composition.
741
39e2ad1b
DN
7422010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
743
744 Remove all NO_ARG_ARRAY uses.
745 * fns.c (concat2, concat3, nconc2):
746 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
747 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
748 * m/xtensa.h (NO_ARG_ARRAY):
749 * m/template.h (NO_ARG_ARRAY):
750 * m/sparc.h (NO_ARG_ARRAY):
751 * m/sh3.h (NO_ARG_ARRAY):
752 * m/mips.h (NO_ARG_ARRAY):
753 * m/macppc.h (NO_ARG_ARRAY):
754 * m/iris4d.h (NO_ARG_ARRAY):
755 * m/intel386.h (NO_ARG_ARRAY):
756 * m/ibms390x.h (NO_ARG_ARRAY):
757 * m/ibms390.h (NO_ARG_ARRAY):
758 * m/ibmrs6000.h (NO_ARG_ARRAY):
759 * m/ia64.h (NO_ARG_ARRAY):
760 * m/hp800.h (NO_ARG_ARRAY):
761 * m/arm.h (NO_ARG_ARRAY):
762 * m/amdx86-64.h (NO_ARG_ARRAY):
763 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
764
adf4f59c
EZ
7652010-04-25 Eli Zaretskii <eliz@gnu.org>
766
6bdf5d65
EZ
767 * xdisp.c (display_line): Don't assume 2nd call to
768 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
769 (iterate_out_of_display_property): New function, body from pop_it.
770 (pop_it): Use it.
adf4f59c 771
dfbbda83
GM
7722010-04-24 Glenn Morris <rgm@gnu.org>
773
774 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
775 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
776 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
777 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
778
2d4018aa
EZ
7792010-04-24 Eli Zaretskii <eliz@gnu.org>
780
a49884a6
EZ
781 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
782 use `get_next_display_element' and `set_iterator_to_next' to
783 advance to the next character, when looking for the character that
784 begins the next row.
785
76db6fcc 786 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
787 definition of "struct Lisp_Symbol".
788
70eab5c1
GM
7892010-04-24 Glenn Morris <rgm@gnu.org>
790
791 * Makefile.in (CRT_DIR): New variable, set by configure.
792 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
793 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
794
1ad4cc3d
DN
7952010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
796
e769f484
DN
797 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
798
4196ff33
DN
799 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
800
879b0ee4
DN
801 Remove redundant flags.
802 * s/freebsd.h (C_SWITCH_SYSTEM):
803 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
804 * s/netbsd.h (C_SWITCH_SYSTEM):
805 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
806 of these.
807
03cbbcb8
DN
808 Simplify m/intel386.h.
809 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
810 user: ecrt0.c.
811 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
812 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
813 the only user: s/unixware.h.
814 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
815 from m/intel386.h.
816 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
817 moved here from m/intel386.h.
818
1ad4cc3d
DN
819 * m/mips.h: Remove #if 0 code.
820
8785b888
EZ
8212010-04-23 Eli Zaretskii <eliz@gnu.org>
822
728588cc
EZ
823 Fix display of composed characters from L2R scripts in bidi buffers.
824 * xdisp.c (set_iterator_to_next, next_element_from_composition):
825 After advancing IT past the composition, resync the bidi iterator
826 with IT's position. (Bug#5977)
827
a63f80b4
DN
8282010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
829
830 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
831 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
832
ff5dec5c
SM
8332010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
834
835 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
836
8785b888
EZ
8372010-04-23 Eli Zaretskii <eliz@gnu.org>
838
58ccf243 839 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
840 * xdisp.c (pop_it): When the stack is popped after displaying
841 from a string, bidi-iterate to exit from the text portion covered
842 by the `display' property or overlay. (Bug#5988, bug#5920)
843
feeb1604
DN
8442010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
845
8e324eb6
DN
846 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
847 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
848
809fcaba
DN
849 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
850 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
851
ed710380
DN
852 Simplify STARTFILES definition.
853 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
854 relying on Makefile.in to define it.
855 * s/cygwin.h (START_FILES): Likewise.
856 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
857
feeb1604
DN
858 Clean up Solaris code.
859 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
860 (LIB_MOTIF): Remove, configure takes care of this.
861 (NOT_USING_MOTIF): Remove, unused.
862 * xrdb.c: Remove #if 0-ed #include.
863 (SYSV): Remove conditional for old SysV.
864 * sysdep.c (closedir): Remove conditional code for Solaris,
865 Solaris has closedir.
866
a0d0b563
JD
8672010-04-22 Jan Djärv <jan.h.d@swipnet.se>
868
869 * xsettings.c (read_and_apply_settings): Check if current_font is
870 NULL before strcmp (Bug#6001).
871
56bae7c7
DN
8722010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
873
874 Clean up HP-UX files.
875 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
876 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
877 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
878 * s/hpux10-20.h: ... to the only user, here.
879
372b7a95
EZ
8802010-04-21 Eli Zaretskii <eliz@gnu.org>
881
882 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
883 use buffer-local values of paragraph-start and paragraph-separate.
884 <paragraph_start_re, paragraph_separate_re>: Rename from
885 fallback_paragraph_start_re and fallback_paragraph_separate_re.
886 (Bug#5992)
887
f904c0f9
JD
8882010-04-21 Jan Djärv <jan.h.d@swipnet.se>
889
890 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
891 current_tool_bar_style are new.
892 (store_config_changed_event): Rename from store_font_changed_event.
893 (XSETTINGS_TOOL_BAR_STYLE): New define.
894 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
895 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
896 HAVE_XFT.
897 (something_changedCB): store_font_changed_event is now
898 store_config_changed_event
899 (parse_settings): Rename from parse_xft_settings. Read
900 non-xft xsettings outside #ifdef HAVE_XFT.
901 (read_settings): Renamed from read_xft_settings.
902 (apply_xft_settings): Take current settings as parameter. Do not
903 call read_(xft)_settings.
904 (read_and_apply_settings): New function.
905 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
906 read_and_apply_settings if there are settings to be read.
907 (init_xsettings): Renamed from init_xfd_settings.
908 Call read_and_apply_settings unconditionally.
909 (xsettings_initialize): Call init_xsettings.
910 (Ftool_bar_get_system_style): New function.
911 (syms_of_xsettings): Define Qmonospace_font_name and
912 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 913 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 914 dynamic-setting.
31a01b90 915 Move misplaced HAVE_GCONF
f904c0f9
JD
916
917 * xsettings.h (Ftool_bar_get_system_style): Declare.
918
919 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
920 Qtext, Qboth, Qboth_horiz are new.
921 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
922 Vtool_bar_style, tool_bar_max_label_size.
923
924 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
925
926 * keyboard.c: QClabel is new.
927 (parse_tool_bar_item): Take out QClabel from tool bar items.
928 Try to construct a label if ther is no QClabel.
929 (syms_of_keyboard): Intern :label as QClabel.
930
931 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
932 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
933 New.
934
935 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
936 dynamic-setting.el.
937
938 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
939 (xg_make_tool_item, xg_show_toolbar_item): New function.
940 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
941 Call xg_make_tool_item to make a tool bar item.
942 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
943
944 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
945 into account for toolbars.
946
c632dfda
JD
9472010-04-21 Jan Djärv <jan.h.d@swipnet.se>
948
949 * data.c (make_blv): Declarations before code (Bug#5993).
950
10efe302
GM
9512010-04-21 Glenn Morris <rgm@gnu.org>
952
953 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
954 Define using autoconf, not cpp.
955 (LIBXSM): New variable, set by autoconf.
956 (LIBXT): Use $LIBXSM.
957
4285ac5a
DN
9582010-04-21 Dan Nicolaescu <local_user@dannlt>
959
3ec759e7
DN
960 Remove NOMULTIPLEJOBS, unused.
961 * s/template.h (NOMULTIPLEJOBS):
962 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
963
4285ac5a
DN
964 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
965 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
966 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
967 detects -znocombreloc and passes it to the linker
968 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
969
2807228d
GM
9702010-04-21 Glenn Morris <rgm@gnu.org>
971
972 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
973
574c05e2
KK
9742010-04-21 Karel Klíč <kklic@redhat.com>
975
976 * Makefile.in (LIBSELINUX_LIBS): New.
977 (LIBES): Add $LIBSELINUX_LIBS.
978 * eval.c, lisp.h (call7): New function.
979 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
980 (Ffile_selinux_context, Fset_file_selinux_context):
981 New functions.
982 (Fcopy_file): New parameter preserve-selinux-context.
983 (Frename_file): Preserve selinux context when renaming by copy-file.
984
91eac4bb 9852010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 986 Eli Zaretskii <eliz@gnu.org>
91eac4bb 987
50426a04
JB
988 Don't depend on cm.c or termcap.c on Windows, use stubs.
989 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
990 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
991 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
992 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
993 (sys_tputs, sys_tgetstr): New stubs.
994 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
995 (tputs, tgetstr): New; define to sys_*.
91eac4bb 996
938efb77
JB
9972010-04-20 Juanma Barranquero <lekktu@gmail.com>
998
999 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1000
b4bf28b7
SM
10012010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1002
8b1e1112
SM
1003 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1004 Just signal a warning rather than an error when inside a let.
1005 (Fmake_variable_frame_local): Add the same test.
1006
933ac235
SM
1007 * font.c (syms_of_font): Make the style table vars read-only.
1008
b4bf28b7
SM
1009 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1010 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1011
1012 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1013
93d68d0c
EZ
10142010-04-20 Eli Zaretskii <eliz@gnu.org>
1015
1016 Fix R2L paragraph display on TTY.
1017
1018 * xdisp.c (unproduce_glyphs): New function.
1019 (display_line): Use it when produced glyphs are discarded from R2L
1020 glyph rows.
1021 (append_composite_glyph): In R2L rows, prepend the glyph rather
1022 than appending it.
1023
1024 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1025 rather than append it. Set up the resolved_level and bidi_type
1026 attributes of the appended glyph.
283ccc18
EZ
1027 (produce_special_glyphs): Mirror the backslash continuation
1028 character in R2L lines.
93d68d0c 1029
283ccc18 1030 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1031
283ccc18
EZ
1032 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1033 append_stretch_glyph.
1034 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1035 off-by-one error in computing x at end of text in the row.
1036 (append_stretch_glyph): In reversed row, prepend the glyph rather
1037 than append it. Set resolved_level and bidi_type of the glyph.
1038 (extend_face_to_end_of_line): If the row is reversed, prepend a
1039 stretch glyph whose width is such that the rightmost glyph will be
1040 drawn at the right margin of the window. Fix off-by-one error on
1041 TTY frames in testing whether a line needs face extension. Fix
1042 face extension at ZV. If this is the last glyph row, use
1043 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1044 region face.
1045 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1046 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1047 row->continuation_lines_width.
283ccc18
EZ
1048 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1049 are at ZV. Fixes a crash when reseated to ZV by
1050 try_window_reusing_current_matrix.
45903529
EZ
1051 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1052 which happens with R2L glyph rows. Fixes a crash when inserting a
1053 character at end of an R2L line.
283ccc18
EZ
1054 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1055 treat them as having zero-width characters. Improve comments.
1056 Don't reverse pos_before and pos_after for reversed glyph rows.
1057 Set cursor.x to negative value when the cursor might be on the
1058 left fringe.
1059 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1060 left fringe, not the right one.
f951a506
EZ
1061 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1062 (erase_phys_cursor): For reversed cursor_row, support cursor on
1063 the left fringe.
1064
283ccc18
EZ
1065 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1066 of continuation indicators on the fringes.
1067 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1068 left fringe.
1069
f951a506
EZ
1070 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1071 draw cursor on the left fringe.
1072
1073 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1074 cursor on the left fringe.
1075
f951a506
EZ
1076 * dispnew.c (update_text_area): Handle reversed desired rows when
1077 the cursor is on the left fringe.
1078 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1079 below, not by 0, for when the cursor is on the left fringe.
1080
3bb49aaf
JD
10812010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1082
1083 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1084 widget is a scrollbar.
1085
c0be27fd
KH
10862010-04-20 Kenichi Handa <handa@m17n.org>
1087
1088 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1089 only when the arg CHARSET_LIST is nil.
1090
ce5b453a
SM
10912010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 Make variable forwarding explicit rather the using special values.
1094 Basically, this makes the structure of buffer-local values and object
1095 forwarding explicit in the type of Lisp_Symbols rather than use
1096 special Lisp_Objects for that. This tends to lead to slightly more
1097 verbose code, but is more C-like, simpler, and makes it easier to make
1098 sure we handled all cases, among other things by letting the compiler
1099 help us check it.
1100 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1101 Removing forwarding objects.
1102 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1103 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1104 explicit rather than hiding them inside Lisp_Object "values".
1105 (XFWDTYPE): New macro.
1106 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1107 (XBUFFER_LOCAL_VALUE): Remove.
1108 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1109 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1110 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1111 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1112 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1113 Remove the Lisp_Misc_* header.
1114 (struct Lisp_Buffer_Local_Value): Redefine.
1115 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1116 (struct Lisp_Misc_Any): Add filler to get the right size.
1117 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1118 Lisp_Intfwd.
1119 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1120 (DEFVAR_KBOARD): Allocate a forwarding object.
1121 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1122 (let_shadows_global_binding_p): New function.
1123 (union Lisp_Val_Fwd): New type.
1124 (make_blv): New function.
1125 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1126 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1127 (swap_in_symval_forwarding, find_symbol_value, Fset)
1128 (let_shadows_buffer_binding_p, set_internal, default_value)
1129 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1130 (Fkill_local_variable, Fmake_variable_frame_local)
1131 (Flocal_variable_p, Flocal_variable_if_set_p)
1132 (Fvariable_binding_locus):
1133 * xdisp.c (select_frame_for_redisplay):
1134 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1135 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1136 * frame.c (store_frame_param):
1137 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1138 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1139 value structure.
1140 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1141 (clone_per_buffer_values): Only adjust markers into the current buffer.
1142 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1143 (Fbuffer_local_value, set_buffer_internal_1)
1144 (swap_out_buffer_local_variables):
1145 Adapt to the new symbol value structure.
1146 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1147 (defvar_per_buffer): Take a new arg for the fwd object.
1148 (buffer_lisp_local_variables): Return a proper alist (different fix
1149 for bug#4138).
1150 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1151 (Fgarbage_collect): Don't handle buffer_defaults specially.
1152 (mark_object): Handle new symbol value structure rather than the old
1153 special Lisp_Misc_* objects.
1154 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1155 * term.c (set_tty_color_mode):
1156 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1157 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1158 a buffer_local_flags.
1159 * print.c (print_object): Get rid of impossible forwarding objects.
1160
fd3998ff
EZ
11612010-04-19 Eli Zaretskii <eliz@gnu.org>
1162
1163 * bidi.c (bidi_get_type, bidi_get_category)
1164 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1165 (bidi_type_of_next_char, bidi_level_of_next_char):
1166 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1167
e42cd1a7
JB
11682010-04-19 Juanma Barranquero <lekktu@gmail.com>
1169
1170 * dired.c (Ffile_attributes): Fix typo in docstring.
1171
6e104790 11722010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1173
1174 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1175 NSInteger (Bug#5811).
1176
6e104790 11772010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1178
1179 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1180 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1181
6e104790 11822010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1183
1184 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1185
6e104790
SM
11862010-04-19 Chong Yidong <cyd@stupidchicken.com>
1187
1188 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1189 terminal frames (Bug#5837).
1190
37dcfea0
EZ
11912010-04-19 Eli Zaretskii <eliz@gnu.org>
1192
d1da276f
EZ
1193 * .gdbinit (xsubchartable): New command.
1194
37dcfea0
EZ
11952010-04-19 Eli Zaretskii <eliz@gnu.org>
1196
1197 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1198 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1199 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1200 and
1201 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1202
e9515805
SM
12032010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1204
1205 * alloc.c (Fpurecopy): Hash-cons if requested.
1206 (syms_of_alloc): Update purify-flag docstring.
1207
22aa44a8
JD
12082010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1209
1210 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1211 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1212
ebb5722e
EZ
12132010-04-17 Eli Zaretskii <eliz@gnu.org>
1214
1215 Fix a crash when an NSM character is inserted at BEGV.
1216
1217 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1218 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1219 NEUTRAL_B or UNKNOWN_BT.
1220
0f4442ef
EZ
12212010-04-16 Eli Zaretskii <eliz@gnu.org>
1222
1223 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1224 other rows with cursor unless they are different from this row and
1225 this row is part of a continued line. (Bug#5943)
1226
7d4e45f8
DN
12272010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1228
1229 * s/freebsd.h: Restore osreldate.h include.
1230 Suggested by Naohiro Aota.
1231
5ba5ec85
J
12322010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1233
1234 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1235
20af301d
CY
12362010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1237
1238 * s/cygwin.h: Avoid linking against static libgcc.
1239
a4b000fb
JL
12402010-04-15 Juri Linkov <juri@jurta.org>
1241
1242 * window.c: Add Qscroll_command.
1243 Remove Vscroll_preserve_screen_position_commands.
1244 (window_scroll_pixel_based, window_scroll_line_based): Check the
1245 `scroll-command' property on the last command instead of searching
1246 the last command in Vscroll_preserve_screen_position_commands.
1247 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1248 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1249 (scroll-preserve-screen-position): Doc fix.
1250 (Vscroll_preserve_screen_position_commands): Remove variable.
1251
bc319ba4
DN
12522010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1253
6bb24457
DN
1254 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1255
19d4c244
DN
12562010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1257
1258 Reduce cpp use in Makefile.in.
1259 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1260 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1261 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1262 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1263 (CRT0_COMPILE): Remove, inline it in the only user.
1264
32129746
JL
12652010-04-14 Juri Linkov <juri@jurta.org>
1266
1267 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1268 `scroll-up-command' and `M-v' from `scroll-down' to
1269 `scroll-down-command'.
1270
9013a7f8
JL
12712010-04-14 Juri Linkov <juri@jurta.org>
1272
1273 * window.c (Vscroll_preserve_screen_position_commands): New variable
1274 with the default value as the list of Qscroll_down and Qscroll_up.
1275 (window_scroll_pixel_based, window_scroll_line_based): Search the
1276 last command in the list Vscroll_preserve_screen_position_commands
1277 instead of comparing with Qscroll_up and Qscroll_down.
1278
4bef8d26
JD
12792010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1280
92848133
JD
1281 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1282 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1283 does that.
1284
4bef8d26
JD
1285 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1286 to zero.
1287
58b963f7
SM
12882010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1289
84164a0d
SM
1290 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1291
2b0a91e7
SM
1292 Try to solve the problem of spurious EOF chars in long lines of text
1293 sent to interactive subprocesses.
1294 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1295 (system_process_attributes): Remove unused var `ttotal'.
1296 * process.c (send_process): Don't bother breaking long line with EOF
1297 chars when talking to ttys any more.
1298 (wait_reading_process_output): Output a warning when called in such
1299 a way that it could block without being interruptible.
1300
58b963f7
SM
1301 Try to detect file modification within the same second.
1302 * buffer.h (struct buffer): New field modtime_size.
1303 * buffer.c (reset_buffer): Initialize it.
1304 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1305 (Fverify_visited_file_modtime): Check it.
1306 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1307 (Fset_visited_file_modtime): Set (or clear) it.
1308
01f5787b
SM
13092010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1310
1311 * process.c (status_notify): Remove unused var `ro'.
1312
83725342
JD
13132010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1314
1315 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1316 more than one visual (Bug#5938).
1317
b9465836
DN
13182010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1319
50426a04
JB
1320 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1321 Undefine.
b9465836 1322
8d9c8ece
DN
13232010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1324
b1f52161
DN
1325 Remove C_SWITCH_SYSTEM_TEMACS.
1326 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1327 (malloc, realloc, free): Use emacs, not temacs for conditional
1328 definition.
1329
1330 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1331 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1332
8d9c8ece
DN
1333 Use autoconf, not cpp for some variables.
1334 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1335 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1336 (ALL_CFLAGS): Use them as make variables.
1337 (really-lwlib, really-oldXMenu): Do not pass them.
1338
1ecb2d3f
JD
13392010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1340
1341 * xmenu.c (apply_systemfont_to_dialog): New.
1342 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1343
3a4fa2f2
SM
13442010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1345
97e53006
SM
1346 * process.c (exec_sentinel): Preserve current-buffer.
1347
3a4fa2f2
SM
1348 * process.c (read_process_output): Move the save-current-buffer to
1349 apply to both the filter and the non-filter branches.
1350
88df7221
DN
13512010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1352
1353 * s/msdos.h (UNEXEC): New definition.
1354
5634ff85
YM
13552010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1356
6eff5c3d
YM
1357 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1358 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1359
1360 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1361 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1362 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1363 TRY_WINDOW_CHECK_MARGINS.
1364
1365 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1366 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1367 width only when it is for padding.
5634ff85 1368
b13aef54
J
13692010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1370
1371 * xfns.c (Fx_show_tip): Call try_window in a loop until
1372 fonts_changed_p is zero (Bug#2423).
1373
21d28484
EZ
13742010-04-08 Eli Zaretskii <eliz@gnu.org>
1375
1376 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1377 the end of TEXT_AREA. (Bug#5856)
1378
0269ef77
JD
13792010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1380
1381 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1382 HAVE_GCONF.
1383
5930fe97
EZ
13842010-04-08 Eli Zaretskii <eliz@gnu.org>
1385
1386 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1387 prev.orig_type, for resolving type of NSM. (Bug#5858)
1388
99852628
JD
13892010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1390
1391 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1392 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1393 in current_font.
1394 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1395 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1396 New functions.
1397 (syms_of_xsettings): Initialize current_font.
1398 defsubr Sfont_get_system_normal_font.
99852628
JD
1399
1400 * xsettings.h (Ffont_get_system_normal_font,
1401 xsettings_get_system_normal_font): Declare.
1402
1403 * xfns.c (extern xlwmenu_default_font): Remove.
1404 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1405 to xlwmenu.c.
1406
1407 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1408 menu items in UTF-8.
1409
1410 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1411 (apply_systemfont_to_menu): New function.
1412 (set_frame_menubar, create_and_show_popup_menu): Call
1413 apply_systemfont_to_menu.
1414
7fc874c4
J
14152010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1416
1417 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1418 FRAME_LINE_TO_PIXEL_Y.
1419
1420 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1421 pixelwidth/height.
1422
863bf481
DN
14232010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1424
5e5a3b92
DN
1425 Simplify code for HP machines.
1426 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1427 for GNU_LINUX, not needed.
1428 (UNEXEC, NEED_BSDTTY): Move definitions...
1429 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1430
863bf481
DN
1431 * m/iris4d.h (UNEXEC): Move definition ...
1432 * s/irix6-5.h (UNEXEC): ... here.
1433
3e6bec3b
JD
14342010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1435
1436 * xfns.c (set_machine_and_pid_properties): New function.
1437 (Fx_create_frame): Call set_machine_and_pid_properties.
1438
2912322b
SM
14392010-04-03 Eli Zaretskii <eliz@gnu.org>
1440
1502b819
EZ
1441 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1442 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1443 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1444
2912322b
SM
1445 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1446 in this function. (Bug#5703)
1447
14482010-04-03 Chong Yidong <cyd@stupidchicken.com>
1449
1450 * nsterm.h: Fix last change.
1451
c435b432
DN
14522010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1453
a568f507
DN
1454 * m/intel386.h (NO_REMAP): Move definition ...
1455 * s/msdos.h (NO_REMAP): ... here.
1456
4cd9f6c2
DN
1457 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1458
c435b432
DN
1459 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1460 used on those platforms.
1461
42a2c622
DN
14622010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1463
1464 Remove extern errno declarations.
1465 * xterm.c:
1466 * xrdb.c:
1467 * w32term.c:
1468 * unexec.c:
1469 * unexaix.c:
1470 * sysdep.c:
1471 * process.c:
1472 * lread.c:
1473 * keyboard.c:
1474 * floatfns.c:
1475 * filelock.c:
1476 * fileio.c:
1477 * emacs.c (main):
1478 * ecrt0.c:
1479 * dispnew.c:
1480 * callproc.c:
1481 * buffer.c: Remove errno extern declarations.
1482 * s/netbsd.h (NEED_ERRNO): Remove.
1483
8224f93d
DN
14842010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1485
1486 Remove all uses of LIBX11_SYSTEM.
1487 * Makefile.in (LIBX11_SYSTEM): Remove.
1488 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1489 instead.
1490
814062c7
EZ
14912010-04-01 Eli Zaretskii <eliz@gnu.org>
1492
ed68db4d
EZ
1493 Remove support for DJGPP v1.x (bug#5813).
1494
1495 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1496 * s/msdos.h:
1497 * unexec.c (make_hdr, copy_text_and_data):
1498 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1499 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1500 (IT_set_terminal_modes, __write, _rename, gethostname)
1501 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1502 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1503 the value of __DJGPP__.
ed68db4d
EZ
1504 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1505 compatibility code.
8224f93d
DN
1506 * lread.c:
1507 * gmalloc.c (memalign):
1508 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1509 * emacs.c (main):
1510 * dosfns.c (init_dosfns):
ed68db4d
EZ
1511 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1512
52f4d8d5
EZ
15132010-04-01 Eli Zaretskii <eliz@gnu.org>
1514
814062c7
EZ
1515 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1516 string with `cursor' property comes from an `after-string'
1517 overlay. (Bug#5816)
1518
0dc2e11d
GM
15192010-04-01 Glenn Morris <rgm@gnu.org>
1520
1521 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1522 Define as Makefile variables.
1523 (LIBX): Use above variables rather than directly using autoconf.
1524
1d29df59
DN
15252010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1526
1527 Clean up BSD_SYSTEM use.
1528 * xterm.c:
1529 * process.c:
1530 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1531 for including <sys/ioctl.h>.
1532 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1533 code is only used for MSDOS.
1534
1546c559
JL
15352010-03-31 Juri Linkov <juri@jurta.org>
1536
1537 * image.c: Add `Qextension_data'.
1538 (syms_of_image): Initialize and staticpro `Qextension_data'.
1539 (Fimage_metadata): Rename from `Fimage_extension_data'.
1540 (gif_load): Put GIF extension data to the property
1541 `Qextension_data'.
1542
b8a1d5a1
CY
15432010-04-05 Chong Yidong <cyd@stupidchicken.com>
1544
1545 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1546 terminal frames (Bug#5837).
1547
6521c534
CY
15482010-03-31 Chong Yidong <cyd@stupidchicken.com>
1549
1550 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1551 * nsterm.h: Fix prototype.
1552
52c30783
EZ
15532010-03-31 Eli Zaretskii <eliz@gnu.org>
1554
1555 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1556 trailing whitespace in right-to-left rows.
1557
855a0da7
SM
15582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1559
1560 Get rid of the direct_output optimizations.
1561 * keyboard.c (nonundocount): Remove extern declaration.
1562 (command_loop_1): Remove brittle optimisation for cheap and
1563 common operations.
1564 * xdisp.c (redisplay_internal): Don't bother checking
1565 redisplay_performed_directly_p any more.
1566 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1567 any more.
1568 * dispnew.c (redisplay_performed_directly_p)
1569 (direct_output_for_insert, direct_output_forward_char):
1570 * dispextern.h (redisplay_performed_directly_p)
1571 (direct_output_for_insert, direct_output_forward_char): Remove.
1572 * cmds.c (nonundocount): Make it static.
1573
85738751 15742010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1575
1576 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1577
85738751 15782010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1579
1580 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1581 invisible (Bug#5766).
1582
85738751 15832010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1584
855a0da7
SM
1585 * xdisp.c (x_consider_frame_title, update_window_cursor):
1586 Remove HAVE_NS conditionals.
194d44e7 1587 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1588
1589 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1590 filename for the title.
1591 (ns_set_doc_edited): Do nothing if the selected window is a
1592 minibuffer window.
1593
1594 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1595 ns_set_doc_edited.
1596
1597 * nsterm.m: Remove unneeded prototype.
1598
85738751 15992010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1600
1601 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1602 in the DOC file. (Bug#5336)
1603
85738751 16042010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1605
1606 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1607
75d1428c
SM
16082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1609
1610 * window.c (keys_of_window): Remove redundant/overridden bindings.
1611
82043cfb
EZ
16122010-03-30 Eli Zaretskii <eliz@gnu.org>
1613
1614 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1615 Restore original behavior when the iterator is not bidi_p.
1616
b5dd0ae7
DN
16172010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1618
1619 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1620
bd924a5d
EZ
16212010-03-30 Eli Zaretskii <eliz@gnu.org>
1622
1623 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1624 are outside the range of cached character positions.
1625
3580374b
JB
16262010-03-30 Juanma Barranquero <lekktu@gmail.com>
1627
1628 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1629
a7b02820
EZ
16302010-03-30 Eli Zaretskii <eliz@gnu.org>
1631
1632 Initial support for bidirectional editing.
1633
1634 * Makefile.in (obj): Include bidi.o.
1635 (bidi.o): New target.
1636
1637 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1638 ($(BLD)/bidi.$(O)): New target.
1639
1640 * bidi.c: New file.
1641
1642 * buffer.h (struct buffer): New members bidi_display_reordering
1643 and bidi_paragraph_direction.
1644
1645 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1646 and bidi_paragraph_direction.
1647 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1648 and bidi-paragraph-direction.
1649 (Fbuffer_swap_text): Swap the values of
1650 bidi_display_reordering and bidi_paragraph_direction.
1651
1652 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1653 (bidi_type_t, bidi_dir_t): New types.
1654 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1655 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1656 prev_stop, base_level_stop, and eol_pos.
1657 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1658 (IT_STACK_SIZE): Enlarge to 5.
1659 (struct glyph_row): New member reversed_p.
1660 <string_buffer_position>: Update prototype.
1661 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1662 glyph_row if bidi_it.paragraph_dir == R2L.
1663 (struct glyph): New members resolved_level and bidi_type.
1664
1665 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1666 processing or buffer's direction is right-to-left.
1667 (prepare_desired_row): Preserve the reversed_p flag.
1668 (row_equal_p): Compare the reversed_p attributes as well.
1669
1670 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1671 bidi_init_it and set it->paragraph_embedding from the current
1672 buffer's value of bidi_paragraph_direction.
1673 (reseat_1): Initialize bidi_it.first_elt.
1674 (set_iterator_to_next, next_element_from_buffer): Use the value of
1675 paragraph_embedding to determine the paragraph direction.
1676 (set_iterator_to_next): Under bidi reordering, call
1677 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1678 new_paragraph flag is set in the bidi iterator.
1679 (next_element_from_buffer): If bidi_it.first_elt is set,
1680 initialize paragraph direction and find the first character to
1681 display in the visual order. If reseated to a middle of a line,
1682 prime the bidi iterator starting at the line's beginning. Handle
1683 the situation where we overstepped stop_charpos due to
1684 non-linearity of the bidi iteration. Likewise for when we back up
1685 beyond the previous stop_charpos. When moving across stop_charpos,
1686 record it in prev_stop.
1687 (display_line): Set row->end and it->start for the next row to the
1688 next character in logical order. Always extend reversed_p rows to
1689 the end of line, even if they end at ZV. Copy the reversed_p flag
1690 to the next glyph row. Keep calling set_cursor_from_row for
1691 bidi-reordered rows even if we already have a possible candidate
1692 for cursor position. Set row_end after all the row's glyphs have
1693 been produced, by looping over the glyphs. Record the position
1694 after EOL in it->eol_pos, and use it to set end_pos of the last
1695 row produced for a continued line.
1696 <Qright_to_left, Qleft_to_right>: New variables.
1697 (syms_of_xdisp): Initialize and staticpro them.
1698 (string_buffer_position_lim): New function.
1699 (string_buffer_position): Most of code moved to
1700 string_buffer_position_lim. Last argument and return value are
1701 now EMACS_INT; all callers changed.
1702 (set_cursor_from_row): Rewritten to support bidirectional text and
1703 reversed glyph rows.
1704 (text_outside_line_unchanged_p, try_window_id): Disable
1705 optimizations if we are reordering bidirectional text and the
1706 paragraph direction can be affected by the change.
1707 (append_glyph, append_composite_glyph)
1708 (produce_image_glyph, append_stretch_glyph): Set the
1709 resolved_level and bidi_type members of each glyph.
1710 (append_glyph): If the glyph row is reversed, prepend the glyph
1711 rather than appending it.
1712 (handle_stop_backwards): New function.
1713 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1714 (reseat): call handle_stop_backwards to recompute prev_stop and
1715 base_level_stop for the new position.
1716 (handle_invisible_prop): Under bidi iteration, skip invisible text
1717 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1718 paragraph direction. Update IT->prev_stop after skipping
1719 invisible text.
1720 (move_it_in_display_line_to): New variables prev_method
1721 and prev_pos. Compare for strict equality in
1722 BUFFER_POS_REACHED_P.
1723 (try_cursor_movement): Examine all the candidate rows that occlude
1724 point, to return the best match. If rows are bidi-reordered
1725 and point moved backwards, back up to the row that is not a
1726 continuation line, and start looking for a suitable row from
1727 there.
1728
1729 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1730 rather than appending, if the glyph_row's reversed_p flag is set.
1731 Set the resolved_level and bidi_type members of each glyph.
1732
1733 * .gdbinit (pbiditype): New command.
1734 (pgx): Use it to display bidi level and type of the glyph.
1735 (pitx): Display some bidi information about the iterator.
1736 (prowlims, pmtxrows): New commands.
1737
32a8894e
DN
17382010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1739
1740 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1741 * s/usg5-4.h (LIBS_DEBUG):
1742 * s/irix6-5.h (C_DEBUG_SWITCH):
1743 * s/gnu-linux.h (LIBS_DEBUG):
1744 * s/darwin.h (LIBS_DEBUG):
1745 * s/bsd-common.h (LIBS_DEBUG):
1746 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1747 * m/iris4d.h (LIBS_DEBUG):
1748 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1749
1750 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1751 (LIBS_DEBUG): Remove definition.
1752
649dbf36
CY
17532010-03-27 Chong Yidong <cyd@stupidchicken.com>
1754
1755 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1756 Windows.
1757
cad4261f
YM
17582010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1759
1760 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1761 `connect' (Bug#5723).
1762
cd591dbc
HE
17632010-03-25 Helmut Eller <eller.helmut@gmail.com>
1764
1765 * process.c (Fmake_network_process): Call `select' for interrupted
1766 `connect' rather than creating new socket (Bug#5173).
1767
e867cb5d 17682010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1769
1770 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1771
1772 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1773
1774 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1775
e867cb5d 17762010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1777
1778 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1779 XLoadQueryFont.
1780
e867cb5d 17812010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1782
1783 * coding.c (decode_coding_ccl): Fix previous change for the
1784 multibyte case.
fb608df3
KH
1785 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1786 case that the output buffer is fullfilled.
1787 (encode_coding): Setup ccl program here.
fbdc1721 1788
e867cb5d 17892010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1790
1791 * editfns.c (Fformat): Account for string precision when computing
1792 field width (Bug#5710).
1793
5845f0ed
DN
17942010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1795
814fb708
DN
1796 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1797
5845f0ed
DN
1798 Simplify LIBS_MACHINE definitions.
1799 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1800 * m/iris4d.h (LIBS_MACHINE): Likewise.
1801 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1802 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1803 * s/netbsd.h: Remove commented out code.
5845f0ed 1804
b7064064
DN
18052010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1806
df7734b2
DN
1807 Remove dead code dealing with POSIX_SIGNALS.
1808 * atimer.c (set_alarm): Remove dead code, all USG systems define
1809 POSIX_SIGNALS.
1810 * data.c (arith_error): Likewise.
1811 * keyboard.c (input_available_signal, handle_user_signal)
1812 (interrupt_signal): Likewise.
1813 * process.c (sigchld_handler): Likewise.
1814 (create_process): Remove if 0 code. Remove HPUX conditional when
1815 !defined (POSIX_SIGNALS), it cannot be true.
1816 * syssignal.h: Remove USG5_4 and USG conditionals when
1817 !POSIX_SIGNALS, they cannot be true.
1818
b7064064
DN
1819 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1820 NO_SOCK_SIGIO, not used anymore.
1821
55da5ee3
DN
18222010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1823
0be96e3a
DN
1824 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1825 support vax on BSDs.
1826
55da5ee3
DN
1827 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1828 * s/aix4-2.h (ORDINARY_LINK): ... here.
1829
c0282183
AS
18302010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1831
82c3d67a
AS
1832 * Makefile.in (abs_builddir): Define.
1833 (bootstrap_exe): Use it.
1834 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1835
3613edce
SM
18362010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1837
1838 * Makefile.in (bootstrap_exe): Use an absolute name.
1839
7f110ddc
DN
18402010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1841
22e87574
DN
1842 Remove support for old GNU/Linux using libc version 5.
1843 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1844 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1845
05a670e6
DN
1846 Consolidate redundant definitions in s/bsd-common.h.
1847 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1848 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1849 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1850 doing it in all files that include this one.
1851 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1852 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1853 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1854 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1855 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1856 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1857 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1858 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1859 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1860
2968f561
DN
1861 Consolidate redundant definitions.
1862 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1863 it's undefined in all files that include this one.
1864 (POSIX_SIGNALS): Define here instead of doing it in all files that
1865 include this one.
1866 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1867 (POSIX_SIGNALS): Do not define.
1868 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1869 (POSIX_SIGNALS): Do not define.
1870 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1871 (POSIX_SIGNALS): Do not define.
1872
15d25dc0
DN
1873 Remove support for old UNIX System V systems.
1874 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1875 * s/usg-5-4-2.h: Remove.
1876
07e339e4
DN
1877 Remove support for Solaris on PPC and for old versions.
1878 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1879 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1880 that cancel each other.
1881 * s/sol2-3.h:
1882 * s/sol2-4.h:
1883 * s/sol2-5.h: Remove.
1884 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1885 (NO_REMAP): Remove, unused.
1886 (UNEXEC): Move definition ...
1887 * s/aix4-2.h (UNEXEC): ... here.
1888
7f110ddc
DN
1889 * s/openbsd.h: Remove support for non-ELF and for systems that do
1890 not support shared libraries.
1891 * s/netbsd.h:
1892 * s/freebsd.h: Likewise.
1893
605f35cd
DN
18942010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1895
1896 Remove non-working support for lynxos 3.0.
1897 * s/lynxos.h: Remove file.
1898
1899 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1900 COFF_BSD_SYMBOLS, nothing defines it anymore.
1901
aed71cf4
DN
19022010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1903
1904 Remove obsolete uses of HAVE_SHM.
1905 * emacs.c (standard_args):
1906 (Fdump_emacs):
1907 (syms_of_emacs): Remove code depending on HAVE_SHM.
1908
1909 * alloc.c: Remove HAVE_SHM dependent definition.
1910
1911 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1912
aded53ff
GM
19132010-03-18 Glenn Morris <rgm@gnu.org>
1914
17284745
GM
1915 * emacs.c (USAGE4): Hard-code bug address.
1916 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1917 (bug_reporting_address): Remove.
1918 (main): Don't call bug_reporting_address.
1919
aded53ff
GM
1920 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1921 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1922
303500aa
CY
19232010-03-15 Chong Yidong <cyd@stupidchicken.com>
1924
1925 * xfns.c (Fx_create_frame):
1926 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1927 on left.
1928
cef3058f
CY
19292010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1930
1931 * editfns.c (Fformat): Account for string precision when computing
1932 field width (Bug#5710).
1933
a647d59d
CY
19342010-03-12 Chong Yidong <cyd@stupidchicken.com>
1935
4fa42018
CY
1936 * xfns.c (Fx_create_frame): Set default to Qright.
1937
a647d59d
CY
1938 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1939 all window systems.
1940
6da23aaa
EZ
19412010-03-12 Eli Zaretskii <eliz@gnu.org>
1942
a96f6398 1943 These changes remove termcap.c from the build on Posix platforms.
83d02def 1944 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1945 (MSDOS_OBJ): ...to here.
1946 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1947 now identical to when LIBS_TERMCAP is defined.
1948
1949 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1950
1951 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1952
a96f6398 1953 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1954
288f9fc0
CY
19552010-03-10 Chong Yidong <cyd@stupidchicken.com>
1956
1957 * Branch for 23.2.
1958
d48cd3f4
SM
19592010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1960
1961 Cleanup setup of gl_state in various parts of the code.
1962 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1963 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1964 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1965 (skip_chars):
1966 * regex.c (regex_compile): Use it.
1967 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1968 it's now set in regex_compile when/if we need it.
1969
618db430
SM
19702010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1971
c0335e02
SM
1972 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1973 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1974 (QUIT): Use it to consolidate code and remove redundancy.
1975 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1976
254c06a8
SM
1977 * regex.c (regex_compile): Setup gl_state as well.
1978
618db430
SM
1979 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1980 (in_classes): Use CONSP before XCAR/XCDR.
1981
233f0c9f
CY
19822010-03-03 Chong Yidong <cyd@stupidchicken.com>
1983
1984 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1985 definitions, so that keyboard macros are correctly handled
1986 (Bug#5481).
1987
75f80e63
EZ
19882010-03-02 Eli Zaretskii <eliz@gnu.org>
1989
1990 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1991 text that could be relocated inside the call to emacs_mule_char.
1992 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1993 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1994
dcfb9bc4
KH
19952010-03-02 Kenichi Handa <handa@m17n.org>
1996
fc9a17bc
KH
1997 * character.c (parse_str_as_multibyte): Fix handling of the
1998 multibyte form of raw-bytes.
1999 (str_as_multibyte): Likewise.
2000
dcfb9bc4
KH
2001 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2002 form of raw-bytes.
2003
412c01b6
CY
20042010-02-28 Chong Yidong <cyd@stupidchicken.com>
2005
2006 * charset.c (load_charset_map_from_file)
2007 (load_charset_map_from_vector): Zero out allocated
2008 charset_map_entries before using them.
2009
df7e1ea0
AS
20102010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2011
2012 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2013
fe69a722
CY
20142010-02-27 Chong Yidong <cyd@stupidchicken.com>
2015
4ed28cf4
CY
2016 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2017 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2018
7379cfce
KH
20192010-02-26 Kenichi Handa <handa@m17n.org>
2020
f88cc4d6
KH
2021 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2022
7379cfce
KH
2023 * xdisp.c (reseat_to_string): Fix previous change.
2024
cf2fdcfb
CY
20252010-02-26 David Reitter <david.reitter@gmail.com>
2026
2027 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2028 Lisp_Object (Bug#4736).
2029
cc6c7c75
KH
20302010-02-25 Kenichi Handa <handa@m17n.org>
2031
2032 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2033
32e737d7
JD
20342010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2035
2036 * xterm.c (XTflash): Move declarations before statements.
2037
2038 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2039 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2040 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2041 (xg_create_tool_bar): Remove unused variables.
2042 (x_wm_set_size_hint): Move declarations before statements.
2043 (xg_create_frame_widgets): Remove variable grav,
2044
676cae9f
CY
20452010-02-21 Chong Yidong <cyd@stupidchicken.com>
2046
2047 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2048
886cc2b8
SM
20492010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2050
2051 * term.c (fatal): Add a final \n if needed (bug#5596).
2052
ddb2d8e2
CY
20532010-02-18 Chong Yidong <cyd@stupidchicken.com>
2054
2055 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2056
2a4f8d3d
GM
20572010-02-18 Glenn Morris <rgm@gnu.org>
2058
2059 * callint.c (Finteractive): Doc fix.
2060
ebaf11b6
KH
20612010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2062
886cc2b8
SM
2063 * coding.c (record_conversion_result):
2064 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2065 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2066 memory allocation error.
2067
d0396581
KH
20682010-02-17 Kenichi Handa <handa@m17n.org>
2069
886cc2b8
SM
2070 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2071 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2072 (decode_coding): Setup ccl program here. Keep looping when the
2073 decoder stopped because the output buffer is
2074 fullfilled (bug#5534).
2075
2076 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2077
98599f74
JD
20782010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2079
471e4f04 2080 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2081 bug #5571.
886cc2b8 2082 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2083 overdrawn.
98599f74 2084
182659ae
JD
20852010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2086
2087 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2088 doing_interact here.
2089 (ice_connection_closed): New function.
2090 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2091 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2092 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2093 returns I/O error.
2094 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2095 bug #5512.
2096
9be32c4e 20972010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2098
2099 * nsfont.m (nsfont_open): The system's value for the font descent
2100 is negative, so round it down to avoid clipping.
2101
a2f3eb19
CY
21022010-02-06 Chong Yidong <cyd@stupidchicken.com>
2103
2104 * charset.c (load_charset_map_from_file)
2105 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2106 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2107
3088147c
CY
21082010-02-05 Chong Yidong <cyd@stupidchicken.com>
2109
2110 * charset.c (load_charset_map_from_file): Allocate large
2111 charset_map_entries structure on the heap rather than the stack.
2112 (Bug#5526).
2113
b57d9029
KH
21142010-01-31 Kenichi Handa <handa@m17n.org>
2115
2116 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2117 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2118
c67d885b
CY
21192010-01-31 Chong Yidong <cyd@stupidchicken.com>
2120
2121 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2122 <deactivated@gmail.com> (Bug#3605).
2123
8fab2362
CY
21242010-01-31 David De La Harpe Golden <david@harpegolden.net>
2125
2126 * fileio.c (Frename_file): Correctly rename symlinks to
2127 directories (Bug#5496).
2128
cb2a62f2
CY
21292010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2130
2131 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2132
944c7a26
AS
21332010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2134
2135 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2136
c024ac08
CY
21372010-01-29 Chong Yidong <cyd@stupidchicken.com>
2138
2139 * frame.c (DEFAULT_ROWS): Change default to 35.
2140
2141 * xfns.c (x_default_font_parameter): Change default XFT font to
2142 monospace-10 (Bug#3643).
2143
af93af83
EZ
21442010-01-29 Eli Zaretskii <eliz@gnu.org>
2145
2146 * w32inevt.c (key_event): Remove unnecessary comparison of
2147 event->uChar.AsciiChar with 128.
2148
ca0eb708
CY
21492010-01-28 Chong Yidong <cyd@stupidchicken.com>
2150
b242dbfc
CY
2151 * fileio.c (Frename_file): Fix last change (Bug#5487).
2152
ca0eb708
CY
2153 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2154
2155 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2156
45d45af5
JD
21572010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2158
2159 * xfns.c (Fx_create_frame): Remove window size matching code from
2160 2010-01-15.
2161 (x_get_current_desktop, x_get_desktop_workarea): Remove
2162
7e233730
JR
21632010-01-27 Jason Rumney <jasonr@gnu.org>
2164
2165 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2166 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2167
86e893e3
KH
21682010-01-27 Kenichi Handa <handa@m17n.org>
2169
2170 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2171 pattern string (Bug#4209).
86e893e3 2172
8719abec
CY
21732010-01-27 David De La Harpe Golden <david@harpegolden.net>
2174
2175 * fileio.c (Frename_file): Call copy-directory and
2176 delete-directory for directories, in order to handle cross-device
2177 renaming (Bug#3353).
2178
844794c8
JD
21792010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2180
aa3e13b5 2181 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2182 sizes 24 and 10. Bug #3643.
844794c8 2183
bd4b5750
SM
21842010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2185
8dc1adf6 2186 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2187 * keymap.c (shadow_lookup): Add `remap' arg.
2188 (describe_map, describe_vector): Update calls to shadow_lookup.
2189 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2190 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2191 perform remapping during shadow_lookup check of remapped_sequences.
2192
285d07e2
CY
21932010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2194
2195 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2196 png_check_sig, which has been removed in libpng 1.4.
2197
c6d09b8d
CY
21982010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2199
2200 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2201 lacks this header file).
2202
3d782998
YM
22032010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2204
2205 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2206 as in Emacs 22.
2207
2aff7c53
YM
22082010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2209
2210 * lisp.h (make_pure_string): String pointer arg now points to const.
2211
2212 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2213 args now point to const.
2214
74327f7a
EZ
22152010-01-22 Eli Zaretskii <eliz@gnu.org>
2216
2217 * lread.c (Fload): Don't treat files without .elc extension as
2218 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2219 them. (bug#5303)
2220
4d1e6632
KH
22212010-01-20 Kenichi Handa <handa@m17n.org>
2222
2223 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2224 treat the source as actual byte sequence.
2225
1fdede8f
AM
22262010-01-19 Alan Mackenzie <acm@muc.de>
2227
2228 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2229 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2230 `signal_after_change_p' to `coherent_change_p', and make the
2231 invocation of `modify_region' conditional on it.
2232
67477f30
JD
22332010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2234
2235 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2236 for debug purpose.
2237 (syms_of_xsettings): Declare xft-settings.
2238
244b023e
CY
22392010-01-18 Chong Yidong <cyd@stupidchicken.com>
2240
2241 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2242
617364fe
CY
22432010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2244
2245 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2246
4fe22cdf
CY
22472010-01-16 Chong Yidong <cyd@stupidchicken.com>
2248
2249 * emacs.c (standard_args): Adjust arg priorities to reflect how
2250 they are processed in startup.el.
2251
e118d2be
AS
22522010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2253
2254 * Makefile.in (lisp, shortlisp): Update.
2255
523ae620
SM
22562010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2257
2258 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2259 code, link the new kboard into all_kboard before running Lisp code,
2260 and protect the new terminal with GCPRO (Bug#5365).
2261 (x_term_init): Remove unused var `atom'.
2262 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2263
f0d13888
JD
22642010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2265
2266 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2267 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2268 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2269 this. Bug #3643.
f0d13888 2270
cc320f07
KH
22712010-01-15 Kenichi Handa <handa@m17n.org>
2272
2273 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2274
7ffdf101
CY
22752010-01-15 Chong Yidong <cyd@stupidchicken.com>
2276
2277 * nsterm.m (Qnone): Define.
2278
2279 * nsfns.m (Qnone): Move definition to nsterm.m.
2280
d12bd917
KH
22812010-01-14 Kenichi Handa <handa@m17n.org>
2282
2283 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2284 systems.
2285
d9a7c140
KH
22862010-01-14 Kenichi Handa <handa@m17n.org>
2287
2288 Make auto-composition work on all buffers even if they are
2289 fundamental mode.
2290
2291 * composite.c (Vauto_composition_mode): New variable.
2292 (composition_compute_stop_pos): Check Vauto_composition_mode
2293 instead of Vauto_composition_function.
2294 (composition_adjust_point, Ffind_composition_internal): Likewise.
2295 (syms_of_composite): Declare Lisp variable
2296 "auto-composition-mode" here.
2297
63286bb2
CY
22982010-01-13 Chong Yidong <cyd@stupidchicken.com>
2299
2300 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2301 during call to vendor-specific-keysyms (Bug#5365).
2302
c2623ee7
YM
23032010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2304
2305 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2306 Call SIGNAL_THREAD_CHECK (Bug#5333).
2307
2308 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2309 Call SIGNAL_THREAD_CHECK.
2310
0b5397c2
SM
23112010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2312
2313 Try to fix bug#5314. This is probably not the final word, tho.
2314 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2315 recent-auto-save-p as a side-effect.
2316 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2317 * buffer.c (Fkill_buffer, reset_buffer):
2318 * editfns.c (Fsubst_char_in_region):
2319 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2320 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2321
dc954cb2
KH
23222010-01-13 Kenichi Handa <handa@m17n.org>
2323
2324 Display buffer name, etc. in mode line by composing correctly.
2325
2326 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2327 STRING is not nil.
0b5397c2 2328 (display_mode_element): Adjust for the change of
dc954cb2
KH
2329 decode_mode_spec and display_line.
2330 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2331 (display_string): Handle the case that STRING is non-null and
2332 LISP_STRING is not nil.
2333
0b5397c2
SM
2334 * xterm.c (x_draw_composite_glyph_string_foreground):
2335 Pay attention to s->face->overstrike.
dc954cb2
KH
2336
2337 * composite.c (composition_reseat_it): Don't check PT if STRING is
2338 non nil.
2339
4a00eaca
YM
23402010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2341
2342 * keyboard.c (read_char): Don't apply previous change when current
2343 buffer is unchanged by command execution.
2344
60abb287
JD
23452010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2346
2347 * keyboard.c (read_char): Return after executing from special map.
2348
893db5bc
GM
23492010-01-12 Glenn Morris <rgm@gnu.org>
2350
2351 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2352 bug-gnu-emacs rather than emacs-pretest-bug.
2353
4d03ece0
CY
23542010-01-11 Chong Yidong <cyd@stupidchicken.com>
2355
2356 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2357 initializing the Lisp variables that depend on them.
2358
1df47e38
YM
23592010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2360
2361 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2362 Clear areas that will not be updated after change of menu bar lines.
2363 Clear the menu bar window's current matrix when the window gets empty.
2364
2f1c6384
CY
23652010-01-09 Chong Yidong <cyd@stupidchicken.com>
2366
e398c61c
CY
2367 * intervals.h, textprop.c (extend_property_ranges): Return value
2368 and args changed. Discard properties that begin at or after the
2369 new end (Bug#5306).
2370
2371 * editfns.c (Fformat): Caller changed.
2372
e5a29a10
CY
2373 * nsterm.m (ns_set_default_prefs): Delete function.
2374 (syms_of_nsterm): Initialize ns_command_modifier,
2375 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2376 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2377
2f1c6384
CY
2378 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2379 position (Bug#4040).
2380
d427a9fa
EZ
23812010-01-09 Eli Zaretskii <eliz@gnu.org>
2382
2383 * editfns.c (Ffloat_time): Doc fix.
2384
21b9df2f
JD
23852010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2386
2387 * xfns.c (Fx_create_frame): Don't create frame larger than display
2388 by default bug#3643.
2389
4b00d3b1
YM
23902010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2391
2392 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2393 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2394 windows above internal border.
2395
2396 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2397 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2398 windows above internal border.
2399
2400 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2401 tool bar windows specially.
2402
2403 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2404
2405 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2406 specially.
2407 (XTflash): Take account of menu bar height.
2408
2409 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2410 specially.
2411
5075d853
JD
24122010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2413
ac146f82 2414 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2415 also be true before we can return early (bug #5339).
2416
474217c8
CY
24172010-01-06 David Reitter <david.reitter@gmail.com>
2418
2419 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2420 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2421 (Bug#3233).
2422
c0e6d47d
JD
24232010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2424
d0cf45b7
JD
2425 * font.c (font_open_entity): Enable chache and call cached_font_ok
2426 for the driver if defined.
2427 (QCuser_spec): New symbol.
2428 (font_spec_from_name): Save name as user-spec.
2429 (font_load_for_lface): Keep user-spec instead of name.
2430 (font_open_by_name): Save name as user-spec.
2431 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2432 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2433
2434 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2435 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2436 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2437
2438 * font.h (struct font_driver): Add cached_font_ok.
2439
c0e6d47d
JD
2440 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2441
7c583cd8
JD
24422010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2443
2444 * xterm.c (x_new_font): Move code for setting rows/cols before
2445 resizing ...
ac146f82 2446 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2447
2448 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2449 (xg_frame_resized, xg_frame_set_char_size):
2450 Call xg_clear_under_internal_border.
7c583cd8 2451 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2452
03f77f0a
CY
24532010-01-05 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * keyboard.c (read_key_sequence): Catch keyboard switch after
2456 making a new tty frame (Bug#5095).
2457
2a1ef5be
KH
24582010-01-05 Kenichi Handa <handa@m17n.org>
2459
2460 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2461
e3eb1dae
SM
24622010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2463
2464 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2465 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2466 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2467
777013f2
MA
24682010-01-03 Michael Albinus <michael.albinus@gmx.de>
2469
2470 * dbusbind.c (xd_add_watch): Improve debug message.
2471 (xd_remove_watch): Improve debug message. If DATA is the session
2472 bus, unset D-Bus session environment.
2473 (Fdbus_init_bus): Pass the bus as argument to
2474 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2475
8932b1c2
CY
24762010-01-01 Chong Yidong <cyd@stupidchicken.com>
2477
87231e2c
CY
2478 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2479
4801c5fa
CY
2480 * lread.c (syms_of_lread): Make it clearer that these are the
2481 names of loaded files (Bug#5068).
2482
8932b1c2
CY
2483 * eval.c (run_hook_with_args): Handle the case where the global
2484 value has the obsolete single-function form (Bug#5026).
2485
11e3c684
CY
24862009-12-27 Chong Yidong <cyd@stupidchicken.com>
2487
2488 * minibuf.c (Fall_completions): Minor optimization.
2489
5b28ce35
EZ
24902009-12-26 Eli Zaretskii <eliz@gnu.org>
2491
5ce6e4f4
JB
2492 * .gdbinit (pgx): Fix display of composite glyphs.
2493 Display cmp.from and cmp.to as well.
2494 (pitx): Fix last change.
5b28ce35 2495
bcffff46
KH
24962009-12-25 Kenichi Handa <handa@m17n.org>
2497
2498 * composite.h (composition_adjust_point): Update prototype.
2499
2500 * composite.c (composition_reseat_it): Don't make a composition
2501 spanning over point.
2502 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2503 composable characters.
2504 (composition_adjust_point): New arg NEW_PT. Callers changed.
2505
2506 * keyboard.c (command_loop_1): Force redisplay if the last point
2507 was within a composition.
2508 (adjust_point_for_property): Don't adjust point for automatic
2509 composition when called after buffer modification.
2510
3f670e9a
EZ
25112009-12-19 Eli Zaretskii <eliz@gnu.org>
2512
5ce6e4f4
JB
2513 * .gdbinit (pitx): Don't use enum names, use their values.
2514 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2515 (pgx): Don't use enum names, use their values.
2516 (pitmethod): New helper command.
2517 (pitx): Use it to display iteration method.
2518 (pgrowit): New command.
2519
ad903955
EZ
2520 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2521
3f670e9a
EZ
2522 Update dependencies in Makefile.in.
2523
2524 * Makefile.in (alloc.o): Depend on termhooks.h.
2525 (atimer.o): Depend on blockinput.h.
2526 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2527 and frame.h.
2528 (callint.o): Depend on systime.h, coding.h, and composite.h.
2529 (callproc.o): Depend on buffer.h.
2530 (casefiddle.o): Don't depend on charset.h.
2531 (casetab.o): Depend on character.h.
2532 (ccl.o): Depend on composite.h.
2533 (chartab.o): Depend on ccl.h.
2534 (cm.o): Depend on dispextern.h.
2535 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2536 (coding.o): Don't depend on $(INTERVALS_H).
2537 (composite.o): Don't depend on dispextern.h explicitly (it's in
2538 $(INTERVALS_H)). Depend on ccl.h.
2539 (data.o): Depend on systime.h, coding.h, composite.h,
2540 dispextern.h, font.h, and ccl.h.
2541 (dired.o): Depend on composite.h.
2542 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2543 composite.h (it's in $(INTERVALS_H)).
2544 (doc.o): Depend on systime.h, coding.h, and composite.h.
2545 (editfns.o): Don't depend explicitly on dispextern.h.
2546 (emacs.o): Depend on frame.h and coding.h.
2547 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2548 (fileio.o): Depend on frame.h and commands.h. Don't depend
2549 explicitly on dispextern.h.
2550 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2551 composite.h.
2552 (fns.o): Don't depend on termhooks.h.
2553 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2554 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2555 coding.h, $(INTERVALS_H), window.h, xterm.h.
2556 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2557 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2558 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2559 fontset.h, ccl.h, and ftfont.h.
2560 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2561 (gtkutil.o): Depend on dispextern.h and composite.h.
2562 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2563 termhooks.h, and ccl.h.
2564 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2565 (intervals.o): Depend on systime.h and coding.h.
2566 (keyboard.o): Depend on composite.h and coding.h.
2567 (keymap.o): Depend on coding.h and frame.h.
2568 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2569 (macros.o): Depend on systime.h, coding.h, and composite.h.
2570 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2571 and atimer.h.
2572 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2573 dispextern.h explicitly.
0b5397c2
SM
2574 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2575 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2576 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2577 (regex.o): Don't depend on charset.h.
2578 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2579 (search.o): Don't depend explicitly on composite.h.
2580 (sound.o): Depend on atimer.h and systime.h.
2581 (syntax.o): Don't depend explicitly on composite.h.
2582 (sysdep.o): Depend on coding.h and composite.h.
2583 (term.o): Depend on xterm.h and buffer.h.
2584 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2585 (textprop.o): Don't depend on dispextern.h explicitly.
2586 (undo.o): Depend on dispextern.h.
2587 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2588 dispextern.h and composite.h explicitly.
2589 (xdisp.o): Depend on ccl.h.
2590 (xfaces.o): Depend on coding.h and ccl.h.
2591 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2592 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2593 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2594 ftfont.h.
2595 (xgselect.o): New dependency.
2596 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2597 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2598 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2599 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2600 (xsmfns.o): Depend on frame.h and dispextern.h.
2601 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2602 sysselect.h.
2603
7a6f7fea
AS
26042009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2605
2606 * font.c (Fclear_font_cache): Pass correct cache argument to
2607 font_clear_cache.
2608
f4c21026
AS
26092009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2610
2611 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2612 twice.
2613
f7ab0997
CY
26142009-12-15 Chong Yidong <cyd@stupidchicken.com>
2615
2616 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2617 calling file-remote-p. Reported by Jim Meyering.
2618
fa8e045a
MA
26192009-12-15 Michael Albinus <michael.albinus@gmx.de>
2620
2621 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2622 avoid compiler warnings. (Bug #5217)
fa8e045a 2623
a63dba42
KH
26242009-12-14 Kenichi Handa <handa@m17n.org>
2625
2626 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2627 in 8-bit encoding.
2628
5ce6e4f4 26292009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2630
2631 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2632 tooltip windows.
2633
223e5fc6
JD
26342009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2635
36acb2a7
JD
2636 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2637 Xatom_net_window_type.
2638
2639 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2640 Xatom_net_window_type.
2641
b8f00677
JD
2642 * xterm.c (my_log_handler): New function.
2643 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2644 so we can filter out buggy messages. (Bug #5120).
b8f00677 2645
e5f0bc9a
JD
2646 * xterm.c (xg_scroll_callback): Parameter list changed,
2647 use parameter GtkScrollType to determine scroll/line/page.
2648 Only allow dragging if a button < 4 is grabbed (bug #5177).
2649 (xg_end_scroll_callback): New function.
2650 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2651 xg_create_scroll_bar.
2652
2653 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2654 (scroll_end_callback): Remove.
2655 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2656 button-release-event. Replace value-changed event with change-value,
2657 bug #5177,
2658 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2659 bug #5177.
2660
2661 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2662 (xg_create_scroll_bar): Add GCallback end_callback.
2663
223e5fc6
JD
2664 * xftfont.c (QClcdfilter): New variable.
2665 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2666 (syms_of_xftfont): Initialize QClcdfilter.
2667
3c055b77
JD
26682009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2669
2670 * xsettings.c (struct xsettings): Add member seen.
2671 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2672 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2673 (apply_xft_settings): Only update Xft settings with what member seen
2674 indicates as new.
2675
05fe33ff
EZ
26762009-12-12 Eli Zaretskii <eliz@gnu.org>
2677
2678 * dispextern.h (struct text_pos): Use EMACS_INT;
2679 (struct glyph): Use EMACS_INT for charpos.
2680 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2681 region_beg_charpos, region_end_charpos,
2682 redisplay_end_trigger_charpos, and also for
2683 iterator_stack_entry.end_charpos and
2684 iterator_stack_entry.stop_charpos.
2685
e8d7886a
JD
26862009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2687
5ce6e4f4 2688 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2689 (xg_create_scroll_bar): Call scroll_end_callback on button release
2690 event (bug #5177).
2691 (xg_event_is_for_scrollbar): != replaced with ==.
2692
d0db2ec8
KH
26932009-12-12 Kenichi Handa <handa@m17n.org>
2694
2695 * ftfont.c (struct ftfont_info): New member matrix.
2696 (ftfont_open): Setup xftfont_info->matrix.
2697 (MFLTFontFT): New member matrix.
2698 (FLOOR, CEIL, ROUND): New macros.
2699 (ftfont_get_metrics): Handle matrix transformation.
2700 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2701
2702 * xftfont.c (struct xftfont_info): New member matrix.
2703 (xftfont_open): Setup xftfont_info->matrix.
2704
27052009-12-10 Kenichi Handa <handa@m17n.org>
2706
2707 * xdisp.c (append_space_for_newline): Consider face-remapping.
2708
2cc7b62f
AS
27092009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2710
b87dd913
AS
2711 * xsettings.c: Include "keyboard.h".
2712
eba5eb94
AS
2713 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2714
2cc7b62f
AS
2715 Fix implicit function declarations.
2716 * cmds.c: Include "frame.h".
2717 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2718 * frame.h: Move declaration of delete_frame outside of
2719 HAVE_WINDOW_SYSTEM.
2720
a4ef73c8
CY
27212009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2722
2723 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2724
2725 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2726 GTK builds.
2727
944a300c
AS
27282009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2729
2730 * unexelf.c (unexec): Don't search for .data twice.
2731
022eef62
CY
27322009-12-05 Chong Yidong <cyd@stupidchicken.com>
2733
426ac949
CY
2734 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2735 if push failed.
2736 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2737 of push_display_prop (Bug#5000).
2738
022eef62
CY
2739 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2740 value of font_list_entities (Bug#5085).
2741
be95bee9
JB
27422009-12-04 Juanma Barranquero <lekktu@gmail.com>
2743
2744 Fix `string-to-number' to deal consistently with integers and floats.
2745 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2746 trailing characters, not just whitespace.
2747 (read1): Pass new arg 0 to keep old behavior.
2748 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2749 trailing chars, as it is already done for integers. Doc fixes.
2750 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2751
24c2d7ce
EZ
27522009-12-04 Eli Zaretskii <eliz@gnu.org>
2753
0b5397c2
SM
2754 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2755 Delete unused enumeration value.
24c2d7ce 2756
7e694795
EZ
27572009-12-03 Eli Zaretskii <eliz@gnu.org>
2758
2759 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2760
84b31826
SM
27612009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2762
2763 * process.c (Fmake_network_process): Fix up the tests for
2764 "connectionless socket", so they DTRT for seqpacket sockets as well.
2765
f00c449b
SM
27662009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2767
2768 * process.c (Qseqpacket): New symbol.
2769 (HAVE_SEQPACKET): New macro.
2770 (Fmake_network_process): Accept new :type `seqpacket'.
2771 (init_process): Add `seqpacket' feature when applicable.
2772 (syms_of_process): Initialize Qseqpacket.
2773
8096a0ff
YM
27742009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2775
2776 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2777 if entity is Qnil.
2778
3e0de07f
SM
27792009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2780
2781 * print.c (print_preprocess): Preprocess the key_and_value table of
2782 hashtables, even tho they're "hidden" (bug#5082).
2783
abeafb2a
JD
27842009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2785
2786 * frame.c (frame_make_pointer_invisible)
2787 (frame_make_pointer_visible): Declare f before statements.
2788
4bf47195
EZ
27892009-11-28 Eli Zaretskii <eliz@gnu.org>
2790
2791 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2792 omitted dependencies on lisp.h.
2793
c525b3f2
JD
27942009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2795
ece2d4ed
JD
2796 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2797 is NULL.
2798
2799 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2800
2801 * frame.c (frame_make_pointer_invisible)
3e0de07f 2802 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2803 frame.
2804
c525b3f2
JD
2805 * search.c (simple_search): Remove warning by making *p const.
2806
2f00e299
DN
28072009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2808
2809 * xdisp.c (power_letter): Remove duplicate const.
2810
084b049b
JD
28112009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2812
a1fadc6f
JD
2813 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2814
5ce6e4f4 2815 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2816 defaults (bug #5025).
2817
28259cac
SM
28182009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2819
2820 * insdel.c (adjust_markers_for_delete): Move it in the
2821 right direction! (bug#4803)
2822
e8e14166
YM
28232009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2824
2825 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2826
2827 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2828
86677b58
GM
28292009-11-24 Glenn Morris <rgm@gnu.org>
2830
2831 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2832
581e51e8
JD
28332009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2834
cfc86c7a
JD
2835 * Makefile.in: Must create deps for ecrt0.o in its rule.
2836
581e51e8
JD
2837 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2838 because that is what Gtk+ font dialog understands.
2839
2840 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2841 of Fcopy_sequence.
2842 (font_open_by_name): Put name given into QCname for font-object returned.
2843
2844 * frame.c (x_set_font): Save original font name as frame parameter
2845 font-parameter.
2846
2847 * xsettings.c (set_default_xft_settings): New function.
2848 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2849 is found.
2850
8b264ecb
AS
28512009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2852
2853 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2854 searching backwards through multibyte buffer.
2855
872870b2
JD
28562009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2857
2858 * xterm.c: #include xgselect.h.
2859 (x_initialize): Call xgselect_initialize.
2860
2861 * xsettings.c (something_changedCB): C++ comments => C comments.
2862 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2863 does that now.
2864
2865 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2866 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2867 (scroll_bar_button_cb): Remove.
5ce6e4f4 2868 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2869 event.
2870 (xg_create_scroll_bar): Don't bind button-press-event and
2871 button-release-event.
2872
2873 * process.c: Include xgselect.h if defined (USE_GTK) ||
2874 defined (HAVE_GCONF).
2875 (wait_reading_process_output): Call xg_select for the same condition.
2876
2877 * xgselect.c (xg_select): New function to better integrate with
2878 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2879
2880 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2881
2882 * Makefile.in (XOBJ): Add xgselect.o.
2883
62a6e103
AS
28842009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2885
0b5397c2
SM
2886 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2887 Remove ignored second argument. All callers changed.
62a6e103
AS
2888 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2889 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2890 * xdisp.c (string_char_and_length): Likewise.
2891
b0ca0f33
DN
28922009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2893
2894 * xterm.c (x_new_font):
2895 * print.c (print_object):
2896 * cmds.c (Fself_insert_command): Move declarations before statements.
2897
dd5a6279
CY
28982009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2899
2900 * s/cygwin.h: Remove unneeded linker flags.
2901
4a8e097d
JD
29022009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2903
0d1d0d26
JD
2904 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2905
2906 * xsettings.h: Declare xsettings_get_system_font.
2907
2908 * xsettings.c (xsettings_get_system_font): New function.
2909 (init_gconf): No use initiating gconf unless we have Xft also.
2910 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2911 HAVE_GCONF.
2912
4a8e097d
JD
2913 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2914 add a blank entry so it doesn't collapse into nothing.
2915
8ab1650e
SM
29162009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2917
2918 * lread.c (Funintern): Comment out last change.
2919
82c602f0
RS
29202009-11-19 Richard Stallman <rms@gnu.org>
2921
2922 * lread.c (Funintern): Error if symbol is t or nil.
2923
87e32266
SM
29242009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2925
2926 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2927 representation of Lisp integers.
2928 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2929
1b9ac145
AS
29302009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2931
2932 * lisp.h: Remove declaration of Ffont_get_system_font.
2933 * xfns.c: Move include of "xsettings.h".
2934 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2935
dfb3c4c6
JD
29362009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2937
87e32266
SM
2938 * xsettings.c (something_changedCB, Ffont_get_system_font):
2939 Check use_system_font.
dfb3c4c6
JD
2940 (syms_of_xsettings): DEFVAR font-use-system-font.
2941
9370c1d8
AS
29422009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2943
25fe851a
AS
2944 * xfns.c (x_default_font_parameter): Remove dead assignment.
2945
9370c1d8
AS
2946 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2947
637fa988
JD
29482009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2949
87e32266 2950 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2951 not have FC_LCD_*. #define them if not there.
a6eb20d8 2952
87e32266 2953 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2954
637fa988
JD
2955 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2956
2957 * xterm.c (handle_one_xevent): Call xft_settings_event for
2958 ClientMessage, PropertyNotify and DestroyNotify.
2959 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2960 Call xsettings_initialize.
2961
2962 * xftfont.c (xftfont_fix_match): New function.
2963 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2964 Call xftfont_fix_match after XftFontMatch.
2965
2966 * xfont.c (xfont_driver): Initialize all members.
2967
87e32266
SM
2968 * xfns.c (x_default_font_parameter):
2969 Try font from Ffont_get_system_font.
637fa988
JD
2970 Do not get font from x_default_parameter if we got one from
2971 Ffont_get_system_font.
87e32266 2972 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2973
2974 * w32font.c (w32font_driver): Initialize all members.
2975
2976 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2977
2978 * lisp.h: Declare syms_of_xsettings.
2979
87e32266
SM
2980 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2981 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2982
2983 * ftfont.c (ftfont_filter_properties): New function.
2984
2985 * frame.c (x_set_font): Remove unused variable lval.
2986
87e32266 2987 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2988
2989 * font.c (font_put_extra): Don't return if val is nil, it means
2990 boolean option is off.
2991 (font_parse_fcname): Collect all extra properties in extra_props
2992 and call filter_properties for all drivers with extra_props and
2993 font as parameter.
87e32266
SM
2994 (font_open_entity): Do not use cache, it does not pick up new
2995 fontconfig settings like hinting.
637fa988
JD
2996 (font_load_for_lface): If spec had a name in it, store it in entity.
2997
2998 * emacs.c (main): Call syms_of_xsettings
2999
3000 * config.in: HAVE_GCONF is new.
3001
3002 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3003 xsettings.o is new.
3004
5a942932
KH
30052009-11-17 Kenichi Handa <handa@m17n.org>
3006
3007 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3008 back to the default font in case that no suitable font is found.
3009
b7c7a4d1
SM
30102009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3011
3012 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3013 Suggested by Chad Brown <yandros@mit.edu>.
3014 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3015
072f1e39
JD
30162009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3017
3018 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3019
5d1e70a2
AS
30202009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3021
87e32266 3022 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3023
a53cfbe5
JD
30242009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3025
473a99b7
JD
3026 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3027 has a parent.
3028
a53cfbe5 3029 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3030 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3031
3032 * config.in: Generated (AUTO_DEPEND).
3033
f04bb9b2
MA
30342009-11-13 Michael Albinus <michael.albinus@gmx.de>
3035
b7c7a4d1 3036 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3037 Vdbus_registered_functions_table, because it contains also
3038 properties. Fix docstring.
b7c7a4d1 3039 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3040
8f11f7ec
SM
30412009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3042
3043 * alloc.c (mark_object): Don't reprocess marked strings.
3044 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3045 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3046
8a605fe8
KH
30472009-11-13 Kenichi Handa <handa@m17n.org>
3048
8f11f7ec 3049 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3050 semantics of Vword_combining_categories.
3051 (Vword_combining_categories): Describe the slight change of the
3052 semantics.
3053
241c4680
EZ
30542009-11-13 Eli Zaretskii <eliz@gnu.org>
3055
3056 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3057
3058 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3059
5d58e44c
SM
30602009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3061
3062 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3063
5e13f9d3
JB
30642009-11-12 Juanma Barranquero <lekktu@gmail.com>
3065
3066 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3067
cf54c754
DR
30682009-11-11 David Reitter <david.reitter@gmail.com>
3069
3070 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3071 variables to fix 2009-11-09 change.
3072
a4ada374
DN
30732009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3074
91433552
DN
3075 * process.c (ifflag_def): Make flag_sym constant.
3076 (Fnetwork_interface_info): Use a constant pointer.
3077 (ifflag_table):
3078 * xfns.c (cursor_bits):
3079 * xdisp.c (power_letter):
3080 * termcap.c (speeds, esctab):
3081 * sysdep.c (baud_convert):
3082 * keyboard.c (lispy_accent_codes, modifier_names):
3083 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3084 (jpeg_format, tiff_format, gif_format, svg_format)
3085 (interlace_start, interlace_increment, gs_format):
3086 * gtkutil.c (separator_names):
3087 * fringe.c (swap_nibble):
3088 * fns.c (base64_value_to_char, base64_char_to_value):
3089 * fileio.c (make_temp_name_tbl):
3090 * coding.c (suffixes): Make constant.
3091
f4265f6c
DN
3092 * frame.c (make_initial_frame):
3093 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3094 build_string.
3095 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3096
04420943
DN
3097 * s/freebsd.h:
3098 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3099
0a5d24ae
DN
3100 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3101 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3102
a4ada374
DN
3103 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3104 * xterm.c (syms_of_xterm):
3105 * xfaces.c (syms_of_xfaces):
3106 * xdisp.c (syms_of_xdisp):
3107 * lread.c (syms_of_lread):
3108 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3109 build_string.
91433552 3110
a4ada374
DN
3111 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3112
af98fc7f
SM
31132009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3114
8ab1650e 3115 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3116
e90292a9
JD
31172009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3118
3119 * keyboard.h: Declare timer_check.
3120
3121 * keyboard.c (timer_check_2): New function that does what the old
3122 timer_check did.
3123 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3124 returned, i.e. don't return -1 with timers pending.
3125
3126 * process.c: Remove extern declaration of timer_check.
3127
3128 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3129 even if timer_check returned -1.
3130
af98fc7f
SM
3131 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3132 xg_dialog_data.
e90292a9
JD
3133 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3134 the event loop.
3135 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3136 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3137 Destroy the dialog after xg_dialog_run.
3138
045b83c0
SM
31392009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3140
3141 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3142
1fb99a3a
JD
31432009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3144
3145 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3146
04e452cb
JB
31472009-11-09 Juanma Barranquero <lekktu@gmail.com>
3148
3149 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3150
ef7417fd
SM
31512009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3152
3153 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3154 w32menu.c, and nsmenu.m.
3155 Simplify the obsolete case where position is nil.
3156 (cleanup_popup_menu): New function, moved from nsmenu.m.
3157 (struct skp): Remove slot `notreal'.
3158 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3159 adjust callers.
3160 (single_menu_item): Adjust call to parse_menu_item.
3161 (syms_of_menu): Defsubr x-popup-menu.
3162 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3163 (keymap_panes): Don't export any more.
3164 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3165 (xmenu_show): Declare.
3166 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3167 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3168 * keyboard.h (parse_menu_item): Update declaration.
3169 * xmenu.c (Fx_popup_menu): Remove.
3170 (syms_of_xmenu): Don't defsubr x-popup-menu.
3171 * w32menu.c (Fx_popup_menu): Remove.
3172 (syms_of_w32menu): Don't defsubr x-popup-menu.
3173 * nsmenu.m (cleanup_popup_menu): Remove.
3174 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3175 moved to menu.c's Fx_popup_menu.
3176 (Fx_popup_menu): Remove.
3177 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3178 menu_items (it's done in menu.c already).
3179
424d6179
SM
31802009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3181
3182 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3183 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3184
c0df13a6 31852009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3186
3187 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3188 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3189 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3190 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3191
2de9f71c
SM
31922009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3193
3194 Let integers use up 2 tags to give them one extra bit and thus double
3195 their range.
3196 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3197 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3198 New macros.
3199 (enum Lisp_Type): Use them. Give explicit values.
3200 (Lisp_Type_Limit): Remove.
3201 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3202 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3203 Pay attention to USE_2_TAGS_FOR_INTS.
3204 (INTEGERP): Use LISP_INT_TAG_P.
3205 * fns.c (internal_equal): Simplify the default case.
3206 (sxhash): Use case_Lisp_Int.
3207 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3208 any more.
3209 (Ftype_of): Use case_Lisp_Int.
3210 (store_symval_forwarding): Take into account the fact that Ints can
3211 now have more than one tag.
3212 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3213 buffer_slot_type_mismatch):
3214 * xfaces.c (face_attr_equal_p):
3215 * print.c (print_object):
3216 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3217 Use case_Lisp_Int.
3218
323637a2
EZ
32192009-11-06 Eli Zaretskii <eliz@gnu.org>
3220
7ac65b38
EZ
3221 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3222
323637a2
EZ
3223 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3224 warning.
3225
e511451f
JD
32262009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3227
3228 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3229
3230 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3231
3232 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3233 ButtonPressRelease and MotionNotify (bug#4870).
3234
5e2327cf
DN
32352009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3236
5adc433e
DN
3237 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3238
d67b4f80
DN
3239 * xterm.c (syms_of_xterm):
3240 * xselect.c (syms_of_xselect):
3241 * xmenu.c (syms_of_xmenu):
3242 * xfns.c (syms_of_xfns):
3243 * xfaces.c (syms_of_xfaces):
3244 * xdisp.c (syms_of_xdisp):
3245 * window.c (syms_of_window):
3246 * w32fns.c (syms_of_w32fns):
3247 * undo.c (syms_of_undo):
3248 * textprop.c (syms_of_textprop):
3249 * terminal.c (syms_of_terminal):
3250 * syntax.c (syms_of_syntax):
3251 * sound.c (syms_of_sound):
3252 * search.c (syms_of_search):
3253 * print.c (syms_of_print):
3254 * minibuf.c (syms_of_minibuf):
3255 * macros.c (syms_of_macros):
3256 * keymap.c (syms_of_keymap, initial_define_key)
3257 (initial_define_lispy_key):
3258 * keyboard.c (syms_of_keyboard):
3259 * insdel.c (syms_of_insdel):
3260 * image.c (syms_of_image):
3261 * fringe.c (syms_of_fringe):
3262 * frame.c (syms_of_frame):
3263 * fontset.c (syms_of_fontset):
3264 * fns.c (syms_of_fns):
3265 * fns.c (syms_of_fns):
3266 * fileio.c (syms_of_fileio):
3267 * fileio.c (syms_of_fileio):
3268 * eval.c (syms_of_eval):
3269 * doc.c (syms_of_doc):
3270 * dispnew.c (syms_of_display):
3271 * dired.c (syms_of_dired):
3272 * dbusbind.c (syms_of_dbusbind):
3273 * data.c (syms_of_data):
3274 * composite.c (syms_of_composite):
3275 * coding.c (syms_of_coding):
3276 * cmds.c (syms_of_cmds):
3277 * charset.c (define_charset_internal, syms_of_character):
3278 * ccl.c (syms_of_ccl):
3279 * category.c (syms_of_category, init_category_once):
3280 * casetab.c (syms_of_casetab):
3281 * casefiddle.c (syms_of_casefiddle):
3282 * callint.c (syms_of_callint):
3283 * bytecode.c (syms_of_bytecode):
3284 * buffer.c (keys_of_buffer, syms_of_buffer):
3285 * alloc.c (syms_of_alloc):
3286 * process.c (syms_of_process, init_process):
3287 * lread.c (syms_of_lread, init_obarray):
3288 * font.c (build_style_table):
3289 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3290 intern_c_string, calls to make_pure_string with
3291 make_pure_c_string. Use pure_cons instead of Fcons.
3292
5e2327cf
DN
3293 * process.c (socket_options): Make it const.
3294 (set_socket_option, init_process): Use a const pointer.
3295
3296 * lread.c (intern_c_string): New function.
3297 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3298 (defvar_int): Uset it. Make the name const char*.
3299
3300 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3301 (defvar_int): Update prototypes.
3302 (DEFUN, EXFUN): Support for prototypes is now required.
3303 (intern_c_string): New prototype.
3304 (struct Lisp_Subr): Make symbol_name constant.
3305
3306 * font.c (struct table_entry): Remove unused member. Make NAMES
3307 constant.
3308 (weight_table, slant_table, width_table): Make constant.
3309
3310 * emacs.c (struct standard_args): Make name and longname constant.
3311
3312 * character.h (DEFSYM): Use intern_c_string.
3313
a56eaaef
DN
33142009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3315
3316 * alloc.c (make_pure_c_string): New function.
3317
3318 * eval.c (Fautoload): Purecopy all arguments.
3319
f6a07420
KH
33202009-11-05 Kenichi Handa <handa@m17n.org>
3321
3322 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3323 the buffer in case of replace.
3324
5d28d4b1
DN
33252009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3326
3327 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3328
b349d111
SM
33292009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3330
d528b1ce
SM
3331 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3332 when applicable (bug#4851).
3333
b349d111
SM
3334 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3335 (P_): Support for prototypes is now required.
3336
c38eb027
CY
33372009-10-31 Chong Yidong <cyd@stupidchicken.com>
3338
3339 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3340 (Bug#4827).
3341
0405f8d9
EZ
33422009-10-30 Eli Zaretskii <eliz@gnu.org>
3343
d528b1ce 3344 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3345
ca0a881a
DN
33462009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3347
3348 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3349
d528b1ce
SM
3350 * lread.c (Fload): Purecopy the file name when building
3351 Vpreloaded_file_list.
ca0a881a 3352
47e0e0e4
JR
33532009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3354
3355 * w32fns.c (syms_of_w32fns): Change default value of
3356 w32-scroll-lock-modifier to nil. (Bug#2827)
3357
057bce6f
JB
33582009-10-26 Juanma Barranquero <lekktu@gmail.com>
3359
782a943e 3360 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3361
242bc74c
AS
33622009-10-26 Andreas Schwab <schwab@redhat.com>
3363
3364 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3365
522d013a
JB
33662009-10-26 Juanma Barranquero <lekktu@gmail.com>
3367
3368 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3369 For delta < 0, skip check that only makes sense when the mini-window
3370 is going to be enlarged. (Bug#4534)
3371
18060980
CY
33722009-10-25 Chong Yidong <cyd@stupidchicken.com>
3373
3374 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3375 string in menu maps (Bug#4471).
3376
fec8f0fe
CY
33772009-10-24 Chong Yidong <cyd@stupidchicken.com>
3378
3379 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3380 FRAME_NS_VIEW on terminal frames (Bug#4765).
3381
10d66ec0
AS
33822009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3383
1cae01f7
AS
3384 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3385 DBUS_TYPE_UINTnn separately to get proper sign extension.
3386
58a12889
AS
3387 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3388 can properly handle unsigned types.
d528b1ce 3389 (make_uid, make_gid): Remove.
58a12889 3390
987c9327
AS
3391 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3392 types again.
3393
522d013a 3394 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3395 (system_process_attributes): Likewise.
3396
905a9ed3
DN
33972009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3398
3399 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3400
3401 * eval.c (Fautoload): Purecopy the filename. Simplify.
3402
3403 * category.c (Fdefine_category): Purecopy docstring.
3404
a599b3e8
AS
34052009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3406
7b792fc9
AS
3407 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3408
a599b3e8
AS
3409 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3410
b35ac83e
CY
34112009-10-23 Chong Yidong <cyd@stupidchicken.com>
3412
3413 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3414 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3415 (Bug#4775).
3416
e8903e00
SM
34172009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3418
3419 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3420 (init_fileio_once):
3421 * lisp.h (init_fileio_once): Remove.
3422 * emacs.c (main): Don't call init_fileio_once.
3423
8f43cbf3
DN
34242009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3425
3426 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3427
26898943
AS
34282009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3429
3430 * doprnt.c (doprnt): Fix overflow check.
3431
5c646d5a
JD
34322009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3433
3132a7ea
JD
3434 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3435
5c646d5a
JD
3436 * xterm.h (x_wait_for_event): Declare it.
3437
3438 * xterm.c (pending_event_wait): New variable.
3439 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3440 see pending_event_wait.eventtype.
3441 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3442 (x_new_font): Call change_frame_size with new rows/columns before we
3443 try to resize the frame.
5c646d5a 3444 (x_wait_for_event): New function.
d528b1ce
SM
3445 (x_set_window_size_1): Don't change gravity unless change_gravity
3446 is set.
5c646d5a
JD
3447 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3448 don't change frame size, instead wait for the ConfigureNotify.
3449 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3450 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3451 (x_initialize): Initialize pending_event_wait.
3452
3453 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3454 size.
3455
3456 * widget.c (EmacsFrameSetValues): Add comment.
3457 (EmacsFrameSetCharSize): Just call x_set_window_size.
3458
3459 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3460 x_wait_for_event.
d528b1ce 3461 (flush_and_sync): Remove again.
5c646d5a
JD
3462 (xg_get_font_name): Suggest monospace if no previous font is known.
3463
e9c1637d
SM
34642009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3465
3466 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3467 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3468
5a72cccb
YM
34692009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3470
3471 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3472 processing pending events when event is filtered for input method.
ab04798f 3473 (Bug#3681)
5a72cccb 3474
2629aa37
JB
34752009-10-20 Juanma Barranquero <lekktu@gmail.com>
3476
3477 * fns.c: Add #endif accidentally removed in previous change.
3478
c3417a74
DN
34792009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3480
3481 * fns.c: Remove code for unsupported system: MAC_OS.
3482 * image.c: Likewise. Include setjmp.h.
3483
9685cef2
JD
34842009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3485
3486 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3487 pixel -1 (bug #4742).
3488
d7306fe6
DN
34892009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3490
019d2c4c
DN
3491 * process.c (create_pty): Remove conditionals for no longer
3492 supported systems: UNIPLUS and RTU.
3493
ee6bacd4
DN
3494 * xterm.c:
3495 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3496
d7306fe6
DN
3497 * alloc.c: Do not define struct catchtag.
3498 * eval.c: Move struct catchtag definition ...
3499 * lisp.h: ... here.
3500
3501 * image.c: Move png.h #include earlier to avoid warnings.
3502
3503 * xterm.c:
3504 * xsmfns.c:
3505 * xselect.c:
3506 * xrdb.c:
3507 * xmenu.c:
3508 * xftfont.c:
3509 * xfont.c:
3510 * xfns.c:
3511 * xfaces.c:
3512 * xdisp.c:
3513 * window.c:
3514 * widget.c:
3515 * w32xfns.c:
3516 * w32uniscribe.c:
3517 * w32term.c:
3518 * w32select.c:
3519 * w32reg.c:
3520 * w32proc.c:
3521 * w32menu.c:
3522 * w32inevt.c:
3523 * w32heap.c:
3524 * w32font.c:
3525 * w32fns.c:
3526 * w32console.c:
3527 * w32.c:
3528 * w16select.c:
3529 * vm-limit.c:
3530 * unexsol.c:
3531 * unexec.c:
3532 * unexcw.c:
3533 * unexaix.c:
3534 * undo.c:
3535 * tparam.c:
3536 * textprop.c:
3537 * terminfo.c:
3538 * terminal.c:
3539 * termcap.c:
3540 * term.c:
3541 * syntax.c:
3542 * sound.c:
3543 * sheap.c:
3544 * search.c:
3545 * scroll.c:
3546 * region-cache.c:
3547 * regex.c:
3548 * ralloc.c:
3549 * process.c:
3550 * print.c:
b024548b
DN
3551 * nsterm.m:
3552 * nsselect.m:
3553 * nsmenu.m:
3554 * nsimage.m:
3555 * nsfont.m:
3556 * nsfns.m:
d7306fe6
DN
3557 * msdos.c:
3558 * minibuf.c:
3559 * menu.c:
3560 * marker.c:
3561 * macros.c:
3562 * keymap.c:
3563 * keyboard.c:
3564 * intervals.c:
3565 * insdel.c:
3566 * indent.c:
3567 * gtkutil.c:
3568 * ftxfont.c:
3569 * ftfont.c:
3570 * fringe.c:
3571 * frame.c:
3572 * fontset.c:
3573 * font.c:
3574 * fns.c:
3575 * floatfns.c:
3576 * filelock.c:
3577 * fileio.c:
3578 * emacs.c:
3579 * editfns.c:
3580 * dosfns.c:
3581 * doprnt.c:
3582 * doc.c:
3583 * dispnew.c:
3584 * dired.c:
3585 * dbusbind.c:
3586 * data.c:
3587 * composite.c:
3588 * coding.c:
3589 * cmds.c:
3590 * cm.c:
3591 * chartab.c:
3592 * charset.c:
3593 * character.c:
3594 * ccl.c:
3595 * category.c:
3596 * casetab.c:
3597 * casefiddle.c:
3598 * callproc.c:
3599 * callint.c:
3600 * bytecode.c:
3601 * buffer.c:
3602 * atimer.c: Include setjmp.h. (Bug#4643)
3603
fd5f21e6
SM
36042009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3605
4c0354d7
SM
3606 Remove leftover table unibyte_to_multibyte_table.
3607 * character.c (unibyte_to_multibyte_table): Remove.
3608 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3609 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3610 * character.h (UNIBYTE_TO_CHAR): New macro.
3611 (MAKE_CHAR_MULTIBYTE): Use it.
3612 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3613 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3614 (message_dolog, set_message_1):
3615 * search.c (Freplace_match):
3616 * editfns.c (Fcompare_buffer_substrings):
3617 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3618 (concat):
3619 * insdel.c (copy_text, count_size_as_multibyte):
3620 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3621 * term.c (produce_glyphs):
3622 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3623 * regex.c (RE_CHAR_TO_MULTIBYTE):
3624 * cmds.c (internal_self_insert):
3625 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3626
fd5f21e6
SM
3627 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3628
4418646e
DN
36292009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3630
3631 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3632
35f5c1d2
JB
36332009-10-16 Juanma Barranquero <lekktu@gmail.com>
3634
3635 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3636
a0cd8f6b
AR
36372009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3638
3639 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3640 still needed under Tiger.
3641
3642 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3643
3644 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3645 __Apple__.
3646
3647 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3648
01a8d3fa
KH
36492009-10-15 Kenichi Handa <handa@m17n.org>
3650
3651 * print.c (print_object): Escape a symbol like "2E10" too.
3652
bf6c75c9 36532009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3654
3655 Cleanups and changes for 64-bit compile under Snow Leopard.
3656 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3657
3658 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3659
c5959062 3660 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3661 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3662 cast argument.
3663 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3664 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3665
3666 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3667
3668 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3669 where appropriate.
3670
3671 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3672 where appropriate.
6e4780c5
JB
3673 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3674 Use stringWithUTF8String.
bf6c75c9
AR
3675 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3676
6e4780c5
JB
3677 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3678 Add formal protocol mention to inheritance.
bf6c75c9
AR
3679 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3680
6e4780c5
JB
3681 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3682 Fix printf format.
bf6c75c9
AR
3683 (ns_query_color): Use CGFloat where appropriate.
3684 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3685 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3686 argument.
3687
3d87f118
AR
3688 * config.in (NS_HAVE_NSINTEGER): Drop.
3689
a95c8102
AR
3690 * dbusbind.c (dbus-method-return-internal)
3691 (dbus-method-error-internal): Use long format in printf, and cast
3692 argument.
3693
3694 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3695 in printf, and cast argument.
3696
6873acca 3697 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3698 cast argument.
3699
9ec6f100
GM
37002009-10-11 Glenn Morris <rgm@gnu.org>
3701
3702 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3703
5be883cd
JD
37042009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3705
3706 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3707 menu bar with a small width so it doesn't enlarge the frame.
3708
d7a39b51
JB
37092009-10-08 Juanma Barranquero <lekktu@gmail.com>
3710
3711 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3712
0c2b6f8e
GM
37132009-10-06 Glenn Morris <rgm@gnu.org>
3714
3715 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3716 SOME_MACHINE_LISP (this enters indirectly via DOC).
3717
e02131a2
EZ
37182009-10-05 Eli Zaretskii <eliz@gnu.org>
3719
3720 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3721
b4744254
EZ
37222009-10-04 Eli Zaretskii <eliz@gnu.org>
3723
3724 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3725 Doc fix.
3726
dbf64827
JB
37272009-10-03 Martin Rudalics <rudalics@gmx.at>
3728
3729 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3730
e9a0aef8
MA
37312009-10-02 Michael Albinus <michael.albinus@gmx.de>
3732
d528b1ce 3733 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3734 used anymore outside fileio.c.
3735
3736 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3737
64eb2b56
JB
37382009-10-01 Juanma Barranquero <lekktu@gmail.com>
3739
3740 * lisp.h (Qdelete_directory_internal):
3741 Declare, instead of Qdelete_directory.
3742
3743 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3744
9d28c33e
SM
37452009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3746
3747 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3748
9d8f3bd9
MA
37492009-10-01 Michael Albinus <michael.albinus@gmx.de>
3750
9d28c33e 3751 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3752 Fdelete_directory. It is not a command anymore. It has no file
3753 name handler.
3754
9694740b
SM
37552009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3756
3757 * xdisp.c (get_next_display_element): Use an enum in last change.
3758
748e162f
KH
37592009-09-28 Kenichi Handa <handa@m17n.org>
3760
9694740b 3761 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3762 unibyte_display_via_language_environment in handling
3763 Vnobreak_char_display.
3764
17efd58d
AR
37652009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3766
3767 * nsterm.h (ns_app_name): New extern variable.
3768
3769 * nsterm.m (ns_app_name): New variable.
3770 (ns_term_init): Set and use it.
3771 (ns_term_shutdown): Use it.
3772
3773 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3774 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3775
3776 * nsfns.m (ns_set_name_iconic, ns_set_name)
3777 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3778 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3779
9694740b
SM
3780 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3781 Remove double-casting in client_data comparison.
31c2d412 3782
3208cb35
YM
37832009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3784
3785 * keyboard.c (make_lispy_event): Remember last wheel direction.
3786 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3787
b7d552d6
GM
37882009-09-26 Glenn Morris <rgm@gnu.org>
3789
3790 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3791 internal.elc. Add term/pc-win.elc.
3792 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3793 term/x-win.elc.
3794 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3795 term/w32-win.elc.
3796 (NS_SUPPORT): New.
3797 (lisp): Add NS_SUPPORT.
3798 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3799
4ff670a8
DR
38002009-09-25 David Reitter <david.reitter@gmail.com>
3801
3802 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3803 on Mac OS X 10.6+ (bug#4513).
3804
feabfb6c
JB
38052009-09-24 Juanma Barranquero <lekktu@gmail.com>
3806
3807 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3808 some parts of Emacs code (like font selection) don't grok them.
3809 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3810
de59072a
AS
38112009-09-24 Andreas Schwab <schwab@redhat.com>
3812
3813 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3814
a489517b
JB
38152009-09-24 Juanma Barranquero <lekktu@gmail.com>
3816
3817 * dired.c (Fdirectory_files): Fix typo in docstring.
3818
0592970c
AR
38192009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3820
3821 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3822 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3823 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3824 under GNUstep.
3825 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3826
3827 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3828 glyph advancement.
3829
48e8a88b
AR
38302009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3831
3832 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3833 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3834
3835 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3836 deleted (bug #4492).
3837
e14f0a78
AR
3838 * nsfont.m (Vns_reg_to_script): New lisp variable.
3839 (syms_of_nsfont): Declare it.
3840 (ns_registry_to_script): New function.
3841 (ns_get_req_script): Call it.
3842 (ns_findfonts): Don't give up on non-unicode registry.
3843
3844 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3845
5b650faa
SM
38462009-09-20 Tom Tromey <tromey@redhat.com>
3847
3848 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3849 batch mode (bug#4228).
3850
a489517b 38512009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3852
3853 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3854 carefully. (Bug #4339)
0bae4e09 3855
fcfe06f3
CY
38562009-09-18 Chong Yidong <cyd@stupidchicken.com>
3857
d798ba87 3858 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3859
31642728
AR
38602009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3861
3862 * emacs.c (inhibit_x_resources): Update doc string for NS.
3863 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3864 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3865
3866 * nsterm.h (ns_no_defaults): Remove.
3867
3868 * nsterm.m (ns_no_defaults): Remove.
3869 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3870 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3871 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3872 don't update the NSWindow itself.
3873 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3874 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3875
3876 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3877 ns_use_qd_smoothing.
3878
3879 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3880 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3881 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3882 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3883
8686ac71
JB
38842009-09-17 Juanma Barranquero <lekktu@gmail.com>
3885
3886 * emacs.c (inhibit_x_resources): New variable.
3887 (main) [HAVE_NS]: Don't process --quick command line option.
3888 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3889
3890 * lisp.h (inhibit_x_resources): Declare it extern.
3891
3892 * w32reg.c (x_get_string_resource):
3893 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3894
e227ba05
EZ
38952009-09-17 Eli Zaretskii <eliz@gnu.org>
3896
362654a6
JB
3897 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3898 Add lisp/term/internal.elc.
e227ba05 3899
742d40e8
SM
39002009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3901
3902 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3903 (bug#4461).
3904
005bd5a2
DN
39052009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3906
3907 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3908
3909 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3910 (OBJECTS_MACHINE): Remove, unused.
3911
f9af9719
SM
39122009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3913
3914 * frame.c (x_get_resource_string): Remove unused.
3915
0307c7d2
JD
39162009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3917
3918 * xterm.c (x_new_font): Call change_frame_size before calling
3919 x_set_window_size, in case frame size won't change.
3920
3921 * frame.c (x_set_font): Remove dead code.
3922
428b13d6
SM
39232009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3924
3925 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3926
5766c380
SM
39272009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3928
3929 * lread.c (Fload): Don't output a message after loading an obsolete
3930 package any more (done in Lisp now).
3931
2fd0161b
CY
39322009-09-12 Chong Yidong <cyd@stupidchicken.com>
3933
3934 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3935
bc5e75b6
SM
39362009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3937
3938 * keymap.c (Fwhere_is_internal): Use nconc2.
3939
c31c985e
AM
39402009-09-11 Alan Mackenzie <acm@muc.de>
3941
3942 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3943 batch mode.
3944
78012bd2
AS
39452009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3946
3947 * xdisp.c (display_mode_element): Detect cycles.
3948
9d889332
SM
39492009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3950
3951 * keymap.c (where_is_internal): Don't erroneously return nil right after
3952 filling the cache.
3953 (where_is_internal_1): Fix up typo.
3954
7ab5d780
GM
39552009-09-11 Glenn Morris <rgm@gnu.org>
3956
3957 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3958 share a common doc-string.
3959
5238a749
SM
39602009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3961
66d77eda
SM
3962 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3963 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3964
5238a749
SM
3965 * keymap.c (QCadvertised_binding): New constant.
3966 (syms_of_keymap): Initialize it.
3967 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3968 if applicable.
3969
19f48442
SM
39702009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3971
50d4ba39
SM
3972 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3973 (parse_menu_item): Streamline since bindings are recomputed all the
3974 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3975 more and don't support lmenu's menu-alias any more either.
3976
a88a5372
SM
3977 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3978 (where_is_internal): Strip it down to only traverse the keymaps.
3979 Move the cache handling from Fwhere_is_internal to here.
3980 (Fwhere_is_internal): Move the handling of remapping and the choice of
3981 the best binding from where_is_internal to here.
3982 Unify the cached/noncached paths, so remapping is also handled
3983 correctly when the cache is used, and so the cache can be used to
3984 speed up remap-handling when applicable.
3985 Give preference to non-remapped bindings.
3986 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3987 non-remapped bindings.
3988 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3989 command remapping.
3990
19f48442
SM
3991 * xdisp.c (display_mode_element): Move list length limit from 50 to
3992 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3993
599498c3 39942009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3995
3996 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3997
f9b7b5ac
SM
39982009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3999
a53af587
JB
4000 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4001 (Bug#4334)
4002
f9b7b5ac
SM
4003 * keymap.c (where_is_internal): Filter out shadowed remappings.
4004 Assume that where_is_internal returns unshadowed bindings to simplify
4005 the code and get rid of the gotos. Use ASIZE.
4006
04f4b72d
JD
40072009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4008
4da146f2
JD
4009 * xterm.c (x_focus_changed): If we get a focusout and pointer
4010 is invisible, make it visible.
4011
04f4b72d
JD
4012 * xterm.h: Remove condition for declaration of
4013 x_*_window_to_frame.
4014
7cef7ce3
SM
40152009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4016
4017 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4018 initial terminal as well.
4019
a54fa5b7
JD
40202009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4021
4022 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4023 x_menubar_window_to_frame.
a54fa5b7 4024
50426a04 4025 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4026 (XTmouse_position): Do not return valid positions
4027 for clicks in the menubar and the toolbar for Gtk+.
4028
4029 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4030 if the widget for the event has the same top level as a frame,
4031 return the frame.
4032 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4033 internal windows, bug #4122.
4034 (x_non_menubar_window_to_frame): Remove.
4035
5a021dd0
GM
40362009-09-02 Glenn Morris <rgm@gnu.org>
4037
4038 * buffer.c (default-major-mode): Move most of the doc from here...
4039 (major-mode): ... to here.
4040
548fe2f3
NR
40412009-08-30 Nick Roberts <nickrob@snap.net.nz>
4042
4043 * process.c (wait_reading_process_output): Keep the descriptor
4044 when pty is used by a non-child process, e.g., in I/O buffer of
4045 GDB this allows inferior to be restarted.
4046
e0840eef
EZ
40472009-08-29 Eli Zaretskii <eliz@gnu.org>
4048
4049 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4050 both branches into one.
4051
82e98df4
SM
40522009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4053
4054 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4055 (main): Use enable-multibyte-characters rather than
4056 default-enable-multibyte-characters. Output a warning message when
4057 running a unibyte session.
4058
890617cb
YM
40592009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4060
4061 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4062 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4063 (copy_data_segment): Also copy __program_vars section.
4064 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4065 (dump_it) [LC_DYLD_INFO]: Use it.
4066
4067 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4068
e7adeadc
EZ
40692009-08-28 Eli Zaretskii <eliz@gnu.org>
4070
4071 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4072 $(SRC)/buildobj.h.
4073 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4074 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4075 $(SRC)/buildobj.h.
4076 (clean): Add buildobj.h.
4077
3ed8bbdc
TZ
40782009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4079
4080 * print.c (print_object): Set escapeflag to 1 when printing
4081 hashtable keys and values.
4082
155a6764
SM
40832009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4084
4085 * lread.c (read_integer): Use doubles (and potentially return a float
4086 number) as we do in string-to-number.
4087 (read1): Use strtol to read integers, signal errors on strtol's
4088 overflow and use floats if strtol's output is too large for
4089 Elisp integers.
4090
877610de
EZ
40912009-08-27 Eli Zaretskii <eliz@gnu.org>
4092
4093 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4094 (make-buildobj-SH): Fix last change.
4095 (SRC): Move to before where it's first used.
4096
ef73e7be
KH
40972009-08-27 Kenichi Handa <handa@m17n.org>
4098
550c8289
KH
4099 * process.c (send_process): Use encode_coding_object instead of
4100 encode_coding_string to perform eol-conversion even if the string
4101 is unibyte.
4102
60afa08d
KH
4103 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4104 character.
4105
ef73e7be 4106 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4107 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4108
7b3a82d7
DN
41092009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4110
5654bf63
DN
4111 * callproc.c (Fcall_process): Remove always true #if.
4112
7b3a82d7
DN
4113 * lisp.h: Replace #if 0 code for checking with text pointing to
4114 the --enable-checking configure flag.
4115
4116 * emacs.c (main): Mention the --enable-profiling configure flag
4117 instead of using CFLAGS.
4118
878bde49
KR
41192009-08-26 Ken Raeburn <raeburn@raeburn.org>
4120
4121 * Makefile.in (buildobj.h): New target.
4122 (doc.o): Depend on it.
4123 (temacs${EXEEXT}): Don't generate buildobj.lst.
4124 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4125 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4126 ($(BLD)/doc.$(O)): Depend on it.
4127 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4128 provided by Eli Zaretskii.)
4129 ($(TEMACS)): Don't generate buildobj.lst.
4130 * doc.c: Include buildobj.h.
4131 (buildobj): New static variable.
4132 (Fsnarf_documentation): Use it, instead of opening and reading
4133 buildobj.lst.
4134
1574224c
MA
41352009-08-25 Michael Albinus <michael.albinus@gmx.de>
4136
4137 * dbusbind.c (Fdbus_call_method)
4138 (Fdbus_call_method_asynchronously): Use English numeric format for
4139 timeout values in doc string.
4140
d9da2f45
KH
41412009-08-25 Kenichi Handa <handa@m17n.org>
4142
ef73e7be
KH
4143 * alloc.c (mark_char_table): New function.
4144 (mark_object): Use mark_char_table for a char-table.
4145
d9da2f45
KH
4146 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4147 (CHAR_TABLE_REF): Use it.
4148
c8edcc01
KR
41492009-08-23 Ken Raeburn <raeburn@raeburn.org>
4150
4151 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4152 before invoking the newly build emacs to check for load-path
4153 shadowing.
4154
7763401b
GM
41552009-08-22 Glenn Morris <rgm@gnu.org>
4156
4157 * Makefile.in (bootstrap_exe): New variable.
4158 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4159 Use ${bootstrap_exe}.
4160
729eadda
EZ
41612009-08-22 Eli Zaretskii <eliz@gnu.org>
4162
4163 * coding.h (encode_coding_string): Don't encode unibyte strings.
4164 (Bug#4047)
4165
eb4c6ace
MA
41662009-08-22 Michael Albinus <michael.albinus@gmx.de>
4167
4168 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4169
4170 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4171 intended as hotfix only.
4172 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4173
36e34d1b
AR
41742009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4175
4176 * nsterm.m (ns_get_color): Update documentation properly for last
4177 change, and clean up loose ends in the code left by it. Fix
4178 longstanding bug with 16-bit hex parsing, and add support for
4179 yet another X11 format (rgb:r/g/b) for compatibility.
4180 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4181 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4182
f983eb8a
SM
41832009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4184
4185 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4186
3f56d3c6
MA
41872009-08-20 Michael Albinus <michael.albinus@gmx.de>
4188
4189 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4190 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4191 (xd_initialize, xd_pending_messages): Check, whether
4192 $DBUS_SESSION_BUS_ADDRESS is set.
4193
fb641d68
YM
41942009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4195
4196 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4197
4198 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4199
cf59a374
GM
42002009-08-20 Glenn Morris <rgm@gnu.org>
4201
4202 * emacs.c (system-type): Doc fix.
4203
1373f3be
SM
42042009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4205
4206 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4207 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4208
058ed861
MA
42092009-08-18 Michael Albinus <michael.albinus@gmx.de>
4210
1373f3be
SM
4211 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4212 New functions.
058ed861
MA
4213 (xd_initialize): Revert change from 2009-08-16.
4214
563a866e 42152009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4216
4217 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4218 font-group vector, return nil.
5fc05db0 4219
e42bdf01
CY
42202009-08-17 Chong Yidong <cyd@stupidchicken.com>
4221
4222 * process.c (status_notify): Don't perform redisplay.
4223 (Fdelete_process, list_processes_1, process_send_signal):
4224 Expliticly perform redisplay.
4225 (wait_reading_process_output): Always check process status, but
4226 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4227
4230ab74
KR
42282009-08-17 Ken Raeburn <raeburn@raeburn.org>
4229
1373f3be 4230 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4231 (XFLOAT_INIT): New macro for storing a float value.
4232 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4233 * fns.c (sxhash): Copy out the value of a float in order to
4234 examine its bytes.
4235 * dbusbind.c (xd_append_arg): Likewise.
4236
4230ab74
KR
4237 * emacs.c (main): Don't call syms_of_data twice.
4238
a0645cdd
MA
42392009-08-16 Michael Albinus <michael.albinus@gmx.de>
4240
4241 * dbusbind.c (xd_initialize): Add connection file descriptor to
4242 input_wait_mask, in order to let select() detect, whether a new
4243 message has been arrived.
ca4f31ea 4244 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4245
485db0ba
MA
42462009-08-15 Michael Albinus <michael.albinus@gmx.de>
4247
1373f3be
SM
4248 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4249 New functions.
485db0ba
MA
4250
4251 * lisp.h (xd_pending_messages): Declare.
4252
4253 * keyboard.c (readable_events): Call xd_pending_messages.
4254
b5b98ff4
CY
42552009-08-15 Chong Yidong <cyd@stupidchicken.com>
4256
1373f3be 4257 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4258
f8354c6e
CY
4259 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4260
b5b98ff4
CY
4261 * buffer.c (set_buffer_internal_1)
4262 (swap_out_buffer_local_variables): Check for unbound local
4263 variables (Bug#4138).
4264
8b9fc636
EZ
42652009-08-14 Eli Zaretskii <eliz@gnu.org>
4266
4267 * process.c (create_pty): Fix last change.
4268
ce959360
CY
42692009-08-13 Chong Yidong <cyd@stupidchicken.com>
4270
4271 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4272 (xbm_load_image): Caller changed.
64b807c9 4273 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4274
c7baf7e9
NR
42752009-08-13 Nick Roberts <nickrob@snap.net.nz>
4276
4277 * process.c (create_pty): New function.
4278 (Fstart_process): Use it to allow Emacs to just associate a pty
4279 with the buffer. See associated change in gdb-mi.el.
4280 (list_processes_1): Deal with no program name.
4281 (start_process_unwind): Use pid == -2 to mean no process.
4282
1ac9108a
SM
42832009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4284
4285 * cmds.c (nonundocount): New global variable.
4286 (keys_of_cmds): Initialize it.
4287 (Fself_insert_command): Use it to combine upto 20 sequential chars
4288 into a single undo entry, just like the Qself_insert_command code in
4289 keyboard.c does.
4290 Call frame_make_pointer_invisible, also like the Qself_insert_command
4291 code in keyboard.c does.
4292 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4293 than its own local replacement for it.
4294
e267324c
KR
42952009-08-10 Ken Raeburn <raeburn@raeburn.org>
4296
1ac9108a 4297 * fns.c (concat): Don't re-set string length to its current value.
77437343 4298
1ac9108a
SM
4299 * coding.h (decode_coding_string, encode_coding_string):
4300 Use SBYTES macro.
f0bed503 4301
1ac9108a 4302 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4303 (doprnt): Merge with doprnt1, discarding lispstrings code.
4304 * lisp.h (doprnt_lisp): Don't declare.
4305
416e006d
JL
43062009-08-07 Juri Linkov <juri@jurta.org>
4307
4308 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4309
6f7d5780
DN
43102009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4311
4312 * print.c (syms_of_print): Undo previous change.
4313
f19a0f5b
TZ
43142009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4315
4316 * lread.c (read1, syms_of_lread): Read hashtables back from the
4317 readable format.
4318
4319 * print.c (print_preprocess, print_object): Print hashtables fully
4320 and readably.
4321 (syms_of_print): Provide 'hashtable-print-readable.
4322
b9173dc2
AR
43232009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4324
4325 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4326 no family set.
4327 (nsfont_open): Handle case when entity has no family.
4328
1586503c
AR
43292009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4330
4331 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4332 element, not a list, for match case.
4333
087048cd
KH
43342009-07-28 Kenichi Handa <handa@m17n.org>
4335
4336 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4337 rigidly.
4338
4339 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4340 font_parse_xlfd. Check font properties more rigidly.
4341
780c2506
DN
43422009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4343
31fd7c5c
JB
4344 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4345 bsd-common.h.
780c2506 4346
a8c0cc18
KH
43472009-07-27 Kenichi Handa <handa@m17n.org>
4348
4349 * xfaces.c (face_with_height): Call font_clear_prop.
4350
4fbe2306
CY
43512009-07-26 Chong Yidong <cyd@stupidchicken.com>
4352
111d9af3
CY
4353 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4354
4355 * xterm.c (x_term_init): Use Qx.
4356
4fbe2306
CY
4357 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4358
1ac9108a 4359 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4360 (ns_get_color): Revert 2009-07-16 change.
4361
beb0b7f9
EZ
43622009-07-25 Eli Zaretskii <eliz@gnu.org>
4363
4364 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4365 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4366
2baf5e76
KR
43672009-07-25 Ken Raeburn <raeburn@raeburn.org>
4368
1ac9108a
SM
4369 * coding.h (decode_coding_string, encode_coding_string):
4370 Use SCHARS macro.
8890e5f5 4371
2baf5e76 4372 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4373 (load_depth): Delete.
2baf5e76
KR
4374 (Qload_in_progress): New variable.
4375 (load_unwind): Don't reference load_depth or load_in_progress.
4376 (Fload): Likewise; specbind Qload_in_progress instead.
4377 (init_lread): Don't initialize load_depth.
4378 (syms_of_lread): Initialize and protect Qload_in_progress.
4379
1395c6f5
AR
43802009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4381
4382 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4383
4e2f36cf
AR
43842009-07-23 Yavor Doganov <yavor@gnu.org>
4385
4386 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4387
5dd9a6f7
AR
43882009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4389
4390 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4391 Bugs 3792, 3720, 2402.
4392 (ns_lookup_indexed_color): Check for bad index.
4393 (ns_index_color): Init unused slot to 0.
4394 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4395 Bug 3714, possibly 3082.
5dd9a6f7 4396
c902b920
JR
43972009-07-22 Jason Rumney <jasonr@gnu.org>
4398
1ac9108a
SM
4399 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4400 Position IME window at cursor (Bug#2570).
c902b920
JR
4401 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4402 (globals_of_w32fns): Dynamically load functions required above.
4403
4404 * w32term.c (w32_draw_window_cursor): Send message to reposition
4405 any IME window.
4406
090101cf
CY
44072009-07-21 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * fileio.c: Revert 2009-07-16 changes.
4410 (Vauto_save_include_big_deletions): New variable.
4411 (Fdo_auto_save): Disable auto-save only if
4412 auto-save-include-big-deletions is nil.
4413
e6583e3d
CY
44142009-07-21 Chong Yidong <cyd@stupidchicken.com>
4415
4416 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4417 the overflowed pixels into account (Bug#3879).
4418
ece435a5
KR
44192009-07-21 Ken Raeburn <raeburn@raeburn.org>
4420
4421 * lread.c (load_depth): New variable.
4422 (Fload, load_unwind, init_lread): Set it to the load recursion
4423 depth; set load_in_progress as a simple boolean based on the
4424 current load_depth. (Bug#3892)
4425
40b2d973
AR
44262009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4427
4428 * nsfont.m (ns_has_attribute): Remove.
4429 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4430
10be7e0d
JL
44312009-07-18 Juri Linkov <juri@jurta.org>
4432
4433 * process.c (Fset_process_query_on_exit_flag): Mention killing
4434 a buffer in docstring.
4435
fa055055
KH
44362009-07-17 Kenichi Handa <handa@m17n.org>
4437
4438 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4439
042f7b69
YM
44402009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4441
4442 * nsfns.m (Fns_set_alpha): Remove function.
4443 (syms_of_nsfns): Don't defsubr it.
4444
4445 * nsterm.m (ns_get_color): Remove incompatible color formats.
4446 (ns_color_to_lisp): Generate #rrggbb color format string.
4447
4be941e3
RS
44482009-07-16 Richard Stallman <rms@gnu.org>
4449
4450 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4451 (Fset_buffer_auto_saved): Handle save_length = -2.
4452
4e6b227d
CY
44532009-07-16 Chong Yidong <cyd@stupidchicken.com>
4454
4455 * xterm.c (Qx_gtk_map_stock): New var.
4456
4457 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4458 of calling intern each time.
4459
a1856973
YM
44602009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4461
4462 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4463 does tiling.
4464
4465 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4466
497e54d8
KH
44672009-07-14 Kenichi Handa <handa@m17n.org>
4468
72d36834
KH
4469 * font.c (font_vconcat_entity_vectors): New function.
4470 (struct font_sort_data): New member font_driver_preference.
4471 (font_compare): Check font_driver_preference.
4472 (font_sort_entities): The format of the first argument changed.
4473 (font_delete_unmatched): Likewise.
4474 (font_list_entities): The return type changed.
4475 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4476 (font_find_for_lface): Adjuste for the above changes.
4477 Don't suppress the checking of C even if the repertory supports it.
4478 (Flist_fonts): Adjust for the above changes.
72d36834 4479
1ac9108a
SM
4480 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4481 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4482 Reject a font who has adstyle property that is different from a
4483 langname derived from registry property.
1ac9108a 4484 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4485
b6046155
EZ
44862009-07-13 Eli Zaretskii <eliz@gnu.org>
4487
4488 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4489 local copy of dirfilename.
4490
fb6b6049
KH
44912009-07-13 Kenichi Handa <handa@m17n.org>
4492
e2402a5e
KH
4493 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4494 against max_char.
4495
fb6b6049
KH
4496 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4497 calling XSYMBOL (sym).
4498
65156807
EZ
44992009-07-11 Eli Zaretskii <eliz@gnu.org>
4500
1ac9108a
SM
4501 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4502 New function.
4503 (directory_files_internal) [WINDOWSNT]:
4504 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4505 the filesystem of the directory is fast or slow.
4506
4507 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4508 file name.
4509 (is_slow_fs): New function.
4510 (stat): Use it to determine whether to issue more system calls to
4511 get accurate file attributes, when w32-get-true-file-attributes is
4512 `local'.
4513
e0ab5fcf
JD
45142009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4515
4516 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4517 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4518 parameter font-parameter as default to the font dialog.
4519
784ceded
KH
45202009-07-10 Kenichi Handa <handa@m17n.org>
4521
4522 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4523
fb8edc0b
EZ
45242009-07-09 Eli Zaretskii <eliz@gnu.org>
4525
1ac9108a 4526 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4527
fb8edc0b
EZ
4528 * w32.c (stat): Treat UNC file names as residing on remote
4529 drives. (Bug#3542)
4530
635c75b1
KH
45312009-07-09 Kenichi Handa <handa@m17n.org>
4532
4533 * fontset.c (fontset_find_font): Fix previous change.
4534
c1d5ce94
MA
45352009-07-08 Michael Albinus <michael.albinus@gmx.de>
4536
4537 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4538 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4539 error flag.
4540
edb61b39
KH
45412009-07-08 Kenichi Handa <handa@m17n.org>
4542
374bf7e4
KH
4543 * fontset.c (fontset_find_font): Fix the logic of handling
4544 charset_matched.
4545 (font_for_char): Delete unused var.
4546 (generate_ascii_font_name): Delete it.
4547
edb61b39
KH
4548 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4549
4550 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4551 (encode_coding_sjis): Fix the code range check.
4552
0f3f018c
CY
45532009-07-07 Chong Yidong <cyd@stupidchicken.com>
4554
4555 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4556 (Fexpand_file_name): Copy string data properly (Bug#3772).
4557
fcaf6f3a
JD
45582009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4559
4560 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4561 first MapNotify.
4562
6809ca75
KH
45632009-07-07 Kenichi Handa <handa@m17n.org>
4564
4565 * character.h (unibyte_has_multibyte_table): Delete extern.
4566 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4567
4568 * charset.c (Fset_charset_priority): Update charset_unibyte.
4569 (syms_of_charset): Initialize charset_unibyte.
4570
4571 * character.c (unibyte_has_multibyte_table): Delete it.
4572 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4573 charset_unibyte.
4574 (multibyte_char_to_unibyte_safe): Likewise.
4575 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4576
1ac9108a 4577 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4578 (x_produce_glyphs): Likewise.
4579
4580 * .gdbinit (xcharset): Fix the treating $arg0.
4581
ad9e2d54
EZ
45822009-07-04 Eli Zaretskii <eliz@gnu.org>
4583
4584 Emulation of `getloadavg' on MS-Windows.
50426a04 4585 * w32.c: Include float.h.
ad9e2d54
EZ
4586 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4587 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4588 (get_native_system_info, get_system_times): New functions.
4589 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4590 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4591 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4592 g_b_init_get_system_times, and num_of_processors.
4593
0a3472c7
JR
45942009-07-03 Jason Rumney <jasonr@gnu.org>
4595
4596 * w32term.c (w32_initialize): Use standard types.
4597
80904120
EZ
45982009-07-03 Eli Zaretskii <eliz@gnu.org>
4599
4600 * dired.c (Ffile_attributes): Decode user and group names by the
4601 locale's encoding. (Bug#3443)
4602
6978862d
DN
46032009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4604
f8d23104
DN
4605 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4606 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4607
4608 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4609
4610 * term.c (init_tty): Remove spurious #ifdef.
4611
6978862d
DN
4612 * m/mips.h: Mention this file is also used for netbsd.
4613 * m/pmax.h: Remove file.
4614
e044e4fc
JD
46152009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4616
4617 * xterm.h (struct x_display_info): Add invisible_cursor.
4618 (struct x_output): Add current_cursor.
4619
4620 * xterm.c (XTtoggle_invisible_pointer): New function.
4621 (x_define_frame_cursor): Don't define cursor if invisible or the
4622 same as before. Set current_cursor.
4623 (x_create_terminal): Set toggle_invisible_pointer_hook.
4624
4625 * xfns.c (make_invisible_cursor): New function.
4626 (x_set_mouse_color): Call make_invisible_cursor.
4627 Set current_cursor.
4628 (x_window): Set current_cursor.
4629
4630 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4631
4632 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4633 inserting a character.
4634 (read_avail_input): Call frame_make_pointer_visible.
4635
4636 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4637 (frame_make_pointer_invisible, frame_make_pointer_visible):
4638 New functions.
e044e4fc
JD
4639 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4640
4641 * frame.h: Declare frame_make_pointer_invisible and
4642 frame_make_pointer_visible.
4643 (struct frame): Add pointer_invisible.
4644
574c8efa
JD
46452009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4646
7b507248
JD
4647 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4648 frame isn't visible.
4649 (xg_frame_resized): If width/height is -1, get size of window
4650 from X server.
4651
4652 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4653 for MapNotify.
4654
835bdaa7 4655 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4656 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4657 (flush_and_sync): Reintroduce.
574c8efa 4658
3f1c6666 46592009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4660
31fd7c5c 4661 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4662
4663 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4664 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4665
4666 * frame.h: Declare Qsticky.
4667
cad9ef74
JD
4668 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4669
4670 * nsfns.m (ns_frame_parm_handlers): Ditto.
4671
4672 * frame.c: Declare Qsticky.
4673 (frame_parms): Add sticky.
4674
4675 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4676
4677 * xterm.h: Declare x_set_sticky.
4678
4679 * xterm.c (x_set_sticky): New function.
4680
69b16610
JD
4681 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4682 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4683 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4684
4685 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4686
4687 * frame.c: Qmaximized is new.
4688 (x_set_frame_parameters): Do not handle fullscreen specially.
4689 Only set width and height if explicitly set.
4690 (x_set_fullscreen): Handle Qmaximized.
4691 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4692 (syms_of_frame): Initialize Qmaximized.
4693
1ac9108a
SM
4694 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4695 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4696
4697 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4698 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4699 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4700 set gravity to NorthWestGravity when USE_GTK.
4701 (set_wm_state): New function.
31fd7c5c 4702 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4703 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4704 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4705 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4706 to x_real_positions and x_fullscreen_adjust.
4707
4708 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4709 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4710 flush_and_sync.
4711 (xg_height_changed): New function.
4712 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4713 and gtk_window_set_policy. Set frame gravity after parsing the
4714 geometry string.
3f1c6666
JD
4715 (xg_update_frame_menubar, free_frame_menubar)
4716 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4717 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4718 Remove calls to xg_frame_set_char_size.
4719
fd503d99
KH
47202009-07-01 Kenichi Handa <handa@m17n.org>
4721
4722 * keyboard.c (decode_keyboard_code): New function.
4723 (tty_read_avail_input): Decode the input bytes if necessary.
4724
1ac9108a
SM
4725 * coding.c (setup_coding_system):
4726 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4727 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4728 use Qno_conversion.
4729
24ed93fb
YM
47302009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4731
4732 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4733
99061dfc
CY
47342009-06-30 Chong Yidong <cyd@stupidchicken.com>
4735
1ac9108a 4736 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4737
ff90fbde
JR
47382009-06-30 Jason Rumney <jasonr@gnu.org>
4739
4740 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4741 is already loaded.
4742 Set user model ID if supported (bug#1849).
4743
5f445726
JM
47442009-06-29 Jim Meyering <meyering@redhat.com>
4745
4746 Remove useless if-before-xfree test.
4747 * nsfont.m (nsfont_close): Remove useless test.
4748 * term.c (delete_tty): Likewise.
4749 * w32.c (system_process_attributes): Likewise.
4750 * w32font.c (w32font_close): Likewise.
4751 * xfaces.c (x_free_gc): Likewise.
4752 * xselect.c (buffer): Likewise.
4753
b9607587
AS
47542009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4755
4756 * process.c (send_process): Keep decoded string in a local
4757 variable and protect it from GC. (Bug#3521)
4758
89ba96f4
EZ
47592009-06-28 Eli Zaretskii <eliz@gnu.org>
4760
4761 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4762 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4763
098a1589
CY
47642009-06-28 Chong Yidong <cyd@stupidchicken.com>
4765
485422be
CY
4766 * xdisp.c (start_display, handle_face_prop)
4767 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4768 (redisplay_window, try_window_id, produce_image_glyph):
4769 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4770
098a1589
CY
4771 * xterm.c (x_update_window_begin, x_new_focus_frame)
4772 (x_scroll_bar_handle_click, handle_one_xevent)
4773 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4774 (x_make_frame_visible, x_make_frame_invisible)
4775 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4776 code chunks that are now obsolete.
4777
78c38319
MA
47782009-06-28 Michael Albinus <michael.albinus@gmx.de>
4779
4780 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4781 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4782 for hours, when optimzation is enabled.
4783 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4784 (xd_read_message): Make them static.
4785
4189ed40
CY
47862009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4787
4788 * term.c (turn_on_face): Allow simultaneously bold and dim
4789 terminal faces (Bug#3530).
4790
cd9b5e16
CY
47912009-06-27 Chong Yidong <cyd@stupidchicken.com>
4792
4e23bedb
CY
4793 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4794
cd9b5e16
CY
4795 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4796 truncation glyphs (Bug#3686).
4797
07cc3c35
GM
47982009-06-27 Glenn Morris <rgm@gnu.org>
4799
4800 * m/pmax.h: Restore file, with only netbsd portions.
4801
31fd7c5c 48022009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4803
cd9b5e16 4804 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4805
42d4a64f
KH
48062009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4807
4808 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4809 the arg FORCE_SYMBOL.
4810
930fe55b 48112009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4812
4813 * fontset.c (fontset_find_font): When a usable rfont_def is found
4814 in a fallback font-group, make it the first element of the group.
4815
57ebc3fd
CY
48162009-06-24 Chong Yidong <cyd@stupidchicken.com>
4817
4818 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4819
f084f942
KH
48202009-06-24 Kenichi Handa <handa@m17n.org>
4821
4822 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4823 set for C.
4824 (fontset_font): Record the availability of a font for C both in
4825 the realized fontsets of the current one and the default one.
4826
2f686c87
DN
48272009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4828
4829 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4830 conditional, it is always defined on AIX.
4831
666e158e
MB
48322009-06-23 Miles Bader <miles@gnu.org>
4833
4834 * window.c (Vrecenter_redisplay): New variable.
4835 (syms_of_window): Initialize it.
4836 (Qtty): New extern declaration.
4837 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4838
c6da7cd2
JM
48392009-06-23 Jim Meyering <meyering@redhat.com>
4840
1ac9108a
SM
4841 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4842 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4843 pointer dereferences are guaranteed to be valid.
c6da7cd2 4844
678dca3d
KH
48452009-06-23 Kenichi Handa <handa@m17n.org>
4846
74d75424
KH
4847 * emacs.c (main): Call init_font ().
4848
4849 * font.h (Vfont_log): Extern it.
4850 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4851
4852 * font.c (font_sort_entities, font_list_entities)
4853 (font_matching_entity, font_open_entity)
4854 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4855 (Vfont_log): Delete static.
4856 (font_log_env_checked): Delete this variable.
4857 (font_add_log): Don't check font_log_env_checked.
4858 (font_deferred_log): Check Vfont_log.
4859 (init_font): New function.
4860
678dca3d
KH
4861 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4862
4863 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4864
4865 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4866
4867 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4868
4869 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4870 (face_for_char): Don't call font_deferred_log here.
4871 (font_for_char): Likewise.
4872
8a668709
CY
48732009-06-22 Chong Yidong <cyd@stupidchicken.com>
4874
9a01ee33
CY
4875 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4876 rather than its background_width for drawing the overline and
4877 underline (Bug#489).
4878
4879 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4880 rather than its background_width for drawing the overline and
4881 underline (Bug#489).
ec7c9926
CY
4882 (xg_default_icon_file): New variable.
4883 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4884 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4885
8a668709
CY
4886 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4887 (load_overlay_strings): Remove externs.
4888 (fast_find_position): Function deleted.
4889 (mouse_face_from_buffer_pos): New function, based on
4890 fast_find_position. Correctly handle before-strings,
4891 display-strings, and after-strings (Bug#1220).
4892 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4893
4d4c02d8
CY
48942009-06-21 Chong Yidong <cyd@stupidchicken.com>
4895
1ac9108a 4896 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4897 (move_it_in_display_line_to, move_it_in_display_line_to)
4898 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4899
70243478
CY
49002009-06-21 Chong Yidong <cyd@stupidchicken.com>
4901
4902 * Branch for 23.1.
4903
13087e59
JR
49042009-06-21 Jason Rumney <jasonr@gnu.org>
4905
4906 * w32term.c (keyboard_codepage): New static variable.
4907 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4908 (w32_read_socket) [WM_CHAR]: Use it to decode character
4909 input (bug#3237).
4910 (w32_initialize): Initialize it.
4911 (codepage_for_locale): New function.
4912
4735b74e
KR
49132009-06-20 Ken Raeburn <raeburn@raeburn.org>
4914
4915 * process.c (status_message): Pass Faset index argument as a lisp
4916 object, so as to work with USE_LISP_UNION_TYPE.
4917
0e727afa
YM
49182009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4919
4920 * coding.c (Ffind_coding_systems_region_internal):
4921 Cache checked characters.
4922
cf299835
KH
49232009-06-18 Kenichi Handa <handa@m17n.org>
4924
1ac9108a 4925 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4926
90f20d94
AS
49272009-06-18 Andreas Schwab <aschwab@redhat.com>
4928
4929 * xdisp.c (redisplay_internal): Check that the frame is still
4930 live after redisplay of its windows.
4931 (redisplay_windows): Check that the window is still live.
4932
7f1faf1c
KH
49332009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4934
4935 * coding.c (detect_coding_utf_16): Fix previous change.
4936
cc13543e
KH
49372009-06-16 Kenichi Handa <handa@m17n.org>
4938
4939 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4940 UTF-16 by checking the dispersion of Eth and Oth bytes.
4941
977b85f4
AS
49422009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4943
4944 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4945
66bd43d1
KH
49462009-06-15 Kenichi Handa <handa@m17n.org>
4947
4948 * process.c (status_message): Fix previous change. Be sure to
4949 decode a localized string.
4950
cb5ca9c5
YM
49512009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4952
4953 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4954 add comment explaining why.
4955
ec7709ba 49562009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4957
ec7709ba 4958 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4959
4b7f335c
AR
49602009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4961
4962 * nsfont.m (ns_attribute_value): Remove.
4963 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4964 (ns_has_attribute): Shrink the normal range.
4965 (ns_findfonts): Don't worry about requested spec in determining
4966 need for synthItal.
e41820ee 4967 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4968
73b26103
SZ
49692009-06-14 Seiji Zenitani <zenitani@mac.com>
4970
4971 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4972
5753e4da
KH
49732009-06-11 Kenichi Handa <handa@m17n.org>
4974
4975 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4976 overhang for the static composition case.
4977
3561b671
KH
49782009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4979
5753e4da
KH
4980 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4981 overhang for the automatic composition case.
4982
3561b671
KH
4983 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4984 composition case.
4985
852bbd41
CY
49862009-06-10 Chong Yidong <cyd@stupidchicken.com>
4987
4988 * xdisp.c (get_next_display_element): When handling wrap-prefix
4989 and line-prefix, treat \n as a control character (bug#3502).
4990
9903d1e6
KH
49912009-06-10 Kenichi Handa <handa@m17n.org>
4992
4993 * font.c (font_parse_family_registry): Fix for one-char foundry.
4994 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4995
0bcbaaaa
CY
49962009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4997
4998 * process.c (status_message): Fix handling of multibyte signal
4999 string (Bug#3499).
5000
40aa3f13
JM
50012009-06-09 Jim Meyering <meyering@redhat.com>
5002
1f80c7e2
CY
5003 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5004 color name is missing.
40aa3f13 5005
72d51285
KH
50062009-06-09 Kenichi Handa <handa@m17n.org>
5007
5008 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5009 FROM-CODE and TO-CODE are codepoints of CHARSET.
5010
c1d04d84
AR
50112009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5012
5013 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5014
50152009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5016
5017 Changes to support :script/:lang/:otf in NS font driver.
5018 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5019 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5020 indicate not part of font driver interface, and change callers.
5021 (ns_get_family): Remove pointless null check.
5022 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5023 ns_spec_to_descriptor, ns_descriptor_to_entity.
5024 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5025 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5026 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5027 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5028 (ns_get_req_script, ns_accumulate_script_ranges)
5029 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5030 New functions.
5031 (nsfont_list, nsfont_match): Use ns_findfonts.
5032 (nsfont_open): Use font descriptor instead of traits.
5033 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5034 (dump_glyphstring): Rename to ns_dump_glyphstring.
5035
c7eb9816
AR
5036 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5037
c1d04d84
AR
5038 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5039
5040 * fontset.c (fontset_from_font): Remove NS-specific code.
5041
ec7709ba 50422009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5043
5044 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5045 nonactive windows.
5046
31fd7c5c 50472009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5048
1ac9108a 5049 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5050
68852c13 50512009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5052
5053 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5054
6756cd1d
CY
50552009-06-07 Chong Yidong <cyd@stupidchicken.com>
5056
5057 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5058 account for the overflowing of newlines into the last glyph on the
5059 display line (Bug#3482).
5060
28bf482a
DR
50612009-06-05 David Reitter <david.reitter@gmail.com>
5062
ec7709ba
JB
5063 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5064 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5065 Fns_selection_exists_p, Fns_selection_owner_p.
5066
fdb55376
JR
50672009-06-03 Jason Rumney <jasonr@gnu.org>
5068
5069 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5070 available. (Bug#3379)
5071
05129fbe
KH
50722009-05-29 Kenichi Handa <handa@m17n.org>
5073
1ac9108a
SM
5074 * coding.c (get_translation_table):
5075 Check Venable_character_translation.
05129fbe 5076
ec7709ba 50772009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5078
ec7709ba
JB
5079 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5080 (x_make_frame_visible): Move frame to front rather than calling
15891144 5081 ns_raise_frame().
ec7709ba 5082 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5083 isn't key window.
ec7709ba 5084 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5085 drawRect may be called by NSView even if the frame is hidden.
5086
ec7709ba
JB
5087 * nsfns.m (Fx_create_frame): Follow other ports in
5088 determining visibility; default to t. Ensure async_visible is set.
15891144 5089
21f73755
EZ
50902009-05-23 Eli Zaretskii <eliz@gnu.org>
5091
5092 * dired.c (Ffile_attributes): Doc fix.
5093
34001e41
CY
50942009-05-22 Chong Yidong <cyd@stupidchicken.com>
5095
5096 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5097
46306a17
SM
50982009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5099
5100 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5101 and xfont_scratch_props.
5102 (syms_of_xfont): Do it here instead.
5103 (xfont_find_ccl_program): Delete, unused.
5104 (xfont_open): Delete unused var `i'.
5105
ef6e0694
KH
51062009-05-21 Kenichi Handa <handa@m17n.org>
5107
5108 * fontset.c (Qlatin): Don't make it static.
5109
46306a17
SM
5110 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5111 New functions.
ef6e0694
KH
5112 (xfont_scripts_cache, xfont_scratch_props): New variables.
5113 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5114 (xfont_list_pattern): Argument changed. Callers changed.
5115 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5116 (xfont_list): Don't reject a font spec with :script property.
5117 (xfont_has_char): Fix setting of encoding.
5118 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5119 xfont_scratch_props.
5120
51212009-05-19 Kenichi Handa <handa@m17n.org>
5122
46306a17 5123 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5124 Callers changed.
5125
51262009-05-18 Kenichi Handa <handa@m17n.org>
5127
5128 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5129
ac71ced7
SM
51302009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5131
5132 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5133 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5134
1c6d1051
YM
51352009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5136
5137 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5138 (x_delete_terminal): Dissociate resource database from display and
5139 then call XrmDestroyDatabase before closing display.
5140
9b9b779c
AR
51412009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5142
5143 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5144 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5145 whether selected frame is viable before raising it (based on patch
5146 by David Reitter), and improve commentary.
5147 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5148
cccd42d5
KH
51492009-05-15 Kenichi Handa <handa@m17n.org>
5150
5151 * font.c (Ffont_spec): Check arguments.
5152
337fbd17
CY
51532009-05-14 Chong Yidong <cyd@stupidchicken.com>
5154
5155 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5156 weight when testing attributes (Bug#3282).
5157
47a6002f
JD
51582009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5159
5160 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5161 what we expect to get in the next ConfigureNotify event.
5162
9cb363db
YM
5163 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5164 before Xft one (Bug#1696).
5165
b9126609
CY
51662009-05-07 David Reitter <david.reitter@gmail.com>
5167
5168 * nsfns.m (Fx_display_planes): Compute bitplanes using
5169 NSBitsPerPixelFromDepth (Bug#3207).
5170
27a69fd9
CY
51712009-05-10 Chong Yidong <cyd@stupidchicken.com>
5172
5173 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5174
00f37552
TTN
51752009-05-10 Ulrich Mueller <ulm@gentoo.org>
5176
5177 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5178
2d82a920
DR
51792009-05-07 David Reitter <david.reitter@gmail.com>
5180
ec7709ba
JB
5181 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5182 Respect mouse face background.
2d82a920 5183
46b0d52d
DR
51842009-05-07 David Reitter <david.reitter@gmail.com>
5185
ec7709ba
JB
5186 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5187 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5188 in ns_update_begin and ns_update_end.
5189
ce1b23bb
SM
51902009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5191
5996e1b7
SM
5192 * nsfns.m (ns_get_screen): Rewrite.
5193 Don't presume selected-frame is of type `ns'.
5194
ba98e3a0
SM
5195 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5196 all drivers.
5197
ce1b23bb
SM
5198 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5199
bcda200f
YM
52002009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5201
5202 * keyboard.h (add_user_signal): Fix typo in extern.
5203
5204 * lisp.h (add_user_signal): Remove extern.
5205
5206 * unexelf.c (unexec): Consider a section to precede the .bss section
5207 if its addresses overlap that of .bss.
5208 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5209 instead of dumping process.
5210
864660a2
SM
52112009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5212
5213 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5214
50da4e56
SM
52152009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5216
5217 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5218
51520a1a
DN
52192009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5220
5221 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5222 any statements.
5223
409ea3a1
AS
52242009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5225
59c4c60f
AS
5226 * process.c (read_process_output): Make sure the current buffer is
5227 always restored.
5228
409ea3a1
AS
5229 * coding.c (record_conversion_result): Don't modify
5230 Vlast_code_conversion_error for successful result.
5231 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5232
56f00ed2
KH
52332009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5234
5235 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5236 (load_charset_map): Remove unnecessary code.
56f00ed2 5237
4491c9d2
DR
52382009-04-30 David Reitter <david.reitter@gmail.com>
5239
35f5b128 5240 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5241 through f24.
5242
6970f632
CY
52432009-04-30 Chong Yidong <cyd@stupidchicken.com>
5244
5245 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5246
5247 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5248 face_at_buffer_position.
5249 (face_before_or_after_it_pos, get_next_display_element)
5250 (note_mouse_highlight): Update face_at_buffer_position call.
5251
5252 * term.c (term_mouse_highlight):
5253 * msdos.c (IT_note_mouse_highlight):
5254 * fontset.c (Finternal_char_font):
35f5b128 5255 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5256
5257 * dispextern.h (face_at_buffer_position): Update prototype.
5258
0c616f63
KH
52592009-04-30 Kenichi Handa <handa@m17n.org>
5260
35f5b128 5261 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5262
ad3aaf33
AS
52632009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5264
5265 * callproc.c (Fcall_process): Fix GC protection. Make sure
5266 current buffer is always restored.
5267
c3c963a0
YM
52682009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5269
5270 * atimer.c (init_atimer): Also clear stopped_atimers.
5271
5272 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5273
7e3386cb
YM
5274 * process.c (create_process): Clean up merger residues of
5275 2008-07-17 change.
5276
91f68422
CY
52772009-04-29 Ulrich Mueller <ulm@gentoo.org>
5278
5279 * lread.c (Vread_circle): New variable.
5280 (read1): Disable recursive read if Vread_circle is nil.
5281
24b34550
KH
52822009-04-29 Kenichi Handa <handa@m17n.org>
5283
5284 * fontset.h (set_default_ascii_font): Delete extern.
5285
5286 * fontset.c (set_default_ascii_font): Delete this unused function.
5287
5288 * frame.c (x_set_font): When ARG is a font-object, check if the
5289 font-object matches with the ASCII font-spec of the frame's
9c358bda 5290 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5291
77bf07e1
AS
52922009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5293
5294 * fns.c (Flocale_info): Protect vector from GC during decoding.
5295
5296 * process.c (Fstart_process): Protect argv strings from GC during
5297 encoding.
5298
2c55aacf
AS
52992009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5300
5301 * sysdep.c: Include <ctype.h>.
5302
b892d3c9
DR
53032009-04-27 David Reitter <david.reitter@gmail.com>
5304
35f5b128 5305 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5306 Remove commented-out code.
5307
9d0644c4
JB
53082009-04-26 Johan Bockgård <bojohan@gnu.org>
5309
5310 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5311
b7053016
JR
53122009-04-25 Jason Rumney <jasonr@gnu.org>
5313
5314 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5315
4e8231f3
YM
53162009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5317
5318 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5319 Swap bytes in short integer if fringe bitmap width > 8.
5320
493dcf2c
KH
53212009-04-23 Kenichi Handa <handa@m17n.org>
5322
5323 * xfaces.c (Fx_list_fonts): If a font size is specified in
5324 PATTERN, set it in returned scalable fonts.
5325
401e9e57
CY
53262009-04-22 Chong Yidong <cyd@stupidchicken.com>
5327
708e05dc
CY
5328 * keyboard.c (Fset_input_meta_mode): Doc fix.
5329
5330 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5331
1ac9108a 5332 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5333
5334 * coding.c (Fterminal_coding_system): Doc fix.
5335
5336 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5337 (Fx_display_pixel_height, Fx_display_planes)
5338 (Fx_display_color_cells, Fx_server_max_request_size)
5339 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5340 (Fx_display_mm_height, Fx_display_mm_width)
5341 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5342 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5343 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5344 (check_x_display_info): Handle terminal objects instead of
5345 terminal ids.
5346
401e9e57
CY
5347 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5348 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5349 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5350 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5351
df80c7f0
KH
53522009-04-21 Kenichi Handa <handa@m17n.org>
5353
5a8f12af 5354 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5355 (font_score): Check AVGWIDTH too.
908567ef 5356
df80c7f0
KH
5357 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5358 worst case.
1ac9108a
SM
5359 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5360 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5361
705af33f
JR
53622009-04-19 Jason Rumney <jasonr@gnu.org>
5363
5364 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5365 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5366
5367 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5368 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5369 get_phys_cursor_geometry.
5370
b71ac3dd 5371 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5372 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5373 using get_phys_cursor_geometry.
5374
5375 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5376 correctly calculated.
5377
dc2933eb
JD
53782009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5379
1ac9108a
SM
5380 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5381 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5382 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5383 is deprecated.
5384
973e7849
AS
53852009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5386
5387 * font.c (font_put_frame_data): Use xfree instead of free.
5388
314d66f4
JB
53892009-04-17 Juanma Barranquero <lekktu@gmail.com>
5390
5391 * w32font.c (Qja, Qko): Remove declarations.
5392 (syms_of_w32font): Don't DEFSYM them.
5393
cf702558
CY
53942009-04-17 Chong Yidong <cyd@stupidchicken.com>
5395
5396 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5397
5398 * font.h (Qja, Qko): Extern them.
5399
5400 * ftfont.c (Qja, Qko): Remove declarations.
5401
5402 * xfont.c (Qja, Qko): Remove declarations.
5403
b50504f5
KH
54042009-04-17 Kenichi Handa <handa@m17n.org>
5405
bde25748
KH
5406 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5407 string from a vector to handle Latin-1 characters correctly.
5408
b50504f5
KH
5409 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5410 entity even if the cache hits.
5411
f4646fff
AS
54122009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5413
5414 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5415 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5416
e7deaab0
AS
5417 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5418 * lisp.h: Adjust prototypes.
5419
0a0e7d49
CY
54202009-04-16 Chong Yidong <cyd@stupidchicken.com>
5421
5422 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5423 change (Bug#3003).
5424
3c908a57
KH
54252009-04-16 Kenichi Handa <handa@m17n.org>
5426
1ac9108a 5427 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5428
5429 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5430 adstyle.
5431
5432 * ftfont.c (Qja, Qko): Don't make them static.
5433 (enum ftfont_cache_for): New enum.
5434 (fc_charset_table): Undo the previous change.
5435 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5436 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5437 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5438 non-scarable font, try to get AVERAGE_WIDTH.
5439 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5440 Change ft_face_cache from a list of a hash-table. Don't check
5441 `ja' and `ko' adstyle here.
5442 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5443 FTFONT_CACHE_FOR_CHARET.
5444 (ftfont_get_charset): Undo the previous change.
1ac9108a 5445 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5446 (ftfont_close): Likewise.
5447 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5448
5449 * font.c (font_sort_entites): Change the meaning of the arg
5450 BEST-ONLY. Don't optimize for VEC of lenght 1.
5451 (font_select_entity): Just return the value of font_sort_entites.
5452
5453 * xfaces.c (merge_face_vectors): Reflect font properties in
5454 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5455 font_clear_prop if a face attribute doesn't change.
5456
3c908a57
KH
5457 * charset.h (charset_ksc5601): Extern it.
5458
5459 * charset.c (charset_ksc5601): New variable.
5460 (Fdefine_charset_internal): Set charset_ksc5601.
5461 (init_charset_once): Initialize charset_ksc5601 to -1.
5462
d65859c3
DN
54632009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5464
5465 * fileio.c (history_delete_duplicates): Remove unused declaration.
5466
5467 * callint.c (history_delete_duplicates): New declaration.
5468 (Fcall_interactively): Remove command history duplicates when
5469 history_delete_duplicates is true.
5470
3ba010e5
EZ
54712009-04-14 Eli Zaretskii <eliz@gnu.org>
5472
5473 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5474
06f19b91
KH
54752009-04-14 Kenichi Handa <handa@m17n.org>
5476
5477 * font.c (Ffont_info): Fix docstring. Fix the second element of
5478 the returned value (bug#2949).
5479
2cce8bfc
CY
54802009-04-14 Chong Yidong <cyd@stupidchicken.com>
5481
5482 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5483
d156542d
KH
54842009-04-14 Kenichi Handa <handa@m17n.org>
5485
5486 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5487 encoding charset is ascii_compatible.
5488
5489 * charset.c (Fdefine_charset_internal): Make charset
5490 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5491 code_offset is 0, and covers all ASCII characters.
5492
86fa089e
SM
54932009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5494
5495 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5496 (ns_string_to_pasteboard_internal):
5497 * nsmenu.m (process_dialog):
5498 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5499 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5500 * lisp.h (Fx_load_color_file): Declare.
5501
a8a3728b
KH
55022009-04-13 Kenichi Handa <handa@m17n.org>
5503
1ac9108a 5504 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5505 (font_select_entity): Suppress the code to optimize for the same
5506 kind of fonts.
5507 (font_load_for_lface): Get a font that supports at least ASCII
5508 characters.
5509
5510 * ftfont.c (Qja, Qko): New variables.
5511 (fc_charset_table): Delete uniquifier data for iso8859-1.
5512 (ftfont_get_latin1_charset): New function.
5513 (get_adstyle_property): New function.
5514 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5515 bitmap fonts.
5516 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5517 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5518 `ko' or `ja'.
5519 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5520 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5521 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5522 property.
5523 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5524 (syms_of_ftfont): DEFSYM Qja and Qko.
5525
483670b5
KH
55262009-04-09 Kenichi Handa <handa@m17n.org>
5527
12b55765
KH
5528 * charset.c (map_charset_chars): For a charset of `superset'
5529 method, fix calculation of code range.
5530
483670b5
KH
5531 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5532 from the list of extra properties.
5533 (font_clear_prop): Be sure to delete `:name' font property.
5534
57d3b93b
KH
55352009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5536
b4b2c2ca
YM
5537 * dispnew.c (redraw_overlapping_rows): Fix detection of
5538 overlapping for topmost and bottommost rows.
5539
1ac9108a 5540 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5541
472c3609
JR
55422009-04-06 Jason Rumney <jasonr@gnu.org>
5543
5544 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5545
ab193662
KH
55462009-04-06 Kenichi Handa <handa@m17n.org>
5547
5548 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5549
5550 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5551
0c26f026
KH
55522009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5553
5554 * ftfont.c (ftfont_open): Fix checking of the return value of
5555 FT_Load_Char. Fix setting font->underline_thickness.
5556
e173bbce
CY
55572009-04-04 Chong Yidong <cyd@stupidchicken.com>
5558
5559 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5560 (Fterminal_parameters, Fterminal_parameter)
5561 (Fset_terminal_parameter): In doc string, refer to terminal
5562 objects rather than terminal ids.
5563
693a2698
EZ
55642009-04-04 Eli Zaretskii <eliz@gnu.org>
5565
5566 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5567 ret_lim_data. (Bug#2867)
5568
d5221487
CY
55692009-04-03 Chong Yidong <cyd@stupidchicken.com>
5570
5571 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5572 so they don't get wider than the window, matching 2006-01-23
5573 change to the partner function in xdisp.c (Bug#2800).
5574
223509a3
KH
55752009-04-03 Kenichi Handa <handa@m17n.org>
5576
5577 * print.c (print_object): Make each lowest sub_char_table start a
5578 new line (Bug#2866).
5579
74fcd0b1
KH
55802009-04-02 Kenichi Handa <handa@m17n.org>
5581
5582 * fontset.c (fontset_font): Record no-font when a fontset
5583 explicitly tells not to try another font-specs.
5584
c542407d
SM
55852009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5586
5587 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5588
e3869731
KH
55892009-03-30 Kenichi Handa <handa@m17n.org>
5590
d8d2f142
KH
5591 * fontset.c (fontset_from_font): Specify only registry in a
5592 font-spec for all characters supported by that registry.
5593
e3869731
KH
5594 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5595 even if HAVE_M17N_FLT is not defined.
5596
5da5f805
CY
55972009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5598
5599 * ftfont.c: Conditionalize prototyping and use of
5600 ftfont_variation_glyphs.
5601
ab226c50
SM
56022009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5603
9628fed7
SM
5604 * frame.c (delete_frame): Work around compiler bug.
5605
5606 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5607 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5608 Some more EMACS_INT.
5609 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5610
5611 * xdisp.c (dump_glyph): Fix typo.
5612
ae19ba7c
SM
5613 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5614 (adjust_markers_gap_motion, adjust_markers_for_delete)
5615 (adjust_markers_for_insert, adjust_point)
5616 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5617 (make_gap, copy_text, count_size_as_multibyte, insert)
5618 (insert_and_inherit, insert_before_markers)
5619 (insert_before_markers_and_inherit, insert_1)
5620 (count_combining_before, count_combining_after, insert_1_both)
5621 (insert_from_string, insert_from_string_before_markers)
5622 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5623 (insert_from_buffer_1, adjust_after_replace)
5624 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5625 (replace_range_2, del_range, del_range_1, del_range_byte)
5626 (del_range_both, del_range_2, modify_region)
5627 (prepare_to_modify_buffer, signal_before_change)
5628 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5629 for buffer positions and sizes.
5630 * lisp.h: Adjust prototypes accordingly.
5631
5632 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5633 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5634 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5635
ab226c50
SM
5636 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5637
46dfb8fb
JD
56382009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5639
5640 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5641 lines and columns so we keep the same pixel height and width.
5642
5643 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5644 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5645 (x_handle_net_wm_state): New function to update frame parameter
5646 fullscreen.
5647 (x_term_init): Initialize atoms for _NET_WM_STATE.
5648
5649 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5650
d347e494
SM
56512009-03-27 Kevin Ryde <user42@zip.com.au>
5652
5653 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5654 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5655 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5656 (Fgpm_mouse_stop): Pass that new parameter.
5657 * termhooks.h (close_gpm): Adjust prototype.
5658
84db11d6
SM
56592009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5660
c95a5008
SM
5661 * lisp.h (Fx_focus_frame): Declare.
5662
84db11d6
SM
5663 * callint.c (Fcall_interactively): For '^' just delegate the work to
5664 handle-shift-selection.
5665 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5666
0a1958d6
CY
56672009-03-24 Chong Yidong <cyd@stupidchicken.com>
5668
0bfdff23
CY
5669 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5670
0a1958d6
CY
5671 * data.c (Qinteractive_form): New variable.
5672 (Finteractive_form): Use it.
5673
5674 * eval.c (Fcommandp): Use Qinteractive_form.
5675
58aec0d6
JR
56762009-03-24 Jason Rumney <jasonr@gnu.org>
5677
5678 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5679 Calculate total size precisely. Decode environment variables
5680 before substituting. (Bug#38)
5681
553dd618
KH
56822009-03-24 Kenichi Handa <handa@m17n.org>
5683
5684 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5685 encoding (Bug#2722).
553dd618 5686
c39ea606
JD
56872009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5688
5689 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5690 that gdpy is set.
5691
bc9b2b5e
AM
56922009-03-22 Alan Mackenzie <acm@muc.de>
5693
5694 * callint.c (Finteractive): Clarify the doc string - even
5695 promptless elements need \n separators.
5696
9f995a76
JR
56972009-03-22 Jason Rumney <jasonr@gnu.org>
5698
5699 * w32term.c (syms_of_w32term): Doc fix for
5700 x-use-underline-position-properties.
5701
22749e9a
EZ
57022009-03-21 Eli Zaretskii <eliz@gnu.org>
5703
5704 * w32.c (getpwuid): Change argument type to unsigned.
5705 (struct w32_id): Change type of `rid' member to unsigned.
5706 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5707 argument ID to unsigned. All callers changed.
5708 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5709
e00553bf
EZ
57102009-03-20 Eli Zaretskii <eliz@gnu.org>
5711
5712 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5713 negative, produce a float value.
5714
5715 * dired.c (make_uid, make_gid): New functions.
5716 (Ffile_attributes): Use them to avoid negative UID and GID.
5717
f761d6b6
JB
57182009-03-20 Juanma Barranquero <lekktu@gmail.com>
5719
5720 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5721 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5722 Fix typos in docstrings.
5723
d507f8d7
KH
57242009-03-19 Kenichi Handa <handa@m17n.org>
5725
5726 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5727 changed, use font_load_for_lface to get a new font object.
5728 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5729
5730 * frame.c (x_set_font): Handle the case that ARG is a cons.
5731
c68845e0
GM
57322009-03-19 Glenn Morris <rgm@gnu.org>
5733
5734 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5735
bfa49dd1
CY
57362009-03-19 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5739
8458d4c1
KH
57402009-03-19 Kenichi Handa <handa@m17n.org>
5741
5742 * charset.c (load_charset_map_from_file): When a mapfile can't be
5743 loaded, signal an error.
5744
78e7d1fe
EZ
57452009-03-18 Eli Zaretskii <eliz@gnu.org>
5746
5747 * dired.c (Ffile_attributes): Make sure UID and GID are always
5748 positive, even if the value is too large for a positive EMACS_INT.
5749 Doc fix.
5750
5751 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5752
5da9fdfa
YM
57532009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5754
5755 * xmenu.c (xdialog_show): Move Fredisplay call ...
5756 (Fx_popup_dialog): ... here.
5757
7519c40d
SM
57582009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5759
5760 * dired.c (file_name_completion): Disable the first optimization just
5761 installed, since it is not implemented correctly.
5762
2cd298e2
SM
57632009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5764
5765 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5766 only if the entry can affect bestmatch.
2cd298e2
SM
5767 Stop the search early, as Ftry_completion already does.
5768
48d37adf
CY
57692009-03-17 Chong Yidong <cyd@stupidchicken.com>
5770
e10c9c93 5771 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5772
9286b16a
CY
57732009-03-15 Chong Yidong <cyd@stupidchicken.com>
5774
5775 * keyboard.c (parse_menu_item): Don't display remappings as menu
5776 equivalent bindings (Bug#788).
5777
f7b146dc
JR
57782009-03-15 Jason Rumney <jasonr@gnu.org>
5779
5780 * w32term.h (WM_EMACS_PAINT): New message.
5781 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5782 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5783 before passing to lisp thread. (Bug#950)
5784
f761d6b6 57852009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5786
d93f9575
CY
5787 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5788 variable as it was never reset.
5789 (ns_term_init): Remove initialization of Lisp-settable defaults
5790 and ns_expand_space.
5791 (-setPanelFromDefaultValues): Remove ns_expand_space.
5792 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5793 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5794 i.e. no additional spacing, similar to Carbon port.
5795
d93f9575
CY
5796 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5797 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5798
305018ec
JD
57992009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5800
5801 * sound.c (alsa_configure): Remove call to deprecated
5802 snd_pcm_sw_params_set_xfer_align.
5803
f761d6b6 58042009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5805
5806 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5807 after clicking in a detached tool bar.
5808 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5809
46e722a9
SM
58102009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5811
348db3dd
SM
5812 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5813 int/Lisp_Object mixup).
46e722a9 5814
a3d16f39
KH
58152009-03-13 Kenichi Handa <handa@m17n.org>
5816
5817 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5818 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5819 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5820 (set_fontset_font): Change ARG to a vector. Handle range_list in
5821 ARG correctly.
5822 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5823 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5824 the above change.
5825 (fontset_from_font): Fix previous change.
fe24f56a 5826 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5827 entry. If FONTSET is the default fontset, don't set the extra
5828 slot of the returning char-table.
5829
b066e6b6
JB
58302009-03-12 Juanma Barranquero <lekktu@gmail.com>
5831
5832 * nsfns.m (Fx_close_connection): Doc fix.
5833 (Fns_do_applescript): Reflow docstring.
5834 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5835 (Fx_display_pixel_width, Fx_display_pixel_height)
5836 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5837 Fix typos in docstrings.
5838 (Fns_set_alpha): Fix typos in error messages.
5839
d472514e 58402009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5841
d472514e 5842 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5843 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5844 were used for such events.
5845
d472514e
JB
5846 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5847 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5848
d472514e 5849 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5850 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5851
fb930676
KH
58522009-03-11 Kenichi Handa <handa@m17n.org>
5853
ff85581a
KH
5854 * font.h (font_open_by_spec): Extern it.
5855
c50b7e98
KH
5856 * font.c (font_open_by_spec): New function.
5857 (font_open_by_name): Use font_open_by_spec.
5858
fb930676
KH
5859 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5860 fontset of the frame.
5861
5862 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5863 modify the default font of frames that use this fontset.
5864 (num_auto_fontsets): New variable.
5865 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5866 name. Be sure to set FONTSET_ASCII to the correct font name.
5867 (update_auto_fontset_alist): New function.
5868
df4e8455
JB
58692009-03-11 Juanma Barranquero <lekktu@gmail.com>
5870
5871 * makefile.w32-in: Update dependencies.
5872
0a375797
AR
58732009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5874
5875 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5876
61313fa3
SM
58772009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5878
5879 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5880
b55103fb
CY
58812009-03-10 Chong Yidong <cyd@stupidchicken.com>
5882
5883 * lread.c (Feval_buffer): Doc fix.
5884
dde2559c
KH
58852009-03-09 Kenichi Handa <handa@m17n.org>
5886
5887 * charset.c (Qfile_name_handler_alist): Extern it.
5888 (load_charset_map_from_file): Temporarily bind
5889 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5890
df4e8455 58912009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5892
47f588bb
GM
5893 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5894 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5895
4ddf94bd
AR
58962009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5897
4c9bdfc2
AR
5898 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5899 (x_set_window_size): Change back to calculated method of setting
5900 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5901 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5902 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5903
fe41ae9e
AR
5904 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5905
4c9bdfc2
AR
5906 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5907 accelerator in parens under GNUstep.
5908
825d0875
KH
59092009-03-06 Kenichi Handa <handa@m17n.org>
5910
5911 These changes are to detect incorrect composition sequence without
f3b3be74 5912 looking ahead the source. (Bug#2370)
825d0875
KH
5913
5914 * coding.h: Include "composite.h".
5915 (enum compisition_state): New enum.
5916 (struct compisition_status): New struct.
5917 (struct iso_2022_spec): New member cmp_status.
5918 (struct emacs_mule_spec): New struct.
5919 (struct coding_system): New members ctext_extended_segment_len and
5920 embedded_utf_8. Change the union member
5921 spec.emacs_mule_full_support to spec.emacs_mule.
5922
5923 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5924 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5925 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5926 (ADD_COMPOSITION_DATA): New arg nbytes.
5927 (emacs_mule_char): New arg cmp_status.
5928 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5929 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5930 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5931 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5932 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5933 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5934 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5935 (EMACS_MULE_COMPOSITION_END): New macro.
5936 (emacs_mule_finish_composition): New function.
5937 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5938 (decode_coding_emacs_mule): Avoid long looking ahead while
5939 handling composition.
5940 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5941 (ENCODE_COMPOSITION_RULE): New macro.
5942 (finish_composition): New function.
5943 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5944 (DECODE_COMPOSITION_START): New implementation.
5945 (DECODE_COMPOSITION_END): Likewise.
5946 (STORE_COMPOSITION_RULE): New macro.
5947 (decode_coding_iso_2022): Avoid long looking ahead while handling
5948 composition, CTEXT extended segment, and embedded UTF-8.
5949 (setup_coding_system): For a coding of type iso-2022, reset
5950 CODING_ISO_EXTSEGMENT_LEN (coding) and
5951 CODING_ISO_EMBEDDED_UTF_8 (coding).
5952 (get_translation): Delete arguments last_block, from_nchars,
5953 to_nchars. Callers changed.
5954 (produce_chars): Don't modify charbuf. Adjusted for the change of
5955 get_translation.
98a326f7 5956 (produce_composition): Adjust for the new annotation sequence.
825d0875 5957 (handle_composition_annotation): Likewise.
98a326f7 5958 (consume_chars): Adjust for the change of get_translation.
825d0875 5959
ccbc4452
AR
59602009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5961
4ddf94bd 5962 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5963
988a7ddb
KH
59642009-03-05 Kenichi Handa <handa@m17n.org>
5965
5966 * font.c (font_select_entity): New function.
5967 (font_find_for_lface): Use font_select_entity to select a font.
5968
5969 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5970 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5971 font with C restriction.
5972
98a326f7 59732009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5974
be1bce46 5975 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5976
10ea2b82
JR
59772009-03-04 Jason Rumney <jasonr@gnu.org>
5978
2c93b248 5979 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5980 characters that have already been read. (Bug#2569)
2c93b248 5981
10ea2b82
JR
5982 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5983 Log an error message if check_image_size failed.
5984 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5985 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5986
71a0c011
EZ
59872009-03-02 Eli Zaretskii <eliz@gnu.org>
5988
5989 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5990 when decoding process output.
5991
2f63bba8
RS
59922009-03-01 Richard M Stallman <rms@gnu.org>
5993
5994 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5995
5996 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5997
0a9564cb
EZ
59982009-02-28 Eli Zaretskii <eliz@gnu.org>
5999
6000 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6001 (decode_coding_emacs_mule, decode_coding_iso_2022)
6002 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6003 (decode_coding_raw_text, decode_coding_charset)
6004 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6005 Honor inhibit-eol-conversion. (Bug #2186)
6006
449148b3
JR
60072009-02-28 Jason Rumney <jasonr@gnu.org>
6008
6009 * coding.c (detect_coding_charset): If not checking latin extra,
6010 fail on characters between 0x80 and 0xA0. (Bug#2354)
6011
a4aee864
EZ
60122009-02-28 Eli Zaretskii <eliz@gnu.org>
6013
6014 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6015 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6016
d88bee5a
GM
60172009-02-27 Glenn Morris <rgm@gnu.org>
6018
6019 * callint.c (Finteractive): Doc fix.
6020
a808f22d
KH
60212009-02-27 Kenichi Handa <handa@m17n.org>
6022
6023 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6024
caf8d60c
CY
60252009-02-27 Chong Yidong <cyd@stupidchicken.com>
6026
6027 * font.c (font_style_to_value): Set value for unknown symbols to
6028 100 instead of 255.
b61137ea
CY
6029 (weight_table, slant_table, width_table): Treat "unspecified" as
6030 the default value.
caf8d60c 6031
1a0de25c
JB
60322009-02-26 Juanma Barranquero <lekktu@gmail.com>
6033
6034 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6035
8fc45744
JB
60362009-02-25 Juanma Barranquero <lekktu@gmail.com>
6037
107bd7d1
JB
6038 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6039 error as soon as a recursive load is detected.
8fc45744 6040
f097e223
AR
60412009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6042
6043 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6044 before caching.
6045
8810a12f
KH
60462009-02-24 Kenichi Handa <handa@m17n.org>
6047
6048 * fontset.c (fontset_find_font): Fix the condition for checking
6049 unavailable font.
6050
2c7d1565
GM
60512009-02-24 Glenn Morris <rgm@gnu.org>
6052
6053 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6054 whitespace that confuses documentation.
6055
a20878b6
MB
60562009-02-23 Miles Bader <miles@gnu.org>
6057
6058 * process.c (Flist_system_processes, Fprocess_attributes)
6059 (syms_of_process): Rename `system-process-attributes' to
6060 `process-attributes'.
6061
b3b58c01
AS
60622009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6063
1b3b981b
AS
6064 * coding.h (struct coding_system): Make safe_charsets a pointer to
6065 unsigned char.
6066 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6067 being 255.
6068 (SAFE_CHARSET_P): Likewise.
6069 (setup_iso_safe_charsets): Properly setup safe_charsets.
6070 (Fdefine_coding_system_internal): Likewise.
6071 (setup_coding_system): Likewise. Remove unneeded casts.
6072 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6073 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6074 unneeded casts.
6075
b3b58c01
AS
6076 * insdel.c (del_range_2): Don't modify gap contents when called
6077 from decode_coding_object. (Bug#1809)
6078
0b6f228c
CY
60792009-02-21 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6082 Qfont_object.
6083 (Ftype_of): Recognize font objects.
6084
6085 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6086
6087 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6088 moved to data.c.
6089
52f8870b
AR
60902009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6091
6092 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6093 async_iconified. Based on a patch by Christian Lynbech
6094 <christian.lynbech@tieto.com>.
6095 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6096
7087d5e9
GM
60972009-02-20 Glenn Morris <rgm@gnu.org>
6098
6099 * syntax.c (Fskip_chars_forward): Fix doc typo.
6100
41d2ceef
CY
61012009-02-20 Chong Yidong <cyd@stupidchicken.com>
6102
6103 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6104
1a3b7ca6
CY
61052009-02-19 Chong Yidong <cyd@stupidchicken.com>
6106
6107 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6108
73cce38d
KH
61092009-02-19 Kenichi Handa <handa@m17n.org>
6110
6111 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6112 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6113
a51092ee
DN
61142009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6115
6116 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6117
c423ecca
KH
61182009-02-18 Kenichi Handa <handa@m17n.org>
6119
6120 * font.c (font_check_otf_features): Fix handling of `nil' element.
6121 (Ffont_spec): Describe :lang and :otf in the docstring.
6122
4c1958f4
AS
61232009-02-16 Andreas Schwab <schwab@suse.de>
6124
6125 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6126 string.
6127
5704f39a
KH
61282009-02-16 Kenichi Handa <handa@m17n.org>
6129
6130 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6131 (Bug#1723)
5704f39a 6132
8f0085aa
CY
61332009-02-14 Chong Yidong <cyd@stupidchicken.com>
6134
a057d86a 6135 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6136
6137 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6138 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6139
aff01dd9
EZ
61402009-02-14 Eli Zaretskii <eliz@gnu.org>
6141
6142 * msdos.c (MAX_SCREEN_BUF): New macro.
6143 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6144 Encode the entire run of glyphs sharing the same face, instead of
6145 doing that one glyph at a time (fixes a bug with displaying
6146 double-size characters).
6147
ba301db3
AR
61482009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6149
6150 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6151
6152 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6153 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6154 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6155
6156 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6157 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6158
51d861de
SM
61592009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6160
ac146f82 6161 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6162 invisible areas.
6163
7fed8996
JR
61642009-02-12 Jason Rumney <jasonr@gnu.org>
6165
631ea4fb
JR
6166 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6167 (add_font_entity_to_list): Call check_face_name even when family
6168 is unspecified.
6169
cb4a3e42
JR
6170 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6171 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6172 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6173
7fed8996 6174 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6175 raster fonts. (Bug#2219)
7fed8996 6176
895416e3
KH
61772009-02-12 Kenichi Handa <handa@m17n.org>
6178
6179 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6180 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6181 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6182 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6183 (find_automatic_composition): While looking forward and backward,
6184 check static composition. Fix where to stop looking forward.
6185 (composition_adjust_point): Fix checking of static composition.
6186 (Fcomposition_get_gstring): Pay attention to
1dacf998 6187 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6188
6189 * lisp.h (fast_looking_at): Extern it.
6190
6191 * search.c (fast_looking_at): New function.
6192
51d861de 6193 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6194 <struct glyph>.u.cmp.to.
6195 (append_composite_glyph): Likewise.
6196
51d861de 6197 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6198 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6199 composition.
51d861de 6200 (append_composite_glyph): Adjust for the change of
895416e3
KH
6201 <strcut glyph>.u.cmp.to.
6202
8510724d
JB
62032009-02-11 Juanma Barranquero <lekktu@gmail.com>
6204
6205 * casetab.c (init_casetab_once):
6206 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6207 * font.c (font_update_lface):
6208 * fontset.c (Fnew_fontset):
6209 * ftfont.c (ftfont_drive_otf):
6210 * xfont.c (xfont_open):
6211 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6212
294fa707
SM
62132009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6214
6215 * fileio.c (Fwrite_region): !NILP -> CONSP.
6216
b5bfebec
AS
62172009-02-10 Andreas Schwab <schwab@suse.de>
6218
6219 * process.c (send_process): Properly relocate pointer into data
adab88bd 6220 when using encoded data. (Bug#2272)
b5bfebec 6221
cb84a2be
KH
62222009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6223
6224 * coding.c (detect_coding_charset): Fix previous change.
6225
89e09428
JR
62262009-02-08 Jason Rumney <jasonr@gnu.org>
6227
6228 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6229 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6230
4470a277
AS
62312009-02-07 Andreas Schwab <schwab@suse.de>
6232
6233 * unexelf.c (unexec): Fix error message.
6234
3175b12a
AR
62352009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6236
6237 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6238 when modal window is active. (Bug #2152)
3175b12a
AR
6239 (applicationShouldTerminate:): Remove now-unneeded while loop
6240 around NSRunAlertPanel.
6241
6242 * nsmenu.m (popupSession): New file-global variable.
6243 (pop_down_menu): End the popupSession before closing dialog.
6244 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6245 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6246 don't query NSApp for events (just sleep instead).
6247
8434d0b8
EZ
62482009-02-07 Eli Zaretskii <eliz@gnu.org>
6249
51d861de
SM
6250 * coding.c (syms_of_coding) <translation-table-for-input>:
6251 Modify doc string to discourage use for character code unification.
8434d0b8 6252
aa82edfd
CY
62532009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6254
6255 * atimer.c (run_timers): Update pending_atimers.
6256
2d283c7c
CY
62572009-02-06 Chong Yidong <cyd@stupidchicken.com>
6258
eb306cab
CY
6259 * image.c (svg_load_image): Fix last change.
6260
2d283c7c
CY
6261 * xfns.c (Fx_create_frame): Signal an error if no font is
6262 found (Bug#2147).
6263
4d8e170e
JB
62642009-02-05 Juanma Barranquero <lekktu@gmail.com>
6265
6266 * character.c (syms_of_character) <script-representative-chars>:
6267 Fix typo in docstring.
6268
c96169a0
AR
62692009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6270
6271 * nsmenu.m (pop_down_menu): New function.
6272 (ns_popup_dialog): Call it on unwind.
6273 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6274 call timer_check() (Bug#2154).
6275 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6276 handling_signal is set.
6277 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6278
31fd7c5c 6279 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6280
6281 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6282
6283 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6284
51d861de
SM
6285 * keyboard.c (poll_for_input_1, handle_async_input):
6286 Set handling_signal under HAVE_NS.
c96169a0 6287
aacd8ba1
GM
62882009-02-04 Glenn Morris <rgm@gnu.org>
6289
6290 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6291
4cb75c4b
KH
62922009-02-04 Kenichi Handa <handa@m17n.org>
6293
6294 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6295
6296 * charset.c (Fchar_charset): New optional arg restriction.
6297
6298 * coding.h (coding_system_charset_list): Extern it.
6299
6300 * coding.c (coding_system_charset_list): New function.
6301
6302 * composite.c: Include coding.h and termhooks.h.
6303 (composition_gstring_p): Fix for the terminal case.
6304 (composition_gstring_width): Likewise.
6305 (fill_gstring_body): Likewise.
6306 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6307 the frame.
6308 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6309 is within a composition.
867d4bb3 6310 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6311
6312 * term.c (encode_terminal_code): Fix handling of composition.
6313 (produce_composite_glyph): For static composition, get pixel_width
6314 from struct composition.
6315
826ba17e
AS
63162009-02-02 Andreas Schwab <schwab@suse.de>
6317
6318 * unexelf.c (unexec): Handle unaligned bss offset.
6319
8ad093db
AR
63202009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6321
6322 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6323 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6324
8ad093db
AR
6325 * keyboard.c (handle_interrupt): Don't call
6326 quit_throw_to_read_char() under NS.
d0a76a6e 6327
8ad093db
AR
6328 * blockinput.h: Remove NS-specific code.
6329
4d18a7a2
DN
63302009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6331
db878925
DN
6332 * dispnew.c (window_change_signal): Don't try to get the size of a
6333 suspended tty frame.
6334 * term.c (Fresume_tty): Resize if the size has changed while the
6335 tty was suspended.
6336
4d18a7a2
DN
6337 * alloc.c (mark_stack): Properly conditionalize previous change.
6338
8984df7c
JB
63392009-01-30 Juanma Barranquero <lekktu@gmail.com>
6340
6341 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6342 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6343 Remove; this code is not used on Windows.
6344
75f4f1ac
EZ
63452009-01-30 Eli Zaretskii <eliz@gnu.org>
6346
6347 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6348 EOLs that also has stray ^M characters.
6349
07a1e794
JB
63502009-01-30 Juanma Barranquero <lekktu@gmail.com>
6351
6352 * atimer.c (run_timers, alarm_signal_handler):
6353 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6354 * w32inevt.c (w32_console_read_socket):
6355 * w32term.c (w32_read_socket):
6356 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6357
a8b11cc9
CY
63582009-01-30 Chong Yidong <cyd@stupidchicken.com>
6359
6360 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6361 Initialize it as a relative filename pattern.
6362 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6363 (Fcall_process_region): Simplify temp file creation using
6364 temporary-file-directory.
6365
c279587b
EZ
63662009-01-29 Eli Zaretskii <eliz@gnu.org>
6367
6368 * msdos.c: Rename pending_signals to msdos_pending_signals.
6369 (sig_suspender, sigprocmask): Adjust.
6370
a8fe3242
CY
63712009-01-29 Chong Yidong <cyd@stupidchicken.com>
6372
6373 * keyboard.c (pending_signals): New var.
6374 (poll_for_input, input_available_signal, init_keyboard): Set it.
6375 (process_pending_signals): New function.
6376
6377 * lisp.h (QUIT): Check pending_signals instead of
6378 interrupt_input_pending. Use process_pending_signals.
6379
51d861de 6380 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6381
51d861de 6382 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6383
6384 * sysdep.c (emacs_write): Use process_pending_signals.
6385
6386 * xterm.c (XTread_socket): Update pending_signals.
6387
6388 * w32term.c (w32_read_socket): Update pending_signals.
6389
6390 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6391
6570a1c4
KH
63922009-01-29 Kenichi Handa <handa@m17n.org>
6393
6394 * xftfont.c (xftfont_has_char): New function.
6395 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6396
d72a4afa
AR
63972009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6398
6399 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6400 under GNUstep.
6401 (ns_query_color): New declaration.
6402
6403 * nsterm.m (ns_confirm_quit): New variable.
6404 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6405 (EmacsApp-applicationShouldTerminate:): Use it.
6406 (EmacsPrefsController): Let user set it.
6407 (ns_query_color): New function.
6408 (ns_defined_color): Use it.
6409 (ns_initialize): Drop.
6410 (ns_term_init): Add two lines from ns_initialize(), and set
6411 input_interrupt_mode to nil.
6412
6413 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6414 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6415
9fe78804
KH
64162009-01-28 Kenichi Handa <handa@m17n.org>
6417
6418 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6419 (fontset_get_font_group): Remember that no font-group is specified
6420 for C.
9fe78804 6421
fa57de36
CY
64222009-01-27 Chong Yidong <cyd@stupidchicken.com>
6423
930600e9
CY
6424 * fns.c (concat): Check for string overflow (bug#1787).
6425
fa57de36
CY
6426 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6427 Quadruple undo limits (bug#1501).
6428
7179ce7b
KH
64292009-01-27 Kenichi Handa <handa@m17n.org>
6430
6431 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6432 directly use GT_Get_Char_index.
6433
6434 * xftfont.c (struct xftfont_info): New member `index'.
6435
6436 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6437 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6438
5be8fcc0
CY
64392009-01-26 Kenichi Handa <handa@m17n.org>
6440
6441 * fontset.c (fontset_find_font): Fix handling of non-cons return
6442 value of fontset_get_font_group.
6443 (fontset_font): Revert last change.
6444
19ae3e61
JR
64452009-01-26 Jason Rumney <jasonr@gnu.org>
6446
6447 * w32font.c (w32font_list_internal): Return quickly if registry is
6448 unknown. Simplify final return.
6449 (add_font_entity_to_list): Break complex logic down into more
6450 manageable chunks. Move unknown registry check to
6451 w32font_list_internal.
6452
8612b71a
AR
64532009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6454
6455 Changes to remove Feval calls from GUI under NS.
6456
d8038940
JB
6457 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6458 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6459 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6460
6461 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6462 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6463 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6464 instead of NON_ASCII_KEYSTROKE_EVENT.
6465 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6466 (EmacsApp-applicationShouldTerminate:): Query user.
6467 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6468 instead of Feval.
6469
6470 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6471
6472 * keyboard.c (kbd_buffer_get_event): Check for it.
6473 (keys_of_keyboard): Define lispy keys for
6474 ns-put/unput-working-text.
6475
6476 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6477 versions.
6478 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6479
6288ae55
CY
64802009-01-25 Chong Yidong <cyd@stupidchicken.com>
6481
6482 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6483 setting current_buffer directly. (Bug#2044)
6288ae55 6484
289e7f8f
CY
64852009-01-24 Chong Yidong <cyd@stupidchicken.com>
6486
5ce87308 6487 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6488 any work. (Bug#1952, bug#1990).
5ce87308 6489
64cc3cf6 6490 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6491
b3243e6f
AR
64922009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6493
6494 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6495 (ns_no_defaults): New declaration.
6496 (main): Use it.
e0d2e69a 6497
d900b2af 6498 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6499
d900b2af 6500 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6501
d900b2af
AR
6502 * nsterm.m (ns_no_defaults): New variable.
6503 (ns_initialize): Don't read defaults when ns_no_defaults.
6504 (EmacsView-readSelectionFromPasteboard:)
6505 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6506 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6507 (ns_dumpglyphs_stretch): New function.
6508 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6509 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6510
e0d2e69a
AR
6511 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6512
3ac71f5d
CY
65132009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6514
6515 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6516 call for Sparc64.
6517
3fe53a83
AR
65182009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6519
6520 * nsfns.m:
6521 * nsgui.h:
6522 * nsmenu.m:
6523 * nsselect.m:
6524 * nsterm.h:
6525 * nsterm.m: Remove '23' comments that indicated code added during
6526 update from emacs-20 -> emacs-23.
6527
10f87c6f 65282009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6529
6530 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6531 ns_alternate_modifier. (Bug#1217)
a3b53a85 6532
c7cef62d
AR
6533 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6534 Display all shortcuts, including those w/o super modifier.
6535
575fb8bd
AR
6536 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6537
918b848b
CY
65382009-01-22 Chong Yidong <cyd@stupidchicken.com>
6539
6540 * fileio.c (Vwrite_region_post_annotation_function)
6541 (Vwrite_region_annotation_buffers): New vars.
6542 (build_annotations_unwind): Just reset
6543 Vwrite_region_annotation_buffers.
6544 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6545 Call write-region-post-annotation-function.
6546 (build_annotations): Add to Vwrite_region_annotation_buffers if
6547 buffer changes.
6548
a39e2539
AR
65492009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6550
6551 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6552 Tiger.
51d861de
SM
6553 * nsfns.m (ns_do_applescript):
6554 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6555
35ed44db
AR
65562009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6557
6558 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6559
cbe0b5bf
AR
65602009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6561
6562 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6563
6049d3a0
AR
6564 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6565
6566 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6567 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6568 handle Ctrl-tab. (Bug#1841)
6569 (ns_get_color): Use unsigned long long for scanned hex string value.
6570 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6571 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6572 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6573 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6574 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6575 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6576 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6577
d3810c21 6578 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6579 DPI. (Bug#1316)
d3810c21
AR
6580 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6581 values in onTiger section.
4c7077c3 6582
e301e634
CY
65832009-01-19 Chong Yidong <cyd@stupidchicken.com>
6584
7f82490b
CY
6585 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6586 Check return value of font_spec_from_name.
64cc3cf6 6587 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6588
6589 * font.c (font_spec_from_name): Return Qnil if font name could not
6590 be parsed.
6591 (font_parse_name): Treat a `?' character as part of an XLFD.
6592
e301e634
CY
6593 * fns.c (Fsubstring): Doc fix.
6594
1c0db158
KH
65952009-01-19 Kenichi Handa <handa@m17n.org>
6596
51d861de 6597 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6598 (ftfont_list): Likewise.
6599
acf20901
JB
66002009-01-18 Juanma Barranquero <lekktu@gmail.com>
6601
fff4e459
JB
6602 * dbusbind.c (Fdbus_register_signal):
6603 * process.c (conv_sockaddr_to_lisp):
6604 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6605
acf20901
JB
6606 * callproc.c (Fgetenv_internal): Doc fix.
6607
e7abcdfb
CY
66082009-01-16 Chong Yidong <cyd@stupidchicken.com>
6609
6610 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6611 it is not even used.
6612
b60861e6
GM
66132009-01-16 Glenn Morris <rgm@gnu.org>
6614
6615 * font.c (Ffont_variation_glyphs): Silence compiler.
6616
8db52afe
JB
66172009-01-15 Juanma Barranquero <lekktu@gmail.com>
6618
6619 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6620 Reported by David Robinow <drobinow@gmail.com>.
6621
4cddb209
KH
66222009-01-15 Kenichi Handa <handa@m17n.org>
6623
51d861de 6624 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6625
f247f67b
JR
66262009-01-14 Jason Rumney <jasonr@gnu.org>
6627
6628 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6629 never a fontset. (Bug#1562)
f247f67b 6630
f56a4450
KH
66312009-01-14 Kenichi Handa <handa@m17n.org>
6632
6633 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6634 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6635
4e99855e
CY
66362009-01-13 Chong Yidong <cyd@stupidchicken.com>
6637
6638 * font.c (font_clear_prop): If clearing the family, clear the font
6639 width index too.
6640
fff4e459 6641 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6642
24f01470
JB
66432009-01-12 Juanma Barranquero <lekktu@gmail.com>
6644
6645 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6646 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6647 functions, use sizeof.
6648
a41240a3
MR
66492009-01-12 Martin Rudalics <rudalics@gmx.at>
6650
6651 * keyboard.c (read_char): Fix case where last_nonmenu_event
6652 returned a bad value with submenus. (Bug#447)
6653
944636b8
CY
66542009-01-12 Chong Yidong <cyd@stupidchicken.com>
6655
6656 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6657 family, clear the font width index too.
6658
0dad7c6f
JR
66592009-01-11 Jason Rumney <jasonr@gnu.org>
6660
6661 * keyboard.c (cmd_error_internal): Exit when errors occur before
6662 frame creation and not in daemon mode. (Bug#1836)
6663
7c2363af
CY
66642009-01-10 Chong Yidong <cyd@stupidchicken.com>
6665
6666 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6667 of a display vector, backtrack.
6668 (try_window_reusing_current_matrix): Check glyph type before
6669 referencing charpos member.
6670
97b1b294
EZ
66712009-01-10 Eli Zaretskii <eliz@gnu.org>
6672
6673 Fix Bug #876:
6674
6675 * coding.c (inhibit_null_byte_detection): New variable.
6676 (detect_coding, detect_coding_system): Don't pay attention to null
6677 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6678 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6679 <inhibit-iso-escape-detection>: Doc fix.
6680
4624b6e3
JR
66812009-01-09 Jason Rumney <jasonr@gnu.org>
6682
6683 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6684 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6685 Only report Unicode Plane 2 fonts as unicode-sip.
6686
323b840c
CY
66872009-01-09 Chong Yidong <cyd@stupidchicken.com>
6688
51d861de
SM
6689 * xfaces.c (Fx_font_family_list): Delete function.
6690 Move compatibility version to faces.el.
323b840c 6691
51d861de 6692 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6693
eba7400d
MR
66942009-01-09 Martin Rudalics <rudalics@gmx.at>
6695
6696 * frame.c (x_set_frame_parameters): Remember requested value for
6697 fullscreen before it's reset by the parameter handler.
6698
4b09796d
GM
66992009-01-09 Glenn Morris <rgm@gnu.org>
6700
6701 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6702 (last_command_event): ... and update all users.
4b09796d
GM
6703 (last_input_char): For clarity, rename to...
6704 (last_input_event): ... and update all users.
6705 (last-command-char, last-input-char): Move to subr.el as aliases.
6706 * cmds.c, commands.h: Update for last_command_char rename.
6707
14ccea62
CY
67082009-01-08 Chong Yidong <cyd@stupidchicken.com>
6709
51d861de 6710 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6711
5f004711
JR
67122009-01-08 Jason Rumney <jasonr@gnu.org>
6713
6714 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6715 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6716 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6717 Don't declare.
fff4e459 6718 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6719 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6720
b71f6f73
KH
67212009-01-07 Kenichi Handa <handa@m17n.org>
6722
50b06221 6723 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6724 remember the coding system used for decoding in
50b06221
KH
6725 coding_system (Bug#1039).
6726
b71f6f73 6727 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6728 breaking the loop. (Bug#870)
b71f6f73
KH
6729 (decode_coding_utf_16, decode_coding_emacs_mule)
6730 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6731 (decode_coding_charset): Likewise.
6732
56f668f7
MR
67332009-01-05 Martin Rudalics <rudalics@gmx.at>
6734
6735 * frame.c (x_set_frame_parameters): Make sure height (width) get
6736 applied when fullwidth (fullheight) is set. (Bug#1522)
6737
5da9424d
JB
67382009-01-04 Juanma Barranquero <lekktu@gmail.com>
6739
6740 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6741 (utc_base): Declare as ULONGLONG, not long double.
6742 (convert_time_raw): Delete.
6743 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6744 (initialize_utc_base): New function.
6745 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6746 (convert_from_time_t): Use initialize_utc_base; compute result with
6747 64-bit arithmetic.
6748 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6749
c4605e09
EZ
67502009-01-03 Eli Zaretskii <eliz@gnu.org>
6751
9acef61c 6752 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6753 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6754 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6755 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6756 [!subprocesses]: Define.
6757 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6758 (Flist_system_processes, Fsystem_process_attributes)
6759 [!subprocesses]: Call list_system_processes and
6760 system_process_attributes instead of returning Qnil.
6761
9acef61c
JB
6762 * dosfns.c (system_process_attributes, list_system_processes):
6763 New functions.
c4605e09
EZ
6764
6765 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6766
6767 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6768 Don't use the default (no-op) implementation.
6769
8b7d0a16
JR
67702009-01-03 Jason Rumney <jasonr@gnu.org>
6771
a6d46bc1
JR
6772 * keyboard.c (parse_modifiers_uncached): Wheel events are
6773 clicks (bug#687).
6774
8b7d0a16
JR
6775 * w32term.c (x_query_colors, x_query_color): New functions.
6776
6777 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6778 (svg_load_image): Cast returned pointers from dynamically loaded
6779 functions. Eliminate W32 specific code.
6780
bfe11752
DN
67812009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6782
89e2438a
DN
6783 * nsfns.m (x_set_foreground_color, x_set_background_color)
6784 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6785 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6786 x_ prefix instead of ns_. Update references.
6787 (syms_of_nsfns): Add a FIXME comment.
6788
6789 * nsterm.m (x_set_cursor_type): New prototype.
6790 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6791
bfe11752
DN
6792 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6793 for Solaris instead of incorrectly providing Qutime and Qcutime.
6794
031da700
EZ
67952009-01-02 Eli Zaretskii <eliz@gnu.org>
6796
6797 * w32.c (process_times): Compute sum of utime and stime.
6798 (system_process_attributes): Add Qtime to the alist.
6799
6800 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6801 and add them to the alist.
6802
6803 * process.c (top level) <Qtime, Qctime>: New variables.
6804 (syms_of_process): staticpro them.
6805 (Fsystem_process_attributes): Add their documentation to the doc
6806 string.
6807
6808 * process.h: Declare Qtime and Qctime.
6809
df23bf08
JR
68102009-01-02 Jason Rumney <jasonr@gnu.org>
6811
9acef61c 6812 * image.c (Qgobject): New symbol.
df23bf08
JR
6813 (syms_of_image): Initialize it.
6814 (init_svg_functions): Load some functions from gobject library.
6815
5bbdf7aa
DN
68162009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6817
6818 * frame.c (make_terminal_frame): Remove redundant code and useless
6819 block.
6820
63136da6
AS
68212009-01-01 Andreas Schwab <schwab@suse.de>
6822
6823 * process.c (conv_sockaddr_to_lisp): Add workaround for
6824 getsockname bug on BSD.
6825
9ef69046
CY
68262009-01-01 Chong Yidong <cyd@stupidchicken.com>
6827
d6fafbe0
CY
6828 * xfns.c (x_create_tip_frame): Set border width of the X window.
6829
51d861de 6830 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6831
f9c34147
JR
68322009-01-01 Jason Rumney <jasonr@gnu.org>
6833
9acef61c 6834 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6835 Don't block input, as per earlier xterm.c changes.
6836
f5497e45
AR
68372008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6838
6839 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6840 (ns_appkit_version_int): New function.
6841 (x-server-version): Use ns_appkit_version_int and follow 21+
6842 convention of returning 3 integers.
6843
c19cab20
KH
68442008-12-30 Kenichi Handa <handa@m17n.org>
6845
6846 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6847 (CHAR_SURROGATE_PAIR_P): New macro.
6848
6849 * font.h (struct font_driver): New member get_variation_glyphs.
6850
9acef61c 6851 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6852 (Ffont_variation_glyphs): New function.
6853 (syms_of_font): Defsubr it.
6854
6855 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6856 ftfont_variation_glyphs.
6857 (setup_otf_gstring): New function.
6858 (ftfont_drive_otf): Use it.
6859 (ftfont_shape_by_flt): Handle variation selector.
6860 (ftfont_variation_glyphs): New function.
6861
28cd591f
MR
68622008-12-30 Martin Rudalics <rudalics@gmx.at>
6863
6864 * frame.c (Vemacs_iconified): Remove.
6865
7f714baf
JR
68662008-12-30 Jason Rumney <jasonr@gnu.org>
6867
6868 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6869 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6870
9d2d22ab
CY
68712008-12-30 Chong Yidong <cyd@stupidchicken.com>
6872
6873 * indent.c (Fvertical_motion): Don't advance iterator if we have
6874 reseated to the desired position.
6875
6876 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6877 checking for pos match.
6878
545312c2
KH
68792008-12-30 Kenichi Handa <handa@m17n.org>
6880
1ede3eb6
KH
6881 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6882 just get the low 8-bit of the code.
6883
545312c2
KH
6884 * font.c (font_intern_prop): Validate str as multibyte.
6885
bd7bbf29
DN
68862008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6887
31e0750e
DN
6888 * dispextern.h (struct face): Move lface and hash from the middle
6889 of bitfields.
6890
bd7bbf29
DN
6891 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6892
b5672e7c
DN
68932008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6894
6895 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6896 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6897 instead of intervals.h.
6898
d704470f
AS
68992008-12-26 Andreas Schwab <schwab@suse.de>
6900
6901 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6902 cons.
6903
54b33868
MR
69042008-12-26 Martin Rudalics <rudalics@gmx.at>
6905
6906 * textprop.c (Qminibuffer_prompt): New variable.
6907 (syms_of_textprop): Initialize it.
6908 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6909 in minibuffer-prompt face. (Bug#1662)
6910
40b615d6
JR
69112008-12-25 Jason Rumney <jasonr@gnu.org>
6912
6913 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6914
baae5c2d
JR
69152008-12-24 Jason Rumney <jasonr@gnu.org>
6916
6917 * ralloc.c (r_alloc_reset_variable): New function.
6918
6919 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6920 record of what points where. (Bug#716)
baae5c2d 6921
a9051c88
DN
69222008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6923
6924 * minibuf.c (read_minibuf): Follow the non-interactive case when
6925 running as a daemon, before detaching.
6926
8b146312
AS
69272008-12-22 Andreas Schwab <schwab@suse.de>
6928
6929 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6930 * gtkutil.c (free_widget_value): Use xfree instead of free.
6931
56f2de10
MR
69322008-12-22 Martin Rudalics <rudalics@gmx.at>
6933
6934 * frame.c (delete_frame): New function derived from
6935 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6936 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6937 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6938 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6939 * frame.h: Extern delete_frame.
6940 * window.c (window_loop):
6941 * terminal.c (delete_terminal):
6942 * xterm.c (x_connection_closed):
6943 * xfns.c (Fx_hide_tip):
9acef61c 6944 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6945
1fc200d6
JR
69462008-12-21 Jason Rumney <jasonr@gnu.org>
6947
6948 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6949 when character maps to .notdef character.
6950
5e252df2
SM
69512008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6952
6953 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6954
99b72cc4
JR
69552008-12-20 Jason Rumney <jasonr@gnu.org>
6956
6957 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6958 a graphical frame on Windows. (Bug#1325)
99b72cc4 6959
acc49a52
JD
69602008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6961
6962 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6963
6ea15123
CY
69642008-12-20 Chong Yidong <cyd@stupidchicken.com>
6965
6966 * minibuf.c (Fread_buffer): Doc fix.
6967
b2dab6c8
JR
69682008-12-20 Jason Rumney <jasonr@gnu.org>
6969
54ea0c87 6970 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6971 server name in UNC paths. (Bug#719)
54ea0c87 6972
b2dab6c8 6973 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6974 charbuf. (Bug#1035)
b2dab6c8 6975
6d1921be
DN
69762008-12-19 Daniel Engeler <engeler@gmail.com>
6977
6978 * sysdep.c (serial_configure): Fix typo.
6979
53934c98
DN
69802008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6981
6982 * sysdep.c: Include alloca.h.
f4f634e8
DN
6983 (system_process_attributes): Add implementation for Solaris.
6984
6985 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6986
06e111a6
DN
69872008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6988
6989 Reorganize implementation of Flist_system_processes and
6990 Fsystem_process_attributes. No functional changes.
6991 * process.c: Don't #include pwd.h, grp.h and limits.h.
6992 (Flist_system_processes): Just call list_system_processes.
6993 (Fsystem_process_attributes): Just call system_process_attributes.
6994 (procfs_list_system_processes, time_from_jiffies)
6995 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6996 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6997
6998 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6999 (list_system_processes): Rename from
7000 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7001 Provide a do nothing implementation.
7002 (system_process_attributes): Rename from
7003 procfs_list_system_processes.
7004 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7005 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7006
7007 * w32.c (list_system_processes): Rename from
7008 w32_list_system_processes.
7009 (system_process_attributes): Rename from
7010 w32_system_process_attributes.
7011
7012 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7013
7014 * process.h (w32_list_system_processes)
7015 (w32_system_process_attributes): Remove.
362654a6
JB
7016 (list_system_processes, system_process_attributes):
7017 New prototypes.
06e111a6 7018
6a705b23
KH
70192008-12-19 Kenichi Handa <handa@m17n.org>
7020
7021 * xfont.c (xfont_decode_coding_xlfd): New function.
7022 (xfont_encode_coding_xlfd): New function.
7023 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7024 (xfont_list): Decode and encode XLFD by iso-8859-1.
7025 (xfont_match): Likewise.
7026 (xfont_list_family): Likewise.
7027 (xfont_open): Likewise.
7028
d66c0241 7029 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7030 names are utf-8.
7031
d66c0241 7032 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7033 names are utf-8.
7034
5a130941
JD
70352008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7036
7037 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7038 changed.
bfd20325
JD
7039 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7040 clicked on a detached tool bar button.
5a130941 7041
fd95644b
DN
70422008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7043
7044 * emacs.c (main): Print and error and exit when no data is read
7045 from the pipe.
7046
e6eee6ae
JR
70472008-12-17 Jason Rumney <jasonr@gnu.org>
7048
7049 * w32font.c (w32font_has_char): Always return -1.
7050
a35dd56b
KH
70512008-12-16 Kenichi Handa <handa@m17n.org>
7052
7053 * font.c (font_open_entity): Fix previous change.
7054
0e3635c2
DN
70552008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7056
7057 * process.c: Include <limits.h>.
7058
d4835507 70592008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7060
7061 * font.c (font_update_drivers): Fix mistake in reconstructing the
7062 driver list.
7063
70642008-12-16 Chong Yidong <cyd@stupidchicken.com>
7065
7066 * font.c (font_clear_cache): Fix format of font cache data.
7067
e2cbc401
CY
70682008-12-15 Chong Yidong <cyd@stupidchicken.com>
7069
7070 * xftfont.c (xftfont_open): Free Xft font pattern if
7071 XftFontOpenPattern fails.
7072
7073 * xterm.c (x_free_frame_resources): Remove extraneous call to
7074 free_frame_faces.
7075
b131d535
CY
70762008-12-13 Chong Yidong <cyd@stupidchicken.com>
7077
7078 * xterm.c (x_delete_display): Move xim_close_dpy call to
7079 x_delete_terminal.
7080 (x_delete_terminal): Call xim_close_dpy.
7081
e6df5336
JR
70822008-12-13 Jason Rumney <jasonr@gnu.org>
7083
7084 * w32font.c (intern_font_name): New function.
7085 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7086 (w32font_open_internal, Fx_select_font): Decode font name.
7087 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7088
7089 * w32font.h (intern_font_name): Declare new function.
7090
7091 * w32uniscribe.c (add_opentype_font_name_to_list):
7092 Use intern_font_name.
7093
20d68145
CY
70942008-12-13 Chong Yidong <cyd@stupidchicken.com>
7095
9f2554de
CY
7096 * frame.c (Fdelete_frame): Call free_font_driver_list.
7097
3d9bec9a
CY
7098 * font.c (free_font_driver_list): Implement missing function.
7099
20d68145
CY
7100 * w32term.c (w32_term_init): Don't initialize the image cache
7101 here; it will be done in init_frame_faces.
7102
7103 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7104 (struct x_display_info): Remove unused member null_pixel. New
7105 member xim_callback_data.
7106
7107 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7108 (xim_initialize): Save pointer to callback function data.
7109 (xim_close_dpy): Free callback function data. Call XCloseIM,
7110 reverting 2008-11-04 change by David Smith.
7111 (x_term_init): Don't initialize the image cache here; it will be
7112 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7113 (x_delete_display): Free x_dnd_atoms member.
7114
96f9306b
KH
71152008-12-13 Kenichi Handa <handa@m17n.org>
7116
6dec9044
JB
7117 * font.c (font_rescale_ratio): Moved from xfaces.c.
7118 Argument type changed. Handle a font-spec too.
96f9306b 7119 (font_score): Check Vface_font_rescale_alist.
6dec9044 7120 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7121
7122 * xfaces.c (font_rescale_ratio): Moved to font.c.
7123
8d5b4964
CY
71242008-12-13 Chong Yidong <cyd@stupidchicken.com>
7125
7126 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7127
e6df5336
JR
71282008-12-12 Jason Rumney <jasonr@gnu.org>
7129
7130 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7131 Vwindow_system_version to the real w32 major version.
7132
97c6058a
DN
71332008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7134
7135 * term.c (init_tty): Move setting the terminal name before the
7136 potential user: maybe_fatal.
7137
ec4e88d7
CY
71382008-12-11 Chong Yidong <cyd@stupidchicken.com>
7139
d4835507
JB
7140 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7141 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7142
b4233ec9
JR
71432008-12-11 Jason Rumney <jasonr@gnu.org>
7144
8ec71e23 7145 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7146 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7147
b4233ec9 7148 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7149 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7150
011a0143
JB
71512008-12-11 Juanma Barranquero <lekktu@gmail.com>
7152
7153 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7154
3c309f34
JB
71552008-12-11 Juanma Barranquero <lekktu@gmail.com>
7156
7157 * process.c (Fsystem_process_attributes, syms_of_process):
7158 Fix typo in name of Ssystem_process_attributes.
7159 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7160
fedc6ab5
JB
71612008-12-11 Juanma Barranquero <lekktu@gmail.com>
7162
7163 * syntax.c (Fmodify_syntax_entry): Doc fix.
7164
ba3de0e8
JB
71652008-12-10 Juanma Barranquero <lekktu@gmail.com>
7166
7167 * font.c (Ffont_spec): Move usage to end of docstring.
7168
174f1c74
JR
71692008-12-10 Jason Rumney <jasonr@gnu.org>
7170
7171 * w32font.c (Qcham): New symbol.
7172 (font_supported_scripts): Add cham, and comments for other new
7173 scripts in bitfield from OpenType spec.
9d32f818
JR
7174 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7175 contain characters beyond the bmp.
174f1c74 7176
7b649478
KH
71772008-12-10 Kenichi Handa <handa@m17n.org>
7178
7179 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7180 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7181 Qunicode_sip.
7182
2133e2d1
JB
71832008-12-10 Juanma Barranquero <lekktu@gmail.com>
7184
7185 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7186 (Fcoding_system_put): Use QCdefault_char.
7187 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7188
9af886ee
CY
71892008-12-09 Chong Yidong <cyd@stupidchicken.com>
7190
74d819eb
CY
7191 * xftfont.c (syms_of_xftfont): Fix typo.
7192
4ccfa1c0 7193 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7194
7c19d3ae
DN
71952008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7196
7197 * emacs.c (main): Close daemon_pipe on exec.
7198
567826bb
CY
71992008-12-08 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * termchar.h (struct tty): New members termcap_term_buffer and
7202 termcap_strings_buffer.
7203
7204 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7205 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7206 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7207 All callers changed.
7208 (init_tty): Store termcap data and string buffers in new struct
7209 tty members termcap_term_buffer and termcap_strings_buffer.
7210 (delete_tty): Free them.
4ccfa1c0 7211 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7212
aa96c42b
SZ
72132008-12-07 Seiji Zenitani <zenitani@mac.com>
7214
7215 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7216 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7217
b7e1d896
CY
72182008-12-06 Chong Yidong <cyd@stupidchicken.com>
7219
7220 * coding.c (make_conversion_work_buffer): Disable buffer
7221 modification hooks in the work buffer.
7222
b5ec91a5
EZ
72232008-12-05 Eli Zaretskii <eliz@gnu.org>
7224
7225 * process.c (procfs_system_process_attributes): If `nread' has a
7226 negative value, assign zero to it.
7227
a5d2a52b
CY
72282008-12-05 Chong Yidong <cyd@stupidchicken.com>
7229
68c5540b 7230 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7231
7bf1bb21
KH
72322008-12-05 Kenichi Handa <handa@m17n.org>
7233
7234 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7235 second character is a combining character.
7236
2fdc7d00
EZ
72372008-12-05 Eli Zaretskii <eliz@gnu.org>
7238
7239 * process.c (procfs_system_process_attributes): Don't use cmd,
7240 cmdsize, and q without initializing them first.
7241
bf6bfba8
JR
72422008-12-04 Jason Rumney <jasonr@gnu.org>
7243
7244 * w32font.c (w32font_draw): Initialize orig_clip before getting
7245 it, and delete it when finished.
7246
a3b1a468
DN
72472008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7248
7249 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7250 case when running as a daemon before detaching.
7251
8b8be8eb
JB
72522008-12-03 Juanma Barranquero <lekktu@gmail.com>
7253
805f2638 7254 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7255
b1bde622
KH
72562008-12-03 Kenichi Handa <handa@m17n.org>
7257
e500c47d
KH
7258 * font.c (font_at): Set `multibyte' at first.
7259
ca516334
KH
7260 * coding.c (decode_coding_charset): Check type of an element of
7261 vector VALIDS.
7bf1bb21 7262 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7263
4ccfa1c0 7264 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7265 (font_for_char): Likewise.
7266
1e5ecd37
CY
72672008-12-03 Chong Yidong <cyd@stupidchicken.com>
7268
d5b01609 7269 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7270 (font_update_lface): Handle fonts with corrupted size specs,
7271 i.e. non-int and non-float.
d5b01609 7272
11e3a6e4 7273 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7274 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7275 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7276
ab06788b
CY
7277 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7278
1e5ecd37 7279 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7280 underline_minimum_offset for underline position.
1e5ecd37 7281
63c125ab
DN
72822008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7283
7284 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7285
7286 * character.c (c_string_width): Specify the type for LEN.
7287
3a8406e1
KH
72882008-12-03 Kenichi Handa <handa@m17n.org>
7289
4ccfa1c0 7290 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7291 (decode_coding_utf_8): Likewise.
4ccfa1c0 7292 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7293 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7294
651df7d9
CY
72952008-12-02 Chong Yidong <cyd@stupidchicken.com>
7296
7297 * keyboard.c (make_lispy_position): Only use PT if the selected
7298 window is current.
7299
1f625c6c
AS
73002008-12-02 Andreas Schwab <schwab@suse.de>
7301
f7741ce9
AS
7302 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7303
1f625c6c
AS
7304 * doprnt.c (doprnt1): Fix size of charbuf.
7305
92bc2678
CY
73062008-12-02 Chong Yidong <cyd@stupidchicken.com>
7307
7308 * keyboard.c (timer_check): Revert last change.
7309
93b9e8cc
JB
73102008-12-02 Juanma Barranquero <lekktu@gmail.com>
7311
7312 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7313
fd7a37d5
JB
73142008-12-01 Juanma Barranquero <lekktu@gmail.com>
7315
7316 * makefile.w32-in: Update dependencies.
7317 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7318
c115043b
AS
73192008-12-01 Andreas Schwab <schwab@suse.de>
7320
7321 * font.c (register_font_driver): Use xmalloc.
7322 (font_put_frame_data): Likewise.
7323
f5668d2a
CY
73242008-12-01 Chong Yidong <cyd@stupidchicken.com>
7325
860d96be
CY
7326 * xfaces.c (realize_x_face): Make abort condition clearer.
7327
f5668d2a
CY
7328 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7329
379c17e7
CY
73302008-11-30 Chong Yidong <cyd@stupidchicken.com>
7331
7332 * keyboard.c (timer_check): After a timer runs, ensure that the
7333 selected window's buffer is current.
7334
35f36d65
JB
73352008-11-30 Juanma Barranquero <lekktu@gmail.com>
7336
f952c61c
JB
7337 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7338 It was accidentally restored by the Unicode merge.
7339
35f36d65
JB
7340 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7341
b23077df
JB
73422008-11-29 Juanma Barranquero <lekktu@gmail.com>
7343
7344 * w32proc.c: Include "coding.h".
7345 (Fw32_short_file_name): Encode filename passed to Windows API.
7346 (Fw32_long_file_name): Encode filename passed to Windows API and
7347 decode back the result. (Bug#1433)
7348
b8ebe9dd
KH
73492008-11-29 Kenichi Handa <handa@m17n.org>
7350
8cc53f96
KH
7351 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7352 not before accessing it.
7353
b8ebe9dd
KH
7354 * charset.c (Fdefine_charset_internal): After calculating
7355 min_char, max_char, and fastmap, copy the charset structure again.
7356 (encode_char): Fix the previous change.
7357
59bc82c0
SZ
73582008-11-28 Seiji Zenitani <zenitani@mac.com>
7359
7360 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7361
7362 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7363
7364 * nsterm.m (x_set_frame_alpha): New function.
7365
32247e3d
EZ
73662008-11-27 Eli Zaretskii <eliz@gnu.org>
7367
7368 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7369
b003e5ff
JB
73702008-11-27 Juanma Barranquero <lekktu@gmail.com>
7371
7372 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7373 pointer to check_face_name.
7374
708550f5
KH
73752008-11-27 Kenichi Handa <handa@m17n.org>
7376
7377 * category.h (SET_CATEGORY_SET): Call set_category_set.
7378 (set_category_set): Extern it.
7379
7380 * category.c (hash_get_category_set): New function.
7381 (Fmodify_category_entry): Adjusted for the change of
7382 char_table_ref_and_range. Call hash_get_category_set to get a
7383 category set to store in the table.
7384
7385 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7386 Funify_charset.
7387
2ae37cf0 7388 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7389 (DECODE_CHAR): Check if the decoder vector is ready.
7390 (ENCODE_CHAR): Check if the encoder char-table is ready.
7391 (maybe_unify_char): Extern it.
7392
7393 * charset.c (Vchar_unified_charset_table): Delete it.
7394 (inhibit_load_charset_map): New variable.
7395 (temp_charset_work): New variable.
7396 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7397 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7398 New macros.
7399 (load_charset_map): Meaning of control_flag changed. If
7400 inhibit_load_charset_map is nonzero, setup a table in
7401 temp_charset_work.
7402 (load_charset): New argument control_flag.
7403 (map_charset_for_dump): New function.
7404 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7405 map_charset_for_dump.
7406 (Fdefine_charset_internal): If the charset method is MAP, load
7407 mapping tables by calling load_charset.
7408 (Funify_charset): Don't load a mapping table but directly set
7409 Vchar_unify_table.
7410 (maybe_unify_char): New function.
7411 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7412 Handle the case of inhibit_load_charset_map being nonzero.
7413 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7414 Handle the case of inhibit_load_charset_map being nonzero.
7415 (Fclear_charset_maps): Just free temp_charset_work.
7416 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7417 variable.
7418
7419 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7420 change of char_table_ref_and_range.
7421 (char_table_ref_and_range): Change the meaning of argument FROM
7422 and TO. Now the caller must provide initial values for *FROM
7423 and *TO.
7424
7425 * fontset.c (fontset_add): Adjusted for the change of
7426 char_table_ref_and_range.
7427 (fontset_get_font_group): Likewise.
7428 (Ffontset_info): Likewise.
7429
7430 * keymap.c (describe_vector): Adjusted for the change of
7431 char_table_ref_and_range. For char-table, put boundary between
7432 non-ASCII and 8-bit characters.
7433
7434 * print.c (print_object): For bool-vector, delete unnecessary
7435 check of ASCII_BYTE_P.
7436
9196133b
JR
74372008-11-26 Jason Rumney <jasonr@gnu.org>
7438
7439 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7440 leading in font height. (Bug#879)
9196133b 7441
9f688acf
GM
74422008-11-26 Glenn Morris <rgm@gnu.org>
7443
7444 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7445 redefinition with ifdef. (Bug#1383)
7446
90d19aff
AR
74472008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7448
7449 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7450
4ccfa1c0 74512008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7452
7453 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7454 New EmacsView methods.
7455 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7456 Fixes bug #1048,1357,1414.
7457
74582008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7459
7460 Fix bug #1362.
7461 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7462 is not an indexed color.
7463 * nsterm.m (free_indexed_color): Add argument checking.
7464 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7465
e7d5ecb3
CY
74662008-11-24 Chong Yidong <cyd@stupidchicken.com>
7467
7468 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7469 Document confirm-after-completion value for
7470 minibuffer-completion-confirm.
7471
c285743c
JR
74722008-11-24 Jason Rumney <jasonr@gnu.org>
7473
7474 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7475 warning.
7476
b0857706
JR
74772008-11-23 Jason Rumney <jasonr@gnu.org>
7478
7479 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7480 restored before returning.
7481
7482 * w32font.c (check_face_name): New function.
7483 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7484 fonts. (Bug#642)
b0857706 7485
ee50ff07
MR
74862008-11-22 Martin Rudalics <rudalics@gmx.at>
7487
7488 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7489 confirm-nonexistent-file-or-buffer in doc-string.
7490
b8ff72fa
SM
74912008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7492
7493 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7494 Fix copy/paste typo. Add checks.
7495
cee53ed4
KH
74962008-11-21 Kenichi Handa <handa@m17n.org>
7497
7498 * coding.c (detect_coding_iso_2022): Reject invalid composition
7499 sequence.
7500 (DECODE_COMPOSITION_START): If the current source is the last
7501 block, and the current composition doesn't end, regard this
7502 sequence as invalid.
7503 (decode_coding_iso_2022): Handle invalid composition sequence.
7504
f6ef1e65
MR
75052008-11-20 Martin Rudalics <rudalics@gmx.at>
7506
7507 * window.c (coordinates_in_window): Don't return
7508 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7509 line when the window is not the rightmost one. (Bug#1372)
7510
e08b1705
MR
75112008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7512
7513 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7514
ad98e89f
EZ
75152008-11-15 Eli Zaretskii <eliz@gnu.org>
7516
7517 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7518 and bright_bg if noninteractive is non-zero.
7519
fb098a4b
CY
75202008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7521
7522 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7523 x_draw_glyph_string_background.
7524
7525 * w32term.c (x_draw_glyph_string): Likewise.
7526
ce952b6e
CY
75272008-11-15 Chong Yidong <cyd@stupidchicken.com>
7528
7529 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7530 the next glyph string once past the overhang width.
7531
7532 * nsterm.m (ns_draw_glyph_string): Likewise.
7533
7534 * w32term.c (x_draw_glyph_string): Likewise.
7535
26ea7079
CY
75362008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7537
7538 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7539 double file close.
7540
1c33c906
MR
75412008-11-14 Martin Rudalics <rudalics@gmx.at>
7542
7543 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7544 dedicated status of window before attempting to display another
7545 buffer in it.
7546
8fc29035
JB
75472008-11-14 Juanma Barranquero <lekktu@gmail.com>
7548
7549 * msdos.c (Fmsdos_long_file_names):
7550 (syms_of_msdos) <dos-unsupported-char-glyph>:
7551 * dosfns.c (Fint86): Fix typos in docstrings.
7552
55fb4286
EZ
75532008-11-14 Eli Zaretskii <eliz@gnu.org>
7554
7555 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7556
3fda0315
KY
75572008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7558
7559 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7560
7e849c17
CY
75612008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7562
7563 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7564
7565 * frame.h: Negative alpha means "don't touch".
7566
7567 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7568
7569 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7570
b9fd67bd
DN
75712008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7572
7573 * hftctl.c:
7574 * chpdef.h:
7575 * acldef.h: Remove files used only for systems no longer supported.
7576
7577 * Makefile.in: Fix .o alphabetical ordering.
7578 (hftctl.o): Remove dependency, file removed.
7579 (keymap.o, print.o): Depend on charset.h.
7580
d5998e03
KH
75812008-11-10 Kenichi Handa <handa@m17n.org>
7582
2ae37cf0 7583 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7584
be70e183
CY
75852008-11-08 Chong Yidong <cyd@stupidchicken.com>
7586
7587 * dired.c (file_name_completion): If completion_ignore_case is
7588 enabled, ignore case when checking completion-regexp-list.
7589
7cf94eac
EZ
75902008-11-08 Eli Zaretskii <eliz@gnu.org>
7591
7592 * vm-limit.c (get_lim_data): Fix last change.
7593
ee107a89
KH
75942008-11-08 Kenichi Handa <handa@m17n.org>
7595
7596 * character.c (Fget_byte): New function.
7597 (syms_of_character): Defsubr Fget_byte.
7598
5fd15622
CY
75992008-11-07 Chong Yidong <cyd@stupidchicken.com>
7600
7601 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7602 cursor position is valid after scrolling.
7603
13d62fad
JB
76042008-11-06 Juanma Barranquero <lekktu@gmail.com>
7605
7606 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7607
a1dd2936
GM
76082008-11-06 Glenn Morris <rgm@gnu.org>
7609
7610 * xterm.c (handle_one_xevent): Don't let popup menus cause
7611 mouse-autoselect-window related window switching. (Bug#1261)
7612
860cd236
CY
76132008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7614
7615 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7616
653a3150
AS
76172008-11-04 Andreas Schwab <schwab@suse.de>
7618
7619 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7620
870f5cac
CY
76212008-11-03 Chong Yidong <cyd@stupidchicken.com>
7622
7623 * xfns.c (Fx_wm_set_size_hint): New function.
7624
1e02f3cb
MR
76252008-11-03 Martin Rudalics <rudalics@gmx.at>
7626
7627 * textprop.c (Fprevious_single_char_property_change): Return 0
7628 when there's no change in a string. (Bug#1301)
7629
e630dfc6
MR
76302008-11-02 Martin Rudalics <rudalics@gmx.at>
7631
7632 * frame.c (do_switch_frame): New argument NORECORD passed to
7633 Fselect_window.
7634 (Fselect_frame): New argument NORECORD passed to
7635 do_switch_frame.
7636 (Fset_frame_selected_window): New argument NORECORD passed to
7637 Fselect_frame.
7638 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7639 in call of do_switch_frame.
7640 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7641 Handle NORECORD argument in call of Fselect_frame.
7642 * lisp.h (do_switch_frame, Fselect_frame)
7643 (Fset_frame_selected_window): Adjust declarations.
7644 * window.c (select_frame_norecord): New function.
7645 (run_window_configuration_change_hook): Use it and call
7646 Fselect_frame with NORECORD set.
7647 (Fselect_window): Pass NORECORD to Fselect_frame.
7648 (Fset_window_configuration): Handle NORECORD argument in call of
7649 do_switch_frame.
7650 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7651 Fset_frame_selected_window.
7652 * keyboard.c (command_loop_1): Handle NORECORD in call of
7653 Fselect_frame (currently ifdefd).
7654
9020b223
GM
76552008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7656
7657 * emacs.c (USAGE2): Untabify.
7658
793ffee8
SM
76592008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7660
7661 * composite.c (fill_gstring_header): Fix copy/paste typo.
7662
ab6d1131
MR
76632008-10-31 Martin Rudalics <rudalics@gmx.at>
7664
7665 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7666 (Fother_window): Rename argument and rewrite doc-string.
7667 (select_window_norecord): Fix return value. (Bug#1276)
7668
601a9cf1
JB
76692008-10-30 Juanma Barranquero <lekktu@gmail.com>
7670
7671 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7672 new frames overriding foreground for tooltips. Based on similar patch
7673 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7674
813b0652
CY
76752008-10-29 Chong Yidong <cyd@stupidchicken.com>
7676
7677 * emacs.c (Fdaemon_initialized): Initialize nfd.
7678
4414f58f
MR
76792008-10-29 Martin Rudalics <rudalics@gmx.at>
7680
7681 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7682 (Fwindow_text_height): Clarify doc-strings.
7683 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7684 doc-string of window-scroll-functions.
7685
ecdcaa09
RS
76862008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7687
7688 * category.c (syms_of_category): Fix typo in docstring.
7689
23fe745a
JB
76902008-10-28 Juanma Barranquero <lekktu@gmail.com>
7691
7692 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7693 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7694 Fix typos in docstrings.
7695
ff808935
DN
76962008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7697
7698 * emacs.c (daemon_pipe): Make non-static.
7699 (IS_DAEMON): Move definition ...
7700 * lisp.h (IS_DAEMON): ... here.
7701 (daemon_pipe): Declare.
7702 (is_daemon): Remove.
7703 * dispnew.c (init_display): Use IS_DAEMON.
7704
fc012771
SM
77052008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7706
7707 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7708 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7709
7710 * emacs.c (is_daemon): Remove.
7711 (main): Don't set is_daemon.
7712 (IS_DAEMON): New macro.
7713 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7714 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7715 parent exits.
7716 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7717
d8bdbe6f
CY
77182008-10-27 Chong Yidong <cyd@stupidchicken.com>
7719
d1a072bf
CY
7720 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7721 over-sized glyph, draw it with the default glyph width.
7722
e2e325aa
CY
7723 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7724 glyph, draw it with the default glyph width.
7725
7726 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7727 glyph, draw it with the default glyph width.
7728
d8bdbe6f
CY
7729 * xdisp.c (try_scrolling): When computing the distance from the
7730 scroll margin to PT, try moving some distance past the window
7731 bottom before giving up.
7732
7bfac547
MR
77332008-10-27 Martin Rudalics <rudalics@gmx.at>
7734
7735 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7736 (Fset_window_buffer): Explain in doc-string that a window can be
7737 "strongly" dedicated to its buffer.
7738
4ff029f6
DN
77392008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7740
7741 * emacs.c (daemon_name): New variable.
7742 (main): Deal with --daemon=SERVER_NAME.
7743 (Fdaemonp): Return a name if one was passed to --daemon.
7744
5790ef40
DN
77452008-10-26 Romain Francoise <romain@orebokech.com>
7746
f9bd0df9 7747 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7748 (main): Create a pipe before forking, make the parent exit only after
7749 the child has closed its end of the pipe. Move closing the
7750 descriptors ...
7751 (Fdaemon_initialized): ... here. New function.
7752
f5385255
SM
77532008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7754
4d632321
SM
7755 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7756 the previous unoptimized table.
7757
f5385255
SM
7758 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7759 the distinction between non-nil and non-t value of `dedicated'.
7760
6c56a0f3
CY
77612008-10-25 Chong Yidong <cyd@stupidchicken.com>
7762
7763 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7764 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7765
fec89261
MR
77662008-10-25 Martin Rudalics <rudalics@gmx.at>
7767
7768 * window.c (Fget_buffer_window, Fdelete_windows_on)
7769 (Freplace_buffer_in_windows): Make buffer argument optional and
7770 rename to buffer_or_name.
7771
34fcddd0
CY
77722008-10-24 Chong Yidong <cyd@stupidchicken.com>
7773
f5385255
SM
7774 * xdisp.c (handle_single_display_spec, handle_display_prop):
7775 Undo 2005-05-16 change.
34fcddd0
CY
7776 (handle_stop): Pop iterator if it's loaded with an empty string.
7777 (get_overlay_strings_1): Don't save iterator if it's loaded with
7778 an empty string (bug#1201).
7779
064766f2
KH
77802008-10-24 Kenichi Handa <handa@m17n.org>
7781
7782 * ftfont.c (ftfont_otf_features): Fix previous change.
7783 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7784 calling ftfont_otf_features.
7785
f9bd0df9 77862008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7787
7788 * font.c (font_match_p): Fix for the case that a vector of
7789 characters is in script-representative-chars.
7790
1dae9197
MA
77912008-10-24 Michael Albinus <michael.albinus@gmx.de>
7792
7793 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7794 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7795 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7796 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7797 macro. (Bug#1186)
1dae9197 7798
f9bd0df9 77992008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7800
7801 * s/sol2-10.h: New file.
7802
878a4584
JB
78032008-10-23 Juanma Barranquero <lekktu@gmail.com>
7804
7805 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7806 poor beast has survived 9+ years and the jump from xterm.c!).
7807
cd265ca6
MR
78082008-10-23 Martin Rudalics <rudalics@gmx.at>
7809
7810 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7811 Reword doc-string.
f5385255 7812 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7813
472a4dc9
JB
78142008-10-23 Juanma Barranquero <lekktu@gmail.com>
7815
7816 * character.c (syms_of_character) <script-representative-chars>:
7817 <unicode-category-table>: Doc fixes.
7818
159bd5a2
NF
78192008-10-23 Noah Friedman <friedman@splode.com>
7820
7821 * coding.c (make_conversion_work_buffer): Check that
7822 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7823 Fget_buffer_create.
7824
49f9c344
KH
78252008-10-23 Kenichi Handa <handa@m17n.org>
7826
7827 * font.c (font_add_log): Check the values of extra properties.
7828
12bb3111
MR
78292008-10-22 Martin Rudalics <rudalics@gmx.at>
7830
7831 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7832 Reword doc-string.
7833 (Fset_window_parameter): Use NILP.
7834 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7835 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7836
bbeb4e99
JB
78372008-10-22 Juanma Barranquero <lekktu@gmail.com>
7838
7839 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7840
78412008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7842
7843 * nsfns.m (ns_appkit_version): New function.
7844 (x-server-version): Use it.
7845 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7846 (x-server-vendor): Don't check_ns().
7847
7848 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7849
a9b555d3
JB
78502008-10-22 Juanma Barranquero <lekktu@gmail.com>
7851
7852 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7853 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7854
4626499f
KH
78552008-10-22 Kenichi Handa <handa@m17n.org>
7856
e3681952
KH
7857 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7858 scripts.
7859
4626499f
KH
7860 * category.c (word_boundary_p): Check scripts instead of charset.
7861 Handle nil value in word-separating-categories and
7862 word-combining-categories.
7863 (syms_of_category): Fix docstrings of word-separating-categories
7864 and word-combining-categories.
7865
1560f91a
EZ
78662008-10-21 Eli Zaretskii <eliz@gnu.org>
7867
7868 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7869 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7870
f4668441
MR
78712008-10-21 Martin Rudalics <rudalics@gmx.at>
7872
7873 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7874 Rename arg "buffer" to "buffer_or_name".
7875 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7876 it optional.
7877 (no_switch_window): Remove since the return value is not used.
a9b555d3 7878 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7879 Consider window as dedicated when Fwindow_dedicated_p returns a
7880 non-nil value.
7881 * lisp.h: Remove prototype for no_switch_window.
7882
fd75ddb2
JD
78832008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7884
7885 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7886 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7887
07295713
KH
78882008-10-21 Kenichi Handa <handa@m17n.org>
7889
7890 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7891 check Vlatin_extra_code_table.
7892
712adc82
EZ
78932008-10-20 Eli Zaretskii <eliz@gnu.org>
7894
7895 * fileio.c (Fset_file_modes): Doc fix.
7896
f549eb0b
MA
78972008-10-19 Michael Albinus <michael.albinus@gmx.de>
7898
7899 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7900 in arrays.
7901
aac0c6e3
MR
79022008-10-19 Martin Rudalics <rudalics@gmx.at>
7903
7904 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7905 Mention kill-buffer in doc-string.
7906 (Fset_window_buffer): Reinsert tem check removed in last commit.
7907 (Fenlarge_window, Fshrink_window): Have argument names and
7908 doc-string follow Elisp manual more closely.
7909
79102008-10-18 Eli Zaretskii <eliz@gnu.org>
7911
7912 * fileio.c (Fset_file_modes): Doc fix.
7913
79142008-10-18 Martin Rudalics <rudalics@gmx.at>
7915
7916 * window.c (Fwindow_width, Fset_window_start)
7917 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7918 (Fdelete_windows_on, Freplace_buffer_in_windows):
7919 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7920 (Fwindow_dedicated_p): Make window argument optional.
7921 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7922 (Fset_window_buffer): Respect any non-nil dedicated value for
7923 window. Rename "buffer" argument to "buffer_or_name".
7924
79252008-10-18 Ulrich Mueller <ulm@gentoo.org>
7926
7927 * m/sh3.h: New file, machine description for SuperH.
7928
79292008-10-17 Martin Rudalics <rudalics@gmx.at>
7930
7931 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7932
79332008-10-17 Kenichi Handa <handa@m17n.org>
7934
7935 * ftfont.c (ftfont_otf_features): Fix indexing
7936 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7937
79382008-10-16 Magnus Henoch <mange@freemail.hu>
7939
7940 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7941 (Fdbus_call_method_asynchronously): Ditto.
7942 This change makes C-h f display the argument list.
7943
79442008-10-16 Chong Yidong <cyd@stupidchicken.com>
7945
7946 * fileio.c (Fexpand_file_name): Doc fix.
7947
7948 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7949 of :foreground and :background equivalent to unspecified (20.x
7950 compatibility).
7951
79522008-10-15 Eli Zaretskii <eliz@gnu.org>
7953
7954 * buffer.c (syms_of_buffer): Doc fix.
7955
79562008-10-14 Kenichi Handa <handa@m17n.org>
7957
7958 * font.c (font_clear_prop): When clearing font width, clear the
7959 average width field too.
7960
79612008-10-12 Andreas Schwab <schwab@suse.de>
7962
7963 * ftfont.c (ftfont_shape_by_flt): Make static.
7964 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7965
7966 * font.c: Don't include <m17n-flt.h>.
7967
79682008-10-10 Eli Zaretskii <eliz@gnu.org>
7969
7970 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7971
79722008-10-09 Eli Zaretskii <eliz@gnu.org>
7973
7974 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7975 away code.
7976
79772008-10-09 Chong Yidong <cyd@stupidchicken.com>
7978
7979 * dispnew.c (update_text_area): Avoid looping due to large glyph
7980 overhangs (bug#1070).
7981
79822008-10-09 Kenichi Handa <handa@m17n.org>
7983
7984 * fontset.c (face_for_char): If face->fontset is negative, just
7985 return ascii_face.
7986
f5385255
SM
7987 * font.c (font_delete_unmatched): Fix previous change.
7988 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7989
79902008-10-09 Martin Rudalics <rudalics@gmx.at>
7991
7992 * frame.c (Fraise_frame): On text-only terminals select frame in
7993 order to make it visible. (Bug#1061)
7994
79952008-10-08 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * fontset.c (fontset_find_font): Check frame validity.
7998
79992008-10-07 Chong Yidong <cyd@stupidchicken.com>
8000
a9b555d3 8001 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8002 (xg_display_close): Allow Emacs to close all displays (bug#985).
8003
80042008-10-06 Andreas Schwab <schwab@suse.de>
8005
f5385255 8006 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8007
80082008-10-06 Chong Yidong <cyd@stupidchicken.com>
8009
f5385255 8010 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8011
a9b555d3 8012 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8013
8014 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8015 during initialization.
8016
80172008-10-04 Eli Zaretskii <eliz@gnu.org>
8018
8019 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8020 whole thing on MSDOS frames as well as on a TTY.
8021
8022 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8023 well as for TTY.
8024 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8025 well as on a TTY.
8026
8027 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8028 as well as for TTY.
8029
8030 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8031
8032 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8033 MSDOS frames as well.
8034
80352008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8036
8037 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8038 correct arguments.
b71ac3dd 8039 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8040
80412008-10-03 Glenn Morris <rgm@gnu.org>
8042
8043 * emacs.c (USAGE1): Add --daemon.
8044
80452008-10-02 Eli Zaretskii <eliz@gnu.org>
8046
8047 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8048 100, so it's in percents as advertised.
8049
80502008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8051
8052 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8053 (ns_output.current_cursor, ns_output.desired_cursor)
8054 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8055 (FRAME_NEW_CURSOR_COLOR): Remove.
8056
8057 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8058 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8059 enumeration (HOLLOW_BOX_CURSOR, etc.).
8060
8061 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8062 (draw_window_cursor): Simplify code.
f5385255
SM
8063 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8064 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8065 updates manually.
a9b555d3
JB
8066 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8067 Use core Emacs cursor types.
aac0c6e3 8068
b8ff72fa 8069 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8070
80712008-10-02 Martin Rudalics <rudalics@gmx.at>
8072
8073 * process.c (Faccept_process_output): Fix doc-string.
8074
80752008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8076
8077 * gmalloc.c (__sbrk): Also define for uClibc.
8078
8079 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8080 for uClibc.
8081
80822008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8083
8084 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8085 styles.
8086 (nsfont_open): Reenable the cache.
8087
80882008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8089
8090 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8091 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8092
80932008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8094
8095 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8096 a suspended terminal.
8097
80982008-09-30 Michael Albinus <michael.albinus@gmx.de>
8099
8100 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8101
81022008-09-30 Eli Zaretskii <eliz@gnu.org>
8103
8104 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8105
81062008-09-30 Chong Yidong <cyd@stupidchicken.com>
8107
8108 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8109 in a continued line coincides with a line beginning.
8110
81112008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8112
8113 * nsfont.m (nsfont_trait_distance): Fix bug.
8114 (nsfont_list): Return a list rather than a vector (syncs with Handa
8115 changes of 2008-05-14).
8116 (nsfont_open): Improve logging.
8117
81182008-09-29 Andreas Schwab <schwab@suse.de>
8119
8120 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8121
81222008-09-28 Martin Rudalics <rudalics@gmx.at>
8123
8124 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8125 name as char-resolve-modifiers.
8126 Reported by: Markus Triska <markus.triska@gmx.at>
8127
81282008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8129
8130 * dispnew.c (init_display): Return earlier when running as a daemon.
8131
81322008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8133
8134 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8135
81362008-09-27 Eli Zaretskii <eliz@gnu.org>
8137
8138 * composite.c (Fcomposition_get_gstring)
8139 (Fcompose_region_internal, Fcompose_string_internal)
8140 (Ffind_composition_internal): Doc fix.
8141 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8142 (syms_of_composite) <auto-composition-function>: Doc fix.
8143 (syms_of_composite) <composition-function-table>: Doc fix.
8144
81452008-09-25 Chong Yidong <cyd@stupidchicken.com>
8146
8147 * search.c (wordify): New argument for lax word-ends.
8148 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8149
81502008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8151
8152 * lisp.h (is_daemon): Declare.
8153 * dispnew.c (init_display): Do not try to initialize the terminal
8154 when running as a daemon.
8155
81562008-09-22 Chong Yidong <cyd@stupidchicken.com>
8157
8158 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8159 x_display_pixel_height.
8160
81612008-09-22 Martin Rudalics <rudalics@gmx.at>
8162
8163 * undo.c (record_point): Don't call Fundo_boundary for first
8164 change. (Bug#731)
8165
81662008-09-22 Juanma Barranquero <lekktu@gmail.com>
8167
8168 * emacs.c (Fdaemonp): Doc fix.
8169
81702008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8171
8172 * emacs.c (main): Place #ifdef in the proper place.
8173
81742008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8175
8176 * emacs.c (standard_args): Add --daemon.
8177 (main): Disconnect from the terminal when --daemon is passed.
8178 (is_daemon): New variable.
8179 (Fdaemonp): New function.
8180 (syms_of_emacs): Defsubr it.
8181
81822008-09-20 Chong Yidong <cyd@stupidchicken.com>
8183
8184 * xdisp.c (get_next_display_element): Handle string display
8185 correctly when checking for the end of a box run.
8186
81872008-09-20 Glenn Morris <rgm@gnu.org>
8188
8189 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8190 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8191 (Frename_file): Avoid copying to trash if a rename involves
8192 a delete. (Bug#964).
8193
81942008-09-20 Eli Zaretskii <eliz@gnu.org>
8195
8196 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8197 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8198 frames as well as termcap frames.
8199 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8200 get_named_tty.
8201
82022008-09-19 Eli Zaretskii <eliz@gnu.org>
8203
8204 * process.c (procfs_system_process_attributes): Fix cmdline in
8205 case /proc/PID/cmdline is empty.
8206
8207 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8208 x_display_pixel_height.
8209
82102008-09-19 Juanma Barranquero <lekktu@gmail.com>
8211
8212 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8213
8214 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8215 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8216
82172008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8218
8219 * dispextern.h (struct it): Move line_wrap away from the middle of
8220 bitfields. Move voffset in struct iterator_stack_entry after the
8221 bitfields. Move tab_width near after another short.
8222
82232008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8224
8225 * frame.h (struct frame): Move alpha from the middle of bitfields.
8226
8227 * window.h (struct window): Move frozen_window_start_p after the
8228 rest of the bitfields to reduce padding.
8229
82302008-09-18 Chong Yidong <cyd@stupidchicken.com>
8231
8232 * xterm.h (x_display_info): Remove `height' and `width' members.
8233
8234 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8235
8236 * w32term.h (w32_display_info): Remove `height', `width',
8237 `height_in', and `width_in' members.
8238
b8ff72fa
SM
8239 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8240 New functions.
aac0c6e3
MR
8241 (x_calc_absolute_position): Use them.
8242 (x_term_init): Omit removed `height' and `width' members.
8243
b8ff72fa
SM
8244 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8245 New functions.
aac0c6e3
MR
8246 (w32_read_socket, x_calc_absolute_position): Use them.
8247 (w32_initialize_display_info, w32_term_init): Omit removed members
8248 of w32_display_info.
8249
b8ff72fa
SM
8250 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8251 New functions.
8252 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8253
b8ff72fa
SM
8254 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8255 New functions.
aac0c6e3
MR
8256 (x_calc_absolute_position): Use them.
8257 (x_term_init): Omit removed `height' and `width' members.
8258
8259 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8260 (compute_tip_xy):
8261 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8262 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8263 x_display_pixel_width.
8264
82652008-09-18 Kenichi Handa <handa@m17n.org>
8266
8267 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8268 (composition_compute_stop_pos): Fix handling of static composition.
8269 (Fcomposition_get_gstring): Check FROM and TO at first.
8270
82712008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8272
46e722a9 8273 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8274 mixup (YAILOM).
8275
82762008-09-17 Chong Yidong <cyd@stupidchicken.com>
8277
8278 * indent.c (Fvertical_motion): Use position reported by iterator
8279 instead of PT for determining screen motion (bug#943).
8280
82812008-09-17 Romain Francoise <romain@orebokech.com>
8282
8283 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8284
82852008-09-17 Kenichi Handa <handa@m17n.org>
8286
8287 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8288
8289 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8290 if necessary.
8291
82922008-09-16 Kenichi Handa <handa@m17n.org>
8293
8294 * coding.c (make_conversion_work_buffer): Avoid calling
8295 Fget_buffer_create if it is not necessary.
8296
82972008-09-15 Martin Rudalics <rudalics@gmx.at>
8298
8299 * window.c (Fselect_window): Don't update window_select_count and
8300 use_time when norecord is not nil.
8301
83022008-09-14 Kenichi Handa <handa@m17n.org>
8303
8304 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8305 specpdl_ptr.
8306
83072008-09-12 Kenichi Handa <handa@m17n.org>
8308
8309 * indent.c (scan_for_column): Don't handle automatic composition
8310 if the current buffer is not associated with a window.
8311
8312 * composite.c (composition_reseat_it): If the current buffer is
8313 not associated with a window, ignore the automatic composition.
8314 (find_automatic_composition): Likewise.
8315
83162008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8317
8318 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8319 (Fgpm_mouse_stop): Use it.
8320 * termhooks.h (close_gpm): Declare.
8321 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8322 connection if Gpm_GetEvent fails.
8323
8324 * window.c (set_window_buffer): Always preserve current-buffer.
8325
83262008-09-12 Glenn Morris <rgm@gnu.org>
8327
8328 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8329
83302008-09-11 Glenn Morris <rgm@gnu.org>
8331
8332 * charset.c (charset-map-path): Doc fix.
8333
83342008-09-10 Kenichi Handa <handa@m17n.org>
8335
8336 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8337
8338 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8339 compose a grapheme cluster with the preceding base glyph.
8340
8341 * composite.c (composition_compute_stop_pos): Fix previous change.
8342 Reset cmp_it->id to -1 at first.
8343
83442008-09-10 Glenn Morris <rgm@gnu.org>
8345
8346 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8347
83482008-09-09 Chong Yidong <cyd@stupidchicken.com>
8349
8350 * keyboard.c (read_key_sequence): Reapply translation maps when
8351 switching keyboards.
8352
83532008-09-09 Kenichi Handa <handa@m17n.org>
8354
8355 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8356 characters.
8357
8358 * composite.c (FORWARD_CHAR): Fix calculation
8359 of (POSITION).pos_byte.
8360 (composition_compute_stop_pos): Limit the search of composition to
8361 at most 500 characters ahead. If we reach the limit or find a
8362 newline, set cmp_it->ch to -2 and return 0.
8363 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8364
83652008-09-08 Kenichi Handa <handa@m17n.org>
8366
8367 * indent.c (Fvertical_motion): Be sure to set
8368 it_overshoot_expected if it.cmp_it.id is non-negative.
8369
83702008-09-07 Andreas Schwab <schwab@suse.de>
8371
8372 * callproc.c (Fcall_process): Don't hold references to string data
8373 across garbage collection. Move initialisation of new_argv down
8374 to avoid compiler bug.
8375
83762008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8377
8378 * process.c (Fsystem_process_attributes): Doc fix.
8379
83802008-09-07 Chong Yidong <cyd@stupidchicken.com>
8381
8382 * callproc.c (Fcall_process): Canonicalize current directory name.
8383
8384 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8385 iterator advances to the next line if the current line ends in a
8386 continued tab.
8387
83882008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8389
8390 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8391 member to point to cmp_from.
8392
8393 * xdisp.c: Doc fix for references to gidx data member.
8394
83952008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8396
8397 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8398
83992008-09-07 Kenichi Handa <handa@m17n.org>
8400
8401 * composite.c (FORWARD_CHAR): Check STOP after
8402 incrementing (POSITION).pos.
8403
84042008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8405
8406 * process.c (Fsystem_process_attributes): Doc fix.
8407
84082008-09-06 Chong Yidong <cyd@stupidchicken.com>
8409
8410 * keyboard.c (Ftop_level): Doc fix.
8411
84122008-09-06 Eli Zaretskii <eliz@gnu.org>
8413
8414 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8415 minibuffer, don't let lower part of menu invade the echo area.
8416
8417 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8418 "char *q" to access menu text and advance through it. Revert the
8419 change that displayed ">" instead of ASCII character 0x10.
8420
84212008-09-05 Eli Zaretskii <eliz@gnu.org>
8422
8423 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8424 toggle boxes and radio buttons on MS-DOS as well.
8425
84262008-09-05 Kenichi Handa <handa@m17n.org>
8427
8428 * composite.c (autocmp_chars): Check lookback count.
8429 (composition_compute_stop_pos): Set cmp_it->lookback.
8430 (composition_reseat_it): Check lookback count.
8431 (struct position_record): New struct.
8432 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8433 (find_automatic_composition): New function.
8434 (composition_adjust_point): Use find_automatic_composition.
8435
8436 * dispextern.h (struct composition_it): New member lookback.
8437
84382008-09-02 Chong Yidong <cyd@stupidchicken.com>
8439
8440 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8441 if moving by a single line.
8442
84432008-09-02 Andreas Schwab <schwab@suse.de>
8444
8445 * xterm.c (x_delete_display): Fix merge error.
8446
8447 * fileio.c (Fexpand_file_name): Remove unused variables.
8448
84492008-09-02 Eli Zaretskii <eliz@gnu.org>
8450
8451 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8452 storage on all platforms, not just on DOS_NT.
8453
84542008-09-02 Jason Rumney <jasonr@gnu.org>
8455
b8ff72fa
SM
8456 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8457 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8458
84592008-09-01 Chong Yidong <cyd@stupidchicken.com>
8460
8461 * xfaces.c (Finternal_set_alternative_font_family_alist)
8462 (Finternal_set_alternative_font_registry_alist): Properly copy
8463 entire alist structure.
8464
84652008-09-01 Kenichi Handa <handa@m17n.org>
8466
d66c0241 8467 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8468 representative chars of the script is a vector.
d66c0241
JB
8469 (ftfont_list): Handle the case where the representative chars of
8470 the script is a vector.
aac0c6e3
MR
8471
8472 * character.c (syms_of_character): Docstring of
8473 script-representative-chars fixed.
8474
84752008-08-31 Eli Zaretskii <eliz@gnu.org>
8476
8477 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8478 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8479 the menu. Allocate larger buffer for `text', to account for
8480 possible ^C characters.
8481
84822008-08-31 Martin Rudalics <rudalics@gmx.at>
8483
8484 * xdisp.c (prepare_menu_bars): Don't call
8485 Vwindow_size_change_functions with arg Qt.
8486
84872008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 * font.h (font_range):
8490 * fileio.c (report_file_error):
46e722a9
SM
8491 * composite.c (composition_update_it): Yet another int/Lisp_Object
8492 mixup (YAILOM).
aac0c6e3
MR
8493
84942008-08-30 Glenn Morris <rgm@gnu.org>
8495
8496 * data.c (Fmake_variable_frame_local): Doc fix.
8497
8498 * frame.c (Fmodify_frame_parameters): Doc fix.
8499
85002008-08-30 Eli Zaretskii <eliz@gnu.org>
8501
8502 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8503 needed by GetTokenInformation.
8504 (w32_system_process_attributes): Check return values of all system
8505 APIs.
8506
8507 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8508 only when the state changes.
8509 (IT_update_begin, IT_update_end): Add termscript trace.
8510
8511 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8512 clipboard is unavailable. Set dst to NULL if it doesn't point to
8513 malloc'ed data.
8514 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8515 passing random values to xfree.
8516
8517 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8518 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8519
85202008-08-29 Jason Rumney <jasonr@gnu.org>
8521
8522 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8523
85242008-08-29 Eli Zaretskii <eliz@gnu.org>
8525
8526 * composite.c (fill_gstring_body): Avoid compiler warnings.
8527
8528 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8529 LGLYPH_SET_CODE to avoid compiler warnings.
8530
2ae37cf0 8531 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8532
8533 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8534
8535 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8536 LGLYPH_SET_CODE.
8537
85382008-08-29 Kenichi Handa <handa@m17n.org>
8539
8540 * fileio.c (report_file_error): Don't downcase the first character
8541 of errstring if it is still unibyte.
8542
85432008-08-29 Kenichi Handa <handa@m17n.org>
8544
8545 These changes are to re-implement the automatic composition so
8546 that it doesn't use text properties.
8547
8548 * Makefile.in (ftfont.o): Depend on composite.h.
8549 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8550
8551 * character.h (Vunicode_category_table): Extern it.
8552
8553 * character.c (Vunicode_category_table): New variable.
8554 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8555
8556 * chartab.c (optimize_sub_char_table): Perform more greedy
8557 optimization.
8558
b8ff72fa
SM
8559 * composite.h (enum composition_method):
8560 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8561 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8562 (Vcomposition_function_table): Extern it.
8563 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8564 (composition_gstring_put_cache, composition_gstring_from_id)
8565 (composition_gstring_p, composition_gstring_width)
8566 (composition_compute_stop_pos, composition_reseat_it)
8567 (composition_update_it, composition_adjust_point): Extern them.
8568 (Fcomposition_get_gstring): EXFUN it.
8569
d66c0241 8570 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8571 (Vcomposition_function_table)
8572 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8573 (gstring_hash_table, gstring_work, gstring_work_headers):
8574 New variables.
aac0c6e3
MR
8575 (gstring_lookup_cache, composition_gstring_put_cache)
8576 (composition_gstring_from_id, composition_gstring_p)
8577 (composition_gstring_width, fill_gstring_header)
8578 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8579 (composition_reseat_it, composition_update_it)
b8ff72fa 8580 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8581 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8582 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8583 Defsubr compostion_get_gstring.
8584
8585 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8586 cmp_id.
8587 (struct glyph_string): Delete the member gidx. New members
8588 cmp_id, cmp_from, and cmp_to.
8589 (enum it_method): Delete GET_FROM_COMPOSITION.
8590 (struct composition_it): New struct.
8591 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8592 Delete c, len, cmp_id, cmp_len in u.comp.
8593
8594 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8595 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8596 (enum lglyph_indices): Likewise.
b8ff72fa 8597 (font_range): Adjust extern.
aac0c6e3
MR
8598 (font_fill_lglyph_metrics): Extern it.
8599
8600 * font.c (QCf): New variable.
8601 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8602 (font_prepare_composition): Delete this function.
8603 (font_range): Type and arguments changed.
8604 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8605 (font_fill_lglyph_metrics): New function.
b8ff72fa 8606 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8607 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8608 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8609 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8610
8611 * fontset.h (font_for_char): Extern it.
8612
8613 * fontset.c (font_for_char): New function.
8614
8615 * ftfont.c: Include composite.h.
8616 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8617 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8618
8619 * indent.c: Include composite.h and dispextern.h.
8620 (check_composition): Delete this function.
8621 (scan_for_column): Handle composition by
8622 composition_compute_stop_pos, composition_reseat_it, and
8623 composition_update_it.
8624 (compute_motion): Likewise.
8625 (Fvertical_motion): Fix checking of composition.
8626
8627 * keyboard.c (adjust_point_for_property): Check composition by
8628 composition_adjust_point.
8629
b8ff72fa 8630 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8631 struct glyph_string.
8632
b8ff72fa
SM
8633 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8634 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8635 struct glyph.
8636 (produce_composite_glyph): Likewise.
8637
b8ff72fa
SM
8638 * w32term.c (x_draw_composite_glyph_string_foreground):
8639 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8640 (x_draw_glyph_string): Likewise.
8641
8642 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8643 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8644
8645 * xdisp.c: Include font.h.
8646 (it_props): Delete the entry for Qauto_composed.
8647 (init_iterator): Initialize it->cmp_it.id to -1.
8648 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8649 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8650 (handle_auto_composed_prop): Delete it.
8651 (handle_composition_prop): Handle only static composition.
8652 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8653 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8654 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8655 (pop_it): Likewise.
8656 (get_next_element): Delete next_element_from_composition.
8657 (CHAR_COMPOSED_P): New macro.
8658 (get_next_display_element): For automatic composition, get a face
8659 from the font in the glyph-string.
8660 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8661 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8662 (next_element_from_string): Check if the character at the current
8663 position is composed by CHAR_COMPOSED_P.
8664 (next_element_from_buffer): Likewise.
d66c0241
JB
8665 (next_element_from_composition): Adjust for the change of struct it.
8666 Update it->cmp_it.
b8ff72fa
SM
8667 (dump_glyph): Adjust for the change of struct glyph.
8668 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8669 it and struct glyph. Don't handle automatic composition here.
8670 (fill_gstring_glyph_string): New function.
8671 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8672 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8673 (BUILD_GSTRING_GLYPH_STRING): New macro.
8674 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8675 automatic composition.
b8ff72fa 8676 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8677 struct glyph.
b8ff72fa 8678 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8679
b8ff72fa 8680 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8681 the change of struct glyph_string.
8682 (x_draw_glyph_string): Likewise.
8683
86842008-08-29 Glenn Morris <rgm@gnu.org>
8685
8686 * buffer.c (word-wrap): Doc fix.
8687 * xdisp.c (truncate-partial-width-windows): Doc fix.
8688 Increase default to 50.
8689
86902008-08-29 Chong Yidong <cyd@stupidchicken.com>
8691
8692 * xdisp.c (update_tool_bar_unwind): New function.
8693 (update_tool_bar): Temporarily set selected frame before building
8694 tool-bar items.
8695
86962008-08-28 Michael Albinus <michael.albinus@gmx.de>
8697
8698 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8699 snprintf, respectively.
8700 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8701
87022008-08-28 Chong Yidong <cyd@stupidchicken.com>
8703
8704 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8705 LDFLAGS to GNUstep CC invocation.
8706
87072008-08-27 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * indent.c (Fvertical_motion): Revert last change. Handle the
8710 general case where we are moving forward, and PT spans multiple
8711 screen lines.
8712
8713 * eval.c (find_handler_clause): Temporarily increase
8714 max-lisp-eval-depth while printing the backtrace buffer, to
8715 guarantee that help-mode code can run.
8716
87172008-08-27 Eli Zaretskii <eliz@gnu.org>
8718
8719 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8720 colors under -rv.
8721 (IT_set_frame_parameters): Don't swap foreground and background
8722 colors if `(reverse . t)' is present in the frame properties.
8723 (internal_terminal_init): Call init_frame_faces only for the
8724 initial frame.
8725
87262008-08-27 Andreas Schwab <schwab@suse.de>
8727
8728 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8729
87302008-08-27 Andreas Schwab <schwab@suse.de>
8731
8732 * search.c (search_buffer): Set char_base to zero only at the end.
8733
87342008-08-27 Kenichi Handa <handa@m17n.org>
8735
b8ff72fa 8736 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8737
87382008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8739
8740 * xterm.c (x_term_init): Temporarily hide the partially
8741 initialized terminal while calling vendor-specific-keysyms.
8742
87432008-08-26 Eli Zaretskii <eliz@gnu.org>
8744
8745 * msdos.c (internal_terminal_init): Most initializations done only
8746 once, especially initial_screen_colors[] and termscript open.
8747
87482008-08-26 Chong Yidong <cyd@stupidchicken.com>
8749
8750 * eval.c (Fcondition_case): Doc fix.
8751
8752 * widgetprv.h (EmacsFramePart): Change font member to the new font
8753 struct.
8754
8755 * widget.c: Include character.h and font.h for XSETFONT.
8756 (setup_frame_gcs): Compute X font id from font struct, just once.
8757
87582008-08-26 Eli Zaretskii <eliz@gnu.org>
8759
8760 * term.c (get_named_tty): Fix last change.
8761
87622008-08-26 Chong Yidong <cyd@stupidchicken.com>
8763
8764 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8765 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8766
87672008-08-25 Eli Zaretskii <eliz@gnu.org>
8768
8769 * frame.c (do_switch_frame): Mark previously displayed frame as
8770 obscured for FRAME_MSDOS_P frames as well.
8771
87722008-08-24 Eli Zaretskii <eliz@gnu.org>
8773
8774 * frame.c (make_terminal_frame): Initialize f->terminal,
8775 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8776 Set the top frame to newly created frame.
8777 (Fmake_terminal_frame): Reuse the_only_display_info.
8778
8779 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8780 estimating available memory.
8781
b97439ce 87822008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8783
8784 * nsterm.m (ns_draw_window_cursor): Don't call
8785 NSDisableScreenUpdates and NSEnableScreenUpdates on
8786 non-NS_IMPL_COCOA systems.
8787
87882008-08-23 Andreas Schwab <schwab@suse.de>
8789
8790 * process.c (procfs_system_process_attributes): Fix use of
8791 uninitialized variables.
8792
87932008-08-23 Eli Zaretskii <eliz@gnu.org>
8794
8795 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8796
8797 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8798 calling tty-set-up-initial-frame-faces.
8799
b8ff72fa
SM
8800 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8801 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8802
8803 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8804 addition to output_termcap.
8805
8806 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8807
8808 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8809 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8810 highlight.
8811
8812 * process.c [!subprocesses]: Define QCname.
8813 (syms_of_process): Intern and staticpro it.
8814
8815 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8816 Adjust for changes in encoding/decoding routines.
8817 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8818 encode_coding and decode_coding.
8819
b8ff72fa 8820 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8821
8822 * dosfns.c: Include frame.h before termhooks.h.
8823 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8824 variable termscript.
8825
8826 * s/msdos.h (USER_FULL_NAME): Define.
8827 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8828
8829 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8830 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8831 pw->pw_gecos.
8832
8833 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8834 SELECTED_FRAME as additional (1st) argument.
8835 (tty_read_avail_input): Handle output_msdos_raw in
8836 addition to output_termcap.
8837
8838 * msdos.c: Include frame.h before termhooks.h.
8839 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8840 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8841 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8842 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8843 (IT_set_terminal_modes, IT_reset_terminal_modes)
8844 (IT_set_frame_parameters): Use tty->termscript instead of a global
8845 variable termscript.
8846 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8847 global variable terminal_coding. Don't refer to
8848 Vnonascii_translation_table.
8849 (internal_terminal_init): Set Vwindow_system in current_kboard.
8850 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8851 Announce date and time of session start, if termscript is open.
8852 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8853 term.c:init_tty). Open termscript only of not already open.
8854 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8855 here instead of dos_ttraw. Don't initialize display if this is an
8856 initial tty. Don't set FRAME_FONT.
8857 (Vwindow_system_version): Bump to 23.
8858 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8859 is available, set up mouse_position_hook.
8860 (dos_ttraw, IT_set_terminal_modes): If called with initial
8861 terminal, do nothing.
8862 (IT_set_frame_parameters): Handle the Qtty_type frame
8863 parameter by calling internal_terminal_init.
8864 (dos_set_window_size, show_mouse_face)
8865 (clear_mouse_face, IT_note_mode_line_highlight)
8866 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8867 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8868 (initialize_msdos_display): New function.
8869 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8870 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8871 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8872 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8873 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8874 (request_sigio, unrequest_sigio): Don't define, now defined on
8875 sysdep.c.
8876 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8877
8878 * term.c [MSDOS]: Include msdos.h.
8879 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8880 conditional to DOS_NT. Allow only one call to this function in a
8881 session. Don't allocate a new struct tty_display_info; instead,
8882 reuse the_only_display_info. Call get_tty_size to get screen
8883 dimensions. Call init_baud_rate to set bad_rate.
8884 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8885 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8886 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8887 (get_tty_terminal, get_named_tty, Ftty_type)
8888 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8889 output_termcap.
b8ff72fa
SM
8890 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8891 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8892 only when subprocesses are supported.
aac0c6e3
MR
8893
8894 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8895 f->output_data.x.
8896 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8897 terminal devices.
8898
5582fbc7 8899 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8900 x_output.
8901 (FRAME_FONT): Use output_data.tty.
8902 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8903 (struct x_display_info): Rename from display_info. Update all users in
8904 msdos.c.
aac0c6e3 8905 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8906 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8907 (dos_ttraw): Update prototype.
8908
8909 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8910 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8911
89122008-08-23 Jason Rumney <jasonr@gnu.org>
8913
8914 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8915 (fn_TIFFSetDirectory): New library function used.
8916 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8917 (tiff_load): Use :index to select among multiple images. Set count
8918 property when multiple images exist.
8919 (gif_format): Use :index, not :image.
8920
89212008-08-23 Chong Yidong <cyd@stupidchicken.com>
8922
8923 * xdisp.c (try_scrolling): Check INT_MAX instead of
8924 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8925 to obtain INT_MAX.
8926
89272008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8928
8929 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8930
89312008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8932
8933 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8934 GNUstep library location.
8935
89362008-08-21 Chong Yidong <cyd@stupidchicken.com>
8937
8938 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8939 before using it.
8940
8941 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8942
89432008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8944
8945 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8946 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8947 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8948 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8949 (EmacsApp-cursor_blink_handler): Remove declaration.
8950 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8951 match 01 Feb 2008 changes in xterm.c.
8952 (ns_read_socket): Add cast to avoid warning.
8953 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8954 GNUstep.
8955
89562008-08-20 Chong Yidong <cyd@stupidchicken.com>
8957
8958 * xselect.c (x_get_foreign_selection): Return nil if desired
8959 selection could not be obtained, instead of signalling an error.
8960
89612008-08-20 David Reitter <david.reitter@gmail.com>
8962
8963 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8964 * nsterm.m: Remove ns-specific code for cursor blinking.
8965 (ns_draw_window_cursor): Clear cursor properly rather than
8966 redrawing the area. Respect width of bar cursors.
8967 These changes enable the use of generic blink-cursor-mode and
8968 generic cursor types in NS and support smooth cursor movements (do
8969 not blink off after command).
8970 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8971 Nextstep, too.
8972
89732008-08-19 Kenichi Handa <handa@m17n.org>
8974
8975 * font.c (Vfont_log_deferred): New variable.
8976 (font_add_log): Check Vfont_log_deferred.
8977 (font_deferred_log): New function.
8978
8979 * font.h (font_deferred_log): Extern it.
8980
8981 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8982 for sorting.
8983 (face_for_char): Use deferred log.
8984
89852008-08-18 Kenichi Handa <handa@m17n.org>
8986
8987 * fontset.c (face_for_char): Add font log.
8988
8989 * font.c (font_add_log): Add the font properties :script, :lang,
8990 and :otf in the log.
8991
89922008-08-17 Chong Yidong <cyd@stupidchicken.com>
8993
8994 * xdisp.c: Remove dead code.
8995 (handle_invisible_prop, next_overlay_string): Defer call to
8996 setup_for_ellipsis.
8997 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8998
89992008-08-15 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * xfaces.c (lookup_derived_face): Properly handle possible zero
9002 return value of get_lface_attributes.
9003 (merge_faces): Don't tell lookup_derived_face to signal an error
9004 if face is not found.
9005
9006 * dired.c (Fdirectory_files): Doc fix.
9007
9008 * process.c (make_process): Initialize kill_without_query struct
9009 member.
9010
90112008-08-15 Eli Zaretskii <eliz@gnu.org>
9012
9013 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9014 Alternative calculation of totphys for Visual Studio 6.
9015
9016 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9017
9018 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9019 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9020 All users changed.
9021 (stat): Only root directory passed to GetDriveType. Allow RAM
9022 disk as well as local fixed disk when w32-get-true-file-attributes
9023 is set to `local'.
9024 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9025 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9026 (w32_cached_id, w32_add_to_cache): New functions.
9027 (get_name_and_id): Look account names in the cache before calling
9028 lookup_account_sid.
9029 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9030 New initialization flags.
9031 (globals_of_w32): Initialize them to zero.
9032 (w32_system_process_attributes): Use w32_cached_id and
9033 w32_add_to_cache.
9034
90352008-08-14 Lawrence Mitchell <wence@gmx.li>
9036
9037 * lread.c (Fread_char, Fread_char_exclusive): If no character
9038 event is read before timeout is reached, return nil, rather than
9039 converting to a number.
9040
90412008-08-14 Chong Yidong <cyd@stupidchicken.com>
9042
9043 * fns.c (use_dialog_box): Doc fix.
9044
9045 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9046 on OS X.
9047
90482008-08-13 Chong Yidong <cyd@stupidchicken.com>
9049
9050 * frame.c (Qns_parse_geometry): New var.
9051 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9052
90532008-08-11 Chong Yidong <cyd@stupidchicken.com>
9054
9055 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9056 space character in calculating tabs.
9057
90582008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9059
9060 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9061
90622008-08-10 Glenn Morris <rgm@gnu.org>
9063
9064 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9065 silence gcc "limited range of data type" warnings in some
9066 make_fixnum_or_float calls.
9067
90682008-08-09 Eli Zaretskii <eliz@gnu.org>
9069
9070 * w32.c (w32_system_process_attributes): If the process does not
9071 exist, return nil.
9072
9073 * w32.c: Include thelp32.h, psapi.h and coding.h.
9074 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9075 declarations.
9076 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9077 (Process32Next_Proc): New typedefs.
9078 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9079 (g_b_init_process32_next, g_b_init_open_thread_token)
9080 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9081 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9082 (g_b_init_get_process_working_set_size)
9083 (g_b_init_global_memory_status_ex): New static variables.
9084 (globals_of_w32): Initialize them.
9085 (create_toolhelp32_snapshot, process32_first, process32_next)
9086 (open_thread_token, impersonate_self, revert_to_self)
9087 (get_process_memory_info, get_process_working_set_size)
9088 (global_memory_status, global_memory_status_ex): New wrapper
9089 functions.
9090 (w32_list_system_processes, w32_system_process_attributes)
9091 (enable_privilege, restore_privilege, ltime, process_times):
9092 New functions.
9093 (convert_time_raw): New function.
9094 (convert_time): Remove conversion of FILETIME into time in 100
9095 nsec units, call convert_time_raw instead.
9096
9097 * process.h (w32_list_system_processes, w32_system_process_attributes):
9098 Add prototypes.
9099 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9100 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9101 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9102 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9103
9104 * process.c (Fsystem_process_attributes): Doc fix.
9105
91062008-08-08 Chong Yidong <cyd@stupidchicken.com>
9107
9108 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9109 a continued multi-char glyph; if so, advance to the actual glyph.
9110
91112008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9112
9113 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9114
9115 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9116 (.m.o): Use it.
9117 * config.in: Regenerate.
9118
91192008-08-07 Chong Yidong <cyd@stupidchicken.com>
9120
9121 * xdisp.c (redisplay_window): Revert last change.
9122 (try_window): Check bottom scroll margin too.
9123
91242008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9125
9126 * config.in: Regenerate.
9127
9128 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9129 -list-load-path-shadows'.
9130 (nsgui.h): Reduce number of things depending on it.
9131
91322008-08-06 Chong Yidong <cyd@stupidchicken.com>
9133
9134 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9135 instead of window-end which does the wrong thing at eob.
9136 (try_cursor_movement): Minor optimization.
9137 (redisplay_window): If scroll margin is defined, don't assume
9138 window doesn't need scrolling.
9139
91402008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9141
9142 * config.in: Regenerate.
9143
9144 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9145 (mostlyclean): Don't delete *.d under NS.
9146
9147 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9148
91492008-08-06 Kenichi Handa <handa@m17n.org>
9150
9151 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9152
91532008-08-06 Andreas Schwab <schwab@suse.de>
9154
9155 * config.in: Regenerate.
9156
91572008-08-05 Chong Yidong <cyd@stupidchicken.com>
9158
9159 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9160 forcing a window start.
9161
9162 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9163 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9164
91652008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9166
9167 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9168 argument.
9169
91702008-08-05 Juanma Barranquero <lekktu@gmail.com>
9171
9172 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9173 <scroll-down-aggressively, before-change-functions>:
9174 <after-change-functions>: Reflow docstrings.
9175
91762008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9177 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9178
9179 Dock menu customization, based on a patch by Ken Raeburn, plus some
9180 other fixes.
9181 * nsmenu.m (dockMenu): New variable.
9182 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9183
9184 * nsterm.h (dockMenu): Declare.
9185
9186 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9187 (ns_term_init): Initialize dockMenu.
9188 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9189 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9190 left.
9191
9192 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9193
91942008-08-04 Chong Yidong <cyd@stupidchicken.com>
9195
9196 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9197
9198 * config.in: Regenerate.
9199
92002008-08-04 Seiji Zenitani <zenitani@mac.com>
9201
9202 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9203
92042008-08-04 Chong Yidong <cyd@stupidchicken.com>
9205
9206 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9207
92082008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9209
9210 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9211
9212 * keyboard.h: Comment an #endif.
9213
9214 * lisp.h (have_menus_p): Adjust comment.
9215
9216 * menu.c (find_and_return_menu_selection): Fix comparison with
9217 client_data.
9218
9219 * nsmenu.m (popup_activated_flag): New variable.
9220 (popup_activated): New function.
9221 (menu-or-popup-active-p): New exported lisp definition.
9222 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9223 when popup done.
9224 (ns_popup_dialog): Set popup_activated_flag.
9225
9226 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9227 version for GNUstep (handled by conditional typedef in nsterm.m).
9228 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9229 in rgb.txt).
9230
9231 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9232
9233 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9234
9235 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9236
9237 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9238 shortcircuit if popup_activated like GTK and X toolkit.
9239
9240 * m/inter386.h: Change DARWIN to DARWIN_OS.
9241
9242 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9243 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9244 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9245 comment on NO_SOCK_SIGIO.
9246
92472008-08-03 Chong Yidong <cyd@stupidchicken.com>
9248
9249 * nsterm.m (windowDidResize): Remove stopModal call.
9250
92512008-08-03 Andreas Schwab <schwab@suse.de>
9252
9253 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9254 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9255
92562008-08-02 Chong Yidong <cyd@stupidchicken.com>
9257
9258 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9259 Don't use uninitialized pointer variable when using getrlimit.
9260
92612008-08-02 Jason Rumney <jasonr@gnu.org>
9262
9263 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9264
92652008-08-02 Eli Zaretskii <eliz@gnu.org>
9266
9267 * alloc.c (NSTATICS): Bump to 0x640.
9268
9269 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9270
9271 * lisp.h: Add prototype for directory_files_internal.
9272
9273 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9274 New functions.
9275 (syms_of_process): Defsubr them. Add initializations for various
9276 Q* symbols used in procfs_system_process_attributes.
9277 (procfs_list_system_processes, procfs_system_process_attributes)
9278 [HAVE_PROCFS]: New functions.
9279 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9280 (procfs_get_total_memory): New functions.
9281
92822008-08-01 Juanma Barranquero <lekktu@gmail.com>
9283
9284 * xfaces.c (Fx_load_color_file): Fix previous change;
9285 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9286
92872008-08-01 Michael Albinus <michael.albinus@gmx.de>
9288
9289 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9290
92912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9292
9293 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9294
92952008-08-01 Chong Yidong <cyd@stupidchicken.com>
9296
9297 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9298
9299 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9300 define NSApplicationDelegateReplySuccess.
9301 (EmacsView -converstationIdentifier): Use long instead of
9302 NSInteger for GNUstep, since it doesn't have NSInteger.
9303
9304 * xmenu.c: Revert last change.
9305
9306 * keyboard.h: Fix last change.
9307
93082008-08-01 Juanma Barranquero <lekktu@gmail.com>
9309
9310 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9311 on Windows.
9312
93132008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9314
9315 Warning clearing and clean-up in NS port.
9316 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9317 Add prototypes.
9318 * nsgui.h (FACE_DEFAULT): Remove, unused.
9319 (XGCValues): Change colors to unsigned long.
9320 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9321 nsterm.m.
9322 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9323 (ns_list_fonts): Remove, unused.
9324 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9325 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9326 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9327 (nsfont_draw): Compare face colors to 0, not nil.
9328 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9329 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9330 (-addSubmenuWithTitle:): Use NSMenuItem class.
9331 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9332 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9333 (ns_clip_to_row): Make gc arg a BOOL.
9334 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9335 ns_clip_to_row() call.
9336 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9337 used). Cast FRAME_FONT assignments.
9338 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9339 (ns_string_to_lispmod): Change arg to const char.
9340 (ns_term_init): Use NSMenuItem class.
9341 (EmacsApp -openFile:): Move to different section of file.
9342 (EmacsApp -application:openFiles:): Don't return a value, call
9343 -replyToOpenOrPrint:.
9344 (EmacsView -keyDown:): Fix up cast.
9345 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9346 (EmacsView -menuDown:): Cast tag in call to
9347 find_and_call_menu_selection().
9348 (ns_list_fonts): Remove, unused.
9349 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9350 (ns_fontname_to_xlfd): Make static.
9351 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9352 Remove prototypes (now in keyboard.h).
9353 (next_menubar_widget_id): Remove, unused.
9354 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9355 Remove prototypes (now in keyboard.h).
9356 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9357
93582008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9359
9360 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9361 (floatfns.o): Depend on syssignal.h.
9362 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9363
9364 * systty.h: Fix previous change that removed BSD_TERMIOS.
9365 Add comments to #ifdefs.
9366
93672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9368
9369 * w32fns.c (w32-load-color-file): Remove.
9370 (x-open-connection): Use renamed Fx_load_color_file.
9371 * xfaces.c (x-load-color-file): Add.
9372 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9373 Emacs.clr.
9374 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9375
93762008-07-31 Michael Albinus <michael.albinus@gmx.de>
9377
9378 * dbusbind.c (Fdbus_call_method_asynchronously)
9379 (Fdbus_method_error_internal): New defuns.
9380 (xd_read_message): Handle also reply messages.
9381 (Vdbus_registered_functions_table): Extend docstring.
9382
93832008-07-31 Juanma Barranquero <lekktu@gmail.com>
9384
9385 * keyboard.c (gobble_input): Fix previous change.
9386
93872008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9388
9389 * bitmaps/README:
9390 * xfns.c:
9391 * termcap.c:
9392 * term.c:
9393 * syswait.h:
9394 * systty.h:
9395 * systime.h:
9396 * syssignal.h:
9397 * sysdep.c:
9398 * process.h:
9399 * process.c:
9400 * print.c:
9401 * ndir.h:
9402 * lread.c:
9403 * keyboard.c:
9404 * getpagesize.h:
9405 * floatfns.c:
9406 * fileio.c:
9407 * emacs.c:
9408 * doc.c:
9409 * dispnew.c:
9410 * dired.c:
9411 * data.c:
9412 * callproc.c:
9413 * buffer.c:
9414 * README:
9415 * Makefile.in:
9416 * s/template.h:
9417 * s/msdos.h:
9418 * m/vax.h: Remove VMS support.
9419 * s/vms.h:
9420 * vlimit.h:
9421 * uaf.h:
9422 * temacs.opt:
9423 * param.h:
9424 * ioctl.h: Remove file.
9425
94262008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9427
9428 * s/ms-w32.h (MULTI_KBOARD): Remove.
9429 * xterm.c:
9430 * xselect.c:
9431 * xfns.c:
9432 * window.c:
9433 * w32term.c:
9434 * w32fns.c:
9435 * terminal.c:
9436 * termhooks.h:
9437 * term.c:
9438 * sysdep.c:
9439 * keyboard.h:
9440 * keyboard.c:
9441 * frame.h:
9442 * frame.c:
9443 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9444 * config.in: Regenerate.
9445
94462008-07-30 Jason Rumney <jasonr@gnu.org>
9447
9448 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9449
9450 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9451 (w32font_open_internal): Get unicode version of textmetrics.
9452 Don't enable or disable glyph indices here.
9453 (w32font_open): Disable use of glyph indices.
9454
9455 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9456
94572008-07-30 Chong Yidong <cyd@stupidchicken.com>
9458
9459 * minibuf.c (Vread_buffer_function): Doc fix.
9460
94612008-07-30 John Paul Wallington <jpw@pobox.com>
9462
9463 * minibuf.c (read_buffer_completion_ignore_case): New var.
9464 (Fread_buffer): Use it.
9465
94662008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9467
9468 * systty.h (sensemode): Remove empty #if. Remove reference to
9469 BSD_TERMIOS, unused.
9470
9471 * sysdep.c: Remove reference to DGUX.
9472 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9473
9474 * config.in: Regenerate.
9475
94762008-07-30 Jason Rumney <jasonr@gnu.org>
9477
9478 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9479
94802008-07-29 Jason Rumney <jasonr@gnu.org>
9481
9482 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9483 is populated.
9484 (uniscribe_encode_char): Always use uniscribe.
9485 Avoid using context if cache is populated.
9486
94872008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9488
9489 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9490 open menu.
9491
9492 * gtkutil.c (menu_nav_ended): Remove.
9493 (create_menus): Remove signal connect for menu_nav_ended.
9494
94952008-07-28 Chong Yidong <cyd@stupidchicken.com>
9496
9497 * xdisp.c (redisplay_window): Check return value of
9498 compute_window_start_on_continuation_line before forcing a window
9499 start.
9500
95012008-07-28 Jason Rumney <jasonr@gnu.org>
9502
9503 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9504
9505 * w32term.c (w32_enable_unicode_output, cleartype_active):
9506 Remove obsolete display options.
9507 (x_draw_glyph_string_background): Don't use old cleartype_active
9508 workaround.
9509 (w32_initialize): Remove cleartype_active initialization.
9510 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9511
95122008-07-28 Andreas Schwab <schwab@suse.de>
9513
9514 * lisp.h (init_weak_hash_tables, syms_of_font)
9515 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9516 (remove_hash_entry): Don't declare.
9517 * eval.c (maybe_call_debugger): Make static and move before use.
9518 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9519 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9520 * xterm.h (x_set_frame_alpha): Declare.
9521
95222008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9523
9524 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9525 (create_menus): Connect selection-done to menu_nav_ended.
9526
95272008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9528
9529 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9530 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9531 parameter with read of 'alpha' one.
9532 (Qns_frame_parameter): Remove.
5582fbc7 9533 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9534 (next-selection-coding-system, Vselection_coding_system)
9535 (Vnext_selection_coding_system): Drop.
9536
95372008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9538
9539 * nsfns.m (do-applescript, do_applescript): Rename to
9540 ns-do-applescript, ns_do_applescript, and move within file.
9541
95422008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9543
9544 Remove support for Mac Carbon.
9545 * mactoolbox.c:
9546 * macterm.h:
9547 * macterm.c:
9548 * macselect.c:
9549 * macmenu.c:
9550 * macgui.h:
9551 * macfns.c:
9552 * mac.c: Remove file.
9553 * s/darwin.h:
9554 * m/intel386.h:
9555 * xfaces.c:
9556 * xdisp.c:
9557 * window.c:
9558 * tparam.c:
9559 * termhooks.h:
9560 * termcap.c:
9561 * term.c:
9562 * syssignal.h:
9563 * sysselect.h:
9564 * sysdep.c:
9565 * process.c:
9566 * lread.c:
9567 * lisp.h:
9568 * keyboard.c:
9569 * image.c:
9570 * fringe.c:
9571 * frame.h:
9572 * frame.c:
9573 * fontset.c:
9574 * font.h:
9575 * font.c:
9576 * fns.c:
9577 * fileio.c:
9578 * emacs.c:
9579 * dispnew.c:
9580 * dispextern.h:
9581 * config.in:
9582 * atimer.c:
2ae37cf0 9583 * Makefile.in: Remove code for Carbon.
aac0c6e3 9584
f0131492 95852008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9586
9587 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9588
95892008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9590
9591 * macterm.h (kCGBitmapByteOrder32Host): New define for
9592 non-universal SDKs.
9593
9594 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9595 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9596
9597 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9598 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9599
96002008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9601
9602 * w32inevt.c: Include dispextern.h.
9603
96042008-07-26 Andreas Schwab <schwab@suse.de>
9605
9606 * print.c (print_object): Fix off-by-one in last change.
9607
96082008-07-25 Juanma Barranquero <lekktu@gmail.com>
9609
9610 * term.c (syms_of_term): Don't initialize default_orig_pair,
9611 default_set_foreground and default_set_background on Windows.
9612
96132008-07-25 Jason Rumney <jasonr@gnu.org>
9614
9615 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9616 ScriptItemize. Clean up return value checking. Remove unused
9617 variables.
9618 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9619 shaping engine.
9620
9621 * w32font.c (w32font_has_char): Handle the case where we can't
9622 determine the script for a character.
9623
96242008-07-25 Chong Yidong <cyd@stupidchicken.com>
9625
9626 * term.c (syms_of_term): Initialize default_orig_pair,
9627 default_set_foreground, and default_set_background.
9628
9629 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9630 clash (bug#86).
9631 (getloadavg): Callers changed.
9632
9633 * image.c (svg_load_image): Fix last change.
9634 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9635 image size is valid. Use g_object_unref instead of deprecated
9636 rsvg_handle_free to free rsvg handle.
9637 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9638
96392008-07-25 Jason Rumney <jasonr@gnu.org>
9640
9641 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9642 surrogates before looking up glyph index.
9643 (w32font_text_extents): Encode as surrogates if falling back to
9644 functions that need UTF-16 wide chars.
9645
9646 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9647 BMP as surrogates before looking up glyph index.
9648
96492008-07-25 Chong Yidong <cyd@stupidchicken.com>
9650
9651 * image.c (svg_load_image): Check for failure in return value of
9652 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9653
96542008-07-25 Jason Rumney <jasonr@gnu.org>
9655
9656 * w32font.c (Fx_select_font): Reverse sense of second arg.
9657
96582008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9659
9660 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9661 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9662
9663 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9664 (PURESIZE): Use it.
9665
96662008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9667
9668 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9669 * m/alpha.h (TEXT_END):
9670 * m/ibmrs6000.h (TEXT_END):
9671 * m/macppc.h (TEXT_END):
9672 * s/darwin.h (TEXT_END):
9673 * s/msdos.h (TEXT_END): Remove, unused.
9674 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9675 * s/cygwin.h: Remove comment.
9676
9677 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9678 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9679 * m/intel386.h (DOT_GLOBAL_START):
9680 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9681 (USG): Remove, file not used on USG platforms.
9682
9683 * Makefile.in (HAVE_X11): Remove empty #else.
9684
96852008-07-24 Andreas Schwab <schwab@suse.de>
9686
9687 * fileio.c (Finsert_file_contents): Properly adjust undo list
9688 after format conversion.
9689
96902008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9691
9692 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9693 (menu_nav_ended): Remove.
9694 (create_menus): Remove signal connect for menu_nav_ended.
9695 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9696 create_menus.
9697 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9698
96992008-07-23 Jason Rumney <jasonr@gnu.org>
9700
9701 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9702 with opened font.
9703 (w32font_open): Set font type to gdi.
9704
9705 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9706
97072008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9708
9709 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9710 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9711 defines it.
9712 * unexec.c (ADDR_CORRECT): Define unconditionally.
9713
9714 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9715
9716 * unexec.c: Remove code depending on !COFF and USG, the file is
9717 not used for such systems.
9718
9719 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9720 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9721 (LD_SWITCH_SYSTEM_1): Remove, update users.
9722
9723 * s/darwin.h (DATA_END):
9724 * m/intel386.h (DATA_END):
9725 * m/ibmrs6000.h (DATA_END):
9726 * m/alpha.h (DATA_END): Remove, unused.
9727
9728 * config.in: Regenerate.
9729 * s/ms-w32.h (subprocesses): Define unconditionally.
9730 * s/template.h (subprocesses): Update comment.
9731 * s/vms.h (subprocesses):
9732 * s/usg5-4.h (subprocesses):
9733 * s/hpux10-20.h (subprocesses):
9734 * s/gnu-linux.h (subprocesses):
9735 * s/cygwin.h (subprocesses):
9736 * s/bsd-common.h (subprocesses):
9737 * s/aix4-2.h (subprocesses):
9738 * s/darwin.h (subprocesses): Do not define, defined by default now.
9739
9740 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9741 Remove all references.
9742 (temacs): Add GNUstep specific ld flags.
9743
9744 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9745 similarly to what X does.
9746
97472008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9748
9749 * nsfns.m (x-list-fonts): Remove.
9750 (syms_of_nsfns): Drop the x-list-fonts declaration.
9751 * nsterm.m: Get rid of remaining "//" comments.
9752
97532008-07-22 Chong Yidong <cyd@stupidchicken.com>
9754
9755 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9756
9757 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9758 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9759 (Fns_own_selection_internal, Fx_disown_selection_internal)
9760 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9761
9762 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9763 ... */' style of docstrings. Doc fixes.
9764
97652008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9766
9767 * terminfo.c (UP, BC, PC): Undo previous change.
9768
9769 * nsfns.m: Rename ns prefixed functions/variables to the
9770 corresponding x versions. Update references.
9771
97722008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9773
9774 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9775
97762008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9777
9778 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9779 Remove forwarding functions.
9780 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9781 non-static.
9782 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9783 non-static.
9784 (ns_frame_parm_handlers): Use the new names.
9785 (syms_of_nsfns): Move to the end of file.
9786
9787 * nsterm.m (syms_of_nsterm): Move to the end of file.
9788
9789 * dispnew.c (init_display): Remove code for X10.
9790
97912008-07-22 Jason Rumney <jasonr@gnu.org>
9792
9793 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9794 bare drive.
9795
97962008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9797
9798 * nsterm.m (syms_of_nsterm): Remove debugging println.
9799
98002008-07-22 David Reitter <david.reitter@gmail.com>
9801
9802 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9803 Carbon implementation of the same functionality: execute arbitrary
9804 AppleScript code.
9805
98062008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9807
9808 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9809 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9810 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9811 (Fx_display_mm_height, Fx_display_mm_width)
9812 (Fx_display_backing_store, Fx_display_visual_class)
9813 (Fx_display_save_under, Fx_open_connection)
9814 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9815 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9816 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9817 (Fx_display_pixel_width, Fx_display_pixel_height)
9818 (Fx_display_usable_bounds, Fx_display_planes)
9819 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9820 ... */' style of docstrings.
9821
98222008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9823
9824 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9825 on this platform.
9826 (mips):
9827 * m/iris4d.h (mips): Do not define.
9828 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9829
9830 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9831
9832 * image.c:
9833 * nsfns.m:
9834 * nsselect.m:
9835 * nsterm.h:
9836 * nsterm.m: Rename ns prefixed functions/variables to the
9837 corresponding x versions. Update references.
9838
9839 * m/ibms390x.h (NO_REMAP): Do not undefine.
9840
9841 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9842
98432008-07-21 Chong Yidong <cyd@stupidchicken.com>
9844
9845 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9846 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9847 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9848 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9849 (Fns_display_mm_height, Fns_display_mm_width)
9850 (Fns_display_backing_store, Fns_display_visual_class)
9851 (Fns_display_save_under, Fns_open_connection)
9852 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9853 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9854 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9855 (Fns_display_pixel_width, Fns_display_pixel_height)
9856 (Fns_display_usable_bounds, Fx_display_planes)
9857 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9858
98592008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9860
9861 * print.c (print_object): Check print_depth before searching for
9862 circularities.
9863
98642008-07-21 Michael Albinus <michael.albinus@gmx.de>
9865
9866 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9867 only sprintf.
9868
98692008-07-21 Kenichi Handa <handa@m17n.org>
9870
9871 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9872
98732008-07-20 Andreas Schwab <schwab@suse.de>
9874
9875 * syntax.c (find_start_pos, find_start_value)
9876 (find_start_value_byte, find_start_begv, find_defun_start)
9877 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9878
98792008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9880
9881 * s/sol2-3.h: Insert contents of s/sol2.h.
9882 (LD_SWITCH_SYSTEM): Remove redundant definition.
9883 * s/sol2.h: Remove, unused.
9884
98852008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9886
9887 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9888
98892008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9890
9891 * Makefile.in (ns_appdir): Fix typo in find command.
9892
98932008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9894
9895 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9896
9897 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9898 added not supported anymore.
9899
9900 * s/usg5-4-2.h (LIBS_SYSTEM):
9901 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9902
9903 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9904 * s/lynxos.h (GETPGRP_NO_ARG):
9905 * s/hpux10-20.h (NO_SIOCTL_H):
9906 * s/gnu.h (GETPGRP_NO_ARG):
9907 * s/gnu-linux.h (NO_SIOCTL_H):
9908 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9909 * s/cygwin.h (GETPGRP_NO_ARG):
9910 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9911 (C_DEBUG_SWITCH): Remove duplicate definition.
9912
9913 * m/ibms390.h: Remove boilerplate comments.
9914
9915 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9916
9917 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9918 (wait_reading_process_output): Remove code for SunOS, platform not
9919 supported anymore. Use SOLARIS2 instead of sun.
9920
99212008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9922
9923 * font.c (font_open_by_name): Under NS, default lface height to zero.
9924 (font_open_for_lface): Under NS, set size based on frame fontsize.
9925 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9926 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9927
99282008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9929
9930 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9931 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9932 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9933 YES/NO.
9934 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9935 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9936 * Makefile.in (clean): Clear out build destination dir.
9937
99382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9939
9940 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9941 xterm, xselect.
9942 * lisp.h: Remove declaration of hash_remove.
9943 * nsgui.h: Remove redefinitions of hash_remove.
9944 * fns.c (hash_remove): Rename to hash_remove_from_table.
9945
99462008-07-19 Seiji Zenitani <zenitani@mac.com>
9947
9948 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9949 strdup() the family UTF8String before modifying it.
9950
99512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9952
9953 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9954 NS_FACE_BACKGROUND with 0 instead of nil.
9955 * nsfont.m (nsfont_draw): Same.
9956
99572008-07-19 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * nsfns.m (ns_set_background_color): Fix crash.
9960
99612008-07-18 Chong Yidong <cyd@stupidchicken.com>
9962
9963 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9964
99652008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9966
9967 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9968
99692008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9970
9971 * gtkutil.c: Include <config.h> instead of "config.h".
9972
9973 * lisp.h (Foverlay_buffer): Add EXFUN.
9974
9975 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9976 child process to complete child_setup. Undo 2005-09-21 change.
9977
9978 * s/darwin.h: Mention setsid after vfork.
9979
99802008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9981
9982 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9983 Depend on macgui.h.
9984
9985 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9986 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9987
9988 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9989 and f19.
9990 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9991
9992 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9993 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9994 Remove enumerators.
9995
9996 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9997 Check if FACE_FROM_ID returns NULL.
9998
99992008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10000
10001 * w32inevt.c (change_frame_size): Remove extern declaration.
10002 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10003 change_frame_size.
10004
100052008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10006
10007 * getloadavg.c: Revert last change (2008-07-15).
10008
100092008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10010
10011 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10012 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10013 from configure.
10014
100152008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10016
10017 * s/sol2.h:
10018 * s/sol2-4.h: Reorganize conditionals.
10019
10020 * ecrt0.c: Remove code depending on m68000, not used anymore.
10021
10022 * fns.c (hash_remove): Make static.
10023 * lisp.h (hash_remove): Don't prototype.
10024
10025 * m/ibmrs6000.h:
10026 * m/ibms390x.h:
10027 * m/macppc.h: Remove boilerplate comments.
10028
10029 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10030 Solaris, which does not need them.
10031
10032 * m/vax.h: Remove comments about unsupported systems.
10033
10034 * s/darwin.h: Reorganize ifdefs.
10035
100362008-07-17 Andreas Schwab <schwab@suse.de>
10037
10038 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10039
100402008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10041
10042 Use SDATA. Follow coding convention of placing operators at
10043 beginning of next line rather than end of previous line, and placing
10044 spaces around infix operators.
10045
10046 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10047 in case it was defined already.
10048 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10049 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10050 ns_default.
10051 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10052 Lisp_Objects.
10053 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10054 (ns_defined_color, ns_color_to_lisp): Declare.
10055 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10056 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10057 it's accepted even with USE_LISP_UNION_TYPE.
10058 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10059 (update_frame_tool_bar): Remove apparently obsolete tests for
10060 non-integerness of f->tool_bar_lines.
10061 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10062 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10063 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10064 (nsfont_open): Don't confuse NULL for Qnil.
10065 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10066 * menu.h (find_and_call_menu_selection):
10067 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10068 (find_and_return_menu_selection): Always return something.
10069 * frame.h: Include dispextern.h for Display_Info.
10070 (display_x_get_resource): Declare.
10071
100722008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10073
10074 * syntax.c: Remove stdio.h include accidentally introduced in
10075 Emacs.app commit.
10076 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10077 NS_IMPL_COCOA.
10078 * keyboard.c (handle_async_input, input_available_signal): Remove
10079 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10080
100812008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10084 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10085 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10086 Use SDATA.
10087
10088 * keymap.c: Remove all NS-specific code.
10089 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10090 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10091 where_is_preferred_modifier, return a different value depending on how
10092 preferred is the binding.
10093 (where_is_internal): Adjust accordingly.
10094 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10095 Adjust to new preferred_sequence_p.
10096 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10097 * keyboard.c (parse_solitary_modifier): Not static any more.
10098 * keyboard.h (parse_solitary_modifier): Declare.
10099
101002008-07-16 Andreas Schwab <schwab@suse.de>
10101
10102 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10103 of easymenu.
10104
101052008-07-16 Chong Yidong <cyd@stupidchicken.com>
10106
10107 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10108 that we don't move off the line.
10109
101102008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10111
10112 * keyboard.c (Qsuper): Remove.
10113 (parse_menu_item): Don't call where_is_internal specially for NS.
10114
101152008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10116
10117 * s/gnu-linux.h: Remove boilerplate comments.
10118
10119 * m/alpha.h (__ELF__): Consolidate conditions.
10120
10121 * m/m68k.h (linux): Use GNU_LINUX instead.
10122 Remove boilerplate comments.
10123
10124 * m/intel386.h: Undo refactoring from previous change.
10125 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10126 too, remove dead code.
10127 (linux): Use GNU_LINUX instead.
10128
101292008-07-16 Jason Rumney <jasonr@gnu.org>
10130
10131 * w32gui.h: Repeat 26 June changes lost by last change.
10132
101332008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10134
10135 * systty.h: Remove code for Aix on 386, unsupported platform.
10136
10137 * s/ms-w32.h: Remove boilerplate comments.
10138 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10139
10140 * s/gnu-linux.h (TERM): Remove support.
10141 (HAVE_SYSVIPC): Remove, unused.
10142 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10143 for this system.
10144
10145 * process.c: Remove support for IRIS, unused.
10146 Remove support for TERM, not relevant anymore.
10147
10148 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10149 used with the definition.
10150
10151 * s/aix4-2.h (static): Do not undef.
10152
10153 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10154 only used on Aix.
10155 (HAVE_SYSVIPC): Remove, unused.
10156
10157 * m/hp800.h (CANNOT_DUMP): Do not undef.
10158
10159 * m/alpha.h: Fix comment.
10160
10161 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10162 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10163 used by this configuration.
10164 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10165 * unexec.c: Remove code depending on HPUX and
10166 USG_SHARED_LIBRARIES, not used with this file. Remove code
10167 depending on IRIS, unused. Remove if 0-ed code.
10168
10169 * s/template.h: Remove comments about static.
10170
10171 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10172 Remove if 0-ed code.
10173 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10174 were the same as the default.
10175 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10176 Remove boilerplate comments.
10177 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10178 (HAVE_SYSVIPC): Remove, unused.
10179 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10180
10181 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10182 Remove boilerplate comments.
10183 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10184 Remove boilerplate comments.
10185 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10186 Remove boilerplate comments.
10187 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10188
10189 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10190 USG systems which do not use DATA_SEG_BITS.
10191 Refactor code. Remove boilerplate comments.
10192
10193 * m/ibms390.h:
10194 * m/m68k.h:
10195 * s/bsd-common.h:
10196 * s/cygwin.h:
10197 * s/darwin.h:
10198 * s/freebsd.h:
10199 * s/gnu.h:
10200 * s/msdos.h: Remove boilerplate comments.
10201
10202 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10203 do not use this file.
aac0c6e3
MR
10204 (IRIS_4D): Remove, unused.
10205
10206 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10207 do not use this file.
aac0c6e3
MR
10208 (SIGN_EXTEND_CHAR):
10209 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10210 * unexmips.c: Remove file, unused.
10211
10212 * editfns.c (Fuser_full_name): Replace the only use of
10213 USER_FULL_NAME with its value.
10214 * config.in: Regenerate.
10215
102162008-07-16 David Reitter <david.reitter@gmail.com>
10217
10218 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10219 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10220
102212008-07-16 Glenn Morris <rgm@gnu.org>
10222
10223 * emacs.c (system-type): Doc fix.
10224
102252008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10226
10227 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10228 If the cache doesn't work, let's fix it, rather than work around it.
10229
102302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10231
10232 * Makefile.in: Correct additions for nsfont.o in last commit.
10233 * nsfont.m: New file (forgot last commit).
10234
102352008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10236
10237 * callproc.c (set_initial_environment): Initialize
10238 Vprocess_environment under CANNOT_DUMP (fixes crash when
10239 batch-compiling for bootstrap).
10240
102412008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10242 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10243
10244 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10245 fix crash due to different init order.
10246
102472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10248
10249 Changes and additions for NeXTstep windowing system (Cocoa and
10250 GNUstep) support.
10251
10252 * Makefile.in:
10253 * config.in: Support defines and build commands for NS port.
10254 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10255 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10256 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10257 windowing.
10258 (struct face): Add synth_ital field.
10259 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10260 (init_display): Initialize Vinitial_window_system to "ns" when so
10261 compiled.
10262 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10263 (display_arg): Use under NS.
10264 (main): Under NS, allocate autorelease pool and handle command line
10265 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10266 (standard_args): Add NS-specific args.
10267 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10268 * font.c (DEFAULT_ENCODING): New variable.
10269 (font_find_for_lface): Use it.
10270 (syms_of_font): Load syms_of_nsfont under NS.
10271 * font.h: Declare nsfont_driver when compiled under NS.
10272 * fontset.c: When compiling under NS, include nsterm.h.
10273 (fontset_from_font): Autoconstruct fontset under NS.
10274 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10275 symbol, document and use it.
10276 (do_switch_frame): When for_deletion under Cocoa, add
10277 Fraise_frame(Qnil).
10278 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10279 (x_get_arg): Allow "yes" and "no" as boolean values.
10280 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10281 Qright under Cocoa.
10282 (focus-follows-mouse): Default to 0 under NS.
10283 * frame.h (enum output_method): Add output_ns.
10284 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10285 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10286 (FRAME_WINDOW_P): NS-specific definition.
10287 * fringe.c (max_used_fringe_bitmap): Make public.
10288 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10289 (getloadavg): Use NeXT code under descendant OS's.
10290 * image.c (includes and header section, x_create_bitmap_from_data)
10291 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10292 (image_background_transparent, x_clear_image_1)
10293 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10294 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10295 (x_to_xcolors, x_from_xcolors, x_disable_image)
10296 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10297 other GUIs, including XPM support using code originally written for
10298 Carbon GUI.
10299 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10300 using NS API.
10301 (image_ascent): Use font metrics macros instead of direct struct field
10302 access.
10303 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10304 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10305 Also, handle NS as GTK for menu bar purposes.
10306 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10307 toolkit where they differ.
10308 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10309 use cachelist, still needed under NS.
10310 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10311 (struct widget_value): Define it here for menu.c.
10312 * keymap.c (includes): Include modifier internals.
10313 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10314 NS.
10315 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10316 support for preferring sequences using certain modifiers, specified by
10317 the FIRSTONLY argument.
10318 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10319 under NS GNUstep implementation.
10320 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10321 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10322 * menu.c: Include nsterm.h under NS.
10323 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10324 (free_menubar_widget_tree_value, update_submenu_strings)
10325 (find_and_call_menu_selection): Treat NS as X and NT.
10326 (find_and_return_menu_selection): New function, used for popup menus.
10327 * nsgui.h:
10328 * nsterm.h:
10329 * nsfns.m:
10330 * nsimage.m:
10331 * nsmenu.m:
10332 * nsselect.m:
10333 * nsterm.m: New files.
10334 * process.c (wait_reading_process_output): Under NS, call ns_select()
10335 instead of plain select().
10336 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10337 beginning of buffer.
10338 * sysselect.h (init_process): Rename when compiling under Cocoa to
10339 avoid name conflict.
10340 * termhooks.h (display_info): Add ns_display_info to union.
10341 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10342 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10343 COCOA environment.
10344 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10345 unexec() signature. (Note, this will dump, but the resulting file
10346 crashes; unexosx is used instead; keeping around for reference and
10347 possible aid in getting dump working under GNUstep.)
10348 * w32gui.h (button_type, widget_value): Remove definitions (now in
10349 keyboard.h).
10350 * window.c: Include nsterm.h when compiling under NS.
10351 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10352 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10353 other GUI windowing systems.
10354 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10355 GTK.
10356 (x_consider_frame_title): Under NS, set icon type and frame
10357 modified-state indicator; use ns_set_name_as_filename() when using
10358 formatted title.
10359 (update_window_cursor): Make public when compiling under NS.
10360 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10361 (hourglass_atimer, Vhourglass_delay
10362 * xfaces.c (header section, init_frame_faces, clear_font_table)
10363 (defined_color, unload_color, x_face_list_fonts)
10364 (prepare_face_for_display): Add NS support parallel to other GUIs.
10365 Emulate GCs like other non-X GUIs.
10366 (split_font_name): Don't lowercase font name under NS.
10367 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10368 under NS.
10369 * s/darwin.h: Add support for compilation under NS.
10370
103712008-07-15 Jason Rumney <jasonr@gnu.org>
10372
10373 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10374 (w32_show_hourglass): Rename from show_hourglass.
10375 (w32_hide_hourglass): Rename from hide_hourglass.
10376 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10377 (Vhourglass_delay): Declare extern.
10378 (hourglass_started): Remove.
10379
10380 * xdisp.c (Vhourglass_delay): Remove static.
10381 (hourglass_started, start_hourglass, cancel_hourglass):
10382 Don't include these versions on WINDOWSNT.
10383
103842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10385
10386 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10387 variables (formerly in xfns.c).
10388 (show_hourglass, hide_hourglass): New prototypes (same).
10389 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10390 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10391 in xfns.c).
10392 (syms_of_xdisp): Declare/initialize display-hourglass,
10393 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10394 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10395 formerly in xfns.c.
10396 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10397 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10398 (start_hourglass, cancel_hourglass): Remove.
10399 (show_hourglass, hide_hourglass): Remove prototypes and static
10400 modifiers.
10401 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10402 hourglass_atimer, hourglass_shown_p declaration/initialization.
10403 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10404 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10405 (start_hourglass, cancel_hourglass): Remove.
10406 (show_hourglass, hide_hourglass): Remove prototypes and static
10407 modifiers.
10408 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10409 hourglass_atimer, hourglass_shown_p declaration/initialization.
10410 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10411 (DEFAULT_HOURGLASS_DELAY): Remove.
10412 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10413 hourglass_shown_p declaration/initialization.
10414
104152008-07-14 Jason Rumney <jasonr@gnu.org>
10416
10417 * w32fns.c (w32_get_arg): Remove wrapper function.
10418 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10419 directly.
10420 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10421
104222008-07-14 Kenichi Handa <handa@m17n.org>
10423
10424 * xfont.c (xfont_open): Add workaround for X's bug.
10425
104262008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10427
10428 * fontset.c: Include <stdio.h> unconditionally.
10429
104302008-07-13 Michael Albinus <michael.albinus@gmx.de>
10431
10432 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10433 for filtering.
10434
104352008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10436
10437 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10438
10439 * m/macppc.h:
10440 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10441
10442 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10443 (SPECIAL_EMACS_INT):
10444 * m/ia64.h (SPECIAL_EMACS_INT):
10445 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10446 * s/gnu.h (NLIST_STRUCT):
10447 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10448 * s/gnu-linux.h (LINUX):
10449 * s/msdos.h (HAVE_FACES):
10450 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10451
10452 * systty.h:
10453 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10454 anymore.
10455
104562008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10457
10458 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10459 always defined as int.
10460
10461 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10462 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10463 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10464 * s/freebsd.h (HAVE_WAIT_HEADER):
10465 * s/bsd-common.h (HAVE_UNION_WAIT):
10466 * s/aix4-2.h (HAVE_WAIT_HEADER):
10467 * m/mips.h (HAVE_UNION_WAIT):
10468 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10469 (COFF, static): Do not define, they are undefined later in the file.
10470
10471 * process.c (update_status): Don't use a union.
10472 (status_convert):
10473 (sigchld_handler): Use int instead of WAITTYPE.
10474
104752008-07-12 Chong Yidong <cyd@stupidchicken.com>
10476
10477 * indent.c (Fvertical_motion): Restore hscroll before moving to
10478 goal column.
10479
104802008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10481
10482 * lisp.h: Remove left over code.
10483
104842008-07-11 Andreas Schwab <schwab@suse.de>
10485
10486 * lisp.h: Fix logic in last change.
10487
10488 * menu.h: New file.
10489 * menu.c: Include it.
10490 * xmenu.c: Likewise.
10491 * Makefile.in: Update dependencies.
10492
104932008-07-11 Kenichi Handa <handa@m17n.org>
10494
10495 * fontset.c (fontset_from_font): Cancel the previous change.
10496
104972008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10498
10499 * lisp.h:
10500 * w32heap.c:
10501 * emacs.c:
10502 * alloc.c: Replace all references of NO_UNION_TYPE with
10503 USE_LISP_UNION_TYPE.
10504
10505 * m/xtensa.h (NO_UNION_TYPE):
10506 * m/vax.h (NO_UNION_TYPE):
10507 * m/template.h (NO_UNION_TYPE):
10508 * m/sparc.h (NO_UNION_TYPE):
10509 * m/mips.h (NO_UNION_TYPE):
10510 * m/macppc.h (NO_UNION_TYPE):
10511 * m/m68k.h (NO_UNION_TYPE):
10512 * m/iris4d.h (NO_UNION_TYPE):
10513 * m/intel386.h (NO_UNION_TYPE):
10514 * m/ibms390x.h (NO_UNION_TYPE):
10515 * m/ibms390.h (NO_UNION_TYPE):
10516 * m/ibmrs6000.h (NO_UNION_TYPE):
10517 * m/ia64.h (NO_UNION_TYPE):
10518 * m/hp800.h (NO_UNION_TYPE):
10519 * m/arm.h (NO_UNION_TYPE):
10520 * m/amdx86-64.h (NO_UNION_TYPE):
10521 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10522 defining it the same.
10523
105242008-07-10 Chong Yidong <cyd@stupidchicken.com>
10525
10526 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10527
105282008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10529
10530 * fileio.c:
50426a04 10531 * sysdep.c:
aac0c6e3
MR
10532 * systty.h:
10533 * m/ibmrs6000.h:
10534 * m/iris4d.h:
10535 * s/aix4-2.h:
10536 * s/freebsd.h:
10537 * s/gnu-linux.h:
10538 * s/hpux10-20.h:
10539 * s/hpux11.h:
10540 * s/netbsd.h:
10541 * s/sol2-3.h:
10542 * s/sol2-4.h:
10543 * s/sol2.h:
10544 * s/usg5-4.h:
10545 * s/vms.h: Remove references to unused variables.
10546
105472008-07-10 Andreas Schwab <schwab@suse.de>
10548
10549 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10550 pattern before matching the generic family.
10551
105522008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10553
10554 * unexec.c:
10555 * s/vms.h:
10556 * s/usg5-4-2.h:
10557 * s/sol2-5.h:
10558 * s/freebsd.h:
10559 * s/darwin.h: Remove dead code.
10560
10561 * m/template.h:
10562 * m/sparc.h:
10563 * m/mips.h:
10564 * m/m68k.h:
10565 * m/iris4d.h:
10566 * m/intel386.h:
10567 * m/ibms390x.h:
10568 * m/ibms390.h:
10569 * m/ia64.h:
10570 * m/hp800.h:
10571 * m/arm.h:
10572 * m/amdx86-64.h: Remove dead code and references to unused
10573 and compiler defined symbols.
10574
10575 * unexmips.c:
10576 * unexelf.c: Remove references to desupported systems.
10577
10578 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10579
10580 * m/powermac.h: Remove boilerplate comments.
10581 (NO_REMAP): Remove unused definition.
10582
10583 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10584 define them.
10585
105862008-07-10 Kenichi Handa <handa@m17n.org>
10587
10588 * xfont.c (xfont_open): Log the reason of failure.
10589
105902008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10591
10592 * fontset.c (fontset_get_font_group):
10593 * font.c (font_check_otf): Specify argument types.
10594
105952008-07-09 Kenichi Handa <handa@m17n.org>
10596
10597 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10598 non-ASCII char is found.
10599
10600 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10601 (reorder_font_vector): Change the arg preferred_family to font.
10602 Prefer the spec matching with font.
10603 (fontset_get_font_group): New function.
10604 (fontset_find_font): Change the format of an element of a realized
10605 fontset. Use fontset_get_font_group.
10606 (fontset_font): Try the current fontset, the default fontset, the
10607 fallbacks of the current fontset, and the fallbacks of the default
10608 fontset in this order.
10609 (face_for_char): Delete the shortcut to use the current font.
10610 (fontset_from_font): Don't set fonts for Latin in the fontset.
10611
10612 * font.h (font_make_object, font_match_p): Adjust prototypes.
10613
10614 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10615
10616 * font.c (font_make_object): New arg entity and pixelsize.
10617 (font_check_otf_features, font_check_otf): New functions.
10618 (font_match_p): Check :lang, :script, and :otf properties.
10619
10620 * xfont.c (xfont_open): Adjust it for the change of
10621 font_make_object.
10622 (xfont_text_extents): Fix initial setting of metrics.
10623
10624 * ftfont.c (struct ftfont_info): New member index, delete member
10625 fc_charset_idx. Make the member order compatible with struct
10626 xftfont_info.
10627 (fc_charset_table): Change charset names to registry names.
10628 (ftfont_pattern_entity): Delete the args registry and
10629 fc_charset_idx. Change the value of :font-entity property
10630 to (FONTNAME . INDEX). Always set :registry property to
10631 `iso10646-1'.
10632 (struct ftfont_cache_data): New struct.
10633 (ftfont_lookup_cache): New arg for_face.
10634 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10635 (ftfont_driver): Set the member otf_capability.
10636 (ftfont_get_charset): Adjust it for the change of
10637 fc_charset_table.
10638 (OTF_TAG_SYM): New macro.
10639 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10640 for the change of fc_charset_table.
10641 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10642 ftfont_pattern_entity. Add FC_INDEX to objset.
10643 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10644 and ftfont_pattern_entity.
10645 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10646 font_make_object, struct ftfont_info.
10647 (ftfont_has_char): Use ftfont_get_fc_charset.
10648 (ftfont_otf_features, ftfont_otf_capability): New functions.
10649 (ftfont_shape): Use ftfont_get_otf.
10650 (ftfont_text_extents): Fix initial setting of metrics.
10651
10652 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10653 member order compatible with struct ftfont_info.
10654 (xftfont_open): Add FC_CHARSET to the pattern. Set
10655 xftfont_info->ft_size. Don't unlock the face. Check BDF
10656 properties if appropriate.
10657 (xftfont_close): Unlock the face.
10658 (xftfont_anchor_point, xftfont_shape): Deleted.
10659 (syms_of_xftfont): Don't set members anchor_point and shape of
10660 xftfont_driver.
10661
10662 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10663 font_make_object.
10664
10665 * w32font.c (w32font_open): Adjust it for the change of
10666 font_make_object.
10667 (w32font_open_internal): Don't set properties of font_object here.
10668
106692008-07-08 Chong Yidong <cyd@stupidchicken.com>
10670
10671 * macfns.c (x_create_tip_frame):
10672 * w32fns.c (x_create_tip_frame):
10673 * xfns.c (x_create_tip_frame): Pass parameter argument to
10674 face-set-after-frame-default.
10675
10676 * xfaces.c (Finternal_merge_in_global_face): Save merged
10677 attributes for the default face back into the face vector.
10678
106792008-07-08 Andreas Schwab <schwab@suse.de>
10680
10681 * fontset.h: Declare fontset_from_font. Don't declare
10682 new_fontset_from_font and fontset_from_font_name.
10683 * xterm.c: Include "fontset.h".
10684 * Makefile.in (xterm.o): Update dependencies.
10685
106862008-07-08 Glenn Morris <rgm@gnu.org>
10687
10688 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10689 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10690
106912008-07-07 Chong Yidong <cyd@stupidchicken.com>
10692
10693 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10694 (x_set_frame_parameters): Don't bind it.
10695
106962008-07-07 Juanma Barranquero <lekktu@gmail.com>
10697
10698 * w32fns.c (map_w32_filename): Declare extern.
10699
107002008-07-07 Jason Rumney <jasonr@gnu.org>
10701
10702 * w32term.c (WS_EX_LAYERED): Define if not already.
10703
107042008-07-06 Chong Yidong <cyd@stupidchicken.com>
10705
10706 * xfaces.c (set_font_frame_param): Don't try to set the font
10707 parameter if it is still unspecified in the lface.
10708
107092008-07-05 Chong Yidong <cyd@stupidchicken.com>
10710
10711 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10712 face if it didn't already exist.
10713
10714 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10715
107162008-07-05 Andreas Schwab <schwab@suse.de>
10717
10718 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10719
107202008-07-05 Chong Yidong <cyd@stupidchicken.com>
10721
10722 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10723 word-wrapping.
10724 (IT_DISPLAYING_WHITESPACE): New macro.
10725 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10726 when word-wrapping. Simplify word-wrapping logic. Use correct
10727 pixel positions when saving copies of the iterator.
10728 (display_line): Use proper wrap point if the last character on a
10729 line was preceded by whitespace.
10730
107312008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10732
10733 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10734
107352008-07-04 Kenichi Handa <handa@m17n.org>
10736
10737 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10738
10739 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10740
107412008-07-02 Jason Rumney <jasonr@gnu.org>
10742
10743 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10744 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10745
10746 * xdisp.c (next_element_from_display_vector): Move assignment out
10747 of if statement.
10748
107492008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10750
10751 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10752
10753 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10754 (syms_of_fileio): Initialize and export them.
10755 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10756
10757 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10758 (Fsystem_move_file_to_trash): New function.
10759 (syms_of_w32fns): Export it to lisp.
10760
107612008-07-01 Jason Rumney <jasonr@gnu.org>
10762
10763 * w32font.c (w32font_text_extents): Don't count overhang as part
10764 of width.
10765
107662008-06-30 Miles Bader <miles@gnu.org>
10767
10768 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10769 Add `avoid_cursor_p' field.
10770
10771 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10772 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10773 (append_glyph, append_composite_glyph, produce_image_glyph)
10774 (append_stretch_glyph): Initialize avoid_cursor_p.
10775 (get_it_property): Rename from `get_line_height_property'.
10776 (x_produce_glyphs): Use get_it_property.
10777 (handle_line_prefix, push_display_prop): New functions.
10778 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10779 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10780 New variables.
10781 (syms_of_xdisp): Initialize them.
10782
107832008-06-30 Kenichi Handa <handa@m17n.org>
10784
10785 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10786 XftDefaultSubstitute (they are called in XftFontMatch).
10787 (xftfont_open): Fix args to ftfont_font_format.
10788
10789 * ftfont.c (fc_charset_table): New member lang.
10790 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10791 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10792 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10793 (ftfont_open): Fix args to ftfont_font_format.
10794 (ftfont_font_format): New arg filename.
10795
107962008-06-30 Chong Yidong <cyd@stupidchicken.com>
10797
10798 * xfaces.c (Finternal_merge_in_global_face): If default face was
10799 modified, realize it again. Update the font face attribute.
10800
108012008-06-29 Jason Rumney <jasonr@gnu.org>
10802
10803 * w32term.c (x_set_frame_alpha): Fix logic.
10804
108052008-06-29 Kenichi Handa <handa@m17n.org>
10806
10807 * fontset.c (Finternal_char_font): Return font-object instead of
10808 font-name.
10809
10810 * composite.c (get_composition_id): Fix the width calculation for TAB.
10811
108122008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10813
10814 * indent.c (Fvertical_motion): Properly handle float column arg.
10815
108162008-06-28 Jason Rumney <jasonr@gnu.org>
10817
10818 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10819 (pfnSetLayeredWindowAttributes): New function pointer.
10820 (w32_initialize): Initialize it when supported.
10821 (x_set_frame_alpha): New function.
10822
10823 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10824 (w32_frame_parm_handlers): Set alpha handler.
10825
10826 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10827
108282008-06-27 Jason Rumney <jasonr@gnu.org>
10829
10830 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10831 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10832 (w32_to_x_charset, x_to_w32_charset)
10833 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10834 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10835 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10836 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10837 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10838 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10839 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10840 (Qw32_charset_unicode): Remove.
10841 (syms_of_w32fns): Update for above changes.
10842
10843 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10844 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10845 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10846 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10847 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10848 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10849 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10850 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10851 (syms_of_w32font): Update for above changes.
10852
108532008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10854
10855 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10856 removed #if.
10857 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10858
108592008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 10860 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
10861
10862 * makefile.w32-in (LOCAL_FLAGS):
10863 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10864
10865 * sysdep.c (_spawnlp, _getpid):
10866 Declare with explicit _cdecl instead of _CRTAPI1.
10867
10868 * editfns.c (Fget_internal_run_time):
10869 Check for WINDOWSNT with #ifdef, not #if.
10870
108712008-06-26 Jason Rumney <jasonr@gnu.org>
10872
10873 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10874
10875 * w32term.c (x_draw_glyph_string_foreground)
10876 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10877 Use FONT_HANDLE macro.
10878 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10879
10880 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10881 (uniscribe_encode_char): Use FONT_HANDLE macro.
10882
10883 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10884 (w32font_text_extents): Use precast w32_font.
10885 (w32font_close): Free cached metrics.
10886 (w32font_open_internal): Allocate space for name on stack.
10887
108882008-06-26 Chong Yidong <cyd@stupidchicken.com>
10889
10890 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10891
108922008-06-26 Jason Rumney <jasonr@gnu.org>
10893
10894 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10895 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10896
108972008-06-26 Juanma Barranquero <lekktu@gmail.com>
10898
10899 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10900
109012008-06-26 Jason Rumney <jasonr@gnu.org>
10902
10903 * w32bdf.c, w32bdf.h: Remove obsolete files.
10904
10905 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10906
10907 * w32gui.h: Don't include w32bdf.h.
10908 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10909 Remove obsolete font support.
10910
10911 * w32font.h (struct w32font_info): Remove compat_w32_font.
10912 Add hfont member.
10913 (FONT_COMPAT): Remove obsolete macro.
10914
10915 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10916 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10917 (w32font_open_internal): Remove compat code. Set new hfont member.
10918 (Fx_select_font): Use new hfont member.
10919
10920 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10921 (uniscribe_encode_char): Use new hfont member.
10922
10923 * w32term.c (x_draw_glyph_string_foreground)
10924 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10925 (x_draw_glyph_string): Use metrics in w32font_info.
10926
109272008-06-26 Kenichi Handa <handa@m17n.org>
10928
10929 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10930
109312008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10932
10933 * unexnext.c:
10934 * m/ews4800.h:
10935 * m/hp9000s300.h:
10936 * m/ibm370aix.h:
10937 * m/mips-siemens.h:
10938 * m/ncr386.h:
10939 * m/next.h:
10940 * m/pmax.h:
10941 * m/powerpcle.h:
10942 * m/tandem-s2.h:
10943 * s/386bsd.h:
10944 * s/bsd386.h:
10945 * s/bsd4-1.h:
10946 * s/bsd4-2.h:
10947 * s/bsdos2-1.h:
10948 * s/bsdos2.h:
10949 * s/bsdos3.h:
10950 * s/bsdos4.h:
10951 * s/nextstep.h:
10952 * s/ultrix4-3.h:
10953 * s/usg5-0.h:
10954 * s/usg5-2-2.h:
10955 * s/usg5-2.h:
10956 * s/usg5-4-3.h:
10957 * s/ux4800.h:
10958 * s/uxpds.h:
10959 * s/uxpv.h: Remove support for obsolete systems.
10960 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10961 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10962 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10963 Remove, insert contents in s/aix4-2.h.
10964 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10965 * s/bsd4-3.h: Rename to ...
10966 * s/bsd-common.h: ... this.
10967 * data.c:
10968 * doc.c:
10969 * ecrt0.c:
10970 * emacs.c:
10971 * fileio.c:
10972 * floatfns.c:
10973 * keyboard.c:
10974 * mem-limits.h:
10975 * print.c:
10976 * process.c:
10977 * sysdep.c:
10978 * syssignal.h:
10979 * systty.h:
10980 * syswait.h:
10981 * term.c:
10982 * unexec.c:
10983 * unexelf.c:
10984 * unexhp9k800.c:
10985 * m/hp800.h:
10986 * m/ibmrs6000.h:
10987 * m/mips.h:
10988 * m/vax.h:
10989 * s/darwin.h:
10990 * s/freebsd.h:
10991 * s/gnu.h:
10992 * s/ms-w32.h:
10993 * s/msdos.h:
10994 * s/netbsd.h:
10995 * s/template.h: Remove references to obsolete variables.
10996
10997 * Makefile.in: Add dependencies for all unexec files.
10998 (admindir): Remove unused variable.
10999 (UNEXEC_SRC): Remove references.
11000
110012008-06-25 Chong Yidong <cyd@stupidchicken.com>
11002
11003 * xfns.c (x_default_font_parameter): If Xft is available, first
11004 try Monospace-12 for the default font.
11005
110062008-06-25 Jason Rumney <jasonr@gnu.org>
11007
11008 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11009
110102008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11011
11012 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11013
11014 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11015
110162008-06-25 Juanma Barranquero <lekktu@gmail.com>
11017
11018 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11019 <scroll-conservatively>: Fix typo in docstring.
11020
11021 * xselect.c (Fx_send_client_event): Doc fix.
11022
110232008-06-25 Kenichi Handa <handa@m17n.org>
11024
11025 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11026
11027 * font.c (font_parse_fcname): Remove unused variables.
11028 (font_sort_entites): Delete the arg SPEC. Caller changed.
11029 Fix for the case of ! best_only.
11030 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11031
11032 * lisp.h (Fstring_to_unibyte): EXFUN it.
11033
11034 * character.h (str_to_unibyte): Extern it.
11035
11036 * character.c (str_to_unibyte): New function.
11037
11038 * fns.c (Fstring_to_unibyte): New function.
11039 (syms_of_fns): Defsubr it.
11040
110412008-06-24 Kenichi Handa <handa@m17n.org>
11042
11043 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11044 DPI too.
11045 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11046
110472008-06-24 Andreas Schwab <schwab@suse.de>
11048
11049 * Makefile.in (${lispsource}loaddefs.el): Rename from
11050 ../lisp/loaddefs.el.
11051 (bootstrap-clean): Do what distclean does but don't remove
11052 Makefile.
11053 (distclean): Depend on bootstrap-clean and remove Makefile.
11054
110552008-06-24 Chong Yidong <cyd@stupidchicken.com>
11056
11057 * buffer.h (struct buffer): New member word_wrap.
11058
11059 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11060 word-wrap.
11061 (init_buffer_once): Initialize them.
11062
11063 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11064 line_wrap enum possessing three possible values.
11065
11066 * termopts.h: Replace truncate_partial_width_windows with
11067 Vtruncate_partial_width_windows.
11068
11069 * dispnew.c (direct_output_for_insert): Avoid direct output when
11070 inserting a space with word wrap on.
11071
11072 * indent.c (compute_motion): Obey integer values of
11073 truncate-partial-width-windows.
11074
11075 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11076 replacing truncate_partial_width_windows.
11077 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11078 truncate only if the window width is below that integer.
11079 (start_display, resize_mini_window, produce_stretch_glyph)
11080 (display_string, move_it_in_display_line_to): Use line_wrap.
11081 (back_to_previous_visible_line_start, reseat_1): Reset
11082 string_from_display_prop_p.
11083 (display_line): Extend default face to end of line when wrapping.
11084
110852008-06-24 Kim F. Storm <storm@cua.dk>
11086
11087 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11088 to wrap continued lines at word boundaries.
11089
110902008-06-24 Jason Rumney <jasonr@gnu.org>
11091
11092 * font.c (Ffont_face_attributes): Multiply pixel size before point
11093 conversion to avoid multiplying rounding error.
11094
110952008-06-23 Jason Rumney <jasonr@gnu.org>
11096
11097 * w32term.c (x_draw_glyph_string_background)
11098 (x_draw_glyph_string): Remove old bdf font code.
11099
11100 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11101
111022008-06-22 Kenichi Handa <handa@m17n.org>
11103
11104 * font.c (font_find_for_lface): Try the adstyle specified in
11105 the property of LFACE_FONT of LFACE (if any).
11106
111072008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11108 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11109
11110 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11111
111122008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11113
11114 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11115 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11116 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11117 (witness-emacs): Remove.
11118 (lisp, shortlisp): Move loaddefs.el earlier.
11119 (mostlyclean): Forget about witness-emacs.
11120
111212008-06-22 Glenn Morris <rgm@gnu.org>
11122
11123 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11124 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11125
111262008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11127
11128 * Makefile.in (PRECOMP): Remove.
11129 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11130 (witness-emacs): Run `compile-first'.
11131 (.el.elc): Use the new compile-onefile target.
11132
111332008-06-21 Kenichi Handa <handa@m17n.org>
11134
11135 * xftfont.c (xftfont_open): Handle QCembolden only when
11136 FC_EMBOLDEN is defined.
11137
111382008-06-21 Andreas Schwab <schwab@suse.de>
11139
11140 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11141 (.el.elc): Likewise.
11142
111432008-06-21 Miles Bader <miles@gnu.org>
11144
11145 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11146 build dir, not the lisp source dir.
11147
111482008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11149
11150 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11151 (bootstrapclean): Remove.
11152 (.el.elc): New rule.
11153 (PRECOMP): New var.
11154 (../lisp/subdirs.el): Remove.
11155 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11156 (witness-emacs): New target.
11157 (mostlyclean): Remove witness-emacs as well.
11158 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11159 Add witness-emacs dependency.
11160
111612008-06-20 Chong Yidong <cyd@stupidchicken.com>
11162
11163 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11164 defined by the font.
11165
111662008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11167
11168 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11169 (bootstrap-clean): New target that keeps TAGS around.
11170 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11171 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11172
111732008-06-20 Jason Rumney <jasonr@gnu.org>
11174
11175 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11176 Remove obsolete font code.
11177
11178 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11179 to determine language support.
11180
111812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11182
11183 * sysdep.c (cfsetspeed): New fun extracted from the code.
11184 (cfmakeraw): Move before first use.
11185
111862008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11187
11188 * sysdep.c (cfmakeraw): Provide fallback implementation.
11189 (serial_configure): Provide fallback implementation of cfsetspeed.
11190
111912008-06-20 Kenichi Handa <handa@m17n.org>
11192
11193 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11194 the pattern.
11195
11196 * fontset.c (fontset_from_font): Copy font_spec before changing
11197 the elements.
11198
11199 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11200
112012008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11202
11203 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11204 for explicit `font' parameters.
11205
11206 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11207
112082008-06-19 Kenichi Handa <handa@m17n.org>
11209
11210 * frame.c: Include <ctype.h>.
11211 (x_set_font_backend): Allow spacing characters in the X resource
11212 for FontBackend.
11213
112142008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11215
11216 * w32fns.c, xfns.c (Qfont_param): New var.
11217 (syms_of_w32fns): Initialize it.
11218 (x_default_font_parameter): Record explicit `font' into
11219 `font-parameter'.
11220
112212008-06-18 Kenichi Handa <handa@m17n.org>
11222
11223 * font.c (font_parse_xlfd): Fix previous change.
11224 (font_parse_fcname): Don't use :fc-unknown-spec.
11225 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11226 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11227 (font_add_log): Prepend the driver name to the resulting fonts.
11228
11229 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11230 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11231 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11232
11233 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11234 (QCembolden): New variables.
11235 (syms_of_xftfont): DEFSYM them.
11236 (xftfont_open): Call XftFontMatch. Don't trust the result of
11237 XftTextExtents8 if the pixel_size is less than 5.
11238
112392008-06-18 Andreas Schwab <schwab@suse.de>
11240
11241 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11242 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11243
112442008-06-18 Jason Rumney <jasonr@gnu.org>
11245
11246 * w32font.c (w32font_list, w32font_match): Add logging.
11247
11248 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11249
112502008-06-17 Chong Yidong <cyd@stupidchicken.com>
11251
11252 * font.c (font_parse_fcname): Store divider characters for
11253 unknown-spec list. For known key symbols, intern using correct
11254 symbol name.
11255
112562008-06-17 Kenichi Handa <handa@m17n.org>
11257
11258 * xfaces.c (realize_default_face): If the frame is not on window
11259 system, set the fontset of face to nil.
11260
112612008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11262
11263 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11264
112652008-06-16 Juanma Barranquero <lekktu@gmail.com>
11266
11267 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11268 (build_font_name_from_vector): Delete externs.
11269
11270 * xfaces.c (struct font_name): Don't declare.
11271
112722008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11273
11274 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11275
112762008-06-16 Chong Yidong <cyd@stupidchicken.com>
11277
11278 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11279
112802008-06-16 Juanma Barranquero <lekktu@gmail.com>
11281
11282 * font.c (Ffont_spec): Fix usage in docstring.
11283 (Ffont_face_attributes): Doc fix.
11284
112852008-06-16 Andreas Schwab <schwab@suse.de>
11286
11287 * font.c (Ffont_face_attributes): Fix definition.
11288
112892008-06-16 Jason Rumney <jasonr@gnu.org>
11290
11291 * font.h (font_style_symbolic_from_value): Remove.
11292
11293 * font.c (font_style_symbolic_from_value): Remove.
11294 (font_style_symbolic): Revert to pre 2008-06-13 version.
11295
11296 * w32font.c (w32_to_fc_weight): New function.
11297 (w32font_full_name, logfont_to_fcname): Use it.
11298
112992008-06-16 Kenichi Handa <handa@m17n.org>
11300
11301 * font.c (font_check_object): Delete it.
11302 (font_clear_cache): Check if a font-object is alive.
11303 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11304 font-object to nil.
11305 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11306 (font_at): Don't call font_check_object.
11307 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11308
113092008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11310
11311 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11312
113132008-06-16 Chong Yidong <cyd@stupidchicken.com>
11314
11315 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11316
113172008-06-15 Chong Yidong <cyd@stupidchicken.com>
11318
11319 * font.c (font_parse_fcname): Only one decimal point.
11320 (font_unparse_fcname): Handle data in family and foundry indices
11321 as symbols, not strings.
11322 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11323
11324 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11325
11326 * font.h (font_unparse_gtkname): Add prototype.
11327
113282008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11329
11330 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11331
113322008-06-15 Andreas Schwab <schwab@suse.de>
11333
11334 * font.c (font_update_drivers): Fix crash when no drivers match.
11335
113362008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11337
11338 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11339 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11340
113412008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11342
11343 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11344
113452008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11346
11347 * process.c (Fserial_process_configure, Fprocess_send_eof):
11348 Use EQ to compare Lisp_Objects.
11349
113502008-06-13 Jason Rumney <jasonr@gnu.org>
11351
11352 * w32fns.c (Fw32_select_font): Remove old font API function.
11353
11354 * w32font.c (logfont_to_fcname): New function.
11355 (Fx_select_font): New font dialog function compatible with
11356 GTK/fontconfig version.
11357
11358 * font.c (font_style_symbolic_from_value): New function.
11359 (font_style_symbolic): Use it.
11360
11361 * font.h (font_style_symbolic_from_value): Declare new function.
11362
113632008-06-13 Juanma Barranquero <lekktu@gmail.com>
11364
11365 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11366 <font-width-table>: Fix typos in docstrings.
11367
113682008-06-13 Daniel Engeler <engeler@gmail.com>
11369
11370 These changes add serial port access.
11371 * process.c: Add HAVE_SERIAL.
11372 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11373 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11374 (list_processes_1, select_wrapper, Fstop_process)
11375 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11376 (status_notify): Modify to handle serial processes.
11377 [HAVE_SERIAL] (Fserial_process_configure)
11378 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11379 New functions.
11380 * process.h (struct Lisp_Process): Add `type'.
11381 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11382 New functions.
11383 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11384 serial ports.
b71ac3dd 11385 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11386 * w32.h: Add FILE_SERIAL.
11387 (struct _child_process): Add ovl_read, ovl_write.
11388
113892008-06-13 Kenichi Handa <handa@m17n.org>
11390
11391 * dispextern.h (enum lface_attribute_index): New member
11392 LFACE_FOUNDRY_INDEX.
11393
11394 * font.c (font_score): Delete arg alternate_families. Check only
11395 weight, slant, width, and size. Ignore the difference of alias
11396 style symbols.
11397 (font_sort_entites): Adjust for the above change. Reflect the
11398 order of font-driver to scores.
11399 (font_list_entities): Don't check alternate_familes here.
11400 (font_clear_prop): Handle foundry.
11401 (font_update_lface): Don't parse "foundry-family" form here.
11402 Handle FONT_FOUNDRY_INDEX.
11403 (font_find_for_lface): Likewise. Handle alternate families here.
11404 If registry is nil, try iso8859-1 and ascii-0.
11405 (font_open_for_lface): Pay attention to size in ENTITY.
11406 (font_open_by_name): Simplify by calling font_load_for_lface.
11407 (free_font_driver_list): Delete it.
11408 (font_update_drivers): Preserve the order of backends.
11409 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11410 of font_score and font_sort_entites.
11411 (font_update_sort_order): Likewise.
11412
11413 * xfaces.c (LFACE_FOUNDRY): New macro.
11414 (check_lface_attrs): Check foundry.
11415 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11416 (merge_face_vectors): Check foundry.
11417 (merge_face_ref): Likewise.
11418 (Finternal_set_lisp_face_attribute): Likewise.
11419 (x_update_menu_appearance): Likewise.
11420 (Finternal_get_lisp_face_attribute): Likewise.
11421 (lface_hash): Likewise.
11422 (lface_same_font_attributes_p): Likewise.
11423 (x_supports_face_attributes_p): Likewise.
11424 (tty_supports_face_attributes_p): Likewise.
11425 (Finternal_set_alternative_font_family_alist): Intern strings.
11426 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11427 (realize_default_face): Set LFACE_FOUNDRY (lface).
11428
11429 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11430 font-driver at first.
11431
11432 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11433
114342008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11435
11436 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11437
114382008-06-12 Jim Meyering <meyering@redhat.com>
11439
11440 Make unexec_free handle NULL the same way free does.
11441 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11442
114432008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11444
11445 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11446 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11447 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11448 (WEAK_ALIAS): Simplify.
11449 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11450 when searching a unibyte buffer.
11451
114522008-06-12 Chong Yidong <cyd@stupidchicken.com>
11453
11454 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11455
114562008-06-12 Juanma Barranquero <lekktu@gmail.com>
11457
11458 * w32font.c: Include ctype.h.
11459
114602008-06-11 Jason Rumney <jasonr@gnu.org>
11461
11462 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11463 misreported as space.
11464 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11465 as aliases for registry iso10646-1.
11466
114672008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11468
11469 * buffer.c (clone_per_buffer_values): Skip `name'.
11470
114712008-06-11 Chong Yidong <cyd@stupidchicken.com>
11472
11473 * font.c (font_parse_fcname): Fix last change; accept decimal
11474 points in font size.
11475
114762008-06-10 Jason Rumney <jasonr@gnu.org>
11477
11478 * w32uniscribe.c (add_opentype_font_name_to_list):
11479 Skip non unicode fonts.
11480
114812008-06-10 Chong Yidong <cyd@stupidchicken.com>
11482
11483 * xfns.c (Fx_font_dialog): New function.
11484
11485 * gtkutil.c (xg_dialog_response_cb): Rename from
11486 xg_file_response_callback.
11487 (pop_down_dialog): Rename from pop_down_file_dialog.
11488 (xg_get_file_name): Callers changed.
11489 (xg_get_font_name): New function.
11490
11491 * gtkutil.h (xg_get_font_name): Insert prototype.
11492
114932008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11494
11495 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11496 x_underline_minimum_display_offset.
11497 (syms_of_xdisp): Declare it here rather than in xterm.c.
11498 * dispextern.h (underline_minimum_offset): Declare it.
11499 * w32term.c (x_draw_glyph_string): Use it.
11500 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11501 (syms_of_xterm): Don't declare it any more.
11502 (x_draw_glyph_string): Adjust to the new name.
11503
8719abec 115042008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11505
11506 * xterm.c (x_underline_minimum_display_offset): New var.
11507 (x_draw_glyph_string): Use it.
11508 (syms_of_xterm): Declare it.
11509
115102008-06-10 Chong Yidong <cyd@stupidchicken.com>
11511
11512 * font.c (font_parse_fcname): Accept GTK-style font names too.
11513
115142008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11515
11516 * dired.c (file_name_completion): Don't return t if the match is exact
11517 but with different capitalization.
11518 * minibuf.c (Ftry_completion): Simplify.
11519
11520 * window.c (Vwindow_point_insertion_type): New var.
11521 (set_window_buffer): Use it.
11522 (syms_of_window): Init and export it to Lisp.
11523
115242008-06-10 Kenichi Handa <handa@m17n.org>
11525
11526 * font.h (font_intern_prop): Prototype adjusted.
11527
11528 * font.c (font_intern_prop): New arg force_symbol.
11529 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11530 Adjust for the change of font_intern_prop.
11531
11532 * ftfont.c (ftfont_pattern_entity):
11533 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11534 (w32_registry):
11535 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11536 the change of font_intern_prop.
11537
115382008-06-09 Juanma Barranquero <lekktu@gmail.com>
11539
11540 * w32menu.c (digest_single_submenu): Declare extern.
11541
115422008-06-09 Jason Rumney <jasonr@gnu.org>
11543
11544 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11545
11546 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11547 (parse_single_submenu): Remove.
11548 (digest_single_submenu): Remove.
11549 (syms_of_w32menu): Don't initialise variables that have moved
11550 to menu.c.
11551 (set_frame_menubar): Sync with version in xmenu.c.
11552 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11553
11554 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11555 Make static again.
11556
115572008-06-09 Jason Rumney <jasonr@gnu.org>
11558
11559 Changes to w32 files related to the move of common menu code
11560 to menu.c on 2008-06-08 by Chong Yidong.
11561
11562 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11563 defs to w32gui.h.
11564 (single_keymap_panes, push_menu_item, push_menu_pane):
11565 Make globally visible.
11566
11567 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11568 (local_free, malloc_widget_value, free_widget_value)
11569 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11570 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11571 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11572 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11573 (menu_items, menu_items_allocated, menu_items_used)
11574 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11575 (init_menu_items, finish_menu_items, discard_menu_items)
11576 (grow_menu_items, push_submenu_start, push_submenu_end)
11577 (push_left_right_boundary, push_menu_pane, push_menu_item)
11578 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11579 (free_menubar_widget_tree_value, parse_single_submenu)
11580 (update_submenu_strings): Remove functions.
11581 (xmalloc_widget_value): Remove and declare extern.
11582
11583 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11584 (OBJ1): Build it.
11585
11586 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11587 (local_heap, local_alloc, local_free, malloc_widget_value)
11588 (free_widget_value): Define here.
11589
115902008-06-09 Kenichi Handa <handa@m17n.org>
11591
11592 * font.h (Qascii_0): Extern it.
11593
11594 * font.c (Qascii_0): New variable.
11595 (syms_of_font): DEFSYM it.
11596 (font_open_by_name): If the registry "iso8859-1" fails, try also
11597 "ascii-0".
11598
11599 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11600
116012008-06-08 Kenichi Handa <handa@m17n.org>
11602
11603 * .gdbinit (xfont): New command.
11604
116052008-06-08 Andreas Schwab <schwab@suse.de>
11606
11607 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11608 * Makefile.in (menu.o): Update dependencies.
11609
11610 * Makefile.in (obj): Always add menu.o.
11611 * emacs.c (main): Always call syms_of_menu.
11612 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11613
116142008-06-08 Chong Yidong <cyd@stupidchicken.com>
11615
11616 * Makefile.in: Compile menu.c.
11617
11618 * lisp.h: Declare syms_of_menu.
11619
11620 * emacs.c (main): Call syms_of_menu.
11621
11622 * keyboard.h: Relocate platform-independent menu definitions from
11623 xmenu.c.
11624
11625 * menu.c: New file. Relocate platform-independent menu
11626 definitions from xmenu.c. Suggested by Adrian Robert.
11627
11628 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11629 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11630 (menu_items_used, menu_items_n_panes)
11631 (menu_items_submenu_depth): Move to keyboard.h.
11632 (init_menu_items, finish_menu_items, unuse_menu_items)
11633 (discard_menu_items, restore_menu_items, save_menu_items)
11634 (grow_menu_items, push_submenu_start, push_submenu_end)
11635 (push_left_right_boundary, push_menu_pane, push_menu_item)
11636 (keymap_panes, single_keymap_panes, single_menu_item)
11637 (list_of_panes, list_of_items, find_and_call_menu_selection)
11638 (xmalloc_widget_value, free_menubar_widget_value_tree)
11639 (parse_single_submenu, digest_single_submenu)
11640 (update_submenu_strings): Move to menu.c.
11641
116422008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11643
11644 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11645
116462008-06-06 Miles Bader <miles@gnu.org>
11647
11648 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11649 face, not frame default.
11650
116512008-06-05 Martin Rudalics <rudalics@gmx.at>
11652
11653 * window.c (pop_up_windows, pop_up_frames)
11654 (display_buffer_reuse_frames, Vpop_up_frame_function)
11655 (Vdisplay_buffer_function, Veven_window_heights)
11656 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11657 (Vspecial_display_function, Vsame_window_buffer_names)
11658 (Vsame_window_regexps, split_height_threshold)
11659 (Vsplit_window_preferred_function): Move those vars to window.el.
11660 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11661 (Fdisplay_buffer): Move those functions to window.el.
11662 (syms_of_window): Remove corresponding declarations.
11663 (display_buffer): New function.
11664 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11665 * dispnew.c (Flast_nonminibuf_frame): New function.
11666 * buffer.c (Fpop_to_buffer): Move to window.el.
11667
116682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11669
11670 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11671
116722008-06-05 Kenichi Handa <handa@m17n.org>
11673
11674 * coding.c (detect_coding): Fix previous change.
11675 (detect_coding_system): Likewise.
11676
116772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11678
11679 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11680
11681 * keymap.c (Vminibuffer_local_filename_must_match_map):
11682 Rename from Vminibuffer_local_must_match_filename_map.
11683 (syms_of_keymap):
11684 * minibuf.c (Fcompleting_read): Adjust accordingly.
11685 * commands.h: Rename declaration as well.
11686
116872008-06-05 Kenichi Handa <handa@m17n.org>
11688
11689 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11690 family name.
11691 (Ffont_put): Likewise.
11692
11693 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11694 current font-spec.
11695
11696 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11697 is unspecified.
11698
11699 * xfaces.c (realize_x_face): If the font-related face attributes
11700 are the same as those of default face, realize a new fontset from
11701 default->fontset.
11702 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11703
117042008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11705
11706 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11707 (move_it_in_display_line): New wrapper.
11708
11709 * window.c (window_scroll_pixel_based_preserve_x)
11710 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11711 (window_scroll_pixel_based, window_scroll_line_based):
11712 Use them to preserve column positions.
11713 (syms_of_window): Initialize them.
11714
11715 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11716 (HPOS . VPOS) pair.
11717
11718 * dispextern.h (move_it_in_display_line): Declare.
11719
117202008-06-05 Juanma Barranquero <lekktu@gmail.com>
11721
11722 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11723 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11724 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11725
117262008-06-04 Juanma Barranquero <lekktu@gmail.com>
11727
11728 * window.c (Fset_window_parameter): Doc fix.
11729 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11730
117312008-06-04 Joakim Verona <joakim@verona.se>
11732
11733 * window.h (struct window): Add new member window_parameters.
11734
11735 * window.c (Fwindow_parameters, Fwindow_parameter)
11736 (Fset_window_parameter): New defuns.
11737 (syms_of_window): Defsubr the new defuns.
11738 (make_window): Initialize window_parameters to nil.
11739
117402008-06-04 John Paul Wallington <jpw@pobox.com>
11741
11742 * eval.c (Fdefmacro): Doc fix.
11743
117442008-06-04 Kenichi Handa <handa@m17n.org>
11745
11746 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11747 Be sure to call setup_coding_system when we find a proper coding system.
11748 (detect_coding_system): Fix handling of coding->head_ascii.
11749
117502008-06-03 Andreas Schwab <schwab@suse.de>
11751
11752 * font.c (font_prop_validate_spacing): Fix last change.
11753
117542008-06-03 Kenichi Handa <handa@m17n.org>
11755
11756 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11757 (font_parse_fcname): Fix handling of unknown key.
11758
11759 * xfont.c (xfont_list): Try an alias.
11760
11761 * charset.c (char_charset): Return NULL if the arg charset_list is
11762 specified and C doesn't belong to any of them.
11763
117642008-06-02 Chip Coldwell <coldwell@redhat.com>
11765
11766 * font.c (font_pixel_size): Don't take cdr of an integer.
11767
117682008-06-02 Jim Meyering <meyering@redhat.com>
11769
11770 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11771 * alloc.c (xfree): Return right away for a NULL arg.
11772 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11773 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11774 * mac.c (create_apple_event_from_event_ref): Likewise.
11775 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11776 Likewise.
11777 * doprnt.c (doprnt1): Likewise.
11778 * frame.c (frame): Likewise.
11779 * keyboard.c (wipe_kboard): Likewise.
11780 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11781 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11782 * term.c (tty_default_color_capabilities, maybe_fatal)
11783 (delete_tty): Likewise.
11784 * w16select.c (string): Likewise.
11785 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11786 * w32bdf.c (w32_free_bdf_font): Likewise.
11787 * w32fns.c (w32_unload_font): Likewise.
11788 * w32font.c (w32font_close): Likewise.
11789 * window.c (size_window): Likewise.
11790 * xselect.c (receive_incremental_selection): Likewise.
11791 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11792 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11793 * w32.c (stat): Likewise.
11794
11795 Remove useless if-before-free tests.
11796 * editfns.c (Fset_time_zone_rule): Likewise.
11797 * lread.c (nosuffix): Likewise.
11798 * ralloc.c (get_bloc): Likewise.
11799 * regex.c (reg_free): Likewise.
11800 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11801 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11802 * xsmfns.c (smc_save_yourself_CB): Likewise.
11803
118042008-06-02 Kenichi Handa <handa@m17n.org>
11805
11806 * font.c (font_find_for_lface): Handle float font size.
11807 (font_open_for_lface): Likewise.
11808
11809 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11810 comparing the properties.
11811
118122008-06-01 Jason Rumney <jasonr@gnu.org>
11813
11814 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11815 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11816 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11817 Don't add empty script list.
11818 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11819
118202008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11821
11822 * Makefile.in (dot, dotdot): Remove, update users.
11823 ".." has been used elsewhere in the file for a long time.
11824 (LIBXT_STATIC): Remove conditional based on unused variable.
11825
118262008-06-01 Miles Bader <miles@gnu.org>
11827
11828 * xfaces.c (Vface_remapping_alist): New variable.
11829 (syms_of_xfaces): Initialize it.
11830 (enum named_merge_point_kind): New type.
11831 (struct named_merge_point): Add `named_merge_point_kind' field.
11832 (push_named_merge_point): Make cycle detection respect different
11833 named-merge-point kinds.
11834 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11835 Remove face-name alias resolution.
11836 (lface_from_face_name): New definition using
11837 `lface_from_face_name_no_resolve'.
11838 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11839 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11840 (get_lface_attributes): New definition that layers face-remapping on
11841 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11842 (lookup_basic_face): New function.
11843 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11844 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11845 `get_lface_attributes'.
11846 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11847 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11848 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11849
11850 * xdisp.c (init_iterator): Pass base_face_id through
11851 `lookup_basic_face' when we actually use it as a face-id.
11852 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11853 DEFAULT_FACE_ID.
11854
11855 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11856 lookup the initial face-id.
11857
11858 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11859
118602008-06-01 Juanma Barranquero <lekktu@gmail.com>
11861
11862 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11863 (Fremove_text_properties): Fix typos in docstrings.
11864
118652008-05-31 Kenichi Handa <handa@m17n.org>
11866
11867 * font.c (font_list_entities): Fix the car part of data to be
11868 stored in the cache.
11869
11870 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11871
118722008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11873
11874 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11875 Add a `test' argument so another predicate than `equal' can be used.
11876 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11877 (map_char_table): Remove unused vars `c' and `i'.
11878 * lisp.h (Foptimize_char_table): Adjust declaration.
11879 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11880
118812008-05-30 Kenichi Handa <handa@m17n.org>
11882
11883 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11884 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11885 defined.
11886
118872008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11888
11889 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11890 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11891 frame-local settings for the same variable.
11892
118932008-05-30 Kenichi Handa <handa@m17n.org>
11894
11895 * fontset.c (Ffont_info): Move to font.c.
11896 (syms_of_fontset): Delete defsubr of Sfont_info.
11897
11898 * font.c (font_style_to_value, font_score): Delete casting of the
11899 args to xstcasecmp.
11900 (register_font_driver): Increment num_font_drivers only when
11901 registering the driver globally.
11902 (Ffont_info): Move from fontset.c. Handle a font object too.
11903 (syms_of_font): Defsubr Sfont_info.
11904
119052008-05-29 Kenichi Handa <handa@m17n.org>
11906
11907 * coding.h (enum define_coding_utf8_arg_index): New enum.
11908 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11909 coding_attr_utf_bom.
11910 (enum utf_bom_type): Rename from utf_16_bom_type.
11911 (struct utf_16_spec): Adjust for the above change.
11912 (struct coding_system): Add utf_8_bom in `spec' union.
11913
11914 * coding.c (CODING_UTF_8_BOM): New macro.
11915 (enum coding_category): Delete coding_category_utf_8, add
11916 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11917 coding_category_utf_8_sig.
11918 (CATEGORY_MASK_UTF_8): Delete it.
11919 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11920 (CATEGORY_MASK_UTF_8_SIG): New macros.
11921 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11922 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11923 CATEGORY_MASK_UTF_8_SIG.
11924 (CATEGORY_MASK_UTF_8): New macro.
11925 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11926 (detect_coding_utf_8): Check BOM.
11927 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11928 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11929 (encode_coding_utf_16): Likewise.
11930 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11931 (detect_coding, detect_coding_system): Handle utf-8-auto.
11932 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11933 (syms_of_coding): Fix setting up of Vcoding_category_table.
11934
119352008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11936
11937 * process.c (Faccept_process_output): If `millisec' is non-nil,
11938 `seconds' default to 0.
11939 (wait_reading_process_output): Also return non-nil if we read output
11940 from a non-running process.
11941
119422008-05-29 Jason Rumney <jasonr@gnu.org>
11943
11944 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11945 `raster' specified.
11946 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11947 in the uniscribe backend, but disallow any font that has no
11948 unicode subrange support.
11949
119502008-05-29 Juanma Barranquero <lekktu@gmail.com>
11951
11952 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11953 Fix typos in docstrings.
11954
119552008-05-29 Kenichi Handa <handa@m17n.org>
11956
11957 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11958 (Fx_family_fonts): Set frame correctly.
11959
119602008-05-28 Jason Rumney <jasonr@gnu.org>
11961
11962 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11963
119642008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11965
11966 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11967 calling build_annotations.
11968
119692008-05-28 Juanma Barranquero <lekktu@gmail.com>
11970
11971 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11972 (Fencode_coding_string):
11973 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11974 <latin-extra-code-table>: Fix typos in docstrings.
11975 (syms_of_coding) <coding-system-alist>: Doc fix.
11976 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11977
119782008-05-28 Kenichi Handa <handa@m17n.org>
11979
11980 * fontset.c (Ffont_info): Don't call font_close_object.
11981
11982 * font.c (font_parse_family_registry): Use Ffont_put to validate
11983 foundry and family.
11984 (font_delete_unmatched): Don't check spacing.
11985 (font_list_entities): Add spacing to the spec to list fonts.
11986
11987 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11988 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11989
11990 * coding.c (encode_coding_raw_text): Fix previous change.
11991 (encode_coding_object): When the dst_object is a buffer and is
11992 different from src_object, move gap to PT.
11993
119942008-05-27 Chong Yidong <cyd@stupidchicken.com>
11995
11996 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11997
119982008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11999
12000 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12001 all branches. Compute it differently.
12002
12003 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12004
120052008-05-27 Juanma Barranquero <lekktu@gmail.com>
12006
12007 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12008 into "else if () ... else ...".
12009
120102008-05-27 Jason Rumney <jasonr@gnu.org>
12011
12012 * w32font.c (w32font_open_internal): Determine if glyph indices
12013 are likely to work here.
12014
120152008-05-27 Chong Yidong <cyd@stupidchicken.com>
12016
12017 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12018 draw overlap glyphs with appropriate highlighting.
12019
120202008-05-27 Kenichi Handa <handa@m17n.org>
12021
12022 * xfont.c (xfont_open): Fix calculation of font->average_width.
12023
120242008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * casefiddle.c (casify_object): Try to guess better whether the
12027 argument is a byte or a char.
12028
120292008-05-26 Andreas Schwab <schwab@suse.de>
12030
12031 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12032 Always send multiples of format size.
12033
12034 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12035
120362008-05-26 Jason Rumney <jasonr@gnu.org>
12037
12038 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12039 (compute_metrics): Don't set failure if we just cleared the cache.
12040 (w32_weight_table): Remove unused variable.
12041 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12042 backwards compatibility.
12043
120442008-05-25 Kenichi Handa <handa@m17n.org>
12045
12046 * w32term.c (x_draw_glyph_string):
12047 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12048
12049 * xfaces.c: Delete unused function prototypes.
12050 (xstrlwr, font_frame): Delete them.
12051 (clear_face_cache): Delete unused variable.
12052
12053 * xftfont.c (xftfont_open): Delete unused variable.
12054 If underline_thickness is not 1, adjust underline_position.
12055
12056 * ftxfont.c (ftxfont_open): Delete unused variable.
12057
12058 * fontset.c (face_for_char): Optimize for the case of no charset
12059 property.
12060
12061 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12062 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12063 (otf_open, font_otf_capability, generate_otf_features)
12064 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12065 Comment out by surrounding "#if 0" and "#endif" for the moment.
12066 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12067 (syms_of_font): Codes for accessing above commented out.
12068
120692008-05-24 Eli Zaretskii <eliz@gnu.org>
12070
12071 * w32proc.c: Include dispextern.h.
12072
12073 * w32.c: Include dispextern.h.
12074
120752008-05-23 Juanma Barranquero <lekktu@gmail.com>
12076
12077 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12078 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12079 Fix typos in docstrings.
12080
120812008-05-23 Jason Rumney <jasonr@gnu.org>
12082
12083 * xsmfns.c: Remove includes that are already included by config.h.
12084
120852008-05-23 Kenichi Handa <handa@m17n.org>
12086
12087 * charset.c (Qemacs, charset_emacs): New variables.
12088 (char_charset): Fix for non-Unicode characters.
12089 (syms_of_charset): Define charset_emacs.
12090
12091 * w32term.c (x_draw_glyph_string): Be sure to update
12092 s->underline_thickness and s->underline_position. Be sure to draw
12093 underline within the current line area.
12094
12095 * xterm.c (x_draw_glyph_string): Be sure to update
12096 s->underline_thickness and s->underline_position. Be sure to draw
12097 underline within the current line area.
12098
12099 * fontset.c: Delete unused variables and add casting for char *
12100 throughout the file.
12101 (fontset_font): Try the fallback fonts of the current fontset
12102 before consulting the default fontset.
12103
12104 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12105
12106 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12107
121082008-05-22 Jason Rumney <jasonr@gnu.org>
12109
12110 * font.c: Don't include strings.h.
12111
12112 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12113
12114 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12115 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12116 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12117 to call xstrcasecmp.
12118
12119 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12120
12121 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12122
12123 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12124
12125 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12126
121272008-05-22 Kenichi Handa <handa@m17n.org>
12128
12129 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12130
12131 * font.c (font_prop_validate_style): Adjust for the format
12132 change of font_style_table.
12133
12134 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12135 two args.
12136
12137 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12138 two args.
12139
121402008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12141
12142 * minibuf.c (keys_of_minibuf): Delete.
12143 * lisp.h (keys_of_minibuf): Delete.
12144 * emacs.c (main): Don't call keys_of_minibuf.
12145
121462008-05-22 Kenichi Handa <handa@m17n.org>
12147
12148 * ftfont.c (ftfont_resolve_generic_family): Rename from
12149 ftfont_list_generic_family. Return a single family for each
12150 generic family.
12151 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12152 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12153 Call font_add_log.
12154 (ftfont_match): Call font_add_log.
12155
12156 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12157 (FONT_DEBUG): Define it.
12158 (font_add_log): Extern it.
12159 (font_assert): Rename from xassert.
12160
12161 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12162 (xfont_list_family): Call font_add_log.
12163 (xfont_match): Likewise.
12164 (memq_no_quit): Delete.
12165
12166 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12167 call of Ffont_xlfd_name.
12168
12169 * xfaces.c (struct table_entry, slant_table, weight_table)
12170 (swidth_table): Move to font.c.
12171
12172 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12173 xassert are changed to font_assert. Delete many unused variables.
12174 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12175 New variables.
12176 (struct table_entry): Move from xfaces.c and modified.
12177 (weight_table, slant_table, width_table): Move from xfaces.c and
12178 contents adjusted for the change of struct table_entry.
12179 (font_style_to_value, font_style_symbolic): Adjust for the
12180 format change of font_style_table.
12181 (font_parse_family_registry): Don't overwrite existing foundry and
12182 family of font_spec.
12183 (font_score): Fix calculation of diff for sizes.
12184 (font_sort_entites): Call font_add_log.
12185 (font_delete_unmatched): Return a newly created list.
12186 (font_list_entities): Fix previous change. Call font_add_log.
12187 (font_matching_entity, font_open_entity, font_close_entity):
12188 Call font_add_log.
12189 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12190 (Finternal_set_font_style_table): Delete.
12191 (BUILD_STYLE_TABLE): New macro.
12192 (build_style_table): New function.
12193 (Vfont_log, font_log_env_checked): New variables.
12194 (font_add_log): New function.
12195 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12196 Declare Lisp variables "font-weight-table", "font-slant-table",
12197 "font-width-table", and "font-log". Initialize font_style_table.
12198
121992008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12200
12201 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12202
122032008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12204 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12205
12206 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12207 (Vframe_alpha_lower_limit): New variable.
12208 (x_set_alpha): New function.
12209
12210 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12211
12212 * xfns.c (x-create-frame, Qalpha):
12213 Initialize the frame parameter `alpha'.
12214 * xterm.c (OPAQUE, OPACITY): New.
12215 (x_set_frame_alpha): New function.
12216 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12217
12218 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12219 * w32fns.c (w32_frame_parm_handlers): Likewise.
12220
122212008-05-20 Jason Rumney <jasonr@gnu.org>
12222
12223 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12224 truetype fonts to opentype list.
12225
122262008-05-20 Juanma Barranquero <lekktu@gmail.com>
12227
12228 * fontset.c (Ffontset_info): Doc fix.
12229 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12230 <ignore-relative-composition>: Fix typos in docstrings.
12231
12232 * font.c (syms-of-font) <font-encoding-alist>:
12233 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12234 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12235 (Ffont_otf_alternates): Doc fixes.
12236
122372008-05-20 Kenichi Handa <handa@m17n.org>
12238
12239 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12240 font.h through out the file.
12241 (FONT_DRIVERS): Rename from FONTOBJ.
12242 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12243 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12244
12245 * emacs.c (main): Call syms_of_font unconditionally.
12246
12247 * font.h (find_font_encoding): Extern it.
12248
12249 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12250 fontset.c.
194d44e7 12251 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12252 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12253 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12254 only when HAVE_WINDOW_SYSTEM is defined.
12255 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12256 when HAVE_WINDOW_SYSTEM is defined.
12257
12258 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12259 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12260
12261 * xfaces.c: Include font.h unconditionally.
12262 (merge_face_ref, merge_face_vectors)
12263 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12264
122652008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12266
12267 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12268 indirect_variable.
12269 * eval.c (lisp_indirect_variable): New fun.
12270 (Fuser_variable_p): Use it.
12271
122722008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12273
12274 * lisp.h (indirect_variable):
12275 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12276 Use Lisp_Symbol pointers rather than Lisp_Object.
12277 Adjust callers.
12278 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12279 To this end, change calling-convention.
12280
12281 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12282 if some non-hidden buffers are selected by string&pred.
12283
122842008-05-19 Chong Yidong <cyd@stupidchicken.com>
12285
12286 * process.c (wait_reading_process_output): Always check status
12287 when in batch mode.
12288
122892008-05-19 Kenichi Handa <handa@m17n.org>
12290
12291 * font.c (font_list_entities): Fix handling of cache.
12292 (font_matching_entity): Likewise.
12293
12294 * ftfont.c (cs_iso8859_1): Delete.
12295 (ft_face_cache): New variable.
12296 (struct ftfont_info): New member fc_charset_idx.
12297 (ftfont_build_basic_charsets): Delete.
12298 (fc_charset_table): New variable.
12299 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12300 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12301 Callers changed.
12302 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12303 (ftfont_spec_pattern): New argument fc_charset_idx.
12304 Check registry more rigidly. Change callers.
12305 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12306 change of :font-entity property of the font.
12307
12308 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12309 property of the font.
12310
123112008-05-18 Juanma Barranquero <lekktu@gmail.com>
12312
12313 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12314 (Funencodable_char_position, Fcheck_coding_systems_region)
12315 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12316 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12317 (Ffind_operation_coding_system, Fset_coding_system_priority)
12318 (Fcoding_system_eol_type): Doc fixes.
12319
123202008-05-17 Glenn Morris <rgm@gnu.org>
12321
12322 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12323
123242008-05-16 Eli Zaretskii <eliz@gnu.org>
12325
12326 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12327 and st_gid.
12328
12329 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12330 HAVE_WINDOW_SYSTEM is not defined.
12331
12332 * xfaces.c (merge_face_ref, merge_face_vectors)
12333 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12334 HAVE_WINDOW_SYSTEM is defined.
12335 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12336
123372008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12338
12339 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12340
123412008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12342
12343 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12344
123452008-05-15 Kenichi Handa <handa@m17n.org>
12346
12347 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12348 preference.
12349
123502008-05-15 Glenn Morris <rgm@gnu.org>
12351
12352 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12353
123542008-05-15 Chong Yidong <cyd@stupidchicken.com>
12355
12356 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12357 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12358
12359 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12360
123612008-05-15 Kenichi Handa <handa@m17n.org>
12362
12363 * ftfont.c (ftfont_list): Downcase family name to check generic
12364 families.
12365
12366 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12367 font-spec for QCfont value.
12368
12369 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12370 buffer. Check the return value of it.
12371
123722008-05-14 Jason Rumney <jasonr@gnu.org>
12373
12374 * w32term.c (w32_get_glyph_overhangs): Remove.
12375 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12376
123772008-05-14 Kenichi Handa <handa@m17n.org>
12378
12379 * font.c (font_prop_validate): Make nil a valid value.
12380 (font_clear_cache): Check if the cached vector of entities is nil
12381 or not.
12382
123832008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12384
12385 * emacs.c (main_thread): Conditionalize on
12386 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12387 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12388
12389 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12390 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12391 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12392
123932008-05-14 Kenichi Handa <handa@m17n.org>
12394
12395 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12396 has no corresponding coding system.
12397
123982008-05-14 Jason Rumney <jasonr@gnu.org>
12399
12400 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12401
12402 * w32font.h (w32font_open_internal): Update declaration.
12403
12404 * w32font.c (w32font_open_internal): Change last argument from
12405 w32font_info struct to font object. Fill in font object from
12406 font_entity. Get Outline metrics if possible. Use them to
12407 calculate underline position and thickness. Use xlfd name as name
12408 property. Don't set codepage.
12409 (w32font_open): Pass font_object to w32font_open_internal. Don't
12410 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12411 (w32font_draw): Use s->font.
12412 (clear_cached_metrics): Don't clear non-existent blocks.
12413
12414 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12415 font was not found.
12416 (x_draw_glyph_string): Use underline position and thickness from font.
12417
12418 * w32uniscribe.c (uniscribe_open): Pass font_object to
12419 w32font_open_internal.
12420
124212008-05-14 Kenichi Handa <handa@m17n.org>
12422
12423 These changes are to delete all legacy font-handling codes, and
12424 make Emacs use only font-backends.
12425
12426 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12427 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12428
12429 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12430
12431 * charset.h (Vcharset_non_preferred_head)
12432 (Vcurrent_iso639_language): Extern them.
12433
12434 * charset.c (Vcharset_non_preferred_head): New variable.
12435 (Vcurrent_iso639_language): New variable.
12436 (syms_of_charset): Declare it as a Lisp variable.
12437 (char_charset): Don't check non preferred charsets. As a last
12438 resort, return charset_unicode.
12439 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12440
12441 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12442 conditionals. Don't check enable_font_backend. Delete all codes
12443 used only when USE_FONT_BACKEND is not defined.
12444
12445 * dispextern.h (struct glyph_string): Change type of `font' to
12446 `struct font *'.
12447 (struct glyph_string): New member underline_position and
12448 underline_thickness.
12449 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12450 (struct face): Change type of `font' to `struct font *'. Remove
12451 members `font_name', `font_info_id'.
12452 (per_char_metric, encode_char): Delete externs.
12453 (calc_pixel_width_or_height): Adjust the prototype.
12454
12455 * emacs.c (enable_font_backend): Delete extern.
12456 (main): Don't set enable_font_backend. Don't check the command
12457 line argument "-disable-font-backend".
12458
12459 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12460 (enum font_property_index): New members FONT_DPI_INDEX,
12461 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12462 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12463 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12464 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12465 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12466 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12467 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12468 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12469 (struct font_spec, struct font_entity): New structs.
12470 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12471 (struct font): Many members from old "struct font_info" moved to
12472 here. Members font and entity deleted.
12473 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12474 the new font-related objects.
12475 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12476 (CHECK_FONT_GET_OBJECT): Likewise.
12477 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12478 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12479 (struct font_driver): New members case_sensitive anc check. Type
12480 of the member list and open changed.
12481 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12482 (font_symbolic_width, font_find_object, font_get_spec)
12483 (font_set_lface_from_name): Delete extern.
12484 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12485
12486 * font.c: Include <strings.h>.
12487 (enable_font_backend): Delete it.
12488 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12489 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12490 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12491 (null_string): Delete it.
12492 (null_vector): Make it static.
12493 (font_family_alist): Delete it.
12494 (Qnormal): Extern it.
12495 (QCextra, QClanguage): Delete it.
12496 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12497 (font_make_spec, font_make_entity, font_make_object)
12498 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12499 the string. Callers changed.
12500 (font_pixel_size): Adjusted for the format change of font-related
12501 objects.
12502 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12503 (font_style_to_value, font_style_symbolic): New function.
12504 (build_font_family_alist): Delete it.
12505 (font_registry_charsets): Use Fassoc_string instead of
12506 assq_no_quit.
12507 (font_prop_validate_symbol): Don't return null_string.
12508 (font_prop_validate_style): Adjusted for the change of
12509 style-related values in a font vector.
12510 (font_property_table): Delete entries for QClanguage and
12511 QCantialias, add entries for QCavgwidth.
12512 (get_font_prop_index): Delete the 2nd argument FROM.
12513 (font_prop_validate): Arguments changed.
12514 (font_put_extra): Adjusted for the change of font-related objects.
12515 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12516 (font_parse_fcname, font_unparse_fcname)
12517 (font_prepare_composition): Likewise.
12518 (font_parse_family_registry): Renamed from font_merge_old_spec.
12519 (otf_open): Delete the 1st arg entity.
12520 (font_otf_capability): Adjusted for the above change.
12521 (font_score): New arg alternate_families. Adjusted for the change
12522 of font-related objects.
12523 (font_sort_entites): New arg best_only.
12524 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12525 Delete them.
12526 (font_match_p): Check alternate families.
12527 (font_find_object): Delete it.
12528 (font_check_object): New function.
12529 (font_clear_cache): Adjusted for the change of font-related objects.
12530 (font_delete_unmatched): New arg.
12531 (font_list_entities): Call font_driver->list with a spec that
12532 doesn't specify style-related properties.
12533 (font_matching_entity): Arguments changed. Caller changed.
12534 (font_open_entity): Adjusted for the change of font-related objects.
12535 (font_close_object, font_has_char, font_encode_char)
12536 (font_get_name, font_get_spec): Likewise.
12537 (font_spec_from_name, font_clear_prop, font_update_lface):
12538 New functions.
12539 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12540 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12541 (font_at): Adjusted for the change of font-related objects.
12542 (font_range): New function.
12543 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12544 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12545 (Fcopy_font_spec, Fmerge_font_spec): New function.
12546 (Ffont_family_list): Renamed from list-families.
12547 (Finternal_set_font_style_table): Arguments changed.
12548 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12549 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12550 change of font-related objects.
12551 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12552
12553 * fontset.h (struct font_info): Delete it. Most members go to
12554 struct font.
12555 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12556 (enum FONT_SPEC_INDEX): Delete it.
12557 (font_info, list_fonts_func, load_font_func, query_font_func)
12558 (set_frame_fontset_func, find_ccl_program_func)
12559 (get_font_repertory_func, new_fontset_from_font_name): Delete
12560 externs.
12561 (fontset_from_font_name): Extern it.
12562 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12563 (FONT_INFO_FROM_FACE): Deleted.
12564 (face_for_font): Adjust prototype.
12565
12566 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12567 conditionals. Don't check enable_font_backend. Delete all codes
12568 used only when USE_FONT_BACKEND is not defined.
12569 (get_font_info_func, list_font_func, load_font_func)
12570 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12571 (get_font_repertory_func): Delete them.
12572 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12573 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12574 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12575 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12576 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12577 (fontset_compare_rfontdef): New function.
12578 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12579 rfont-defs by qsort. Adjusted for the change of font-group vector.
12580 (load_font_get_repertory): Deleted.
12581 (fontset_find_font): Use new macros to ref/set elements of
12582 font-def and rfont-def.
12583 (fontset_font): Fix the timing of remembering that no font for C.
12584 (free_face_fontset): Do nothing if the face has no fontset.
12585 (face_suitable_for_char_p): Use new macros to ref/set elements of
12586 rfont-def.
12587 (face_for_char): Likewise. Call face_for_char with font_object.
12588 (fs_load_font): Delete. Delete #pragma surrounding it.
12589 (fs_query_fontset): Use strcasecmp instead of strcmp.
12590 (generate_ascii_font_name): Adjusted for the format change of
12591 font-spec.
12592 (Fset_fontset_font): Likewise. Use new macros to set elements of
12593 font-def.
12594 (Fnew_fontset): Use font_unparse_xlfd to generate
12595 FONTSET_ASCII (fontset).
12596 (new_fontset_from_font_name): Deleted.
12597 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12598 a fontset is already created for the font. FIx updating of
12599 Vfontset_alias_alist.
12600 (fontset_ascii_font): Deleted.
12601 (Ffont_info): Adjusted for the format change of font-spec.
12602 (Finternal_char_font): Likewise.
12603 (Ffontset_info): Likewise.
12604 (syms_of_fontset): Don't check load_font_func.
12605
12606 * fns.c (internal_equal): Handle PREV_FONT.
12607
12608 * frame.h: Delete USE_FONT_BACKEND conditional.
12609
12610 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12611 conditionals. Don't check enable_font_backend. Delete all codes
12612 used only when USE_FONT_BACKEND is not defined.
12613 (x_set_font): Call x_new_font, not x_new_fontset2.
12614 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12615 already set for the frame.
12616
12617 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12618 a font-entity by font_make_entity. Use font_intern_prop instead
12619 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12620 font property. If a font is scalable, set avgwidth property to 0.
12621 Set font-entity property by font_put_extra.
12622 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12623 (ffont_driver): Adjusted for the change of struct font_driver.
12624 (ftfont_spec_pattern): New function.
12625 (ftfont_list): Return a list, not vector.
12626 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12627 (ftfont_list_family): Don't downcase names.
12628 (ftfont_free_entity): Deleted.
12629 (ftfont_open): Return a font-object. Adjusted for the change of
12630 struct font. Get underline_thickness and underline_position from
12631 font property. Don't update dpyinfo->smallest_font_height and
12632 dpyinfo->smallest_char_width.
12633 (ftfont_close): Don't free `struct font'.
12634 (ftfont_has_char): Adjusted for the format change of font-entity.
12635 (ftfont_encode_char, ftfont_text_extents): Likewise.
12636
12637 * ftxfont.c (ftxfont_list): Return a list, not vector.
12638 (ftxfont_open): Return a font-object. Adjusted for the change of
12639 struct font. Get underline_thickness and underline_position from
12640 font property. Don't update dpyinfo->smallest_font_height and
12641 dpyinfo->smallest_char_width.
12642 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12643 (ftxfont_draw): Adjusted for the change of struct font.
12644
12645 * image.c (image_ascent): Don't include "charset.h". Include
12646 "character.h" and "font.h".
12647
12648 * lisp.h (enum pvec_type): New member PREV_FONT.
12649 (Fassoc_string): EXFUN it.
12650
12651 * print.c: Include font.h.
12652 (print_object): Handle font-related objects.
12653
12654 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12655 conditionals. Don't check enable_font_backend. Delete all codes
12656 used only when USE_FONT_BACKEND is not defined.
12657 (handle_auto_composed_prop): Do nothing if it->f is not on a
12658 window system. Check how many following characters can be
12659 displayed by the same font.
12660 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12661 'struct font *'.
12662 (get_char_face_and_encoding): Assign the whole encoding task to
12663 the `encode-char' method of a font driver.
12664 (fill_composite_glyph_string): Adjusted for the change of `struct
12665 face' and `struct glyph_string'.
12666 (fill_glyph_string): Likewise.
12667 (get_per_char_metric): Arguments changed.
12668 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12669 and `struct glyph_string'.
12670 (produce_stretch_glyph, calc_line_height_property)
12671 (x_produce_glyphs): Likewise.
12672
12673 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12674 conditionals. Don't check enable_font_backend. Delete all codes
12675 used only when USE_FONT_BACKEND is not defined. Use
12676 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12677 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12678 (Qp): Extern them.
12679 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12680 Deleted.
12681 (struct font_name): Deleted.
12682 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12683 (compare_fonts_by_sort_order): New function.
12684 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12685 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12686 Deleted.
12687 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12688 compare_fonts_by_sort_order.
12689 (Fx_font_family_list): Call Ffont_family_list.
12690 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12691 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12692 (face_symbolic_slant, face_symbolic_swidth)
12693 (split_font_name_into_vector, build_font_name_from_vector)
12694 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12695 (font_rescale_ratio, split_font_name, build_font_name)
12696 (free_font_names, sort_fonts, x_face_list_fonts)
12697 (face_font_available_p, sorted_font_list, cmp_font_names)
12698 (font_list_1, concat_font_list, font_list, remove_duplicates):
12699 Deleted.
12700 (Fx_list_fonts): Use Ffont_list.
12701 (LFACE_AVGWIDTH): Deleted.
12702 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12703 by FONTP.
12704 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12705 (set_lface_from_font_name): Delete it.
12706 (set_lface_from_font): Renamed from
12707 set_lface_from_font_and_fontset. Caller changed. Don't set
12708 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12709 for face.
12710 (merge_face_vectors): Copy font-spec if necessary.
12711 Clear properties of the font-spec if necessary.
12712 (merge_face_ref): Clear properties of the font-spec if necessary.
12713 (Finternal_set_lisp_face_attribute): Likewise.
12714 (set_font_frame_param): Use font_load_for_lface to load a
12715 font-object, and call Fmodify_frame_parameters with it.
12716 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12717 font name by Ffont_xlfd_name.
12718 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12719 QCslant, and QCwidth.
12720 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12721 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12722 Compare fonts by EQ.
12723 (lookup_non_ascii_face): Deleted.
12724 (face_for_font): The 2nd argument changed.
12725 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12726 Check atomic font properties by case insensitive.
12727 (realize_non_ascii_face): Set face->overstrike correctly.
12728 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12729 (dump_realized_face): Get font name from
12730 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12731
12732 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12733 conditionals. Don't check enable_font_backend. Delete all codes
12734 used only when USE_FONT_BACKEND is not defined.
12735 (xic_create_xfontset): Original code deleted and renamed from
12736 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12737 (x_make_gc): Don't set GCFont in GCs.
12738 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12739 opened by "fixed".
12740 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12741 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12742 get_font_repertory_func.
12743
12744 * xfont.c: Include <stdlib.h> and "ccl.h".
12745 (struct xfont_info): New structure.
12746 (xfont_query_font): Deleted.
12747 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12748 moved from xterm.c.
12749 (xfont_driver): Adjusted for the change of struct font_driver.
12750 (compare_font_names): New function.
12751 (xfont_list_pattern): Sort font names case insensitively. Make
12752 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12753 (xfont_list): Return a list, not vector.
12754 (xfont_match): If the font doesn't have QCname property, generate
12755 a name from the other font properties.
12756 (xfont_open): Return a font-object. Adjusted for the change of
12757 struct font. Get underline_thickness and underline_position from
12758 font property. Don't update dpyinfo->smallest_font_height and
12759 dpyinfo->smallest_char_width.
12760 (xfont_close): Don't free struct font.
12761 (xfont_prepare_face): Adjusted for the change of struct font.
12762 (xfont_done_face): Deleted.
12763 (xfont_has_char): Adjusted for the change of struct font.
12764 (xfont_encode_char, xfont_draw): Likewise.
12765 (xfont_check): New function.
12766
12767 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12768 callback function.
12769 (xftfont_match): Adjusted for the format change of font-entity.
12770 (xftfont_open): Adjusted for the format change of font-entity and
12771 font-object. Adjusted for the change of struct font. Return a
12772 font-object. Don't update dpyinfo->smallest_font_height and
12773 dpyinfo->smallest_char_width.
12774 (xftfont_close): Block input while calling XftFontClose.
12775 (xftfont_prepare_face): Don't block input while calling
12776 xftfont_get_colors. Adjusted for the change of struct font.
12777 (xftfont_shape): Return value of error case fixed.
12778
12779 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12780
12781 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12782 conditionals.
12783 (FONT_WIDTH): Return (f)->max_width.
12784 (struct x_display_info): Delete member `font'.
12785 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12786 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12787 (struct x_output): Change type of `font' to `struct font *'.
12788
12789 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12790 conditionals. Don't check enable_font_backend. Delete all codes
12791 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12792 (x_per_char_metric, x_encode_char): Deleted.
12793 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12794 (x_compute_glyph_string_overhangs): Adjusted for the change of
12795 `struct face'.
12796 (x_draw_glyph_string_foreground)
12797 (x_draw_composite_glyph_string_foreground): Likewise.
12798 (x_draw_glyph_string): Likewise. Use font->underline_position and
12799 font->underline_thickness.
12800 (x_new_font): Renamed from x_new_fontset2.
12801 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12802 (x_check_font): Call `check' method of a font driver.
12803 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12804 (x_query_font, x_get_font_repertory): Deleted.
12805 (x_find_ccl_program): Renamed and moved to xfont.c.
12806 (x_redisplay_interface): Adjusted for the change of `struct
12807 redisplay_interface'.
12808
12809 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12810 conditionals. Don't check enable_font_backend. Delete all codes
12811 used only when USE_FONT_BACKEND is not defined. Surround non-used
12812 code by "#ifdef OLD_FONT" and "endif".
12813 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12814
12815 * w32font.h (struct w32font_info): New member.
12816 (FONT_COMPAT): New macro.
12817 (w32font_open_internal): Prototype adjusted.
12818
12819 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12820 OLD_FONT" and "endif".
12821
12822 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12823 conditionals. Don't check enable_font_backend. Delete all codes
12824 used only when USE_FONT_BACKEND is not defined.
12825 (w32font_open): Return a font-object. Make a font-object by
12826 font_make_object. Adjusted for the change of struct w32font_info.
12827 (w32font_close): Don't free struct font. Adjusted for the change
12828 of struct w32font_info.
12829 (w32font_encode_char, w32font_text_extents, w32font_draw):
12830 Adjusted for the change of struct w32font_info.
12831 (w32font_draw): Likewise.
12832 (w32font_list_internal): Return a list, not vector.
12833 (w32font_open_internal): Change the 4th arg to font-object.
12834 Adjusted for the change of struct w32font_info and font-object format.
12835 (add_font_name_to_list): Don't downcase names.
12836 (w32_enumfont_pattern_entity): Make a font-entity by
12837 font_make_entity. Adjusted for the format change of font-entity.
12838 Use FONT_SET_STYLE to set a style-related font property. If a
12839 font is scalable, set avgwidth property to 0. Set font-entity
12840 property by font_put_extra.
12841 (font_matches_spec): Adjusted for the format change of font-entity.
12842 (w32_weight_table, w32_decode_weight): New variables.
12843 (w32_encode_weight): New function.
12844 (fill_in_logfont): Adjusted for the format change of font-spec.
12845 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12846 weight value.
12847 (w32font_driver): Adjusted for the change of struct font_driver.
12848
12849 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12850 conditionals. Don't check enable_font_backend. Surround non-used
12851 code by "#ifdef OLD_FONT" and "endif".
12852 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12853 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12854
12855 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12856 conditionals. Don't check enable_font_backend. Delete all codes
12857 used only when USE_FONT_BACKEND is not defined. Surround non-used
12858 code by "#ifdef OLD_FONT" and "endif".
12859
12860 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12861 (uniscribe_open): Return value changed to font-object.
12862 Adjusted for the format change of font-object.
12863 (uniscribe_otf_capability): Adjusted for the change of struct font.
12864 (add_opentype_font_name_to_list): Don't downcase names.
12865 (uniscribe_font_driver): Adjusted for the change of struct
12866 font_driver.
12867
128682008-05-13 Chong Yidong <cyd@stupidchicken.com>
12869
12870 * dispnew.c (update_frame_1): Check if tty output is still valid
12871 before flushing it.
12872
128732008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12874
12875 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12876 to Gtk+ menus.
12877
128782008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12879
12880 * dired.c (file_name_completion): Tweak the code so as to always do it
12881 in a single pass. Tighten the scope of some variables.
12882
12883 * dired.c (Qdefault_directory): New var.
12884 (file_name_completion): Use it instead of Fexpand_file_name.
12885 (syms_of_dired): Initialize it.
12886
128872008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12888
12889 * fileio.c (double_dollars): Remove dead code.
12890
128912008-05-10 Eli Zaretskii <eliz@gnu.org>
12892
12893 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12894 Mention w32-get-true-file-attributes in doc string.
12895
12896 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12897
128982008-05-09 Glenn Morris <rgm@gnu.org>
12899
12900 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12901 2008-04-23.
12902
129032008-05-09 Eli Zaretskii <eliz@gnu.org>
12904
12905 Support for reporting owner and group of each file on MS-Windows:
12906 * dired.c (stat_uname, stat_gname): New functions, with special
12907 implementation for w32.
12908 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12909
12910 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12911 (dflt_group_name): New static variable.
12912 (dflt_group): Rename from the_group.
12913 (init_user_info): Init dflt_group fields. Get user's group name
12914 from LookupAccountSid.
12915 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12916 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12917 New initialization states.
12918 (globals_of_w32): Initialize them to zero. Initialize the default
12919 group name to "None".
12920 (GetFileSecurity_Name): New global var, the name of the function
12921 to call for GetFileSecurity.
12922 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12923 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12924 (get_file_security, get_security_descriptor_owner)
12925 (get_security_descriptor_group, is_valid_sid)
12926 (get_file_security_desc, get_rid, get_name_and_id)
12927 (get_file_owner_and_group): New functions.
12928 (stat): Use get_file_security_desc and get_file_owner_and_group to
12929 report the owner and primary group of each file. Don't ignore the
12930 high 32 bits of file's size, now that st_size is 64-bit wide.
12931 Fix test when to get true file attributes.
12932 (init_user_info): Use get_rid instead of equivalent inline code.
12933 (fstat): Don't ignore the high 32 bits of file's size.
12934
129352008-05-09 Chong Yidong <cyd@stupidchicken.com>
12936
12937 * image.c (png_load): Use correct bit-depth for setting background
12938 color.
12939
129402008-05-08 Eli Zaretskii <eliz@gnu.org>
12941
12942 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12943 epa-hook.elc.
12944
129452008-05-08 Juanma Barranquero <lekktu@gmail.com>
12946
12947 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12948
129492008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12950
12951 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12952 because the original parameters are in pure storage now.
12953 (mac_window): Remove unused params. Update callers.
12954
129552008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12956
12957 * lread.c (substitute_object_recurse): Use lower-level primitives.
12958 Don't signal errors when traversing sub-char-tables.
12959 Don't loop over all the possible characters when traversing char-tables.
12960
12961 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12962 just like we do in print.c.
12963
129642008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12965
12966 * minibuf.c (Ftry_completion): Remove code left over from when we used
12967 scmp instead of Fcompare_strings.
12968
129692008-05-04 Juanma Barranquero <lekktu@gmail.com>
12970
12971 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12972
129732008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12974
12975 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12976 Create bitmap context in native byte order.
12977
12978 * macterm.c (XDrawLine)
12979 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12980 context in native byte order.
12981
129822008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12983
12984 * config.in: Regenerate.
12985
12986 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12987 New definitions for Image I/O support.
12988 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12989 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12990 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12991 (mac_data_provider_release_data, image_load_image_io)
12992 [USE_MAC_IMAGE_IO]: New functions.
12993 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12994 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12995 (init_image_func_pointer) [MAC_OSX]: Remove function.
12996 (image_load_quartz2d) [MAC_OSX]: Check availability of
12997 CGImageCreateWithPNGDataProvider at compile time.
12998 Use lowercase `false' for boolean constant.
12999 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13000 Use image_load_image_io.
13001 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13002 Don't check MyCGImageCreateWithPNGDataProvider.
13003 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13004 Don't call init_image_func_pointer.
13005
13006 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13007
13008 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13009 Make variable non-static.
13010 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13011 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13012
13013 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13014 (RED_FROM_ULONG): Mask off higher bits.
13015 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13016
13017 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13018 Include AvailabilityMacros.h.
13019 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13020 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13021
130222008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13023
13024 * chartab.c (Fset_char_table_range): If range is t, really set all
13025 chars to that value.
13026
130272008-05-03 Eli Zaretskii <eliz@gnu.org>
13028
13029 * dired.c (Ffile_attributes): Don't allow the device number become
13030 negative.
13031
130322008-05-02 Daiki Ueno <ueno@unixuser.org>
13033
13034 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13035
130362008-05-02 Juri Linkov <juri@jurta.org>
13037
13038 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13039 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13040 DEFAULT argument as a list of default values in docstrings.
13041
130422008-05-01 Chong Yidong <cyd@stupidchicken.com>
13043
13044 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13045
130462008-05-01 Martin Rudalics <rudalics@gmx.at>
13047
13048 * dispnew.c (change_frame_size_1): Preserve small windows when
13049 shrinking frames by calling set_window_height|width with third
13050 arg 2.
13051
13052 * window.h (struct window): Replace field too_small_ok by field
13053 resize_proportionally.
13054
13055 * window.c (make_window): Initialize resize_proportionally.
13056 (enlarge_window): Temporarily set resize_proportionally to make
13057 sure that shrink_windows does scale the window proportionally.
13058 (shrink_windows): When window has resize_proportionally set try
13059 to shrink it proportionally by stealing from other windows.
13060 (struct saved_window, Fset_window_configuration)
13061 (compare_window_configurations): Handle resize_proportionally.
13062 (WINDOW_TOTAL_SIZE): New macro.
13063 (window_min_size, shrink_windows, size_window): Use it.
13064 (check_min_window_sizes): Remove. Invalid values of
13065 window-min-height|width are handled by window_min_size_2 now.
13066 (size_window, Fsplit_window, enlarge_window)
13067 (adjust_window_trailing_edge, grow_mini_window): Don't call
13068 check_min_window_sizes.
13069 (window_min_size_2, window_min_size_1, window_min_size):
13070 New argument safe_p for retrieving "safe" minimum sizes.
13071 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13072 (adjust_window_trailing_edge, grow_mini_window):
13073 Adjust arguments of window_min_size... functions.
13074 (shrink_windows): Argument min_size removed. New argument
13075 safe_p allows shrinking windows to their safe minimum sizes.
13076 Calculate minimum size and decide whether a window shall be
13077 deleted for each window individually.
13078 (size_window): When nodelete_p equals 2, tell shrink_windows to
13079 delete windows only if their new minimum size is no more safe.
13080 (shrink_window_lowest_first): Call window_min_size_1 to make
13081 sure to preserve modeline of bottom-most window when resizing
13082 the minibuffer.
13083 (Fset_window_configuration, Fcurrent_window_configuration)
13084 (compare_window_configurations): Do not handle
13085 window-min-height|width any more.
13086 (syms_of_window): Clarify window-min-height|width doc-strings.
13087
130882008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13089
13090 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13091 some more. Copy some of the code from Ftry_completions.
13092 Remove special case code that dates back to initial revision when the
13093 slash was only added when necessary and that can't trigger nowadays.
13094
130952008-04-27 Kenichi Handa <handa@m17n.org>
13096
13097 * font.c (font_prop_validate): Signal `error' instead of `font'.
13098
130992008-04-29 Jason Rumney <jasonr@gnu.org>
13100
13101 * w32fns.c (Fw32_battery_status): New defun.
13102 (syms_of_w32fns): Defsubr it.
13103
131042008-04-28 Andreas Schwab <schwab@suse.de>
13105
13106 * dired.c (file_name_completion): Fix another mixing of encoded
13107 and decoded names.
13108
131092008-04-28 Juanma Barranquero <lekktu@gmail.com>
13110
13111 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13112
131132008-04-27 Juanma Barranquero <lekktu@gmail.com>
13114
13115 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13116
131172008-04-27 Andreas Schwab <schwab@suse.de>
13118
13119 * dired.c (file_name_completion): Fix inappropriate mixing of
13120 encoded and decoded names.
13121
13122 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13123
13124 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13125
131262008-04-26 Eli Zaretskii <eliz@gnu.org>
13127
13128 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13129 2008-03-31, it's not needed anymore with `struct stat' definition
13130 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13131 for the same reasons.
13132
131332008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13134
13135 * m/sparc.h: Additional redefinitions for GNU/Linux.
13136
131372008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13138
13139 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13140 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13141 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13142 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13143 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13144 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13145 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13146 Likewise.
13147
13148 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13149 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13150 (mac_ax_number_of_characters): Add externs.
13151 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13152 [USE_MAC_TSM]: Likewise.
13153 (mac_handle_text_input_event) [MAC_OSX]:
13154 Handle kEventTextInputOffsetToPos for no active input area case.
13155 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13156 (mac_handle_document_access_event)
13157 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13158 (install_application_handler) [MAC_OSX]: Register handlers for
13159 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13160 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13161 Register mac_handle_document_access_event.
13162
13163 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13164 Make functions non-static.
13165
131662008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13167
13168 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13169 (read_file_name_completion_ignore_case, insert_default_directory)
13170 (Qdefault_directory): Move to minibuffer.el.
13171 (Fread_file_name): Call the new `read-file-name' instead.
13172
131732008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13174
13175 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13176 Make function non-static.
13177 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13178 Remove function.
13179 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13180 Move to mactoolbox.c.
13181 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13182
13183 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13184 (mac_rect_make): New macro.
13185
13186 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13187 instead of float.
13188 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13189 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13190 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13191 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13192 CGRectMake.
13193 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13194 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13195 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13196 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13197 instead of WindowRef in argument type.
13198 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13199 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13200 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13201 instead of DISPLAY. All uses changed.
13202 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13203 (x_calc_absolute_position): Simplify so as not to use
13204 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13205
13206 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13207 instead of WindowRef in argument type.
13208 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13209 [TARGET_API_MAC_CARBON]: Remove externs.
13210 (create_apple_event, mac_event_parameters_to_lisp)
13211 [TARGET_API_MAC_CARBON]: Add externs.
13212
13213 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13214 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13215 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13216 is clicked.
13217 (x_activate_menubar): Remove extern for saved_menu_event_location.
13218 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13219 Move from mac.c.
13220
132212008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13222
13223 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13224 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13225
132262008-04-23 Jason Rumney <jasonr@gnu.org>
13227
13228 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13229 attributes only for local files.
13230
13231 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13232 default to Qlocal.
13233
132342008-04-22 Juri Linkov <juri@jurta.org>
13235
13236 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13237 read-buffer-to-switch instead of using the letter "B".
13238
132392008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13240
13241 * fileio.c (Qdefault_directory): New variable.
13242 (Fread_file_name): Use it to pass `dir' to the completion functions.
13243
132442008-04-20 Chong Yidong <cyd@stupidchicken.com>
13245
13246 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13247
132482008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13249
13250 * keyboard.c (Vpre_help_message): Remove.
13251 (show_help_echo): Remove default C code.
13252
13253 * dired.c (directory_files_internal, file_name_completion):
13254 Only call ENCODE_FILE if the string is indeed decoded.
13255
132562008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13257
13258 * Makefile.in (TOOLKIT_DEFINES): Remove.
13259 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13260
132612008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13262
13263 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13264 (mactoolbox.o): New target.
13265
13266 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13267 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13268
13269 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13270 Use mac_set_frame_window_background instead of XSetWindowBackground.
13271 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13272 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13273 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13274 instead of SetWindowTitleWithCFString.
13275 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13276 Move function to mactoolbox.c.
13277 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13278 Use mac_set_window_modified instead of SetWindowModified.
13279 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13280 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13281 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13282 FrontNonFloatingWindow. Use mac_activate_window instead of
13283 ActivateWindow. Use mac_active_non_floating_window instead of
13284 ActiveNonFloatingWindow.
13285 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13286 Use mac_show_hourglass and mac_hide_hourglass.
13287 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13288 instead of GetGlobalMouse.
13289 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13290 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13291 Use mac_bring_window_to_front instead of BringToFront.
13292 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13293 mactoolbox.c.
13294 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13295 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13296 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13297 mactoolbox.c.
13298
13299 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13300 (XtPointer): Move typedef from macmenu.c.
13301 (enum button_type): Move enum from macmenu.c.
13302 (widget_value): Move typedef from macmenu.c.
13303 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13304 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13305 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13306 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13307 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13308 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13309 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13310 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13311 (Selection): Move typedef from macselect.c.
13312 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13313 macterm.c.
13314 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13315 (mac_is_window_collapsed, mac_bring_window_to_front)
13316 (mac_send_window_behind, mac_hide_window, mac_show_window)
13317 (mac_collapse_window, mac_front_non_floating_window)
13318 (mac_active_non_floating_window, mac_activate_window)
13319 (mac_move_window_structure, mac_move_window, mac_size_window)
13320 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13321
13322 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13323 (enum mac_menu_kind): Move enum to mactoolbox.c.
13324 (min_menu_id): Move variable to mactoolbox.c.
13325 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13326 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13327 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13328 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13329 [TARGET_API_MAC_CARBON]: Likewise.
13330 (XtPointer): Move typedef to macgui.h.
13331 (enum button_type): Move enum to macgui.h.
13332 (widget_value): Move typedef to macgui.h.
13333 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13334 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13335 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13336 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13337 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13338 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13339 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13340 (popup_activated_flag): Make variable non-static.
13341 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13342 (add_menu_item, fill_menu, dispose_menus):
13343 Move functions to mactoolbox.c.
13344 (restore_show_help_function, menu_target_item_handler)
13345 (install_menu_target_item_handler, mac_handle_dialog_event)
13346 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13347 [TARGET_API_MAC_CARBON]: Likewise.
13348 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13349 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13350 (find_and_call_menu_selection, name_is_separator): Make function
13351 non-static.
13352 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13353 to mactoolbox.c.
13354 (set_frame_menubar): Don't call install_menu_quit_handler.
13355 (menu_item_selection): New variable.
13356 (mac_menu_show): Use create_and_show_popup_menu.
13357 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13358 selection but set variable menu_item_selection. All uses changed.
13359 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13360 Call install_menu_quit_handler. Move to mactoolbox.c.
13361
13362 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13363 (Selection): Move typedef to macgui.h.
13364 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13365 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13366 Make variables non-static.
13367 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13368 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13369 Make functions non-static.
13370 (Vmac_service_selection) [MAC_OSX]: Likewise.
13371 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13372 (mac_valid_selection_target_p, mac_clear_selection)
13373 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13374 (mac_put_selection_value, mac_selection_has_target_p)
13375 (mac_get_selection_value, mac_get_selection_target_list)
13376 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13377 Move functions to mactoolbox.c.
13378 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13379 Likewise.
13380 (copy_scrap_flavor_data, mac_handle_service_event)
13381 (install_service_handler) [MAC_OSX]: Likewise.
13382 (syms_of_macselect) <Vmac_dnd_known_types>:
13383 Use mac_dnd_default_known_types.
13384
13385 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13386 Move to mactoolbox.c.
13387 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13388 (Fx_selection_owner_p): Add EXFUN.
13389 (install_window_handler, remove_window_handler, XSetWindowBackground):
13390 Remove externs.
13391 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13392 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13393 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13394 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13395 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13396 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13397 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13398 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13399 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13400 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13401 (mac_valid_selection_target_p, mac_clear_selection)
13402 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13403 (mac_put_selection_value, mac_selection_has_target_p)
13404 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13405 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13406 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13407 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13408 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13409 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13410 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13411 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13412 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13413
13414 * mactoolbox.c: New file.
13415
134162008-04-18 Jason Rumney <jasonr@gnu.org>
13417
13418 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13419
134202008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13421
13422 * character.c (Fmultibyte_char_to_unibyte):
13423 Return latin1 chars unchanged.
13424
13425 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13426 relocated if it points to `name'.
13427
134282008-04-17 Kenichi Handa <handa@m17n.org>
13429
13430 * data.c (Faset): Allow setting a multibyte character in an
13431 ASCII-only unibyte string.
13432
13433 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13434
134352008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13436
13437 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13438 done in config.h.
13439
134402008-04-16 Juanma Barranquero <lekktu@gmail.com>
13441
13442 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13443 (Fchar_direction): Add usage in the docstring.
13444
134452008-04-15 Chong Yidong <cyd@stupidchicken.com>
13446
13447 * keyboard.c (read_key_sequence): Remove always-true checks.
13448
134492008-04-14 Jason Rumney <jasonr@gnu.org>
13450
13451 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13452 compatibility struct, for better underline positioning.
13453
134542008-04-13 David Hansen <david.hansen@gmx.net>
13455
13456 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13457 string.
13458
134592008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13460
13461 * m/hp800.h (XUINT, XSET): Remove.
13462
134632008-04-12 Juanma Barranquero <lekktu@gmail.com>
13464
13465 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13466 previous change.
13467
134682008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13469
13470 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13471 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13472
134732008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13474
13475 * keymap.h (map_keymap_canonical): Declare.
13476 * xmenu.c (single_keymap_panes): Use it.
13477
134782008-04-11 Glenn Morris <rgm@gnu.org>
13479
13480 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13481 set the target's value to that of the alias.
13482
134832008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13484
13485 * term.c (set_tty_color_mode): Left over typo.
13486
134872008-04-10 Michael Albinus <michael.albinus@gmx.de>
13488
13489 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13490 only after check for file name handler functions. Signal, when
13491 native functionality is not supported.
13492 (syms_of_fileio): Declare it unconditionally.
13493
134942008-04-10 Jason Rumney <jasonr@gnu.org>
13495
13496 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13497 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13498
13499 * w32.c (logon_network_drive): Also logon to remote drives that
13500 are mapped to drive letters.
13501
135022008-04-10 Glenn Morris <rgm@gnu.org>
13503
13504 * xdisp.c (truncate-partial-width-windows): Doc fix.
13505
135062008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13507
13508 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13509 Move functions to minibuffer.el.
13510 (syms_of_fileio): Don't declare them.
13511
135122008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13513
13514 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13515 (syms_of_minibuf): Remove its initialization.
13516
13517 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13518
135192008-04-09 Juanma Barranquero <lekktu@gmail.com>
13520
13521 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13522
135232008-04-09 Jason Rumney <jasonr@gnu.org>
13524
13525 * makefile.w32-in (distclean): Delete makefile too.
13526 (maintainer-clean): New target.
13527
13528 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13529
13530 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13531 for new font backend and composite cases.
13532
135332008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13534
13535 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13536 Most of the code moved to run_timers.
13537 (do_pending_atimers): Call run_timers.
13538 (run_timers): New function.
13539
13540 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13541 run atimers.
13542
13543 * process.c (wait_reading_process_output): The same as above.
13544
135452008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 * minibuf.c (last_exact_completion): Remove variable.
13548 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13549 (complete_and_exit_1, complete_and_exit_2)
13550 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13551 (Fdisplay_completion_list, display_completion_list_1)
13552 (Fminibuffer_completion_help, Fself_insert_and_exit)
13553 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13554 minibuffer.el.
13555 (syms_of_minibuf): Remove corresponding initializations.
13556
13557 * keyboard.c (Qdeactivate_mark): New var.
13558 (command_loop_1): Use it to call `deactivate-mark'.
13559 (syms_of_keyboard): Initialize it.
13560
13561 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13562 to another frame.
13563 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13564 Don't call set_tty_color_mode.
13565 (store_frame_param): Reset previous_frame rather than call
13566 set_tty_color_mode.
13567 * term.c (set_tty_color_mode): Rewrite.
13568 * dispextern.h (set_tty_color_mode): New type.
13569 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13570
135712008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13572
13573 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13574 for generic chars, which do not exist any more in emacs-unicode.
13575
135762008-04-08 Michael Albinus <michael.albinus@gmx.de>
13577
13578 * coding.c (detect_coding_emacs_mule)
13579 (Ffind_operation_coding_system): Fix typo.
13580
135812008-04-08 Jason Rumney <jasonr@gnu.org>
13582
13583 * w32uniscribe.c (SNAME): Extract only symbol name.
13584
13585 * w32font.h (struct w32_metric_cache): New struct.
13586 (w32font_info): Use it.
13587 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13588 (CACHE_BLOCKSIZE): New constants.
13589
13590 * w32font.c (Qja, Qko, Qzh): New symbols.
13591 (syms_of_w32font): Initialise them.
13592 (font_matches_spec): Use them to filter by language.
13593 (recompute_cached_metrics): Remove function.
13594 (compute_metrics, clear_cached_metrics): New functions.
13595 (w32font_encode_char): Use them to manage metric cache.
13596 (w32font_text_extents): Cache metrics for all glyphs on demand.
13597 Delay converting glyph indices to WORD until needed.
13598 (w32font_open_internal): Initialize metric cache to empty.
13599 (registry_to_w32_charset): Charset should always be a symbol.
13600 (fill_in_logfont, list_all_matching_fonts): Family should
13601 always be a symbol.
13602
136032008-04-06 Jason Rumney <jasonr@gnu.org>
13604
13605 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13606 Give up if glyph indices not supported. Use uniscribe obtained
13607 ABC widths for individual metrics. Map glyph clusters back to
13608 characters using fClusterStart flag. Return number of glyphs
13609 produced, not chars processed.
13610 (uniscribe_shape): Map char at FROM to current glyph.
13611
136122008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13613
13614 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13615 Use SetMenuItemHierarchicalMenu.
13616
136172008-04-05 Jason Rumney <jasonr@gnu.org>
13618
13619 * image.c (pbm_load): Allow color values up to 65535.
13620 Throw an error if max_color_idx is outside the supported range.
13621 Report an error when image size is invalid.
13622 Read two bytes at a time when raw images have max_color_idx above 255.
13623
136242008-04-05 Eli Zaretskii <eliz@gnu.org>
13625
13626 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13627 cFileName a file name that includes `?' characters, use the 8+3
13628 alias in cAlternateFileName instead.
13629
136302008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13631
13632 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13633 append "CCL: Quitted" when the CCL program is quitted.
13634 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13635
13636 * ccl.h (struct ccl_program): New member quit_silently.
13637
136382008-04-05 Chong Yidong <cyd@stupidchicken.com>
13639
13640 * search.c (compile_pattern_1): Treat non-nil and non-string of
13641 search-spaces-regexp as nil.
13642
13643 * minibuf.c (Fassoc_string): Tweak docstring.
13644
136452008-04-05 Eli Zaretskii <eliz@gnu.org>
13646
13647 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13648 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13649 2008-03-14 to force inode be positive.
13650
13651 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13652 _S_* ones, since we now use our own sys/stat.h.
13653 (stat, fstat): Don't mangle the inode number.
13654 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13655
136562008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13657
13658 * frame.h (struct frame): Give one more bit to `visible' since we use
13659 values larger than 1 to indicate obscured frames on ttys.
13660
13661 * keymap.c (Qkeymap_canonicalize): New var.
13662 (Fmap_keymap_internal): New fun.
13663 (describe_map): Use keymap-canonicalize.
13664
13665 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13666 (Fundo_boundary): Set them.
13667 (syms_of_undo): Initialize them.
13668 (record_point): Use them instead of last_point_position*.
13669 (last_undo_buffer): Change type.
13670
136712008-04-04 Jason Rumney <jasonr@gnu.org>
13672
13673 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13674 (recompute_cached_metrics): Don't set ascent and descent per char.
13675
13676 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13677 (uniscribe_check_otf): Add GC protection before consing.
13678 Rearrange loop for counting features.
13679
136802008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13681
13682 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13683 buffer with byte-size of source buffer.
13684
136852008-04-03 Chong Yidong <cyd@stupidchicken.com>
13686
13687 * callint.c (Fcall_interactively): Handle temporary region even
13688 when shift-select-mode is off.
13689
136902008-04-03 Jason Rumney <jasonr@gnu.org>
13691
13692 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13693
136942008-04-03 Kenichi Handa <handa@m17n.org>
13695
13696 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13697 (CATEGORY_MASK_UTF_16): Likewise.
13698 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13699 binary file.
13700 (detect_coding): Add null-byte detection for a binary file.
13701 (detect_coding_system): Likewise.
13702
137032008-04-03 Jason Rumney <jasonr@gnu.org>
13704
13705 * w32uniscribe.c: New file.
13706
13707 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13708
13709 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13710
13711 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13712 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13713 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13714 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13715 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13716 (Qphonetic): New symbols.
13717 (syms_of_w32font): Initialize them.
13718 (font_supported_scripts): Use them.
13719 (w32font_list_family): List all charsets.
13720 (w32font_text_extents, recompute_cached_metrics): Fix metric
13721 calculations.
13722 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13723 Give opentype fonts their own format.
13724 (font_matches_spec): New arguments backend and logfont.
13725 Handle :otf spec for uniscribe backend.
13726 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13727 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13728
13729 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13730 font backend.
13731 (globals_of_w32fns): Initialize uniscribe font backend.
13732
13733 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13734 dependencies.
13735 (w32uniscribe.$(O)): New file to build.
13736 (FONT_OBJ): Include w32uniscribe.$(O).
13737 (LIBS): Add uniscribe libraries.
13738
13739 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13740
137412008-04-02 Chong Yidong <cyd@stupidchicken.com>
13742
13743 * callint.c (Vshift_select_mode): New var.
13744 (Finteractive): Document new ^ spec.
13745 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13746 is present.
13747
13748 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13749 (command_loop_1): Avoid running the direct display versions of
13750 forward-char and backward-char if shift-selection may occur.
13751 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13752 shift-translation takes place.
13753
13754 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13755 avoid clobbering by define-minor-mode.
13756
13757 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13758 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13759
13760 * syntax.c (Fforward_word): Add ^ interactive spec.
13761
13762 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13763 (Fscroll_right): Add ^ interactive spec.
13764
137652008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13766
13767 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13768
13769 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13770
13771 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13772
137732008-03-31 Juri Linkov <juri@jurta.org>
13774
13775 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13776
137772008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13778
13779 * gtkutil.c (xg_set_geometry): Fix indentation.
13780 (xg_resize_outer_widget): Remove.
13781 (x_wm_size_hint_off): Fix indentation.
13782 (xg_frame_set_char_size): Call flush_and_sync after
13783 gtk_window_resize.
13784 (x_wm_set_size_hint): Pass NULL as geometry window to
13785 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13786 Add menu bar and tool bar height to base height.
13787 (xg_update_frame_menubar, free_frame_menubar)
13788 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13789 (update_frame_tool_bar, free_frame_tool_bar):
13790 Change xg_resize_outer_widget to xg_frame_set_char_size.
13791
137922008-03-30 Michael Albinus <michael.albinus@gmx.de>
13793
13794 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13795 (Fdbus_call_method): New parameter TIMEOUT.
13796 (dbus-send-signal): Optimize UNGCPRO call.
13797
137982008-03-29 Juri Linkov <juri@jurta.org>
13799
13800 * window.c (Fdisplay_buffer): Move call to
13801 Vsplit_window_preferred_function out of conditions that check
13802 if window is eligible for vertical splitting.
13803 When Vsplit_window_preferred_function is non-nil, call it and use
13804 its non-nil return value as window. Otherwise, continue doing
13805 vertical splitting using Fsplit_window with arg horflag=nil.
13806 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13807 default value from `split-window' to nil.
13808
138092008-03-29 Juri Linkov <juri@jurta.org>
13810
13811 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13812 for interactive code letters 'b' and 'B'.
13813
138142008-03-29 Eli Zaretskii <eliz@gnu.org>
13815
13816 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13817 multibyte string.
13818
138192008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13820
13821 * keyboard.c (pending_funcalls): New var.
13822 (timer_check): Run it.
13823 (syms_of_keyboard): Initialize it.
13824 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13825 (Vdelete_terminal_functions): New vars.
13826 (syms_of_terminal): Initialize them.
13827 (Fdelete_terminal): Run delete-terminal-functions.
13828 * xdisp.c (safe_eval): Rewrite.
13829 (safe_call2): New fun.
13830 * frame.c (Qdelete_frame_functions): New var.
13831 (syms_of_frame): Initialize it.
13832 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13833 * lisp.h (safe_call2, pending_funcalls): Declare.
13834
138352008-03-28 Andreas Schwab <schwab@suse.de>
13836
13837 * indent.c (Fmove_to_column): Move declaration before statements.
13838
138392008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13840
13841 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13842 (struct frame): Use bit fields for boolean vars.
13843
13844 * process.c (server_accept_connection): Simplify naming.
13845 (emacs_get_tty_pgrp): Use SDATA.
13846
13847 * coding.c (decode_coding_object): Fix last change.
13848
138492008-03-27 Jason Rumney <jasonr@gnu.org>
13850
13851 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13852
138532008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13854
13855 * charset.c (Fdefine_charset_internal): Change the way of
13856 registering charsets in Vcharset_order_list.
13857 (syms_of_charset): Make the charset `eight-bit' supplementary.
13858
138592008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13860
13861 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13862 operations, to avoid having the difference between pointers
13863 overflow.
13864
138652008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13866
13867 * indent.c (check_display_width): New fun.
13868 (scan_for_column): Use it.
13869
13870 * data.c (syms_of_data): Mark most-positive-fixnum and
13871 most-negative-fixnum as constants.
13872
13873 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13874
13875 * indent.c (scan_for_column): Extract from current_column_1.
13876 Merge with the same code from Fmove_to_column.
13877 (current_column_1, Fmove_to_column): Use it.
13878
138792008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13880
13881 * keymap.c (map_keymap_internal): New fun.
13882 (map_keymap): Use it.
13883 (Fmap_keymap_internal): New fun.
13884 (Fmap_keymap): Remove left-out test from before make_save_value.
13885
13886 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13887
13888 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13889 Use XCAR/XCDR.
13890
13891 * process.h (struct Lisp_Process): Remove filter_multibyte.
13892 * process.c (QCfilter_multibyte): Remove.
13893 (setup_process_coding_systems): Don't use filter_multibyte.
13894 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13895 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13896 (Fset_process_filter_multibyte): Change the coding-system to
13897 approximate the previous behavior.
13898 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13899 coding-system.
13900
13901 * coding.c (decode_coding_object): When not decoding into a buffer,
13902 obey the coding system's preference of (uni|multi)byte.
13903
139042008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13905
13906 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13907 every char is changed and has a different byte-length.
13908 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13909 Fix int -> EMACS_INT.
13910
139112008-03-23 David Hansen <david.hansen@gmx.net>
13912
13913 * dbusbind.c (xd_read_message): Remove extra copying of message
13914 strings. Check for NULL `interface' or `member'.
13915
139162008-03-22 Eli Zaretskii <eliz@gnu.org>
13917
13918 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13919 cFileName a file name that includes `?' characters, use the 8+3
13920 alias in cAlternateFileName instead.
13921
139222008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13925
139262008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13927
13928 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13929 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13930 work on current_buffer only instead (that was already the case
13931 for some of the code anyway).
13932 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13933 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13934 (SET_PT, SET_PT_BOTH): Adjust.
13935 * intervals.h (set_point, temp_set_point, set_point_both)
13936 (temp_set_point_both): Remove redundant declarations.
13937
139382008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13939
13940 * fileio.c (Finsert_file_contents):
13941 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13942 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13943 when buffer != current_buffer anyway.
13944
139452008-03-20 Andreas Schwab <schwab@suse.de>
13946
13947 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13948 as default.
13949
139502008-03-19 Jason Rumney <jasonr@gnu.org>
13951
13952 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13953 (syms_of_w32fns): Initialize them.
13954 (HOURGLASS_ID): New constant.
13955 (x_window_to_frame): Don't check hourglass_window.
13956 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13957 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13958 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13959 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13960 Only change the cursor if hourglass is not active.
13961 (Fx_create_frame): Initialize frame's current_cursor.
13962 (hourglass_atimer): Remove.
13963 (hourglass_started): New function.
13964 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13965 (show_hourglass): Adapt to w32, changing argument to frame.
13966
13967 * w32term.h (struct w32_output): Remove hourglass_window.
13968 Add current_cursor.
13969
13970 * eval.c (call_debugger, Fsignal):
13971 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13972 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13973 (Fexecute_extended_command, cancel_hourglass_unwind):
13974 * minibuf.c (read_minibuf):
13975 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13976
139772008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13978
13979 * window.c (run_funs): New fun.
13980 (run_window_configuration_change_hook): Use it to run the buffer-local
13981 and the global part of the hook.
13982
13983 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13984 (unwind_format_mode_line): Restore selected window.
13985 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13986
139872008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13988
13989 * editfns.c (Fchar_equal): Check they are valid characters.
13990
13991 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13992
139932008-03-17 Andreas Schwab <schwab@suse.de>
13994
13995 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13996 against a charset.
13997
13998 * lisp.h (Fbuffer_list): Declare.
13999
140002008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14001
aac0c6e3
MR
14002 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14003 handlebox_widget is != 0.
14004
140052008-03-16 Juri Linkov <juri@jurta.org>
14006
14007 * callint.c (Fcall_interactively): For interactive code letters
14008 'b' and 'B' put the buffer list into the list of default "future"
14009 values of the minibuffer.
14010
140112008-03-16 Andreas Schwab <schwab@suse.de>
14012
14013 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14014 modifiers.
14015
14016 * regex.c (re_match_2_internal): Correct matching of a charset
14017 against latin-1 characters.
14018
140192008-03-16 Kenichi Handa <handa@m17n.org>
14020
14021 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14022 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14023 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14024 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14025 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14026 CHAR_STRING_ADVANCE.
14027 (produce_chars): Fix for the case that the source and the
14028 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14029 instead of CHAR_STRING_ADVANCE.
14030 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14031 STRING_CHAR_ADVANCE.
14032
140332008-03-15 Andreas Schwab <schwab@suse.de>
14034
14035 * regex.c (re_match_2_internal): Correct matching of eight bit
14036 characters in unibyte strings.
14037
140382008-03-15 Martin Rudalics <rudalics@gmx.at>
14039
14040 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14041 at end of range when it coincides with the end of the buffer.
14042
140432008-03-14 Eli Zaretskii <eliz@gnu.org>
14044
14045 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14046
14047 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14048
140492008-03-14 Jason Rumney <jasonr@gnu.org>
14050
14051 * editfns.c (initial_tz): New variable.
14052 (syms_of_editfns): Initialize it.
14053 (Fset_time_zone_rule): Set it when first called.
14054 Use it when TZSTRING is nil.
14055
14056 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14057 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14058 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14059 (globals_of_w32fns): Initialize them.
14060 (compute_tip_xy): Use them to position tooltips.
14061
140622008-03-14 Glenn Morris <rgm@gnu.org>
14063
14064 * emacs.c (main): Revert previous change.
14065 (standard_args): Revert -internal-script back to -scriptload,
14066 and remove the long-option form.
14067
140682008-03-13 Glenn Morris <rgm@gnu.org>
14069
14070 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14071 Remove option -enable-font-backend.
14072
140732008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14074
14075 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14076
140772008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14078
14079 * xterm.c (x_connection_closed): For GTK: If this is the last
14080 terminal just exit without closing the display.
14081
140822008-03-11 Jason Rumney <jasonr@gnu.org>
14083
14084 * w32font.c (w32font_full_name): Use floor to round.
14085
f0131492 140862008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14087
14088 * sound.c (alsa_configure): Declare vol at beginning of block.
14089
14090 * fontset.c (Ffontset_info): Remove extra semicolon.
14091
140922008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14093
14094 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14095 size of resulting string.
14096
140972008-03-10 Jason Rumney <jasonr@gnu.org>
14098
14099 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14100
141012008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14102
14103 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14104 Don't pretend as if characters with display property haven't been
14105 consumed for string-replacing-string case.
14106
141072008-03-08 Kim F. Storm <storm@cua.dk>
14108
14109 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14110 (get_next_display_element, next_element_from_string)
14111 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14112
141132008-03-08 Andreas Schwab <schwab@suse.de>
14114
14115 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14116
141172008-03-06 Jason Rumney <jasonr@gnu.org>
14118
14119 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14120 when charset not specified. Only translate ANSI to unicode when
14121 font_type is truetype.
14122 (w32font_coverage_ok): New function.
14123 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14124
141252008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14126
14127 * lread.c (Fread_char): Resolve modifiers.
14128 (Fread_char_exclusive): Likewise.
14129
14130 * character.c (char_resolve_modifier_mask): New function.
14131 (char_string): Use char_resolve_modifier_mask.
14132 (Fchar_resolve_modifiers): New function.
14133 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14134 function.
14135
141362008-03-04 Jason Rumney <jasonr@gnu.org>
14137
14138 * makefile.w32-in: Always include w32font.c in the build.
14139 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14140
141412008-03-04 Andreas Schwab <schwab@suse.de>
14142
14143 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14144 (versionclean): Likewise.
14145
141462008-03-04 Juanma Barranquero <lekktu@gmail.com>
14147
14148 * .cvsignore: Add oo.
14149
141502008-03-03 Andreas Schwab <schwab@suse.de>
14151
14152 * coding.c (decode_coding_object): Inhibit gap shrinking while
14153 decoding in place.
14154
141552008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14156
14157 * w32term.c: Remove unused include "gnu.h".
14158 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14159
14160 * gnu.h: Rename to ...
14161 * emacs-icon.h: ... this.
14162 * xterm.c: Use emacs-icon.h instead of gnu.h.
14163 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14164
141652008-03-03 Juanma Barranquero <lekktu@gmail.com>
14166
14167 * w32font.c: Include math.h.
14168
141692008-03-03 Jason Rumney <jasonr@gnu.org>
14170
14171 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14172 Compute options separately.
14173 (w32font_open_internal): Set glyph_idx before caching metrics.
14174
14175 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14176 Define if system headers don't.
14177 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14178 (w32font_encode_char): Don't declare here.
14179
14180 * w32font.c (Quniscribe, QCformat): New symbols.
14181 (syms_of_w32font): Define them.
14182 (w32font_has_char): Indicate uncertainty.
14183 (w32font_encode_char): Encode as glyph point. Make static.
14184 (recompute_cached_metrics): New function.
14185 (w32font_open_internal): Use it. Set font to use glyph points
14186 initially. Set format based on type of font.
14187 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14188 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14189 on it. Set format based on information available here.
14190 (add_font_entity_to_list): Identify backend based on opentype_only.
14191
141922008-03-02 Andreas Schwab <schwab@suse.de>
14193
14194 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14195
14196 * coding.c (decode_coding_big5, produce_chars):
14197 Fix typos in last change.
14198
141992008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14200
14201 * gnu.h: New icon.
14202
142032008-03-02 Kenichi Handa <handa@m17n.org>
14204
14205 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14206 `dos', don't decode '\r' if that is the last in the source.
14207 (decode_coding_utf_16, decode_coding_emacs_mule)
14208 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14209 (decode_coding_raw_text, decode_coding_charset): Likewise.
14210 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14211
142122008-03-01 Jason Rumney <jasonr@gnu.org>
14213
14214 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14215
142162008-03-01 Kim F. Storm <storm@cua.dk>
14217
14218 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14219
142202008-03-01 Jason Rumney <jasonr@gnu.org>
14221
14222 * w32font.c (w32font_full_name): New function.
14223 (w32font_open_internal): Use it.
14224
142252008-03-01 Kim F. Storm <storm@cua.dk>
14226
14227 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14228
142292008-03-01 Jason Rumney <jasonr@gnu.org>
14230
14231 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14232
142332008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14234
14235 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14236 xg_frame_resized when the event is for the edit widget.
14237
14238 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14239
14240 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14241 set_char_size.
14242 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14243 operations on widgets here. Just set frame size if needed.
14244 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14245 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14246 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14247 the whole frame.
14248 (xg_create_tool_bar): Move attachment of the tool bar to
14249 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14250 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14251
142522008-03-01 Jason Rumney <jasonr@gnu.org>
14253
14254 * w32fns.c (w32_msg_pump): Disable debug code.
14255
142562008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14257
14258 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14259
142602008-02-29 Chong Yidong <cyd@stupidchicken.com>
14261
14262 * xdisp.c (next_overlay_string): Don't set
14263 overlay_strings_at_end_processed_p if we're currently reading from
14264 a display string.
14265
142662008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14267
14268 * xdisp.c (get_overlay_strings_1): Fix typo.
14269
142702008-02-29 Chong Yidong <cyd@stupidchicken.com>
14271
14272 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14273
142742008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14275
14276 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14277
14278 * xdisp.c (display_mode_element): Cancel the previous change.
14279 (decode_mode_spec): Likewise.
14280 (handle_auto_composed_prop): Don't make composition if it->string
14281 is a string.
14282
142832008-02-27 Kim F. Storm <storm@cua.dk>
14284
14285 * lisp.h (GLYPH): Change type from int to struct with separate char
14286 and face_id members.
14287 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14288 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14289 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14290 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14291 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14292 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14293 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14294 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14295 handle new Lisp glyph code encoding, either an integer or a cons.
14296
14297 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14298 (GLYPH_ALIAS): Delete.
14299 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14300 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14301 (GLYPH_FROM_CHAR): Replace macro by ...
14302 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14303
14304 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14305 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14306 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14307 (GLYPH_INVALID_P): New macro.
14308 (spec_glyph_lookup_face): Update prototype.
14309
14310 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14311 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14312 new glyph code encoding.
14313 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14314 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14315
14316 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14317 Adapt to new glyph type and new glyph code encoding.
14318
14319 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14320
14321 * indent.c (current_column, current_column_1, Fmove_to_column)
14322 (compute_motion): Adapt to new glyph code encoding.
14323
14324 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14325
143262008-02-27 Chong Yidong <cyd@stupidchicken.com>
14327
14328 * process.c (wait_reading_process_output): Check for window
14329 changes caused by timers.
14330 Suggested by Johan Bockgård.
14331
143322008-02-27 Glenn Morris <rgm@gnu.org>
14333
14334 * emacs.c (USAGE1): Add `--disable-font-backend'.
14335
143362008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14337
14338 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14339 is made to the buffer.
14340
143412008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14342
14343 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14344 (face_at_string_position):
14345 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14346 (face_at_string_position):
14347 * xdisp.c (display_string, next_overlay_change):
14348 * buffer.h (overlays_at):
14349 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14350 Update callers.
14351
143522008-02-26 Chong Yidong <cyd@stupidchicken.com>
14353
14354 * editfns.c (Fformat): Doc fix.
14355
143562008-02-26 Juanma Barranquero <lekktu@gmail.com>
14357
14358 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14359 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14360 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14361
143622008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14363
14364 * buffer.c (Fbuffer_swap_text): New function.
14365 (syms_of_buffer): Defsubr it.
14366
143672008-02-25 Chong Yidong <cyd@stupidchicken.com>
14368
14369 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14370
143712008-02-25 Jason Rumney <jasonr@gnu.org>
14372
14373 * w32font.c (w32font_draw): Draw one character at a time when padding.
14374
143752008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14376
14377 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14378 Handle a nil arg. Use run_window_configuration_change_hook.
14379 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14380 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14381 Use run_window_configuration_change_hook.
14382
143832008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14384
14385 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14386 1-pixel width.
14387
143882008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14389
14390 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14391 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14392 if the glyph in the font is zero pixel with.
14393
14394 * dispextern.h (struct glyph_string): New member padding_p.
14395
14396 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14397
14398 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14399
14400 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14401
14402 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14403
14404 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14405
144062008-02-25 Jason Rumney <jasonr@gnu.org>
14407
14408 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14409
144102008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14411
14412 Allow fine-grained image-cache flushing.
14413 * dispextern.h (struct image): Add `dependencies' field.
14414 (clear_image_caches): Change arg to Lisp_Object.
14415 * image.c (make_image): Initialize `dependencies' field.
14416 (clear_image_cache): Change arg to allow fine-grained flushing.
14417 Perform the flush even if image-cache-eviction-delay is nil.
14418 (clear_image_caches): Change arg to Lisp_Object.
14419 (Fclear_image_cache): Expand meaning of the argument.
14420 (mark_image): Mark `dependencies' field.
14421 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14422 (lface_hash): Use XHASH rather than XFASTINT.
14423 (face_at_buffer_position): Fix int -> EMACS_INT position.
14424 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14425 (select_frame_for_redisplay): Remove code duplication.
14426 (redisplay_internal): Adapt arg to call to clear_image_caches.
14427
144282008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14429
14430 * s/vms4-0.h:
14431 * s/vms4-2.h:
14432 * s/vms4-4.h:
14433 * s/vms5-5.h: Remove, unused.
14434
14435 * s/irix5-2.h:
14436 * s/irix6-0.h:
14437 * s/riscos5.h:
14438 * s/mach-bsd4-3.h:
14439 * m/mips4.h: Remove files for obsolete systems.
14440
14441 * Makefile.in:
14442 * filelock.c:
14443 * unexmips.c:
14444 * m/hp9000s300.h:
14445 * m/iris4d.h:
14446 * s/aix3-1.h:
14447 * s/hpux.h:
14448 * s/msdos.h:
14449 * s/usg5-0.h:
14450 * s/usg5-2-2.h:
14451 * s/usg5-2.h:
14452 * s/usg5-3.h: Remove references to obsolete variables.
14453
14454 * s/irix5-0.h: Remove, move all the contents ...
14455 * s/irix6-5.h: ... here. Simplify.
14456 * config.in: Regenerate.
14457
144582008-02-24 Jason Rumney <jasonr@gnu.org>
14459
14460 * w32term.c (x_draw_glyph_string_background): Clear the background
14461 manually when cleartype is in use.
14462 (x_draw_glyph_string_foreground): Draw text transparently when
14463 cleartype is in use.
14464
14465 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14466 a font into it unless we have to.
14467
144682008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14469
14470 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14471 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14472
aac0c6e3
MR
144732008-02-18 Jason Rumney <jasonr@gnu.org>
14474
14475 * w32fns.c (Fw32_shell_execute): Encode parameters.
14476
144772008-02-09 Eli Zaretskii <eliz@gnu.org>
14478
14479 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14480
144812008-02-05 Juanma Barranquero <lekktu@gmail.com>
14482
14483 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14484
144852008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14486
14487 * xterm.c (x_set_offset): Don't change the gravity if
14488 CHANGE_GRAVITY is -1.
14489
144902008-02-23 Chong Yidong <cyd@stupidchicken.com>
14491
14492 * fileio.c (auto_save_error_occurred): New var.
14493 (auto_save_error): Set it.
14494 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14495 error occurred.
14496
144972008-02-23 Eli Zaretskii <eliz@gnu.org>
14498
14499 * w32.c (globals_of_w32): Add initializations for
14500 g_b_init_get_sid_sub_authority and
14501 g_b_init_get_sid_sub_authority_count.
14502
145032008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14504
14505 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14506 (font_parse_xlfd): Use them for sanity check.
14507 (Finternal_set_font_style_table): Make sure the table is bijective.
14508
14509 Consolidate the image_cache to the terminal struct.
14510 * termhooks.h (P_): Remove redundant def.
14511 (struct terminal): New field `image_cache'.
14512 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14513 of FRAME_X_IMAGE_CACHE.
14514 * xterm.h (struct x_display_info): Remove image_cache field.
14515 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14516 * w32term.h (struct w32_display_info): Remove image_cache field.
14517 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14518 * macterm.h (struct mac_display_info): Remove image_cache field.
14519 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14520 * xterm.c (x_term_init):
14521 * w32term.c (w32_term_init):
14522 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14523 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14524 Remove declarations.
14525 (clear_image_caches, mark_image_cache): New declarations.
14526 * xfaces.c (clear_face_cache):
14527 * xdisp.c (redisplay_internal): Use clear_image_caches.
14528 * image.c (clear_image_cache): Don't check that a frame is on
14529 a window-system before checking if it shares the same cache.
14530 (clear_image_caches): New function.
14531 (Fclear_image_cache): Use it.
14532 (mark_image): Move from allo.c.
14533 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14534 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14535 (mark_object): Don't call mark_image_cache for frames.
14536 (mark_terminals): Call mark_image_cache.
14537
14538 * lisp.h (Fdelete_terminal): Declare.
14539
14540 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14541 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14542 wrong_type_argument.
14543
145442008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14545
14546 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14547 malayalam.el, and tamil.el. Add sinhala.el.
14548
145492008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14550
14551 * xterm.c (x_connection_closed): Consolidate identical tests.
14552 (x_delete_terminal): Don't crash if called via x_connection_closed.
14553
145542008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14555
14556 * xdisp.c (decode_mode_spec): New arg string.
14557 (display_mode_element): Adjust for the above change.
14558
145592008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14560
14561 * callint.c (Fcall_interactively): Use AREF.
14562
145632008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14564
14565 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14566
145672008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14568
14569 * xfns.c (Fx_show_tip): Set string to " " if empty.
14570
145712008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14572
14573 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14574 with Qt.
14575
145762008-02-17 Kenichi Handa <handa@m17n.org>
14577
14578 * ftfont.c (ftfont_shape): Return Lispy number.
14579
14580 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14581 for GCs.
14582 (Finternal_set_font_selection_order): Call font_update_sort_order
14583 only when enable_font_backend is set.
14584 (realize_x_face): Set face->font_info to that of default face only
14585 when enable_font_backend is set.
14586
14587 * xdisp.c (handle_composition_prop): Set it->c to the fist
14588 character of the composed region.
14589 (fill_composite_glyph_string): Set base_face->font_info to
14590 s->font_info. Get a face for ascii from base_face->ascii_face.
14591 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14592 with a face already decided.
14593 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14594 non-negative.
14595 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14596 call font_prepare_composition unconditionally.
14597
14598 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14599
14600 * xterm.h (struct x_display_info): New member font.
14601
14602 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14603 (x_set_mouse_face_gc, x_new_font): Likewise.
14604 (x_term_init): Setup display_info->font.
14605 (x_delete_terminal): Free display_info->font.
14606
14607 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14608
14609 * ftxfont.c (ftxfont_default_fid): Delete it.
14610 (ftxfont_open): Set xfont->fid to 0.
14611 (ftxfont_end_for_frame): Clear data specific to the frame and the
14612 font-driver.
14613
14614 * xftfont.c (xftfont_default_fid): Delete it.
14615 (xftfont_open): Set xfont->fid to 0.
14616
14617 * fontset.c (FONTSET_OBJLIST): New macro.
14618 (fontset_find_font): Update font-object list of the fontset.
14619 (free_realized_fontset): New function.
14620 (free_face_fontset): Call free_realized_fontset.
14621 (Ffont_info): Call font_close_object only when enable_font_backend
14622 is set.
14623
14624 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14625 [HAVE_NTGUI]: Include w32term.h.
14626 [MAC_OS]: Include macterm.ch.
14627 (font_otf_ValueRecord): Use make_number.
14628 (font_finish_cache): Fix handling of reference count.
14629 (font_clear_cache): Update num_fonts.
14630 (font_open_entity): Update smallest_char_width and
14631 smallest_font_height of the frame.
14632 (font_close_object): Update num_fonts.
14633 (Fclear_font_cache): Fix finding the target cache data.
14634
146352008-02-16 Glenn Morris <rgm@gnu.org>
14636
14637 * fontset.c (Finternal_char_font): Fix compilation warning.
14638
146392008-02-16 Eli Zaretskii <eliz@gnu.org>
14640
14641 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14642 instead of char arrays. Enlarge the size of array passed to
14643 get_token_information.
14644
14645 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14646 warnings.
14647
146482008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14649
14650 * .gdbinit: Don't set `args', it breaks gdb --args.
14651
146522008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14653
14654 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14655 within a narrowed buffer.
14656
146572008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14658
14659 * coding.c (decode_coding_object, encode_coding_object):
14660 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14661
146622008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14663
14664 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14665 hardcoding 1.
14666 (detect_coding_system):
14667 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14668 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14669 * insdel.c (insert_from_gap):
14670 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14671 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14672 (string_to_multibyte):
14673 * character.c (chars_in_text, multibyte_chars_in_text):
14674 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14675
14676 * character.h (FETCH_STRING_CHAR_ADVANCE)
14677 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14678 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14679 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14680
14681 * casefiddle.c (casify_region): Only call after-change and composition
14682 functions on the part of the region that was changed.
14683
14684 * keyboard.c (read_avail_input):
14685 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14686
146872008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14688
14689 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14690 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14691
146922008-02-11 Juanma Barranquero <lekktu@gmail.com>
14693
14694 * w32menu.c (push_submenu_start, push_submenu_end)
14695 (push_left_right_boundary, push_menu_pane, push_menu_item):
14696 * keyboard.c (read_key_sequence): Don't pass args with side effects
14697 to AREF, it fails when compiling with -DENABLE_CHECKING.
14698
146992008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14700
14701 * Makefile.in (${lispsource}international/charprop.el):
14702 Delete this target.
14703
14704 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14705 emacs-unicode-2.
14706
147072008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14708
14709 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14710
147112008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14712
14713 * frame.c (Qnoelisp): New symbol.
14714 (syms_of_frame): Initialize it.
14715 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14716 harmless Elisp code, from a strong `force' from x_connection_closed.
14717 * frame.h (Qnoelisp): Declare.
14718 * xterm.c (x_connection_closed): Pass `noelisp'.
14719
14720 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14721 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14722 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14723 rather than `int' for the type of `type'.
14724
147252008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14726
14727 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14728
14729 * Makefile.in (GNUC): Remove support for gcc-1.x.
14730
147312008-02-10 Richard Stallman <rms@gnu.org>
14732
14733 * lisp.h (ASET): Use AREF, not ASLOT.
14734
147352008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14736
14737 * lisp.h (ASET): Check bounds.
14738
147392008-02-10 Glenn Morris <rgm@gnu.org>
14740
14741 * buffer.c (mode-name): Doc fix.
14742
147432008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14744
14745 * Makefile.in:
14746 * emacs.c:
14747 * gmalloc.c:
14748 * keyboard.c:
14749 * lisp.h:
14750 * m/ibm370aix.h:
14751 * process.c:
14752 * regex.c:
14753 * s/hpux.h:
14754 * sysdep.c:
14755 * sysselect.h:
14756 * systty.h:
14757 * unexec.c:
14758 * w32term.c:
14759 * xsmfns.c:
14760 * xterm.c: Remove code that deals with obsolete variables.
14761
14762 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14763
14764 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14765 nothing else needs it anymore.
14766
147672008-02-09 Eli Zaretskii <eliz@gnu.org>
14768
14769 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14770 instead of unibyte_char_to_multibyte.
14771
147722008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14773
14774 * s/gnu-linux.h: Remove commented out code.
14775
14776 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14777
14778 * Makefile.in: Update what RMS says about using autoconf.
14779 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14780 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14781 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14782 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14783
147842008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14785
14786 * keymap.c (Fkey_description): Move side effect outside of macro call.
14787
14788 * xfaces.c (Finternal_make_lisp_face):
14789 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14790
14791 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14792 (syms_of_fontset): Use ASET.
14793
14794 * fns.c (concat): Move side effect outside of macro call.
14795 (hash_clear): Use ASET.
14796
147972008-02-08 Richard Stallman <rms@gnu.org>
14798
14799 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14800 If FORCE, and frame has a surrogate minibuffer for another frame,
14801 delete the other frame first.
14802
148032008-02-07 Timo Savola <timo.savola@iki.fi>
14804
14805 * xterm.c (x_detect_focus_change): Handle embed client message.
14806 (handle_one_xevent): Ditto.
14807 (handle_one_xevent): If embedded and we get a button press/release,
14808 request focus.
14809 (xembed_set_info, xembed_send_message): New functions.
14810 (x_make_frame_visible): Call xembed_set_info if embedded.
14811 (x_make_frame_invisible): Call xembed_set_info if embedded.
14812 (x_term_init): Initialize Xatom_XEMBED.
14813 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14814 (x_iconify_frame): Ditto.
14815
14816 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14817 (enum xembed_info, enum xembed_message, enum xembed_focus)
14818 (enum xembed_modifier, enum xembed_accelerator): New.
14819 (xembed_set_info, xembed_send_message): Declare.
14820 (FRAME_X_EMBEDDED_P): New.
14821
14822 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14823 gtk_plug_new.
14824
14825 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14826 window ID of a frame.
14827 (x_window): Reparent frame if embedded.
14828 (Fx_create_frame): Don't set border width if embedded.
14829
14830 * emacs.c (USAGE3): Add --parent-id.
14831 (standard_args): Ditto.
14832
148332008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14834
14835 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14836
148372008-02-07 Jim Meyering <meyering@redhat.com>
14838
14839 Use "do...while (0)", not "if (1)...else" in macro definitions.
14840 The latter provokes a warning from gcc about the empty else, when
14841 followed by ";". Also, without that trailing semicolon, it would
14842 silently swallow up any following statement.
14843 * syntax.h (SETUP_SYNTAX_TABLE)
14844 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14845 * buffer.h (DECODE_POSITION): Likewise.
14846 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14847 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14848 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14849 (FETCH_CHAR_ADVANCE): Likewise.
14850 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14851
148522008-02-07 Jim Meyering <meyering@redhat.com>
14853
14854 * lread.c [lint]: Don't include <sys/inode.h>.
14855
148562008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14857
14858 * xselect.c (x_handle_dnd_message):
14859 * xmenu.c (digest_single_submenu, xmenu_show):
14860 * xdisp.c (with_echo_area_buffer_unwind_data)
14861 (format_mode_line_unwind_data, unwind_format_mode_line)
14862 (display_menu_bar):
14863 * eval.c (Ffetch_bytecode):
14864 * doc.c (store_function_docstring):
14865 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14866 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14867 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14868
148692008-02-07 Kenichi Handa <handa@m17n.org>
14870
14871 * ftxfont.c (ftxfont_open): Don't set
14872 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14873
14874 * ftfont.c (ftfont_open): Fix previous change.
14875
148762008-02-06 Jason Rumney <jasonr@gnu.org>
14877
14878 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14879 Use cached metrics for ASCII characters.
14880 (w32font_open_internal): Don't set font's owning_frame.
14881 Cache metrics for ASCII characters.
14882
14883 * w32font.h (struct w32font_info): Add ascii_metrics.
14884 Remove owning_frame.
14885
148862008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14887
14888 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14889 to negative value.
14890
14891 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14892
14893 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14894
14895 * charset.c (syms_of_charset): Set QCtest and Qeq.
14896
148972008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14898
14899 * process.c (Fstart_process):
14900 * callproc.c (Fcall_process): Handle the case where
14901 Funhandled_file_name_directory returns nil.
14902
14903 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14904 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14905 * font.c (check_gstring): Use them and AREF to access the vector before
14906 we know it's really a gstring.
14907 (Ffont_shape_text): Fix typo.
46e722a9 14908 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14909
14910 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14911 Declare.
14912
14913 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14914
149152008-02-05 Jason Rumney <jasonr@gnu.org>
14916
14917 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14918 Set smallest_font_height and smallest_char_width in display info.
14919
149202008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14921
14922 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14923
149242008-02-05 Miles Bader <miles@gnu.org>
14925
14926 * xfaces.c (get_lface_attributes, merge_named_face)
14927 (lookup_named_face, lookup_derived_face, realize_named_face):
14928 Revert 2008-02-01 change by cyd@stupidchicken.com.
14929
149302008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14931
14932 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14933 fallback fonts.
14934 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14935
149362008-02-04 Jason Rumney <jasonr@gnu.org>
14937
14938 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14939 set full_name.
14940 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14941
149422008-02-03 Jason Rumney <jasonr@gnu.org>
14943
14944 * makefile.w32-in (OBJ1): Include font.o here.
14945 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14946
149472008-02-02 Jason Rumney <jasonr@gnu.org>
14948
14949 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14950
149512008-02-01 Jason Rumney <jasonr@gnu.org>
14952
14953 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14954
14955 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14956
149572008-02-01 Andreas Schwab <schwab@suse.de>
14958
14959 * Makefile.in (shortlisp, lisp): Update for rename of
14960 ../lisp/language/myanmar.el.
14961
149622008-02-01 Chong Yidong <cyd@stupidchicken.com>
14963
14964 * xfaces.c (get_lface_attributes): Delete function.
14965 (merge_named_face, lookup_named_face, lookup_derived_face)
14966 (realize_named_face): Call lface_from_face_name directly, and use
14967 the fact that merge_face_vectors does not alter its FROM argument.
14968
149692008-02-01 Jason Rumney <jasonr@gnu.org>
14970
14971 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14972 input in the default locale. Handle non-Unicode multibyte input.
14973
149742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14975
14976 * fontset.c (reorder_font_vector): Exclude nil elements from the
14977 font group. Don't try multiple fonts.
14978 (fontset_font): Adjust for the above change.
14979 (Finternal_char_font): Return nil if the found font doesn't
14980 contain the character ch.
14981
14982 * Makefile.in (lisp, shortlisp): Add cham.el.
14983
149842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14985
14986 * font.h (FONTP): Make it return 1 also for a font-object.
14987
14988 * .gdbinit (xfontset): New function.
14989
14990 * font.c (font_find_for_lface): Check if the character C is
14991 supported or not only for the first font.
14992
14993 * fontset.c (reorder_font_vector): Fix typo.
14994 (fontset_find_font): Don't add a font-spec specifying a script.
14995 Use 0 (not Qt) for the indication of empty font-group. Change the
14996 format of RFONT-DEF. Return Qt if no font in the font-group
14997 support the character.
14998 (fontset_font): Adjust for the above change. If no font was
14999 found the character, remember that.
15000 (face_for_char): Adjust for the change of RFONT-DEF.
15001 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15002 no font for the target.
15003 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15004
150052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15006
15007 * font.c (font_load_for_face): Handle the case that the font in
15008 face->lface is a string.
15009
150102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15011
15012 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15013
150142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15015
15016 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15017 Fix previous change. If the frame is not on a window system,
15018 signal an error.
15019
150202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15021
15022 * coding.c (decode_coding_object, encode_coding_object): Adjust
15023 marker positions after conversion.
15024
15025 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15026
150272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15028
15029 * font.c (font_find_for_lface): Fix the handling of the return
15030 value of font_has_char.
15031 (Ffont_shape_text): Fix previous change.
15032
15033 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15034 (fontset_ref_and_range): Delete it.
15035 (fontset_find_font): Call char_table_ref_and_range instead of
15036 FONTSET_REF_AND_RANGE.
15037 (make_fontset): Don't setup font groups of Latin here.
15038 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15039 (new_fontset_from_font): Make the specified font the default for
15040 all Latin characters.
15041
150422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15043
15044 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15045 is on a window system before accessing the fontset of the frame.
15046
150472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15048
15049 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15050
15051 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15052 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15053
15054 * font.c (Ffont_shape_text): If the font driver doesn't have a
15055 shaper function, make zero-width glyphs to have at least one-pixel
15056 width. Fix setting of `to' field of glyphs.
15057
150582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15059
15060 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15061 glyphs.
15062
15063 * font.h (struct font_driver): Improve docstring of member `shape'.
15064
150652008-02-01 Kenichi Handa <handa@m17n.org>
15066
15067 * composite.c (syms_of_composite): Fix docstring of
15068 auto-composition-function.
15069
15070 * font.h (LGLYPH_SIZE): New macro.
15071
15072 * font.c (Ffont_fill_gstring): Stop filling when a character not
15073 supported by the font is found.
15074 (Ffont_shape_text): When a shape callback function returns nil,
15075 try at most two more times with larger gstring.
15076 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15077
15078 * xdisp.c (handle_auto_composed_prop): Change the argument to
15079 auto-composition-function.
15080
15081 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15082 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15083 Lispy glyph and store it in the lgstring.
15084
15085 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15086
15087 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15088
150892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15090
15091 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15092
15093 * fontset.c (Vfont_encoding_charset_alist): New variable.
15094 (syms_of_fontset): DEFVAR it.
15095 (reorder_font_vector, fontset_find_font): Optimize for the case of
15096 no need of reordering.
15097 (face_for_char): Map the charset property by
15098 Vfont_encoding_charset_alist.
15099
151002008-02-01 Jason Rumney <jasonr@gnu.org>
15101
15102 * w32font.c (logfonts_match): Don't check adstyle here.
15103 (font_matches_spec): Check here against physical font instead.
15104 (add_font_entity_to_list): Avoid some substitutions.
15105
15106 * font.c (font_parse_fcname): Default weight and slant to normal.
15107 (font_score): Prefer normal fonts if weight or slant unspecified.
15108 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15109 match freetype scores.
15110
151112008-02-01 Jason Rumney <jasonr@gnu.org>
15112
15113 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15114 font, as it may have been deleted.
15115 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15116 most common hyphenless variation.
15117 (logfonts_match): Check generic family.
15118 (font_matches_spec): Don't check generic family here.
15119 (fill_in_logfont): Set generic family based on adstyle.
15120
15121 * w32font.h (w32font_get_cache): Update declaration.
15122
151232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15124
15125 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15126
15127 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15128 If none of the new drivers are available, call font_update_drivers
15129 with the old drivers.
15130
15131 * w32font.c (w32font_get_cache): Adjust the argument type.
15132
15133 * xfont.c (xfont_get_cache): Adjust the argument type.
15134
15135 * font.h (struct font_driver): Change argument type of get_cache.
15136
15137 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15138
15139 * font.c (Ffont_get): Fix arguments to Fassoc.
15140 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15141 (font_clear_cache): New function.
15142 (font_list_entities, font_matching_entity): Use font_get_cache.
15143 (font_update_drivers): Call font_clear_cache when finishing a driver.
15144
15145 * fontset.c (fontset_find_font): Fix previous change.
15146
151472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15148
15149 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15150 dpyinfo->font_table.
15151 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15152 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15153
15154 * font.c (font_at): Handle the case that the arg C is negative.
15155 Handle the unibyte case.
15156 (Ffont_at): Call font_at with the arg C -1.
15157
15158 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15159 the position here, and call font_at with the arg C -1.
15160 Don't check the range of the existing composition at the point.
15161
151622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15163
15164 * fontset.c (fontset_add): New args charset_id and family.
15165 Change caller.
15166 (load_font_get_repertory, fontset_find_font): Assume that
15167 font_spec is always a font-spec object.
15168 (Fset_fontset_font): Always store a font-spec object in a fontset.
15169
15170 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15171 instead of get_property_and_range.
15172
151732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15174
15175 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15176 (xftfont_open): Don't keep locking face.
15177 (xftfont_close): Don't unlock face.
15178 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15179
15180 * fontset.c (fontset_find_font): Don't prefer a font of
15181 supplementary charset.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15186 script, langsys_tag to langsys, new member script.
15187 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15188 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15189 listing to the script specified in that property. Fix arg to
15190 OTF_check_features.
15191
151922008-02-01 Jason Rumney <jasonr@gnu.org>
15193
15194 * w32font.h: New file.
15195
15196 * w32font.c: Include it.
15197 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15198 (w32font_open): Set owning_frame.
15199 (w32font_text_extents): Use owning_frame.
15200 (struct font_callback_data): Add opentype_only field.
15201 (add_font_entity_to_list): Use it to filter fonts.
15202 Don't check against full name.
15203 (w32font_list_internal): New function.
15204 (w32font_list): Use it.
15205 (w32font_match_internal): New function.
15206 (w32font_match): Use it.
15207 (w32font_open_internal): New function.
15208 (w32font_open): Use it.
15209 (w32font_get_cache, w32font_close, w32font_has_char)
15210 (w32font_encode_char, w32font_text_extents, w32font_draw):
15211 Make non-static.
15212
15213 * makefile.w32-in (w32font.o): Depend on w32font.h.
15214
152152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15216
15217 * charset.c (Fdefine_charset_internal): Record a supplementary
15218 charset at the tail of Vcharset_order_list.
15219
15220 * font.c (Ffont_shape_text): Fix the return value.
15221
15222 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15223
15224 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15225
152262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15227
15228 * ftfont.c (struct OpenTypeSpec): New struct.
15229 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15230 (ftfont_get_open_type_spec): New function.
15231 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15232
15233 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15234
152352008-02-01 Jason Rumney <jasonr@gnu.org>
15236
15237 * w32font.c (add_font_entity_to_list): Compare only the beginning
15238 of full name.
15239
152402008-02-01 Kenichi Handa <handa@m17n.org>
15241
15242 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15243 Never return HANDLED_RECOMPUTE_PROPS.
15244
152452008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * font.c (font_gstring_produce): Delete it.
15248
15249 * composite.h (COMPOSITION_METHOD):
15250 Handle COMPOSITION_WITH_GLYPH_STRING.
15251
152522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15253
15254 * xfont.c (Qx): Delete.
15255 (syms_of_xfont): Don't initialize Qx.
15256
15257 * composite.h (enum composition_method):
15258 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15259
152602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15261
15262 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15263 (choose_face_font): Accept new form of font-spec.
15264
15265 * frame.h (font_driver_list): Declare it unconditionally.
15266 (struct frame): Define members font_driver_list and font_data_list
15267 unconditionally.
15268
15269 * fontset.c: Include "font.h" unconditionally.
15270 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15271 (Fset_fontset_font): Accept a font-spec object.
15272
15273 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15274 PIXEL_SIZE part a wild card.
15275
15276 * dispextern.h (struct glyph_string): Define members clip and
15277 num_clips unconditionally.
15278 (struct face): Define members font_info and extra unconditionally.
15279
15280 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15281 ftfont_info only when HAVE_LIBOTF is defined.
15282
152832008-02-01 Andreas Schwab <schwab@suse.de>
15284
15285 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15286 and end.
15287
152882008-02-01 Jason Rumney <jasonr@gnu.org>
15289
15290 * w32font.c (w32font_driver): Add new fields.
15291
152922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15293
15294 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15295 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15296 (LIBES): Add @M17N_FLT_CFLAGS@.
15297
15298 * composite.c (compose_text): Don't treat the new style
15299 composition specially.
15300
15301 * emacs.c (main): Call syms_of_font unconditionally.
15302
15303 * font.h (FONT_ENTITY_NOT_LOADABLE)
15304 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15305 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15306 (struct font_driver): New member shape.
15307 (font_registry_charsets): Extern it.
15308 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15309 (font_otf_capability, font_drive_otf): Delete their externs.
15310
15311 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15312 (font_charset_alist, font_registry_charsets): Move from xfont.c
15313 and rename.
15314 (font_prop_validate_otf): New function.
15315 (font_property_table): Register it for QCotf.
15316 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15317 (font_drive_otf): Delete.
15318 (font_prepare_composition): New arg F. Adjust for the change of
15319 lispy gstring.
15320 (font_find_for_lface): New arg C.
15321 (font_load_for_face): Adjust for the change of font_find_for_lface.
15322 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15323 lispy gstring.
15324 (Ffont_shape_text): New function.
15325 (Fopen_font): If the font size is not given, use 12-pixel.
15326 (Ffont_at): New arg STRING.
15327 (syms_of_font): Initalize font_charset_alist.
15328 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15329 conditionally.
15330
15331 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15332 fonts of the same font-spec. Change the format of RFONT-DEF.
15333 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15334 Adjust for the change of RFONT-DEF.
15335 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15336
15337 * ftfont.h: New file.
15338
15339 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15340 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15341 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15342 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15343 font_otf_capability and font_drive_otf, set ftfont_shape.
15344 (ftfont_list): Adjust for the change of :otf property value.
15345 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15346 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15347 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15348 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15349 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15350 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15351
15352 * w32term.c (x_draw_composite_glyph_string_foreground):
15353 Adjust for the change of lispy gstring.
15354
15355 * xdisp.c (handle_composition_prop): Adjust for the change of
15356 lispy gstring. Call a function for auto-composition with the
15357 third arg it->window.
15358 (fill_composite_glyph_string): Adjust for the change of lispy string.
15359 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15360
15361 * xfaces.c (set_font_frame_param): Adjust for the change of
15362 font_find_for_lface.
15363
15364 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15365 (xfont_registry_charsets): Likewise. Change caller.
15366 (syms_of_xfont): Don't handle x_font_charset_alist.
15367
15368 * xftfont.c: Include "ftfont.h".
15369 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15370 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15371 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15372 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15373 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15374 Set xftfont_driver.shape to xftfont_shape.
15375
15376 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15377 the change of lispy gstring.
15378
153792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15380
15381 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15382
153832008-02-01 Jason Rumney <jasonr@gnu.org>
15384
15385 * w32font.c (w32font_draw): Fill background manually.
15386
153872008-02-01 Jason Rumney <jasonr@gnu.org>
15388
15389 * font.c (Qfontp): Remove unused symbol.
15390 (QCantialias): New symbol.
15391 (syms_of_font): Define it.
15392 (font_property_table): Set a validator for QCantialias.
15393
15394 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15395 Define if not already.
15396 (QCfamily): Share with xfaces.c.
15397 (Qstandard, Qsubpixel, Qnatural): New symbols.
15398 (syms_of_w32font): Define them. Don't define QCfamily here.
15399 (w32_antialias_type, lispy_antialias_type): New functions.
15400 (w32_enumfont_pattern_entity): New arg requested_font.
15401 Set antialias parameter if non-default was requested.
15402 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15403
154042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15405
15406 * lread.c (read1): Undo the previous change.
15407
154082008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15409
15410 * frame.c (Fdelete_frame): Call font_update_drivers only when
15411 USE_FONT_BACKEND is defined.
15412
154132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15414
15415 * font.h (struct font_bitmap): New member bits_per_pixel.
15416 (struct font_driver): New members start_for_frame and end_for_frame.
15417 (struct font_data_list): New struct.
15418 (font_put_frame_data, font_get_frame_data): Extern them.
15419
15420 * frame.h (struct frame): New member font_data_list.
15421
15422 * font.c (font_update_drivers): Call driver->start_for_frame and
15423 driver->end_for_frame at proper timings.
15424 (font_put_frame_data, font_get_frame_data): New functions.
15425 (Ffont_spec): Add usage in the docstring.
15426
15427 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15428 (Fdelete_frame): Call font_update_drivers.
15429
15430 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15431 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15432 (xftfont_get_xft_draw): New function.
15433 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15434 (xftfont_end_for_frame): New function.
15435 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15436
15437 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15438 Change argument. Cache GCs in the per-frame data.
15439 (struct ftxfont_frame_data): New struct.
15440 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15441 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15442 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15443 (ftxfont_end_for_frame): New function.
15444 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15445
15446 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15447
154482008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * xselect.c (Vselection_coding_system)
15451 (Vnext_selection_coding_system): Delete them.
15452 (syms_of_xselect): Don't declare selection-coding-system and
15453 next-selection-coding-system. They are declared in select.el.
15454
154552008-02-01 Jason Rumney <jasonr@gnu.org>
15456
15457 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15458
15459 * w32fns.c: Include imm.h.
15460 (get_composition_string_fn, get_ime_context_fn): New optional
15461 system functions.
15462 (globals_of_w32fns): Load them from imm32.dll.
15463 (ignore_ime_char): New flag.
15464 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15465 WM_IME_ENDCOMPOSITION messages.
15466
15467 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15468 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15469
154702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15471
15472 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15473 (READCHAR_REPORT_MULTIBYTE): New macro.
15474 (readchar): New 2nd arg MULTIBYTE.
15475 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15476 Make symbol's name multibyte according to the multibyteness of the
15477 source.
15478
154792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15480
15481 * xfaces.c (face_for_overlay_string): Call lookup_face with
15482 correct arguments (fix of synching with the trunk).
15483
154842008-02-01 Kenichi Handa <handa@m17n.org>
15485
15486 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15487 (font_prop_validate_non_neg, font_prop_validate_spacing):
15488 Delete argument prop_index.
15489 (font_property_table): Change arguments to validater. Change Callers.
15490 (font_lispy_object): Delete.
15491 (font_at): Use font_find_object instead fo font_lispy_object.
15492
154932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15494
15495 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15496 and file names.
15497
154982008-02-01 Jason Rumney <jasonr@gnu.org>
15499
15500 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15501 (font_matches_spec): Remove debug output.
15502 (add_font_entity_to_list): Avoid using substituted fonts.
15503
155042008-02-01 Jason Rumney <jasonr@gnu.org>
15505
15506 * doc.c (Fsnarf_documentation):
15507 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15508
155092008-02-01 Miles Bader <miles@gnu.org>
15510
15511 * dispextern.h (struct glyph_row): Only define "clip" field if
15512 HAVE_WINDOW_SYSTEM is defined.
15513
155142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15515
15516 Fix up multi-tty merge.
15517
15518 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15519 and indentation.
15520
15521 * xfaces.c (free_realized_face, clear_face_gcs):
15522 Include font_done_for_face in the input_blocked section, just in case.
15523
15524 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15525 (get_char_face_and_encoding): Undo last change and remove the *other*
15526 duplicate definition (i.e. keep the one that's better scoped and that
15527 includes code for the font-backend).
15528
15529 * terminal.c (create_terminal): Default keyboard_coding to
15530 `no-conversion' and terminal_coding to `undecided'.
15531
15532 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15533
15534 * fontset.c (free_realized_fontsets): Check that the table entry does
15535 contain a fontset before trying to compare it to `base'.
15536
15537 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15538 syms_of_charset, and syms_of_coding earlier because init_window_once
15539 now needs Vcoding_system_hash_table to be setup.
15540
15541 * coding.h (default_buffer_file_coding): Remove.
15542
15543 * coding.c (default_buffer_file_coding): Remove.
15544 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15545 than ->symbol, and use the terminal-local coding system.
15546 (syms_of_coding): Don't setup the coding-systems that are not
15547 terminal-local.
15548 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15549
15550 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15551 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15552
15553 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15554 in chartab.c and were re-added here by mistake.
15555 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15556
15557 * doc.c (Fsnarf_documentation):
15558 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15559 src to etc.
15560
15561 * ChangeLog.10: Add mistakenly removed entry.
15562
155632008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15564
15565 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15566
155672008-02-01 Miles Bader <miles@gnu.org>
15568
15569 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15570 Add extra args to FACE_FOR_CHAR.
15571
155722008-02-01 Kenichi Handa <handa@m17n.org>
15573
15574 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15575 in sequence.
15576
15577 * chartab.c (map_sub_char_table, map_char_table): If the range
15578 contains just one character, call the function with that character
15579 even if the depth is not 3.
15580
155812008-02-01 Jason Rumney <jasonr@gnu.org>
15582
15583 * w32font.c (w32font_text_extents): Calculate metrics for the
15584 whole string.
15585
155862008-02-01 Jason Rumney <jasonr@gnu.org>
15587
15588 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15589
155902008-02-01 Jason Rumney <jasonr@gnu.org>
15591
15592 * w32term.c (x_set_glyph_string_clipping): Use
15593 get_glyph_string_clip_rects.
15594 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15595 Adjust for the change of struct glyph_string.
15596
15597 * w32font.c (w32font_draw): Do clipping here.
15598
155992008-02-01 Kenichi Handa <handa@m17n.org>
15600
15601 * xftfont.c (xftfont_draw): Adjust for the change of struct
15602 glyph_string.
15603
15604 * xterm.c (x_set_glyph_string_clipping): Use
15605 get_glyph_string_clip_rects.
15606 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15607 Adjust for the change of struct glyph_string.
15608
15609 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15610 the resulting clip(s}.
15611 (expose_overlaps): Add arg r. Change callers. Set it to
15612 row->clip temporarily.
15613 (expose_window): Redraw rows overlapping the exposed area.
15614
15615 * dispextern.h (struct glyph_row): New member clip.
15616 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15617 clip_height, new member clip, and num_clips.
15618
156192008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * data.c (Fchar_or_string_p): Fix docstring.
15622
156232008-02-01 Kenichi Handa <handa@m17n.org>
15624
15625 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15626 create a temporary XftDraw object.
15627
156282008-02-01 Kenichi Handa <handa@m17n.org>
15629
15630 * font.c (Ffontp): Fix docstring.
15631
15632 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15633 strong evidence of ISO-2022.
15634
156352008-02-01 Kenichi Handa <handa@m17n.org>
15636
15637 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15638 SYNTAX_ENTRY_FOLLOW_PARENT.
15639
156402008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15641
15642 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15643 its type.
15644 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15645 Update to the new type of weak_hash_tables and next_weak.
15646
15647 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15648 a plain C pointer to Lisp_Hash_Table.
15649
15650 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15651 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15652 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15653 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15654 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15655 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15656 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15657 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15658 (GC_EQ): Remove since they've been identical to their non-GC_
15659 alter-egos ever since the markbit was eradicated.
15660
15661 * alloc.c:
15662 * buffer.c:
15663 * buffer.h:
15664 * data.c:
15665 * fileio.c:
15666 * filelock.c:
15667 * fns.c:
15668 * frame.h:
15669 * lisp.h:
15670 * macterm.c:
15671 * print.c:
15672 * process.c:
15673 * w32fns.c:
15674 * w32menu.c:
15675 * w32term.c:
15676 * xfns.c:
15677 * xmenu.c:
15678 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15679
156802008-02-01 Kenichi Handa <handa@m17n.org>
15681
15682 * chartab.c (map_sub_char_table): Make it work for the top-level
15683 char-table. Fix handling of parent char-table.
15684 (map_char_table): Adjust for the above change.
15685
156862008-02-01 Jason Rumney <jasonr@gnu.org>
15687
15688 * w32font.c (Qgdi): Rename from Qw32.
15689
156902008-02-01 Jason Rumney <jasonr@gnu.org>
15691
15692 * w32bdf.c (get_quoted_string): Make function static.
15693
156942008-02-01 Kenichi Handa <handa@m17n.org>
15695
15696 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15697 bigger ascent and descent than those of the font, use them as
15698 font's ascent and descent.
15699
157002008-02-01 Kenichi Handa <handa@m17n.org>
15701
15702 * Makefile.in (${lispsource}international/charprop.el): Move this
15703 target within "#ifdef HAVE_UNIDATA" and "#endif".
15704
157052008-02-01 Kenichi Handa <handa@m17n.org>
15706
15707 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15708 (shortlisp): Add ../lisp/language/tai-viet.el.
15709
157102008-02-01 Ulrich Mueller <ulm@gentoo.org>
15711
15712 * Makefile.in (${lispsource}international/charprop.el): Depend on
15713 temacs${EXEEXT}.
15714
157152008-02-01 Jason Rumney <jasonr@gnu.org>
15716
15717 * w32font.c (w32font_close): Delete the GDI font object.
15718
15719 * w32menu.c: Include character.h.
15720
15721 * w32proc.c: Likewise.
15722
15723 * w32select.c: Likewise.
15724
15725 * makefile.w32-in (w32proc.o): Depend on character.h.
15726
157272008-02-01 Jason Rumney <jasonr@gnu.org>
15728
15729 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15730
15731 * w32menu.c (syms_of_w32menu): Likewise.
15732
15733 * w32proc.c (syms_of_ntproc): Likewise.
15734
15735 * w32select.c (syms_of_w32select): Likewise.
15736
15737 * w32term.c (syms_of_w32term): Likewise.
15738
157392008-02-01 Jason Rumney <jasonr@gnu.org>
15740
15741 * w32font.c (w32font_draw): Delete brush after using it.
15742
157432008-02-01 Jason Rumney <jasonr@gnu.org>
15744
15745 * w32font.c (w32font_open): Don't set font_idx.
15746 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15747 to font settings.
15748 (w32font_draw): Fill background explicitly.
15749
157502008-02-01 Jason Rumney <jasonr@gnu.org>
15751
15752 * w32term.c (w32_initialize): Don't call w32font_initialize.
15753
15754 * w32font.c (w32font_info): Remove subranges.
15755 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15756 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15757 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15758 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15759 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15760 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15761 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15762 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15763 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15764 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15765 New symbols.
15766 (font_callback_data): New struct.
15767 (w32font_list, w32font_match): Use it.
15768 (w32font_open): Don't populate subranges.
15769 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15770 (w32font_encode_char): Always return unicode code-point as-is.
15771 (w32font_text_extents): Supply a transformation matrix to
15772 GetGlyphOutline. Never look up by glyph index. Avoid looping
15773 twice. Use unicode version of GetTexExtentPoint32 instead of
15774 glyph index version.
15775 (set_fonts_frame): Remove.
15776 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15777 set frame parameter. Use backward compatible fake foundries.
15778 Save generic family in extra slot under QCfamily. Make width slot
15779 constant. Save QCspacing value. Save list of scripts instead of
15780 binary subranges.
15781 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15782 (add_font_entity_to_list): Use font_callback_data struct. Filter
15783 unwanted fonts.
15784 (add_one_font_entity_to_list): Use font_callback_data struct.
15785 (w32_registry): Default to iso10646_1.
15786 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15787 string font registries. Don't fill in font name if it is a generic
15788 family name, fill family instead. Use spacing, family and script
15789 extra info to fill pitch, family and charset fields.
15790 (list_all_matching_fonts): Use font_callback_data struct.
15791 (unicode_range_for_char): Remove.
15792 (font_supported_scripts): New function.
15793 (w32font_initialize): Remove.
15794 (syms_of_w32font): Update which symbols are defined.
15795
157962008-02-01 Jason Rumney <jasonr@gnu.org>
15797
15798 * font.c (font_pixel_size): Reverse assq_no_quit args.
15799
15800 * w32term.h (FONT_WIDTH): Report max width, not average.
15801 (FONT_MAX_WIDTH): Remove.
15802 (FONT_AVG_WIDTH): New macro.
15803
15804 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15805 redefinition of FONT_WIDTH.
15806
15807 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15808 (w32_cache_char_metrics): Use FONT_WIDTH.
15809
15810 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15811
158122008-02-01 Jason Rumney <jasonr@gnu.org>
15813
15814 * w32font.c (w32font_open): Make lfHeight negative.
15815
15816 * w32fns.c (x_default_font_parameter): Use new style font name.
15817 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15818
158192008-02-01 Jason Rumney <jasonr@gnu.org>
15820
15821 * w32font.c (QCsubranges): New symbol.
15822 (w32font_open, w32font_has_char): Get subranges from subproperty
15823 of extra.
15824 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15825 (syms_of_w32font): Define :subranges symbol.
15826
15827 * font.c (font_put_extra): Expose externally.
15828
15829 * font.h (font_put_extra): Move declaration from font.c.
15830
15831 * font.c (Ffont_get): Use font driver to determine otf capability.
15832 (adjust_anchor): Check if driver defines anchor_point before using.
15833
15834 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15835 (w32font_draw): Use options.
15836 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15837 Fix detection of truetype fonts.
15838 (registry_to_w32_charset): Handle charsets other than iso8859-1
15839 expressed as lisp symbols.
15840 (w32_registry): Express charset as lisp symbol.
15841 (fill_in_logfont): Reverse pixel and point height logic.
15842 Don't set width here. Set quality to default.
15843
15844 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15845 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15846
15847 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15848 Remove redundant loop and allocation.
15849
15850 * makefile.w32-in (font.o, w32font.o): New objects.
15851 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15852 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15853
15854 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15855 STORE_XCHARB a valid l-value.
15856
15857 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15858 calculations for non-Truetype fonts.
15859 (x_draw_glyph_string): Sync with xterm.c.
15860 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15861 Remove redundant code.
15862 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15863
15864 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15865 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15866
15867 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15868 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15869
15870 * w32font.c: New file for w32 font backend.
15871
158722008-02-01 Kenichi Handa <handa@m17n.org>
15873
15874 * term.c: Don't include "buffer.h" twice.
15875
158762008-02-01 Kenichi Handa <handa@m17n.org>
15877
15878 * character.c (Funibyte_string): New function.
15879 (syms_of_character): Defsubr it.
15880
158812008-02-01 Jason Rumney <jasonr@gnu.org>
15882
15883 * w32term.c [USE_FONT_BACKEND]:
15884 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15885 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15886 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15887 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15888 (x_free_frame_resources): Sync with xterm.c.
15889
158902008-02-01 Andreas Schwab <schwab@suse.de>
15891
15892 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15893 char-table size.
15894
158952008-02-01 Kenichi Handa <handa@m17n.org>
15896
15897 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15898
158992008-02-01 Kenichi Handa <handa@m17n.org>
15900
15901 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15902 font_otf_gpos, add font_drive_otf.
15903
15904 * fontset.c (fontset_find_font): Pay attention to font size
15905 specified for a font.
15906 (reorder_font_vector): Check contents of font_def.
15907
15908 * font.c (struct otf_list): Delete it.
15909 (otf_list): Make it a lisp variable.
15910 (otf_open): Use lispy otf_list.
15911 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15912 (check_otf_features): New function.
15913 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15914 New functions.
15915 (font_drive_otf): New function merging font_otf_gsub and
15916 font_otf_gpos.
15917 (font_open_for_lface): New arg spec. Change argument order.
15918 (font_load_for_face): Adjust for the change of font_open_for_lface.
15919 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15920 Ffont_otf_gpos.
15921 (syms_of_font): Staticpro otf_list. Delete defsubr of
15922 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15923
15924 * xfaces.c (set_font_frame_param): Adjust for the change of
15925 font_open_for_lface.
15926
15927 * font.h (font_open_for_lface): Adjust prototype.
15928 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15929 member otf_drive.
15930 (font_otf_gsub, font_otf_gpos): Delete externs.
15931 (font_drive_otf): Extern it.
15932
159332008-02-01 Kenichi Handa <handa@m17n.org>
15934
15935 * font.c (font_at): If the window W is not on a window system,
15936 return Qnil.
15937
15938 * coding.c (produce_chars, encode_coding): Don't call
15939 insert_from_gap if no characters to produce.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15944 Fclear_face_cache.
15945
15946 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15947
159482008-02-01 Miles Bader <miles@gnu.org>
15949
15950 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15951 Parse "--disable-font-backend" option.
15952 (standard_args): Add "--disable-font-backend" option.
15953
159542008-02-01 Kenichi Handa <handa@m17n.org>
15955
15956 * fontset.c (fontset_find_font): New function.
15957 (fontset_font): Use fontset_find_font.
15958 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15959 Register the specified font for all Latin characters.
15960 (new_fontset_from_font): Register the specified font for all Latin
15961 characters.
15962 (dump_fontset): For a realized fontset, include the base fontset
15963 name in the returned vector.
15964
159652008-02-01 Kenichi Handa <handa@m17n.org>
15966
15967 * character.h (CHAR_STRING): Cast C to unsigned on calling
15968 char_string.
15969
15970 * character.c (char_string): Type of arg C changed to unsigned.
15971 Signal an error if C is an invalid character code.
15972
15973 * editfns.c (general_insert_function, Fchar_to_string):
15974 Use CHARACTERP, not INTEGERP.
15975
159762008-02-01 Kenichi Handa <handa@m17n.org>
15977
15978 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15979 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15980
15981 * regex.c (analyse_first): Fix for multibyte characters in "case
15982 charset:" and "case categoryspec:".
15983
159842008-02-01 Andreas Schwab <schwab@suse.de>
15985
15986 * Makefile.in (LIBES): Move standard libraries to the end.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15991 nonzero, don't shrink the buffer nextb.
15992
15993 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15994
15995 * coding.c (coding_alloc_by_making_gap): New arg offset.
15996 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15997 offset.
15998 (decode_coding_iso_2022): Update coding->safe_charsets.
15999 (decode_coding_gap): Temporarily set
16000 current_buffer->text->inhibit_shrinking to 1.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16005 indexing into elements of s->cmp and s->char2b.
16006
160072008-02-01 Juanma Barranquero <lekktu@gmail.com>
16008
16009 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16010
160112008-02-01 Kenichi Handa <handa@m17n.org>
16012
16013 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16014 target_multibyte instead of multibyte.
16015 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16016 (bcmp_translate): Change the argument name from multibyte to
16017 target_multibyte.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 These changes are to compile a regexp into a pattern that can be
16022 used both for multibyte and unibyte targets.
16023
16024 * Makefile.in (search.o): Depend on charset.h.
16025
16026 * character.c (multibyte_char_to_unibyte_safe): New function.
16027
16028 * search.c: Include "charset.h".
16029 (compile_pattern_1): Delete argument multibyte. Don't set
16030 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16031 (compile_pattern): Don't compare cp->buf.target_multibyte.
16032 Compare cp->buf.charset_unibyte.
16033 (compile_pattern): Set cp->buf.target_multibyte.
16034
16035 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16036
16037 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16038
16039 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16040 multibyte. Change callers.
16041 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16042 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16043 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16044 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16045 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16046 (regex_compile): Make the compiled pattern usable both for
16047 multibyte and unibyte targets.
16048 (analyse_first): Make the fastmap usable both for multibyte and
16049 unibyte targets.
16050 (TRANSLATE_VIA_MULTIBYTE): Delete.
16051 (re_match_2_internal): Pay attention to the case that the
16052 multibyteness of bufp and target may be different.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16057 empty box occupy at least one column width.
16058
160592008-02-01 Miles Bader <miles@gnu.org>
16060
16061 * Makefile.in: Remove redundant HAVE_XFT clause.
16062
160632008-02-01 Kenichi Handa <handa@m17n.org>
16064
16065 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16066
160672008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16070 being nil.
16071
160722008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16075
160762008-02-01 Kenichi Handa <handa@m17n.org>
16077
16078 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16079
160802008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * search.c (simple_search): Fix previous change.
16083
160842008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * xftfont.c (ftfont_font_format): Extern declaration.
16087
16088 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16089
16090 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16091 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16092
16093 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16094 (ftfont_font_format): Fix previous change.
16095
16096 * font.h (Ffont_xlfd_name): EXFUN it.
16097
16098 * font.c (font_parse_xlfd): Fix the array size of `f'.
16099 (register_font_driver): Use EQ to compare driver->type.
16100
16101 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16102 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16103 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16104
161052008-02-01 Kenichi Handa <handa@m17n.org>
16106
16107 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16108 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16109
161102008-02-01 Kenichi Handa <handa@m17n.org>
16111
16112 * xfont.c (xfont_open): Set font->format.
16113
16114 * xftfont.c (xftfont_open): Set font->format.
16115
16116 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16117 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16118 (ftfont_open): Set font->format.
16119 (ftfont_font_format): New function.
16120
16121 * font.h (struct font): New member format.
16122
16123 * font.c (Qopentype): New variable.
16124 (syms_of_font): Defsym it.
16125 (Fquery_font): Change the format of the last element of the return
16126 value.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16131 last resort.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * coding.c (detect_coding_charset): Fix detection of multi-byte
16136 charset.
16137
161382008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16139
16140 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * xdisp.c (get_next_display_element): Set it->face_id for the
16145 first component of a composition.
16146 (x_produce_glyphs): Check if the font is changed or not for composition.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * fontset.c (Qlatin): New variable.
16151 (syms_of_fontset): Define it as a lisp symbol.
16152 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * font.c (font_unparse_fcname): Pay attention to the case that
16157 some of font property is a null string.
16158
161592008-02-01 Kenichi Handa <handa@m17n.org>
16160
16161 * term.c: Include "composite.h".
16162 (encode_terminal_code): Output all components of composition.
16163 Check the size of encode_terminal_src.
16164 (produce_glyphs): For composition, call produce_composite_glyph.
16165 (append_composite_glyph, produce_composite_glyph): New functions.
16166
16167 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16168 is not found, get font_info from the current ascii face.
16169
161702008-02-01 Kenichi Handa <handa@m17n.org>
16171
16172 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16173 buffer-file-name to Qnil before calling insert_from_buffer.
16174
16175 * font.c (font_unparse_fcname): Pay attention to the case that
16176 foundry is a null string.
16177
161782008-02-01 Kenichi Handa <handa@m17n.org>
16179
16180 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16181
16182 * font.c (Qunicode_sip): New variable.
16183 (syms_of_font): Declare it as a Lisp symbol.
16184
16185 * font.h (Qunicode_sip): Extern it.
16186
161872008-02-01 Kenichi Handa <handa@m17n.org>
16188
16189 * composite.c (get_composition_id): Pay attention to TAB component.
16190
16191 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16192 TAB. Adjust for the change of s->char2b which always points to
16193 the first element of allocated memory.
16194
16195 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16196
16197 * xdisp.c (handle_composition_prop): Set it->c to the first
16198 non-TAB component.
16199 (fill_composite_glyph_string): Change argument.
16200 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16201 (x_produce_glyphs): Fix handling of left/right padding.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * coding.c (detect_coding_system): Fix for handling off
16206 inhibit_iso_escape_detection. Fix for the case that no coding
16207 system is defined for a specific coding category.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * font.c (font_matching_entity): Delete unused local var.
16212
16213 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16214 opening a font.
16215
16216 * fileio.c (Finsert_file_contents): On recovering a file, assume
16217 Unix-like eol.
16218 (choose_write_coding_system): On auto-saving a file, force
16219 Unix-like eol.
16220
16221 * coding.c (setup_coding_system): Fix setting of
16222 coding->common_flags based on eol_type.
16223 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16224 inherit from it.
16225
162262008-02-01 Kenichi Handa <handa@m17n.org>
16227
16228 * alloc.c (NSTATICS): Increas to 0x600.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16233 (ftfont_list): Don't check :name property.
16234 (ftfont_match): New function.
16235 (ftfont_pattern_entity): If the pattern doesn't contain
16236 FC_SPACING, don't assume FC_MONO.
16237
16238 * font.h (struct font_driver): New member `match'.
16239 (font_update_drivers): Adjust prototype.
16240
16241 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16242 property of FONT.
16243 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16244 them unconditionally.
16245 (font_matching_entity): New function.
16246 (font_open_by_name): Try font_matching_entity if exact match is
16247 not found.
16248 (font_update_drivers): Delete the arg FONT. Return a list of
16249 actually used backends. Don't free faces, font caches here.
16250 Don't store data in frame parameters. Don't call x_set_font.
16251 (Ffont_spec): Store :name property as is.
16252 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16253 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16254 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16255 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16256 Call font->driver->otf_gsub instead of font_otf_gsub.
16257
16258 * frame.c (x_set_font_backend): Do more works that were done in
16259 font_update_drivers before.
16260
16261 * xfont.c (xfont_match): New function.
16262 (xfont_driver): Set xfont_driver.match to xfont_match.
16263 (xfont_draw): Set font in GC if necessary.
16264
16265 * ftxfont.c (ftxfont_match): New function.
16266 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16267
16268 * xftfont.c (xftfont_match): New function.
16269 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * font.h (struct font): New member scalable.
16274 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16275 (font_otf_gsub): Adjust prototype.
16276
16277 * font.c (font_otf_capability): Fix handling of the default langsys.
16278 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16279 Check the contents of SPEC.
16280 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16281 (check_gstring): New function.
16282 (REPLACEMENT_CHARACTER): New macro.
16283 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16284 glyph codes of GSTRING.
16285 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16286 (font_prepare_composition): Set cmp->glyph_len.
16287 (font_open_entity): Set font->scalable.
16288 (Ffont_get): Handle :otf property.
16289 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16290 functions.
16291 (Fquery_font): Use font->font.full_name.
16292 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16293 Sfont_otf_alternates.
16294
16295 * ftfont.c (ftfont_open): Set font->font.full_name and
16296 font->font.name properly. Fix calculation of font->font.height
16297 and font->min_width.
16298
16299 * ftxfont.c (ftxfont_create_gcs): New function.
16300 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16301 (ftxfont_draw_backgrond): Fix filling region.
16302 (ftxfont_default_fid): New function.
16303 (ftxfont_open): Set xfont->fid to the return value of
16304 ftxfont_default_fid.
16305 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16306 (ftxfont_done_face): Free only GCs that are created by
16307 ftxfont_create_gcs.
16308 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16309
16310 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16311 Clip to src->width, etc (not src->clip_XXX).
16312
16313 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16314 FontBackend frame parameter.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * font.h (struct font_driver_list): New member `on'.
16319 (Fclear_font_cache): EXFUN it.
16320 (font_update_drivers): Extern it.
16321
16322 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16323 (font_list_entities): Check driver_list->on.
16324 (register_font_driver): Initalize `on' member to 0.
16325 (font_update_drivers): New function.
16326 (Fclear_font_cache): Check driver_list->on.
16327
16328 * frame.h (Qfont_backend): Extern it.
16329 (x_set_font_backend): Extern it.
16330
16331 * frame.c (Qfont_backend): New variable.
16332 (frame_parms): New element for font-backend.
16333 (x_set_font_backend): New function.
16334
16335 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16336 FontBackend frame parameter.
16337 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16338 x_set_font_backend.
16339
16340 * xfont.c (xfont_list): Don't try listing by :name property if the
16341 name is not for XLFD.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16346 (LGLYPH_SET_TO): New macros.
16347 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16348 element of G is vector or not.
16349 (font_at): Extern it.
16350
16351 * font.c: Include window.h.
16352 (font_lispy_object): New function.
16353 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16354 end of valid glyph.
16355 (font_close_object): Fix getting (struct font *).
16356 (font_at): New function.
16357 (Ffont_get): If FONT is a font-object, get entity from it.
16358 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16359 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16360 range check.
16361 (Ffont_at): New function.
16362 (syms_of_font): Defsubr Sfont_at.
16363
16364 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16365 before the entry for Qcomposition.
16366 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16367 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16368 the font in gstring.
16369 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16370 LGLYPH_FORM (g) to detect the end of valid glyph.
16371 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16372 we are composing with gstring.
16373
16374 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16375 Check if adjustment is vector or not.
16376
16377 * Makefile.in (font.o): Make it depends on window.h.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16382 adjustment is vector or not.
16383
163842008-02-01 Miles Bader <miles@gnu.org>
16385
16386 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16387
163882008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16391 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16392 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16393
16394 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16395 (DEVICE_DELTA): Fix typo.
16396 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16397 LGLYPH format.
16398
16399 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16400 the change of LGLYPH format.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * ftfont.c (ftfont_list): Fix typo.
16405 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16406
164072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16408
16409 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16410
16411 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16412 xftface_info is non-NULL.
16413
164142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16415
16416 * ftfont.c (ftfont_list): Move misplaced #endif.
16417
164182008-02-01 Kenichi Handa <handa@m17n.org>
16419
16420 * ftfont.c (ftfont_list): Pay attention to the case that
16421 FC_CAPABILITY is not defined.
16422
164232008-02-01 Kenichi Handa <handa@m17n.org>
16424
16425 * xftfont.c (xftfont_open): Set charset related members to -1.
16426
16427 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16428 QCname.
16429 (ftfont_open): Set charset related members to -1.
16430
16431 * fontset.c (Votf_script_alist): New variable.
16432 (syms_of_fontset): Initialize it.
16433 (fontset_font): Delete unused variable.
16434
16435 * fontset.h (Votf_script_alist): Extern it.
16436
16437 * font.c (font_find_for_lface): Optimize code.
16438
16439 * font.h (font_close_object, font_merge_old_spec): Extern them.
16440
164412008-02-01 Kenichi Handa <handa@m17n.org>
16442
16443 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16444 (syms_of_font): Initialize them.
16445 (font_pixel_size): Allow float value in dpi.
16446 (font_prop_validate_type): Delete.
16447 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16448 Change caller.
16449 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16450 (font_prop_validate_extra): Delete.
16451 (font_prop_validate_spacing): New function.
16452 (font_property_table): Add elements for all known properties.
16453 (get_font_prop_index): Rename from check_font_prop_name. New
16454 argument FROM. Change caller.
16455 (font_prop_validate): Validate all known properties.
16456 (font_put_extra): Delete argument force. Change caller.
16457 (font_expand_wildcards): Make it static. Fix the way of shrinking
16458 the possible range.
16459 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16460 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16461 Change caller.
16462 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16463 (font_parse_fcname): Delete argument merge. Fix parsing of point
16464 size. Don't validate properties values here. Change caller.
16465 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16466 (font_open_by_name): Delete unused variable.
16467 (Ffont_spec): Likewise. Validate property values.
16468 (Ffont_match_p): New function.
16469
16470 * font.h (QCscalable): Extern it.
16471 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16472
16473 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16474
16475 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16476 (xfont_list_pattern): New function.
16477 (xfont_list): Use xfont_list_pattern.
16478
164792008-02-01 Kenichi Handa <handa@m17n.org>
16480
16481 * font.h (Flist_fonts): EXFUN it.
16482
164832008-02-01 Jason Rumney <jasonr@gnu.org>
16484
16485 * w32term.c (w32_initialize): Add back smoothing_type and
16486 smoothing_enabled definitions.
16487
164882008-02-01 Kenichi Handa <handa@m17n.org>
16489
16490 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16491 s->face->font on determining underline position.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16496 (font_has_char): Accept font-object too.
16497 (font_find_for_lface): Try at first with a size specified in face.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16502 font_open_by_name.
16503
165042008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * font.h (QCspacing, QCdpi): Extern them.
16507 (enum font_spacing): New enum.
16508 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16509
16510 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16511 (QCspacing, QCdpi): New variables.
16512 (syms_of_font): Initialize them.
16513 (font_pixel_size): New function.
16514 (font_put_extra): New function.
16515 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16516 in FONT_EXTRA.
16517 (font_parse_fcname): Handle enumerated values (e.g. bold).
16518 Fix handling font size. Add QCname property that contains only
16519 unknown properties.
16520 (font_score): Change argument. Change caller. Pay attention to
16521 FONT_PIXEL_SIZE_QUANTUM.
16522 (font_sort_entites, font_list_entities, font_find_for_lface)
16523 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16524 (Ffont_spec): Add QCname property that contains only unknown properties.
16525
16526 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16527 include weight in listing pattern, instead check weight of each
16528 listed font. Don't include scalable in pattern. Pay attention to
16529 FONT_PIXEL_SIZE_QUANTUM.
16530
165312008-02-01 Kenichi Handa <handa@m17n.org>
16532
16533 * font.c (font_parse_fcname): Fix parsing of point-size.
16534 (font_unparse_fcname): Produce symbolic names for style properties.
16535 (font_list_entities): Handle float size correctly.
16536 (font_open_by_name): Prefer `normal' property values if the name
16537 doesn't specify them.
16538
16539 * fontset.c (Finternal_char_font): Use font_get_name, not
16540 Ffont_xlfd_name.
16541
16542 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16543 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16544 pattern. Don't force scalable.
16545
16546 * xftfont.c (xftfont_open): For generating a name, start from
16547 96-byte buffer.
16548
165492008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16550
16551 * frame.h (x_new_fontset2): Fix prototype.
16552
165532008-02-01 Kenichi Handa <handa@m17n.org>
16554
16555 * font.h (struct font_driver): Delete member parse_name.
16556 (font_match_p, font_get_spec, font_parse_fcname)
16557 (font_unparse_fcname): Extern them.
16558 (font_get_name): Adjust prototype.
16559
16560 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16561 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16562 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16563 unnecessary checks for weight, slant, and swidth.
16564 (font_parse_fcname): New function.
16565 (font_unparse_fcname): New function.
16566 (font_parse_name): New function.
16567 (font_match_p): New function.
16568 (font_get_name): Change return value to Lisp string.
16569 (font_get_spec): New function.
16570 (Qunspecified, Qignore_defface): Don't extern them.
16571 (font_find_for_lface): Assume that LFACE is fully specified.
16572 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16573 object, use it for FACE.
16574 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16575 driver->parse_name.
16576 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16577
16578 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16579 prototype.
16580
16581 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16582 argument F. Don't call Fnew_fontset. Instead, directly call
16583 make_fontset.
16584
16585 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16586
16587 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16588 of x_new_fontset2.
16589
16590 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16591 (Qsans__serif): New variables.
16592 (ftfont_generic_family_list): New variable.
16593 (syms_of_ftfont): Initialize the above variables.
16594 (ftfont_pattern_entity): Delete argument NAME.
16595 (ftfont_list_generic_family): New function.
16596 (ftfont_parse_name): Delete this function.
16597 (ftfont_list): Try generic family only when FcFontList found no font.
16598 (ftfont_list_family): Fix args to FcObjectSetBuild.
16599
16600 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16601 object in attrs[LFACE_FONT_INDEX].
16602 (set_lface_from_font_name): Cancel all changes for font-backend.
16603 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16604 function.
16605 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16606 font object in QCfont attribute.
16607 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16608 (realize_default_face) [USE_FONT_BACKEND]: Call
16609 set_lface_from_font_and_fontset.
16610
16611 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16612 "fixed", and signal error here if no suitable font was found.
16613
16614 * xfont.c (xfont_parse_name): Delete this function.
16615
16616 * xftfont.c (xftfont_open): Change coding style of error
16617 handling. Generate fontconfig's fontname pattern.
16618
16619 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16620 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16621
16622 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16623 Both args FONTSET and FONT_OBJECT must be existing ones.
16624
166252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16626
16627 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16628
166292008-02-01 Kenichi Handa <handa@m17n.org>
16630
16631 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16632
16633 * font.h (struct font): Fix typo.
16634
16635 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16636 XLFD_XXX_INDEX.
16637 (enum xlfd_field_mask): New enum.
16638 (intern_font_field): Changed argument. Change caller. If digits
16639 are followed by non-digits, return a symbol.
16640 (font_expand_wildcards): New function.
16641 (font_parse_xlfd): Fix wildcard handling.
16642 (Ffont_spec): If :name is specified, reflect the info in the other
16643 properties.
16644
16645 * ftfont.c (ftfont_pattern_entity): Fix typo.
16646 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16647 locale.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16652
16653 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16654 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16655 registry doesn't specify encoding part.
16656 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16657 (font_open_by_name): At first try parsing the name.
16658 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16659 as Lisp symbols.
16660
16661 * fontset.c (reorder_font_vector): Pay attention to the case that
16662 the 3rd element of font_def is nil.
16663 (fontset_font): For the default fontset, append one more fontset
16664 elements for a script-based font specification. Don't add script
16665 attribute on finding a font.
16666 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16667 font name.
16668 (fontset_ascii_font): If a font can't be opened, return nil.
16669
16670 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16671 (ftfont_pattern_entity): New function.
16672 (ftfont_get_cache): Assume that freetype_font_cache is already
16673 initialized.
16674 (ftfont_list): Handle the case that a file is specified in font
16675 name. Use ftfont_pattern_entity to generate entities.
16676 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16677 (syms_of_ftfont): Initialize freetype_font_cache.
16678
16679 * xftfont.c (xftfont_open): Make the font name fontconfig's
16680 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16681 (xftfont_close): Free font->font.name if not NULL.
16682
16683 * xfont.c (xfont_list): If script is specified for a font, return
16684 null_vector.
16685 (xfont_list_family): Declare argument type.
16686
16687 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16688 name, set LFACE_FONT (lface) to nil.
16689
16690 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16691 return Qnil.
16692
166932008-02-01 Kenichi Handa <handa@m17n.org>
16694
16695 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16696 (standard_args): Add "-enable-font-backend".
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16701 (struct xftdraw_list, xftdraw_list): Delete them.
16702 (register_xftdraw, check_xftdraw): Delete them.
16703 (xftfont_prepare_face): Don't call register_xftdraw.
16704 (xftfont_done_face): Don't call check_xftdraw.
16705 (xftfont_draw): Get background color only when with_background is
16706 nonzero.
16707
16708 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16709
167102008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 These changes are for the new font handling codes.
16713
16714 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16715 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16716 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16717 (FONTSRC, FONTOBJ): New variables.
16718 (obj): Add $(FONTOBJ).
16719 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16720 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16721 @LIBOTF_LIBS@.
16722 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16723 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16724
16725 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16726
16727 * character.h (Vscript_representative_chars): Extern it.
16728
16729 * character.c (Vscript_representative_chars): New variable.
16730 (syms_of_character): Declare it as a Lisp variable.
16731
16732 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16733 enable_font_backend is nonzero, accept the composition method
16734 COMPOSITION_WITH_GLYPH_STRING.
16735
16736 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16737 enumeration COMPOSITION_WITH_GLYPH_STRING.
16738
16739 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16740 members clip_x, clip_y, clip_width, and clip_height.
16741 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16742
16743 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16744 --enable-font-backend. Call syms_of_font.
16745
16746 * fns.c (assoc_no_quit): New function.
16747
16748 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16749 (face_for_font, new_fontset_from_font)
16750 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16751
16752 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16753 (fontset_font, fontset_ascii, face_for_char)
16754 (make_fontset_for_ascii_face, Ffont_info)
16755 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16756 is nonzero, use font-backend mechanism.
16757 (find_font_encoding): Make it non-static.
16758 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16759 New functions.
16760
16761 * frame.h (struct frame): New members resx and resy.
16762 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16763 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16764
16765 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16766 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16767
16768 * lisp.h (assoc_no_quit): Extern it.
16769
16770 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16771 Through out the file, use FONT_INFO_FROM_FACE instead of
16772 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16773 rif->per_char_metric.
16774 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16775 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16776 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16777 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16778 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16779 nonzero, use font-backend mechanism.
16780 (get_per_char_metric): New function.
16781
16782 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16783 (set_lface_from_font_name)
16784 (set_font_frame_param, free_realized_face)
16785 (prepare_face_for_display, clear_face_gcs)
16786 (Finternal_set_font_selection_order, realize_x_face)
16787 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16788 font-backend mechanism.
16789 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16790 (load_face_font) [USE_FONT_BACKEND]: Abort.
16791 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16792 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16793
16794 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16795 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16796 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16797 nonzero, register all available font drivers. Call
16798 x_default_font_parameter for deciding a font.
16799 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16800
16801 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16802 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16803 (x_set_glyph_string_clipping_exactly)
16804 (x_compute_glyph_string_overhangs)
16805 (x_draw_glyph_string_foreground)
16806 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16807 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16808 enable_font_backend is nonzero, use font-backend mechanism.
16809 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16810
168112008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16814 system_eol_type.
16815 (syms_of_coding): Initialize system_eol_type.
16816
16817 * process.c (Fset_process_coding_system): Inherit system's eol
16818 format if necessary.
16819
168202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16821
16822 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * coding.c (decode_eol): Pay attention to buffer relocation in
16827 del_range_2.
16828 (decode_coding): Call decode_eol before restoring undo_list.
16829
168302008-02-01 Kenichi Handa <handa@m17n.org>
16831
16832 * charset.c (Fdefine_charset_internal): Fix setting of
16833 emacs_mule_bytes.
16834
168352008-02-01 Kenichi Handa <handa@m17n.org>
16836
16837 * keyboard.c (read_char): Check if C is a character or not before
16838 looking up Vkeyboard_translate_table.
16839
168402008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16843 condition to terminate the loop.
16844
168452008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * coding.c (produce_composition): Compare charbuf[i] instead of
16848 args[i] against 0.
16849 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16850
168512008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16854 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16855 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16856 detect_coding.
16857 (emacs_mule_char): Handle old style (Emacs 20) component character
16858 of a composition.
16859 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16860 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16861 composition rule.
16862 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16863
168642008-02-01 Kenichi Handa <handa@m17n.org>
16865
16866 * coding.c (encode_coding_ccl): Allocate destination dynamically
16867 when necessary.
16868
168692008-02-01 Kenichi Handa <handa@m17n.org>
16870
16871 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16872 the loop. When quitted, show a proper error message.
16873
168742008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16877 src->clip_head and src->clip_tail temporarily instead of src->hl.
16878
16879 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16880 character sequence.
16881 (Fccl_execute_on_string): Use ASET, not XSET.
16882
168832008-02-01 Kenichi Handa <handa@m17n.org>
16884
16885 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16886
168872008-02-01 Kenichi Handa <handa@m17n.org>
16888
16889 * coding.c (decode_coding): Fix the condition of terminating the
16890 decoding loop.
16891
168922008-02-01 Kenichi Handa <handa@m17n.org>
16893
16894 * data.c (Faset): On setting a character bigger than 255 in a
16895 unibyte string, signal an error instead of make the string multibyte.
16896
168972008-02-01 Kenichi Handa <handa@m17n.org>
16898
16899 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16900 made by a mapping table.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16905 not.
16906 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16907 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16908
16909 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16910 s->face is NULL or not.
16911
169122008-02-01 Kenichi Handa <handa@m17n.org>
16913
16914 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16915 (x_draw_glyph_string): Fix drawing of right_overhang and
16916 left_overhang around/on cursor.
16917
16918 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16919
169202008-02-01 Kenichi Handa <handa@m17n.org>
16921
16922 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16923
169242008-02-01 Kenichi Handa <handa@m17n.org>
16925
16926 * coding.c (Fdefine_coding_system_internal)
16927 (Fdefine_coding_system_alias): Avoid a duplicated element in
16928 Vcoding_system_alist.
16929
169302008-02-01 Kenichi Handa <handa@m17n.org>
16931
16932 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16933
16934 * coding.c (Qcoding_system_define_form): New variable.
16935 (syms_of_coding): Intern and staticpro it.
16936 (Fcoding_system_p): Check Qcoding_system_define_form.
16937 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16938
16939 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16940 Fcoding_system_p.
16941 (CHECK_CODING_SYSTEM): If ID is not available, call
16942 Fcheck_coding_system.
16943 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16944 Try also Fcheck_coding_system.
16945
169462008-02-01 Kenichi Handa <handa@m17n.org>
16947
16948 * coding.c (code_conversion_restore): GCPRO arg.
16949
169502008-02-01 Kenichi Handa <handa@m17n.org>
16951
16952 * character.c (lisp_string_width): Check multibyteness of STRING.
16953
169542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16955
16956 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16957 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16958 (decode_mac_font_name): Use decode_coding_c_string instead of
16959 decode_coding.
16960 (x_load_font): Initialize fontp->fontset to -1. Set
16961 fontp->encoding_type.
16962
169632008-02-01 Kenichi Handa <handa@m17n.org>
16964
16965 * search.c (search_buffer): Give up BM search on case-fold-search
16966 if one of a target character has a case-equivalence of different
16967 byte length even if that target charcter is an ASCII.
16968 (simple_search): Fix calculation of byte length of matched text.
16969 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * coding.c (decode_coding): Fix handling of invalid bytes.
16974
169752008-02-01 Kenichi Handa <handa@m17n.org>
16976
16977 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16978 Unicode characters.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 * coding.c (encode_coding_object): If a pre-write-conversion
16983 function makes a new buffer, kill it.
16984
169852008-02-01 Kenichi Handa <handa@m17n.org>
16986
16987 * coding.c (QCascii_compatible_p): New variable.
16988 (syms_of_coding): Initialize it.
16989 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16990 calling string_char.
16991 (record_conversion_result): Add `default:' case.
16992 (coding_charset_list): Delete unused variable `coding_type'.
16993 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16994 property in the plist of the coding system.
16995 (Fcoding_system_put): Check QCascii_compatible_p.
16996
169972008-02-01 Miles Bader <miles@gnu.org>
16998
16999 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17000 removed calculation of frame `f', as it's now used.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17005 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17006 (UNIDATA): New variable.
17007 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17008 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17009 $(RUN_TEMACS) unconditionally.
17010
170112008-02-01 Kenichi Handa <handa@m17n.org>
17012
17013 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17014 (admindir): New variable.
17015 ($(lispsource)international/charprop.el): New target.
17016
170172008-02-01 Miles Bader <miles@gnu.org>
17018
17019 * character.c (chars-in-region): Remove obsolete function.
17020 (syms_of_character): Remove its initialization.
17021
170222008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17023
17024 * w32select.c (validate_coding_system)
17025 (setup_windows_coding_system): New functions.
17026 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17027 setup_windows_coding_system.
17028 (setup_config, Fw32_get_clipboard_data): Use
17029 validate_coding_system.
17030 (Fx_selection_exists): Move call to setup_config to a place
17031 where signals are allowed.
17032
17033 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17034 (Fcheck_coding_system): Add declarations.
17035
170362008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17039
170402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17041
17042 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17043 string as the second argument for x_new_fontset.
17044
170452008-02-01 Kenichi Handa <handa@m17n.org>
17046
17047 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17048 (encode_coding_object): Use safe_call instead of call2.
17049
170502008-02-01 Kenichi Handa <handa@m17n.org>
17051
17052 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17053
17054 * Makefile.in (lisp): Include charprop.el.
17055
170562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17057
17058 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17059 Not sure if it's unnecessary.
17060
170612008-02-01 Steven Tamm <steventamm@mac.com>
17062
17063 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17064 some possibly unnecessary fontset checking code that crashed
17065 when creating a new frame.
17066
170672008-02-01 Kenichi Handa <handa@m17n.org>
17068
17069 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17070 lookup_face.
17071
17072 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17073
17074 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17075
170762008-02-01 Kenichi Handa <handa@m17n.org>
17077
17078 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17079 (coding_charset_list): New function.
17080
17081 * coding.h (coding_charset_list): Extern it.
17082
170832008-02-01 Kenichi Handa <handa@m17n.org>
17084
17085 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17086 concatenation of family and registry.
17087
170882008-02-01 Kenichi Handa <handa@m17n.org>
17089
17090 * character.h (BYTE8_STRING): Fix typo.
17091
17092 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17093 string to multibyte (sync to HEAD).
17094
17095 * casefiddle.c (casify_region): Handle changes in byte-length
17096 using replace_range_2 (sync to HEAD).
17097
170982008-02-01 Andreas Schwab <schwab@suse.de>
17099
17100 * chartab.c (map_char_table): GCPRO table and arg.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17105 already at limit.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17110 instead of fast_c_string_match_ignore_case.
17111 (find_font_encoding): Change argument to Lisp_Object. Use
17112 fast_string_match_ignore_case instead of
17113 fast_c_string_match_ignore_case. Change caller.
17114
171152008-02-01 Kenichi Handa <handa@m17n.org>
17116
17117 * xdisp.c (get_next_display_element): In unibyte case, decide to
17118 display in octal form by checking a character by
17119 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17120
17121 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17122
17123 * character.c (unibyte_has_multibyte_table): New variable.
17124
17125 * character.h (unibyte_has_multibyte_table): Extern it.
17126 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17127
171282008-02-01 Kenichi Handa <handa@m17n.org>
17129
17130 * coding.c (encode_coding_iso_2022): Fix handling of charset
17131 annotation.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * coding.c (setup_coding_system): If coding_system is nil, use
17136 Qundecided.
17137 (Fterminal_coding_system): Return nil if terminal coding system is
17138 `undecided'.
17139 (syms_of_coding): Define coding-system `undecided' here. Setup
17140 terminal_coding as `undecided'.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * xdisp.c (message_dolog, set_message_1): Call
17145 unibyte_char_to_multibyte with arg type int.
17146
17147 * lread.c (read1): Fix reading of a char-table.
17148
17149 * print.c (print_object): Include sub char-table in circularities
17150 detection.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17155 Append the found sequences in car of ARGS instead of prepending.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * fileio.c (report_file_error): Make a unibyte string from
17160 strerror (errorno).
17161 (Fsubstitute_in_file_name): Fix the arg to
17162 unibyte_char_to_multibyte. It is evaluated twice.
17163
171642008-02-01 Kenichi Handa <handa@m17n.org>
17165
17166 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17167
171682008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17171 BOM is not found.
17172 (detect_coding, detect_coding_system): Optimization for ISO-2022
17173 when no 8-bit data is found.
17174
171752008-02-01 Jason Rumney <jasonr@gnu.org>
17176
17177 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17178
171792008-02-01 Kenichi Handa <handa@m17n.org>
17180
17181 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17182 CHARS.
17183
171842008-02-01 Steven Tamm <steventamm@mac.com>
17185
17186 * macterm.c (mac_encode_char): Add charset argument and update
17187 to use encoding_type.
17188 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17189 switch to pure fontset.
17190 (decode_mac_font_name): Temporarily remove decoding.
17191 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17192 (x_load_font): Temporarily remove encoding.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * xfaces.c (Fface_font): If frame is not on a window system,
17197 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17198 refer to face->font.
17199 (split_font_name_into_vector, build_font_name_from_vector)
17200 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17201 when HAVE_WINDOW_SYSTEM is defined.
17202
172032008-02-01 Kenichi Handa <handa@m17n.org>
17204
17205 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17206 (x_produce_glyphs): Fix setting of members of cmp in case
17207 cmp->glyph_len is zero.
17208
17209 * fontset.c (Fset_fontset_font): Fix docstring.
17210 (Ffontset_info): Make it backward compatible. New arg ALL.
17211
172122008-02-01 Kim F. Storm <storm@cua.dk>
17213
17214 * process.c (read_process_output): Grow decoding_buf when needed;
17215 this could cause a crash in allocate_string and compact_small_strings.
17216
172172008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17220
172212008-02-01 Kenichi Handa <handa@m17n.org>
17222
17223 * coding.c (setup_coding_system): Set coding->common_flags
17224 correctly for raw-text.
17225 (consume_chars): On encoding unibyte text by raw-text, don't check
17226 multibyte form.
17227 (encode_coding): On encoding by raw-text, never use translation tables.
17228
17229 * fileio.c (e_write): Short cut for the case of no encoding.
17230
172312008-02-01 Kenichi Handa <handa@m17n.org>
17232
17233 * coding.c (detect_coding, detect_coding_system): Delete unused
17234 variables.
17235
172362008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17239 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17240
172412008-02-01 Kenichi Handa <handa@m17n.org>
17242
17243 * coding.c (Ffind_coding_systems_region_internal): Include
17244 raw-text and no-conversion in the result.
17245
172462008-02-01 Kenichi Handa <handa@m17n.org>
17247
17248 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17249 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17250 FONT_DEF.
17251 (font_def_arg, add_arg, from_arg, to_arg): New args.
17252 (set_fontset_font): Change argument.
17253 (Fset_fontset_font): Fix for the case that TARGET is a script
17254 name and charset name.
17255 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17256
172572008-02-01 Kenichi Handa <handa@m17n.org>
17258
17259 * fontset.c (fontset_font): Rename from fontset_face. Change return
17260 value.
17261 (face_suitable_for_char_p, face_for_char): Adjust for the change
17262 of fontset_font.
17263 (make_fontset_for_ascii_face): Fix setting of the fontset element
17264 for ASCII.
17265 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17266 to get a font name.
17267 (Ffontset_info): Adjust for the change of fontset_font.
17268
17269 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17270
17271 * character.h (LEADING_CODE_LATIN_1_MIN)
17272 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17273
172742008-02-01 Kenichi Handa <handa@m17n.org>
17275
17276 * editfns.c (check_translation): New function.
17277 (Ftranslate_region_internal): Handle M:N mapping.
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17282
172832008-02-01 Kenichi Handa <handa@m17n.org>
17284
17285 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17286 goto invalid_code.
17287 (decode_coding_iso_2022): Fix handling of invalid designation.
17288
17289 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17290 after calling code_conversion_save.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17295
17296 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17297
17298 * fontset.c: Include "intervals.h".
17299 (fontset_face): Fix comparing of Lisp_Objects.
17300 (free_face_fontset, new_fontset_from_font_name): Fix
17301 Lisp_Object/int mixup.
17302
17303 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17304
17305 * coding.c: Add many prototypes for static functions.
17306 (get_translation_table): Allow max_lookup to be NULL.
17307 (decode_coding, Ffind_coding_systems_region_internal)
17308 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17309 get_translation_table with max_lookup NULL.
17310
173112008-02-01 Kenichi Handa <handa@m17n.org>
17312
17313 * coding.c (get_translation_table): Declare it as Lisp_Object.
17314 (LOOKUP_TRANSLATION_TABLE): New macro.
17315 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17316 instead of CHAR_TABLE_REF.
17317
173182008-02-01 Kenichi Handa <handa@m17n.org>
17319
17320 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17321 annotation data format.
17322 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17323 Change arguments FROM and TO to single argument NCHARS. Change caller.
17324 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17325 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17326 (decode_coding_ccl, decode_coding_charset): Pay attention to
17327 coding->charbuf_used.
17328 (get_translation): New function.
17329 (produce_chars): New arguments translation_table and last_block.
17330 Translate characters here. Return number of carryover chars.
17331 Change caller.
17332 (produce_composition): New argument pos. Change caller.
17333 Adjust for the change of annotation data format.
17334 (produce_charset, produce_annotation): Likewise.
17335 (decode_coding, encode_coding): Don't call translate_chars.
17336 (consume_chars): New arg translation_table. Change caller.
17337 (translate_chars): Delete.
17338 (syms_of_coding): Make translation-table's number of extra slots 2.
17339
173402008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * search.c (simple_search): Fix setting this_pos_byte in backward
17343 search.
17344
17345 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17346 byte sequence.
17347 (detect_coding_ccl): Fix setting of the variable valids.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17352
17353 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17354
17355 * editfns.c (Ftranslate_region_internal): Rename from
17356 Ftranslate_region. Accept a char-table in TABLE.
17357 (syms_of_editfns): Defsubr Stranslate_region_internal.
17358
17359 * xfaces.c (set_lface_from_font_name): If a font is specified for
17360 a frame, generate a fontset from the font.
17361 (build_scalable_font_name): If the scalable font is requested for
17362 a specific size, don't change that size.
17363 (try_font_list): Try a scalable font also in the case that a
17364 pattern string is specified.
17365
173662008-02-01 Kenichi Handa <handa@m17n.org>
17367
17368 * xfaces.c (Fface_font): New optional arg CHARACTER.
17369
173702008-02-01 Kenichi Handa <handa@m17n.org>
17371
17372 * charset.h (CHARSET_OFFSET): New macro.
17373
173742008-02-01 Kenichi Handa <handa@m17n.org>
17375
17376 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17377
17378 * fontset.c (fontset_face): Handle the case that repertory is a
17379 char-table.
17380 (find_font_encoding): Return nil for unknown encoding.
17381 (Fset_fontset_font): Ignore a font of unknown encoding.
17382
173832008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * keymap.c (describe_vector): Handle default value of a char table.
17386
17387 * fontset.c (fontset_face): Handle fallback fonts correctly.
17388 (Ffontset_info): Return infomation about fallback fonts.
17389
173902008-02-01 Kenichi Handa <handa@m17n.org>
17391
17392 * fontset.c (FONTSET_DEFAULT): New macro.
17393 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17394 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17395 the case that it is nil.
17396 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17397 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17398
17399 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17400 subset or superset.
17401
174022008-02-01 Kenichi Handa <handa@m17n.org>
17403
17404 * emacs.c (main): Call init_charset after syms_of_XXX.
17405
17406 * charset.c (Vcharset_map_directory): Delete.
17407 (Vcharset_map_path): New variable.
17408 (load_charset_map_from_file): Use Vcharset_map_path instead.
17409 (init_charset): Initialize Vcharset_map_path.
17410 (syms_of_charset): Delete declaration of "charset-map-directory",
17411 add declaration of "charset-map-path".
17412
174132008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17416 ASCII only string.
17417
17418 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17419
17420 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17421 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17426
17427 * coding.c (QCmnemonic, QCdefalut_char)
17428 (QCdecode_translation_table, QCencode_translation_table)
17429 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17430 (get_translation_table): Return a list of translation tables if
17431 necessary.
17432 (decode_coding): Call get_translation_table with ENCODEP 0.
17433 (char_encodable_p): If translation_table is non-nil, always call
17434 translate_char.
17435 (Fdefine_coding_system_internal): Accept list of translation
17436 tables as :encode-translation-table and :decode-translation-table.
17437 (Fcoding_system_put): New function.
17438 (syms_of_coding): Declare new symbols. Defsubr
17439 Scoding_system_put.
17440 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17441 typically JISX0212.
17442
17443 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17444 when the charset is superset type.
17445
17446 * character.c (translate_char): Accept list of translation tables.
17447
174482008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17451 (CODING_ATTR_TRANS_TBL): New macro.
17452
17453 * coding.c (get_translation_table): New function.
17454 (translate_chars): Fix the bug of skipping annotation data.
17455 (decode_coding, encode_coding): Utilize get_translation_table.
17456 (char_encodable_p, Funencodable_char_position): Translate char if
17457 necessary.
17458 (Ffind_coding_systems_region_internal)
17459 (Fcheck_coding_systems_region): Setup translation table for encode
17460 in a coding system attribute vector in advance.
17461 (Fdefine_coding_system_internal): Allow a symbol as translation
17462 table. For shift-jis type coding system, allow 4th charset.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17467
17468 * xdisp.c (get_next_display_element): Pass -1 as POS to
17469 FACE_FOR_CHAR if displaying a C-string.
17470
174712008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * composite.c (get_composition_id): Handle xoff and yoff in a
17474 composition rule.
17475
17476 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17477 (struct composition): New member lbearing and rbearing.
17478
17479 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17480 (x_get_glyph_overhangs): Handle a composition glyph.
17481 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17482
17483 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17484 composition glyph.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * print.c: Include charset.h.
17489 (Vprint_charset_text_property): New variable.
17490 (Qdefault): Extern it.
17491 (PRINT_STRING_NON_CHARSET_FOUND)
17492 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17493 (print_check_string_result): New variable.
17494 (print_check_string_charset_prop): New function.
17495 (print_prune_charset_plist): New variable.
17496 (print_prune_string_charset): New function.
17497 (print_object): Call print_prune_string_charset if
17498 Vprint_charset_text_property is not t.
17499 (print_interval): Print nothing if interval->plist is nil.
17500 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17501 variable. Init and staticpro print_prune_charset_plist.
17502
175032008-02-01 Kenichi Handa <handa@m17n.org>
17504
17505 * fontset.c (new_fontset_from_font_name): Use the specified font
17506 for all characters in the new fontset.
17507
17508 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17509 OBJECT args.
17510
17511 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17512 OBJECT args for composition too.
17513
17514 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17515 OBJECT args.
17516
175172008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17520
17521 * fontset.c (reorder_font_vector): Adjust for the change of
17522 FONT_DEF format.
17523 (fontset_face): New arg id. Change caller.
17524 (face_for_char): New args pos and object.
17525 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17526 (fs_query_fontset): Check NAME by Fassoc too.
17527 (Fset_fontset_font): Allow non-XLFD font name.
17528 (Ffontset_info): Adjust for the change of FONT_DEF format.
17529
17530 * fontset.h (face_for_char): Adjust prototype.
17531
17532 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17533 (append_space, extend_face_to_end_of_line)
17534 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17535 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17536
17537 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17538 POS and OBJECT args.
17539
17540 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17541 POS and OBJECT args.
17542
175432008-02-01 Jason Rumney <jasonr@gnu.org>
17544
17545 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17546 of GlobalAlloc'ed memory.
17547
175482008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17551
17552 * charset.h (charset_table_used): Delete extern.
17553
17554 * charset.c (charset_table_used): Make it static.
17555 (map_charset_chars): Fix args to c_function with.
17556
17557 * chartab.c (map_sub_char_table_for_charset): Fix args to
17558 c_function with.
17559
17560 * coding.h (enum coding_result_code): Delete
17561 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17562
17563 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17564 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17565 (Vlast_code_conversion_error): New variables.
17566 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17567 (ONE_MORE_BYTE): Record error if any instead of signaling an
17568 error. If non-ASCII multibyte char is found, return the negative
17569 value of the code. All callers changed to check it.
17570 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17571 (record_conversion_result): New function. Change all codes setting
17572 coding->result to call this function.
17573 (detect_coding_utf_8, decode_coding_utf_8)
17574 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17575 Don't use the local variable incomplete.
17576 (emacs_mule_char): Change the second arg to `const'.
17577 (decode_coding): Fix of flushing out unprocessed data.
17578 (make_conversion_work_buffer): Fix making of a work buffer.
17579 (decode_coding_object): Return coding->dst_object.
17580
17581 * fontset.c (set_fontset_font): Fix args.
17582
17583 * lisp.h (CHARACTERBITS): Define as 22.
17584
17585 * process.c (send_process): Be sure to set coding->src_multibyte.
17586
17587 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17588
175892008-02-01 Kenichi Handa <handa@m17n.org>
17590
17591 * xdisp.c (handle_auto_composed_prop): Give limit to
17592 Fnext_single_char_property_change.
17593
175942008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * composite.c (syms_of_composite): Don't make the composition hash
17597 table weak.
17598
17599 * fontset.c (Fset_fontset_font): Fix docstring.
17600
17601 * lisp.h (detect_coding_system): Adjust prototype.
17602
17603 * fileio.c (kill_workbuf_unwind): Delete this function.
17604 (Finsert_file_contents): Adjust the call of detect_coding_system.
17605 Get conversion_buffer by code_conversion_save. Use the macro
17606 CODING_MAY_REQUIRE_DECODING. After decoding, update
17607 coding_system.
17608
17609 * coding.h (make_conversion_work_buffer): Delete extern.
17610 (code_conversion_save): Extern it.
17611
17612 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17613 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17614 (decode_coding_utf_8): Don't do eol converion.
17615 (detect_coding_utf_16): Check coding->src_chars, not
17616 coding->src_bytes. Add heuristics for those that have no signature.
17617 (decode_coding_emacs_mule, decode_coding_iso_2022)
17618 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17619 Don't do eol converion.
17620 (adjust_coding_eol_type): Return a new coding system.
17621 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17622 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17623 each change.
17624 (decode_coding): Pay attention to undo_list. Do eol conversion for
17625 all types of coding-systems (if necessary).
17626 (Vcode_conversion_work_buf_list): Delete it.
17627 (Vcode_conversion_reused_workbuf): Rename from
17628 Vcode_conversion_reused_work_buf.
17629 (Vcode_conversion_workbuf_name): New variable.
17630 (reused_workbuf_in_use): New variable.
17631 (make_conversion_work_buffer): Delete the arg DEPTH.
17632 (code_conversion_restore): Change argument to cons.
17633 (code_conversion_save): Delete the argument BUFFER. Change callers.
17634 (detect_coding_system): New argument src_chars. Change callers.
17635 Fix for utf-16 detection.
17636 (init_coding_once): Don't use ISO_carriage_return.
17637 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17638 reused_workbuf_in_use.
17639
176402008-02-01 Kenichi Handa <handa@m17n.org>
17641
17642 * keymap.c (store_in_keymap): Pay attention to the case that idx
17643 is a cons specifying a character range.
17644
176452008-02-01 Kenichi Handa <handa@m17n.org>
17646
17647 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17648 HANDLED_RECOMPUTE_PROPS.
17649
17650 * coding.c (Fdefine_coding_system_internal): Fix checking of
17651 ascii compatibility.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * charset.c (find_charsets_in_text): Delete unused locale variable.
17656 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17657
17658 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17659 Resync charset_list to Vemacs_mule_charset_list.
17660
17661 * keymap.c (store_in_keymap): Pay attention to the case that idx
17662 is a cons specifying a character range.
17663
176642008-02-01 Kenichi Handa <handa@m17n.org>
17665
17666 * composite.c (update_compositions): Bind inhibit-read-only, etc
17667 to t before calling remove-list-of-text-properties.
17668
17669 * print.c (print_object): Always print ASCII chars as is.
17670
176712008-02-01 Kenichi Handa <handa@m17n.org>
17672
17673 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17674
17675 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17676 is a char table.
17677
176782008-02-01 Kenichi Handa <handa@m17n.org>
17679
17680 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17681
176822008-02-01 Kenichi Handa <handa@m17n.org>
17683
17684 * xfaces.c (set_lface_from_font_name): Fix for the case that
17685 FONTNAME is not fontset name.
17686
176872008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * fns.c (base64_encode_1): Fix previous change.
17690
176912008-02-01 Kenichi Handa <handa@m17n.org>
17692
17693 * fontset.c (set_fontset_font): New function.
17694 (Fset_fontset_font): If a font is specified for a charset, use
17695 map_charset_chars to store the font spec in a fontset.
17696
176972008-02-01 Kenichi Handa <handa@m17n.org>
17698
17699 * fontset.c (fontset_face): Create a fallback fontset on demand.
17700 (make_fontset): Don't create a fallback fontset here.
17701 (free_face_fontset): Free a fallback fontset (if any) too.
17702 (n_auto_fontsets): Delete this variable.
17703 (auto_fontset_alist): New variable.
17704 (new_fontset_from_font_name): Check auto_fontset_alist.
17705 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17706 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17707 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17708 Defsubr Sfontset_list_all.
17709
177102008-02-01 Kenichi Handa <handa@m17n.org>
17711
17712 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17713
177142008-02-01 Kenichi Handa <handa@m17n.org>
17715
17716 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * editfns.c (Fgoto_char): Fix docstring.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * insdel.c (insert_from_gap): Adjust intervals correctly.
17725
177262008-02-01 Jason Rumney <jasonr@gnu.org>
17727
17728 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17729 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17730 (w32_initialize): Try to load it.
17731 (x_get_font_repertory): Use it if available.
17732 (w32_encode_char): Add shortcut for unicode output.
17733
17734 * w32fns.c (w32_load_system_font): Default charset to -1.
17735 (x_to_w32_charset): Match all fonts for unicode.
17736 (w32_to_x_charset): New parameter matching. Don't return partial
17737 or wildcard charsets.
17738 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17739 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17740 (w32_to_x_font): Match charset to real charset.
17741 (enum_font_cb2): Always list unicode versions.
17742
17743 * makefile.w32-in (temacs): Increase EMHEAP.
17744
177452008-02-01 Jason Rumney <jasonr@gnu.org>
17746
17747 * w32term.c (w32_encode_char): New charset parameter.
17748 font_info.encoding becomes encoding_type.
17749 (x_get_font_repertory): New function. Warning: stub only!
17750 (x_new_font): Return quickly if font already set.
17751 (x_new_fontset): fontsetname parameter is Lisp_Object.
17752 Use new fs_query_fontset. Try new_fontset_from_font_name.
17753 Use fontset_name for return value.
17754
17755 * w32term.h: Declare x_get_font_repertory.
17756
17757 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17758 place of find_charset_in_text. Use encode_coding_object in place
17759 of encode_coding.
17760 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17761 decode_coding.
17762
17763 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17764 of x_new_fontset.
17765 (w32_load_system_font): Initialize charset as unicode.
17766 font_info.encoding becomes encoding_type.
17767 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17768 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17769 (syms_of_w32fns): Set get_font_repertory_func.
17770
17771 * w32console.c: Include character.h. Use terminal_encode_buffer
17772 from term.c.
17773 (write_glyphs): Use new version of encode_terminal_code. Use
17774 encode_coding_object in place of encode_coding.
17775
17776 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17777 encoding becomes encoding_type.
17778
17779 * term.c (terminal_encode_buffer): Make externally visible.
17780
17781 * makefile.w32-in: Add character.h dependancies.
17782 (character.o, chartab.o): New targets.
17783
177842008-02-01 Kenichi Handa <handa@m17n.org>
17785
17786 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17787 CODING_ID_EOL_TYPE.
17788
177892008-02-01 Andreas Schwab <schwab@suse.de>
17790
17791 * coding.c (produce_chars): Revert last change.
17792
177932008-02-01 Kenichi Handa <handa@m17n.org>
17794
17795 * charset.h (charset_unicode): Extern it.
17796
17797 * charset.c (string_xstring_p): Check by (C >= 0x100).
17798 (find_charsets_in_text): Change format of the arc CHARSETS. New
17799 arg MULTIBYTE.
17800 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17801 change of find_charsets_in_text.
17802 (Fsplit_char): Fix doc. Never return unknown.
17803
17804 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17805
17806 * coding.c (Fdefine_coding_system_alias): Update
17807 Vcoding_system_list.
17808
17809 * fontset.c (load_font_get_repertory): Pay attention to the case
17810 that ENCODING of a font is specified by a char-table.
17811
17812 * xterm.c (x_get_font_repertory): Handle the case that the
17813 encoding of font is other than Unicode.
17814
178152008-02-01 Kenichi Handa <handa@m17n.org>
17816
17817 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17818 if a character is encodable by the terminal coding system. If
17819 not, produces proper number of `?'s. Update
17820 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17821 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17822
178232008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17826 variables.
17827 (encode_terminal_code): Change argument. Encode multiple
17828 characters at once. Store the result of encoding in
17829 terminal_encode_buffer.
17830 (write_glyphs, insert_glyphs): Adjust for the change of
17831 encode_terminal_code.
17832 (term_init): Initialize terminal_encode_buffer and
17833 terminal_encode_buf_size.
17834
17835 * coding.c (consume_chars): If coding->src_object is nil, don't
17836 check annotation.
17837
178382008-02-01 Kenichi Handa <handa@m17n.org>
17839
17840 * character.c (char_string): Use ASCII_CHAR_P instead of
17841 SINGLE_BYTE_CHAR_P.
17842
178432008-02-01 Kenichi Handa <handa@m17n.org>
17844
17845 * xdisp.c (handle_auto_composed_prop): Check if the last
17846 characters of auto-composed region is newly composed with the
17847 following characters.
17848 (handle_composition_prop): Fix checking of point being inside
17849 composition.
17850
178512008-02-01 Kenichi Handa <handa@m17n.org>
17852
17853 * fns.c (concat): Don't change multibyteness of the result by
17854 concatenating an 8-bit character.
17855
17856 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17857 multibyteness of the result when newelt is an 8-bit character.
17858
178592008-02-01 Dave Love <fx@gnu.org>
17860
17861 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17862 EMACS_INT.
17863
17864 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17865
17866 * xfaces.c (face_numeric_value): Declare dim size_t.
17867 (Finternal_lisp_face_equal_p): Remove unused f.
17868
17869 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17870 (MATRIX_ROW): Remove unused vars.
17871 (draw_glyphs, x_insert_glyphs, fast_find_position)
17872 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17873 byte/char counts.
17874
17875 * regex.c (regex_compile): Remove unused var.
17876
17877 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17878
17879 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17880 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17881
17882 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17883
17884 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17885
17886 * fileio.c (Fwrite_region): Remove unused var.
17887
17888 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17889 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17890
17891 * composite.c (Fremove_list_of_text_properties): Declare.
17892
17893 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17894 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17895 (coding_inherit_eol_type): Remove unused attrs.
17896 (detect_coding): Cast arg of detect_eol.
17897
17898 * charset.c (syms_of_charset): Remove unused var p.
17899 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17900 byte/char counts.
17901
17902 * casetab.c (set_case_table): Remove unused var.
17903
17904 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17905 unused vars.
17906
179072008-02-01 Dave Love <fx@gnu.org>
17908
17909 * xterm.c (x_bitmap_mask): Declare.
17910
179112008-02-01 Dave Love <fx@gnu.org>
17912
17913 * xterm.c (x_term_init): Fix type error.
17914
17915 * lisp.h: Add Funibyte_char_to_multibyte.
17916
17917 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17918 (Fset_coding_system_priority): Doc fix.
17919
17920 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17921
17922 * indent.c (check_composition): Make start and end EMACS_INT.
17923
17924 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17925
17926 * xdisp.c (handle_composition_prop, check_point_in_composition):
17927 Make buffer positions EMACS_INT.
17928
17929 * composite.c (find_composition, run_composition_function)
17930 (update_compositions, Ffind_composition_internal): Make buffer
17931 positions EMACS_INT.
17932
17933 * composite.h (find_composition, update_compositions): Make
17934 position args EMACS_INT.
17935
17936 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17937
17938 * intervals.c (get_property_and_range):
17939 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17940
17941 * unexalpha.c: Don't include varargs.h.
17942
179432008-02-01 Dave Love <fx@gnu.org>
17944
17945 * coding.h (ENCODE_UTF_8): New.
17946
17947 * Makefile.in (gtkutil.o): Depend on coding.h.
17948
17949 * coding.c (Fset_coding_system_priority): Doc fix.
17950
179512008-02-01 Kenichi Handa <handa@m17n.org>
17952
17953 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17954 the case of auto saving.
17955
179562008-02-01 Andreas Schwab <schwab@suse.de>
17957
17958 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17959 `range' from GC.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17964
179652008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * fileio.c (choose_write_coding_system): Return a decided coding system.
17968 (Fwrite_region): Set Vlast_coding_system_used to the return value
17969 of choose_write_coding_system.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * charset.c (Fset_charset_priority): Pay attention to duplicated
17974 arguments.
17975
17976 * coding.c (QCcategory): New variable.
17977 (syms_of_coding): Defsym it. Set all elements of
17978 Vcoding_category_table and their symbol values.
17979 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17980 coding-category-XXX, and coding-category-list.
17981 (Fdefine_coding_system_internal): Add category in the plist.
17982
179832008-02-01 Kenichi Handa <handa@m17n.org>
17984
17985 * callproc.c (Fcall_process): Handle carryover correctly.
17986
17987 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17988 (raw_text_coding_system): Check NILP (coding_system).
17989 (coding_inherit_eol_type): Check NILP (coding_system) and
17990 NILP (parent).
17991 (consume_chars): Fix for the case of raw-text.
17992
17993 * process.c (read_process_output): Handle carryover correctly.
17994
179952008-02-01 Dave Love <fx@gnu.org>
17996
17997 * regex.c (re_search_2): Fix last change.
17998
179992008-02-01 Kenichi Handa <handa@m17n.org>
18000
18001 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18002 target_multibyte. Even in a unibyte case, return a converted
18003 multibyte char.
18004 (GET_CHAR_AFTER): New macro.
18005 (PATFETCH): Translate via multibyte char.
18006 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18007 (SETUP_MULTIBYTE_RANGE): New macro.
18008 (regex_compile): Setup compiled code so that its multibyteness
18009 matches that of a target. Fix the handling of "[X-YZ]" using
18010 SETUP_MULTIBYTE_RANGE.
18011 (analyse_first) <charset>: For filling fastmap for all multibyte
18012 characters, don't check by BASE_LEADING_CODE_P.
18013 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18014 the same as RE_MULTIBYTE_P (bufp) now.
18015 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18016 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18017 (TRANSLATE_VIA_MULTIBYTE): New macro.
18018 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18019 It is the same as RE_MULTIBYTE_P (bufp) now.
18020 <exactn>: Translate via multibyte.
18021 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18022 translate it.
18023 <charset, charset_not>: Fetch a character by
18024 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18025 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18026 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18027 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18028 by GET_CHAR_AFTER.
18029 (bcmp_translate): Likewise.
18030
18031 * search.c (compile_pattern): Check the member target_multibyte,
18032 not the member multibyte of buf.
18033
18034 * lread.c (read1): While reading a string, set force_singlebyte
18035 and force_multibyte correctly.
18036
18037 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18038 up of unibyte_to_multibyte_table.
18039
180402008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * coding.c (setup_coding_system): If coding has
18043 post-read-conversion or pre-write-conversion, set
18044 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18045 respectively.
18046 (decode_coding_gap): Run post-read-conversion if any.
18047
18048 * fileio.c (Finsert_file_contents): Even if we read into a
18049 unibyte buffer, check if we must decode the result or not.
18050
180512008-02-01 Kenichi Handa <handa@m17n.org>
18052
18053 * coding.c (make_conversion_work_buffer): Change the work buffer
18054 name to the same one as that of Emacs 21.
18055
180562008-02-01 Kenichi Handa <handa@m17n.org>
18057
18058 * coding.h (make_conversion_work_buffer): Adjust prototype.
18059 (code_conversion_restore): Don't extern it.
18060
18061 * coding.c (detected_mask): Delete unused variable.
18062 (decode_coding_iso_2022): Pay attention to the byte sequence of
18063 CTEXT extended segment, and retain those bytes as is.
18064 (decode_coding_ccl): Delete unused variable `valids'.
18065 (setup_coding_system): Delete unused variable `category'.
18066 (consume_chars): Delete unused variable `category'. Make it work
18067 for non-multibyte case.
18068 (make_conversion_work_buffer): Change argument.
18069 (saved_coding): Delete unused variable.
18070 (code_conversion_restore): Don't check saved_coding->destination.
18071 (code_conversion_save): New function.
18072 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18073 instead of record_unwind_protect.
18074 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18075 (detect_coding_system): Delete unused variable `mask'.
18076 (Fdefine_coding_system_internal): Delete unused variable id.
18077
18078 * fileio.c (kill_workbuf_unwind): New function.
18079 (Finsert_file_contents): On replacing, call
18080 make_conversion_work_buffer with correct args, and call
18081 record_unwind_protect with the first arg kill_workbuf_unwind.
18082
18083 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18084
180852008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18088 (fontset_add): Fix for the case that TO is less than TO1.
18089 (Ffontset_info): Don't use fallback fontset on checking the
18090 default fontset.
18091 (dump_fontset): New function for debugging.
18092
18093 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18094 coding_type is Qcharset.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18099 (map_char_table): Don't inherit the value from the parent on
18100 initializing VAL. Adjust for the above change.
18101
181022008-02-01 Kenichi Handa <handa@m17n.org>
18103
18104 * coding.c (Qsignature, Qendian): Delete these variables.
18105 (syms_of_coding): Don't initialize them.
18106 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18107 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18108 detect_info->found.
18109 (decode_coding_utf_16): Don't detect BOM here.
18110 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18111 is NOT utf_16_without_bom.
18112 (setup_coding_system): For a coding system of type utf-16, check
18113 if the attribute :endian is Qbig or not (not nil or not), and set
18114 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18115 (detect_coding): If coding type is utf-16 and BOM detection is
18116 required, detect it.
18117 (Fdefine_coding_system_internal): For a coding system of type
18118 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18119
181202008-02-01 Kenichi Handa <handa@m17n.org>
18121
18122 * coding.c (coding_set_source): Fix for the case that the current
18123 buffer is different from coding->src_object.
18124 (decode_coding_object): Don't use the conversion work buffer if
18125 DST_OBJECT is a buffer.
18126
181272008-02-01 Dave Love <fx@gnu.org>
18128
18129 * lread.c (read_emacs_mule_char) [len==2]: Index
18130 emacs_mule_charset correctly.
18131
181322008-02-01 Dave Love <fx@gnu.org>
18133
18134 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18135 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18136 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18137 treated specially.)
18138 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18139 (detected_mask): Remove Big5 bits.
18140
181412008-02-01 Kenichi Handa <handa@m17n.org>
18142
18143 The following changes are to make the font rescaling facility
18144 compatible with Emacs 21.
18145
18146 * xfaces.c (Vface_font_rescale_alist): Rename from
18147 Vface_resizing_fonts.
18148 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18149 (font_rescale_ratio): Rename from font_resizing_ratio.
18150 (split_font_name): Set font->rescale_ratio.
18151 (better_font_p): Pay attention to font->rescale_ratio.
18152 (build_scalable_font_name): Likewise. Change RESX, and RESY
18153 fields.
18154 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18155
181562008-02-01 Kenichi Handa <handa@m17n.org>
18157
18158 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18159 (Qutf_16_le): Remove these variables.
18160 (syms_of_coding): Don't DEFSYM them.
18161 (decode_coding_utf_16): Fix handling of BOM.
18162 (encode_coding_utf_16): Fix handling of BOM.
18163
181642008-02-01 Kenichi Handa <handa@m17n.org>
18165
18166 * fileio.c (Finsert_file_contents): On replacing, before decoding
18167 the file into the work buffer, set point of the work buffer to the end.
18168
181692008-02-01 Dave Love <fx@gnu.org>
18170
18171 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18172
181732008-02-01 Dave Love <fx@gnu.org>
18174
18175 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18176 and fix C types.
18177
181782008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * xdisp.c (SKIP_GLYPHS): New macro.
18181 (set_cursor_from_row): Pay attention to string display properties.
18182
18183 * category.c (copy_category_entry): Fix for the case that RANGE
18184 is an integer.
18185
18186 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18187
18188 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18189
181902008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * charset.c (Fcharset_id_internal): New function.
18193 (syms_of_charset): Defsubr it.
18194
18195 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18196 with the last arg charset_list acquired from coding.
18197 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18198 the attribute coding_attr_ccl_valids.
18199
18200 * coding.h (enum define_coding_ccl_arg_index): Set the first
18201 member coding_arg_ccl_decoder to coding_arg_max.
18202
18203 * ccl.h (ccl_driver): Adjust prototype.
18204
18205 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18206 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18207 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18208 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18209 last arg Qnil.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18214 call encode_char.
18215
18216 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18217
182182008-02-01 Dave Love <fx@gnu.org>
18219
18220 * composite.c (syms_of_composite): Make composition_hash_table weak.
18221
182222008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18225 (font_name_registry): Don't extern them.
18226 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18227
18228 * fontset.h (Qfontset): Don't extern it.
18229 (new_fontset_from_font_name): Extern it.
18230
18231 * fontset.c: Give 8 extra slots to fontset objects.
18232 (Qfontset_info): New variable.
18233 (syms_of_fontset): Defsym it.
18234 (FONTSET_FALLBACK): New macro.
18235 (fontset_face): Try also the default fontset.
18236 (make_fontset): Realize a fallback fontset from the default fontset.
18237 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18238 using split_font_name_into_vector and build_font_name_from_vector.
18239 (Fset_fontset_font): Access the elements of font_spec by enum
18240 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18241 name by using split_font_name_into_vector.
18242 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18243 generate a proper font name from the fontset name. Update
18244 Vfontset_alias_alist.
18245 (n_auto_fontsets): New variable.
18246 (new_fontset_from_font_name): New function.
18247 (Ffont_info): Store the information about fonts generated from the
18248 default fontset in the first extra slot of the returned char-table.
18249
18250 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18251 (font_name_registry): Delete function.
18252 (split_font_name_into_vector): New function.
18253 (build_font_name_from_vector): New function.
18254 (font_list): The argument REGISTRY is now a list of registry names.
18255 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18256 specifies an explicit font name, return the name as is. Make a
18257 list of registy names.
18258
18259 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18260 of x_new_fontset.
18261 (Fx_create_frame): Don't call x_new_fontset here. Just use
18262 x_list_fonts to check the existence of fonts.
18263
18264 * xterm.h (x_new_fontset): Adjust prototype.
18265
18266 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18267 string. Use new_fontset_from_font_name to create a fontset from a
18268 font name.
18269
182702008-02-01 Kenichi Handa <handa@m17n.org>
18271
18272 * syntax.c (Vfind_word_boundary_function_table): New name for
18273 Vnext_word_boundary_function_table.
18274 (find-word-boundary-function-table): New name for
18275 next-word-boundary-function-table.
18276
182772008-02-01 Dave Love <fx@gnu.org>
18278
18279 * Makefile.in: Fix some dependencies.
18280
18281 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18282 set it to nil before returning.
18283
18284 * composite.c (update_compositions): Fix type error.
18285
18286 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18287
182882008-02-01 Kenichi Handa <handa@m17n.org>
18289
18290 * xterm.c (x_new_font): Optimize for the case that the font is
18291 already set for the frame.
18292
182932008-02-01 Kenichi Handa <handa@m17n.org>
18294
18295 * chartab.c (char_table_ascii): Check if the char table contents
18296 is sub-char-table or not.
18297 (char_table_set, char_table_set_range): Fix argument to
18298 char_table_ascii.
18299
18300 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18301 (detect_coding_utf_8, detect_coding_utf_16)
18302 (detect_coding_emacs_mule, detect_coding_iso_2022)
18303 (detect_coding_sjis, detect_coding_big5)
18304 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18305 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18306 sequence is valid in this coding system. Change callers.
18307 (MAX_ANNOTATION_LENGTH): New macro.
18308 (ADD_ANNOTATION_DATA): New macro.
18309 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18310 ADD_ANNOTATION_DATA. Change the format of annotation data.
18311 (ADD_CHARSET_DATA): New macro.
18312 (emacs_mule_char): New argument ID. Change callers.
18313 (decode_coding_emacs_mule, decode_coding_iso_2022)
18314 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18315 Produce charset annotation data in coding->charbuf.
18316 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18317 to charset annotation data in coding->charbuf.
18318 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18319 coding->common_flags if the coding system is iso-2022 based and
18320 uses designation.
18321 (produce_composition): Adjust for the new annotation data format.
18322 (produce_charset): New function.
18323 (produce_annotation): Handle charset annotation.
18324 (handle_composition_annotation, handle_charset_annotation): New
18325 functions.
18326 (consume_chars): Handle charset annotation. Utilize the above two
18327 functions.
18328 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18329 buffer, get the deleted text as a string and set
18330 coding->src_object to that string.
18331 (detect_coding, detect_coding_system): Use the new struct
18332 coding_detection_info.
18333
18334 * coding.h (struct coding_detection_info): New structure.
18335 (struct coding_system): Adjust prototype of the member `detector'.
18336 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18337
183382008-02-01 Kenichi Handa <handa@m17n.org>
18339
18340 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18341
183422008-02-01 Dave Love <fx@gnu.org>
18343
18344 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18345 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18346 to new local and nullify apropos_accumulate before returning.
18347 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18348
183492008-02-01 Kenichi Handa <handa@m17n.org>
18350
18351 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18352 correctly.
e3eea1fc 18353
aac0c6e3
MR
183542008-02-01 Dave Love <fx@gnu.org>
18355
18356 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18357
183582008-02-01 Kenichi Handa <handa@m17n.org>
18359
18360 The following changes are to make character composition happen
18361 automatically on displaying.
18362
18363 * Makefile.in (lisp, shortlisp): Add composite.elc.
18364
18365 * composite.h (Qauto_composed, Vauto_composition_function)
18366 (Qauto_composition_function): Extern them.
18367
18368 * composite.c (Vcomposition_function_table)
18369 (Qcomposition_function_table): Delete variables.
18370 (Qauto_composed, Vauto_composition_function)
18371 (Qauto_composition_function): New variables.
18372 (run_composition_function): Don't call
18373 compose-chars-after-function.
18374 (update_compositions): Clear `auto-composed' text property.
18375 (compose_chars_in_text): Delete this function.
18376 (syms_of_composite): Staticpro Qauto_composed and
18377 Qauto_composition_function. Declare Vauto_composition_function as
18378 a Lisp variable.
18379
18380 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18381
18382 * xdisp.c (it_props): Add an entry for Qauto_composed.
18383 (handle_auto_composed_prop): New function.
18384
18385 * xselect.c (selection_data_to_lisp_data): Don't call
18386 compose_chars_in_text.
18387
183882008-02-01 Dave Love <fx@gnu.org>
18389
18390 * keyboard.c (read_char): Modify checking around use of
18391 Vkeyboard_translate_table.
18392
18393 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18394 and fix C types.
18395
183962008-02-01 Kenichi Handa <handa@m17n.org>
18397
18398 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18399 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18400 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18401 the case that the last byte is '\r' correctly.
18402 (decode_coding): Flush out the unprocessed data correctly.
18403 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18404
184052008-02-01 Dave Love <fx@gnu.org>
18406
18407 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18408 Add XK_ISO... case.
18409 (xaw_scroll_callback): Revert last change.
18410
184112008-02-01 Kenichi Handa <handa@m17n.org>
18412
18413 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18414
184152008-02-01 Kenichi Handa <handa@m17n.org>
18416
18417 * xfaces.c (Vface_resizing_fonts): New variable.
18418 (struct font_name): New member `resizing_ratio'.
18419 (font_resizing_ratio): New function.
18420 (split_font_name): Set font->resizing_ratio.
18421 (better_font_p): Pay attention to font->resizing_ratio.
18422 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18423 RESX, and RESY fields.
18424 (try_alternative_families): Try scalable fonts if
18425 Vscalable_fonts_allowed is not Qt.
18426 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18427
184282008-02-01 Dave Love <fx@gnu.org>
18429
18430 * xterm.c (xaw_scroll_callback): Cast correctly.
18431
184322008-02-01 Dave Love <fx@gnu.org>
18433
18434 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18435 (lispy_kana_keys): Comment out.
18436 (make_lispy_event) [XK_kana_A]: Comment out.
18437
18438 * xterm.c (xaw_scroll_callback): Cast call_data.
18439 (XTread_socket): Deal with ASCII keysyms.
18440 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18441
184422008-02-01 Dave Love <fx@gnu.org>
18443
18444 * xterm.c (Vx_keysym_table): New.
18445 (syms_of_xterm): Initialize it.
18446 (XTread_socket): Use it.
18447 From head: Eliminate incorrect optimization that tried to avoid
18448 decoding the output of X*LookupString.
18449 (x_get_font_repertory): Delete charset declaration.
18450
184512008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18454 return 0.
18455 (Fdefine_coding_system_internal): Setup
18456 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18457
184582008-02-01 Dave Love <fx@gnu.org>
18459
18460 * coding.c (Fcheck_coding_system): Doc fix.
18461
18462 * editfns.c (Finsert_byte): Return a proper value.
18463
184642008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * coding.c (decode_coding): Fix args to translate_chars. Pay
18467 attention to Vstandard_translation_table_for_decode.
18468 (encode_coding): Fix args to translate_chars. Pay attention to
18469 Vstandard_translation_table_for_encode.
18470
18471 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18472 SINGLE_BYTE_CHAR_P.
18473
18474 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18475 not by SINGLE_BYTE_CHAR_P.
18476
18477 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18478 SINGLE_BYTE_CHAR_P.
18479
18480 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18481 SINGLE_BYTE_CHAR_P.
18482
18483 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18484 by SINGLE_BYTE_CHAR_P.
18485
18486 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18487 SINGLE_BYTE_CHAR_P.
18488
184892008-02-01 Dave Love <fx@gnu.org>
18490
18491 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18492
184932008-02-01 Dave Love <fx@gnu.org>
18494
18495 * fns.c (Flanginfo): Fix typo.
18496
18497 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18498
184992008-02-01 Kenichi Handa <handa@m17n.org>
18500
18501 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18502 (detect_coding_emacs_mule, detect_coding_iso_2022)
18503 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18504 incomplete byte sequence. Don't update *mask when correctly detected.
18505 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18506 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18507 (detect_coding, detect_coding_system): Adjust for the changes above.
18508
185092008-02-01 Kenichi Handa <handa@m17n.org>
18510
18511 * character.c (char_string): Rename from
18512 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18513 (string_char): Rename from string_char.
18514
18515 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18516 if C is greater than MAX_3_BYTE_CHAR.
18517 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18518 string_char instead of string_char_with_unification.
18519
185202008-02-01 Dave Love <fx@gnu.org>
18521
18522 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18523
185242008-02-01 Kenichi Handa <handa@m17n.org>
18525
18526 * keymap.c (push_key_description): Pay attention to force_multibyte.
18527
18528 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18529
185302008-02-01 Dave Love <fx@gnu.org>
18531
18532 * charset.c (define_charset_internal): Rename `supprementary'.
18533
18534 * Makefile.in (lisp, shortlisp): Remove latin-N.
18535
185362008-02-01 Dave Love <fx@gnu.org>
18537
18538 * xfns.c (x_window, x_window): Use use_xim.
18539
18540 * xterm.c (use_xim): Initialize.
18541 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18542 (x_term_init): Maybe set use_xim.
18543
18544 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18545
185462008-02-01 Kenichi Handa <handa@m17n.org>
18547
18548 * search.c (search_buffer): Fix case-fold-search of multibyte
18549 characters.
18550 (boyer_moore): Rename the last argument to char_high_bits.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * xdisp.c (display_string): Fix for the case of zero width glyph.
18555
18556 * xfns.c (x_set_font): Change the error message of the case that
18557 x_new_fontset returns Qt.
18558
18559 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18560 (Finternal_set_lisp_face_attribute): Use signal_error for the
18561 error of invalid fontset.
18562
18563 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18564 fontset, return Qt.
18565
185662008-02-01 Dave Love <fx@gnu.org>
18567
18568 * unexelf.c (unexec): Make .got handling not SGI-specific.
18569
18570 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18571
18572 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18573
18574 * keyboard.c (read_key_sequence): Fix type error.
18575
18576 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18577 type error.
18578
18579 * fontset.c (fontset_add): Return Lisp_Object.
18580
185812008-02-01 Dave Love <fx@gnu.org>
18582
18583 * charset.h (charset_ordered_list_tick): Declare extern.
18584
185852008-02-01 Kenichi Handa <handa@m17n.org>
18586
18587 The following changes (and some of 2008-02-01 changes of mine) are
18588 for handling syntax, category, and case conversion for unibyte
18589 characters by converting them to multibyte on the fly. With these
18590 changes, we don't have to setup syntax and case tables for unibyte
18591 characters in each language environment.
18592
18593 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18594 multibyte if necessary.
18595
18596 * bytecode.c (Fbyte_code): Likewise.
18597
18598 * character.h (LEADING_CODE_LATIN_1_MIN)
18599 (LEADING_CODE_LATIN_1_MAX): New macros.
18600 (unibyte_to_multibyte_table): Extern it.
18601 (unibyte_char_to_multibyte): New macro.
18602 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18603 (CHAR_LEADING_CODE): New macro.
18604 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18605
18606 * character.c (unibyte_to_multibyte_table): New variable.
18607 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18608 (multibyte_char_to_unibyte): If C is an eight-bit character,
18609 convert it to the corresponding byte value.
18610
18611 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18612 not 1, signals an error. Update the elements of
18613 unibyte_to_multibyte_table.
18614 (init_charset_once): Initialize unibyte_to_multibyte_table.
18615 (syms_of_charset): Define the charset `iso-8859-1'.
18616
18617 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18618 as is without converting it to unibyte. In a unibyte buffer,
18619 convert C to multibyte before checking the syntax.
18620
18621 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18622
18623 * minibuf.c (Fminibuffer_complete_word): Use the macro
18624 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18625
18626 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18627
18628 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18629 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18630 that is zero, convert an eight-bit char to multibyte.
18631 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18632 non-emacs case.
18633 (PATFETCH): Convert an eight-bit char to multibyte.
18634 (HANDLE_UNIBYTE_RANGE): New macro.
18635 (regex_compile): Setup the compiled pattern for multibyte chars
18636 even if the given regex string is unibyte. Use PATFETCH_RAW
18637 instead of PATFETCH in many places. To handle `charset'
18638 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18639 only for ASCII chars.
18640 (analyse_first) <exactn>: Simplify because the compiled pattern
18641 is multibyte.
18642 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18643 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18644 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18645 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18646 multibyte always 1.
18647 (re_search_2): In emacs, set the locale variable multibyte to 1,
18648 otherwise to 0. New local variable target_multibyte. Check it
18649 to decide the multibyteness of STR1 and STR2. If
18650 target_multibyte is zero, convert unibyte chars to multibyte
18651 before translating and checking fastmap.
18652 (TARGET_CHAR_AND_LENGTH): New macro.
18653 (re_match_2_internal): In emacs, set the locale variable multibyte
18654 to 1, otherwise to 0. New local variable target_multibyte. Check
18655 it to decide the multibyteness of STR1 and STR2. Use
18656 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18657 <charset, charset_not>: If multibyte is nonzero, check fastmap
18658 only for ASCII chars. Call bcmp_translate with
18659 target_multibyte, not with multibyte.
18660 <begline>: Declare the local variable C as `unsigned'.
18661 (bcmp_translate): Change the last arg name to target_multibyte.
18662
18663 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18664 the regexp pattern and the matching target. Set cp->buf.multibyte
18665 to the multibyteness of the regexp pattern. Set
18666 cp->but.target_multibyte to the multibyteness of the matching target.
18667 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18668 FETCH_STRING_CHAR_ADVANCE.
18669 (Freplace_match): Convert unibyte chars to multibyte.
18670
18671 * syntax.c (char_quoted, back_comment, scan_words)
18672 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18673 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18674 unibyte chars to multibyte.
18675 (skip_chars): Delete the arg syntaxp, and move the code for
18676 handling syntaxes to skip_syntaxes. Change callers.
18677 Fix the case that the multibyteness of STRING and the current
18678 buffer doesn't match.
18679 (skip_syntaxes): New function.
18680 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18681 SINGLE_BYTE_CHAR_P.
18682
186832008-02-01 Kenichi Handa <handa@m17n.org>
18684
18685 * xfaces.c (QCfontset): New variable.
18686 (LFACE_FONTSET): New macro.
18687 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18688 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18689 (Finternal_set_lisp_face_attribute)
18690 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18691 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18692 check also LFACE_FONTSET_INDEX.
18693 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18694 attrs[LFACE_FONT_INDEX].
18695 (syms_of_xfaces): Intern and staticpro QCfontset.
18696
18697 * dispextern.h (enum lface_attribute_index): New member
18698 LFACE_FONTSET_INDEX.
18699
18700 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18701
187022008-02-01 Kenichi Handa <handa@m17n.org>
18703
18704 * coding.c (coding_set_destination): Fix coding->destination for
18705 the case converting a region.
18706 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18707 (encode_coding_object): Fix coding->dst_pos and
18708 coding->dst_pos_byte for the case converting a region.
18709
18710 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18711
18712 * character.h (BYTE8_STRING): New macro.
18713
18714 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18715
187162008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18719 characters by octal form.
18720
18721 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18722
18723 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18724 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18725 _fetch_multibyte_char_len.
18726 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18727
18728 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18729
18730 * casefiddle.c (casify_object): Simplify. Handle the case that
18731 the case conversion change the byte length.
18732 (casify_region): Likewise.
18733
18734 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18735
18736 * character.c (_fetch_multibyte_char_len): Delete this variable.
18737 (syms_of_character): Setup Vprintable_chars.
18738
18739 * editfns.c (Fchar_equal): Fix for the unibyte case.
18740 (Finsert_byte): New function.
18741 (syms_of_editfns): Defsubr it.
18742
18743 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18744 of direct code 0x3ffff.
18745
18746 * search.c (Freplace_match): Fix for the unibyte case.
18747
187482008-02-01 Kenichi Handa <handa@m17n.org>
18749
18750 * lread.c (safe_to_load_p): Fix the logic.
18751
18752 * syntax.c (scan_words): Don't treat characters belonging to
18753 different scripts as constituting a word.
18754
18755 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18756
18757 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18758
18759 * emacs.c (main): In the case of --unibyte, instead of aborting on
18760 finding non-empty buffer, make it unibyte.
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18765 to create a fontset.
18766
187672008-02-01 Dave Love <fx@gnu.org>
18768
18769 * character.c (Funibyte_char_to_multibyte): Doc fix.
18770
18771 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18772
187732008-02-01 Kenichi Handa <handa@m17n.org>
18774
18775 * fontset.c (fontset_add): Make the type `int'.
18776 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18777
18778 * character.c (unibyte_char_to_multibyte)
18779 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18780 charset_unibyte, not charset_primary.
18781
18782 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18783
18784 * charset.c (charset_unibyte): Rename from charset_primary.
18785 (Funibyte_charset): Rename from Fprimary_charset.
18786 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18787 (syms_of_charset): Adjust for the above changes.
18788
18789 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18790 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18791 it->multibyte_p is zero.
18792
18793 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18794 Delete extern.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * coding.c (Fdefine_coding_system_internal): Fix category setting
18799 for a coding system of type iso-2022.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * syntax.c (Vnext_word_boundary_function_table): New variable.
18808 (next-word-boundary-function-table): Declare it as a Lisp variable
18809 in syms_of_syntax.
18810 (scan_words): Call functions in Vnext_word_boundary_function_table
18811 if any.
18812
18813 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18814
18815 * fontset.c (fs_load_font): If fontp->charset is not negative,
18816 return fontp without setting its members.
18817
188182008-02-01 Dave Love <fx@gnu.org>
18819
18820 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18821
18822 * m/sparc.h (HAVE_ALLOCA): Delete.
18823
18824 * s/irix6-5.h: Don't include strings.h.
18825 (bcopy, bzero, bcmp): Don't undef.
18826
18827 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18828
18829 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18830 (TIOCSIGSEND): Don't test IRIX6.
18831 (bcopy, bzero, bcmp): Define conditionally.
18832
188332008-02-01 Kenichi Handa <handa@m17n.org>
18834
18835 * buffer.c (Qas, Qmake, Qto): New variables.
18836 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18837 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18838
18839 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18840 we are inserting a process output into a multibyte buffer.
18841
18842 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18843 multibyte_char_to_unibyte.
18844
18845 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18846 by the primary charset, make it eight-bit char.
18847 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18848
18849 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18850 (charset_8_bit__control, charset_8_bit_graphic)
18851 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18852 (define_charset_internal): New function.
18853 (syms_of_charset): Call define_charset_internal for pre-defined
18854 charsets.
18855
18856 * charset.h (charset_8_bit): Extern it.
18857
18858 * coding.c (make_conversion_work_buffer): Adjust for the change
18859 of Fset_buffer_multibyte.
18860 (encode_coding_raw_text): Increment p0 in the loop.
18861
18862 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18863
18864 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18865 for the change of Fset_buffer_multibyte.
18866
18867 * fns.c (Fstring_to_multibyte): New function.
18868 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18869
188702008-02-01 Dave Love <fx@gnu.org>
18871
18872 * xfns.c (x_put_x_image): Declare args.
18873
18874 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18875 (try_font_list): Declare an arg.
18876
18877 * xdisp.c (message2_nolog, set_message): Declare an arg.
18878
18879 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18880
18881 * syntax.c (scan_sexps_forward): Declare an arg.
18882
18883 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18884 Declare an arg.
18885
18886 * lisp.h (Fnew_fontset): Declare.
18887
18888 * keymap.c (push_key_description): Call CHARACTERP correctly.
18889
18890 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18891 (face_for_char): Delete unused vars.
18892 (Fset_fontset_font): Doc fix. Delete unused vars.
18893
18894 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18895
18896 * composite.c (update_compositions): Declare arg.
18897
18898 * cm.c (calccost, cmgoto): Declare args.
18899
18900 * charset.c: Remove `emacs' conditional. Doc fixes.
18901 (map_char_table_for_charset): Declare.
18902
18903 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18904
18905 * ccl.c: Remove `emacs' conditional.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 The following changes are to allow specifying multiple font
18910 patterns for a character range (specified by script or charset).
18911
18912 * Makefile.in (abbrev.o): Depend on syntax.h.
18913 (xfaces.o): Depend on charset.h.
18914
18915 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18916 SINGLE_BYTE_CHAR_P.
18917
18918 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18919
18920 * character.h (Vchar_script_table): Extern it.
18921
18922 * character.c (Vscript_alist): Delete.
18923 (Vchar_script_table, Qchar_script_table): New variable.
18924 (syms_of_character): Declare Vchar_script_table as a lisp variable
18925 and initialize it.
18926
18927 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18928 have property char-table-extra-slots, make no extra slot.
18929
18930 * dispextern.h (struct face): Delete member `charset'.
18931 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18932 SINGLE_BYTE_CHAR_P.
18933 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18934 Add prototypes.
18935 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18936 (generate_ascii_font_name): Rename from generate_ascii_font.
18937
18938 * fontset.h (get_font_repertory_func): New prototype.
18939 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18940 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18941
18942 * fontset.c (Qprepend, Qappend): New variables.
18943 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18944 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18945 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18946 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18947 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18948 (load_font_get_repertory): New functions.
18949 (fontset_set): Delete.
18950 (fontset_face): New arg FACE. Return face ID, not face.
18951 Complete re-write to handle new fontset structure. Change caller.
18952 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18953 (face_for_char): Don't call lookup_face.
18954 (make_fontset_for_ascii_face): New arg FACE.
18955 (fs_load_font): New arg CHARSET_ID. Don't check
18956 Vfont_encoding_alist here.
18957 (find_font_encoding): New function.
18958 (list_fontsets): Use STRINGP, not ! NILP.
18959 (accumulate_script_ranges): New function.
18960 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18961 re-written to handle new fontset structure.
18962 (Ffontset_font): Return a copy of element.
18963 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18964 docstring of font-encoding-alist.
18965
18966 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18967 (Fset_fotset_font): Fix arguments to 5.
18968
18969 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18970
18971 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18972 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18973 (highlight_trailing_whitespace): Adjust for the change of
18974 lookup_named_face.
18975
18976 * xfaces.c: Include charset.h.
18977 (load_face_font): Delete argument C. Change caller.
18978 (generate_ascii_font_name): Rename from generate_ascii_font.
18979 (font_name_registry): New function.
18980 (cache_face): Store ascii faces before non-ascii faces in buckets.
18981 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18982 Lookup only ascii faces.
18983 (lookup_non_ascii_face): New function.
18984 (lookup_named_face): Delete argument C. Change caller.
18985 (lookup_derived_face): Delete argument C. Change caller.
18986 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18987 a string, just call font_list with it.
18988 (choose_face_font): Delete arguments FACE and C. New arg
18989 FONT_SPEC. Change caller.
18990 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18991 Change caller.
18992 (realize_non_ascii_face): New function.
18993 (realize_x_face): Call load_face_font here.
18994 (realize_tty_face): Delete argument C. Change caller.
18995 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18996 get a face ID.
18997 (dump_realized_face): Don't print charset of FACE.
18998
18999 * xfns.c (x_set_font): Always call x_new_fontset and
19000 store_frame_parameter.
19001 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19002 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19003
19004 * xterm.h (x_get_font_repertory): Extern it.
19005
19006 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19007 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19008 it->multibyte_p is zero.
19009 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19010 (x_new_fontset): If FONTSETNAME doesn't match any existing
19011 fontsets, create a new one.
19012 (x_get_font_repertory): New function.
19013
190142008-02-01 Kenichi Handa <handa@m17n.org>
19015
19016 * coding.c (Ffind_coding_systems_region_internal): Detect an
19017 ASCII only string correctly.
19018
19019 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19020 version is 0.
19021
190222008-02-01 Kenichi Handa <handa@m17n.org>
19023
19024 * lread.c: Include "coding.h".
19025 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19026 (load_each_byte, unread_char): New variables.
19027 (readchar_backlog): Delete.
19028 (readchar): Return a character unless load_each_byte is nonzero.
19029 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19030 cons. If unread_char is not -1, simply return it.
19031 (unreadchar): Handle the case that readcharfun is
19032 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19033 (read_multibyte): Delete.
19034 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19035 (read_emacs_mule_char): New functions.
19036 (Fload): Even if the file doesn't have the extension ".elc", if
19037 safe_to_load_p returns a positive version number, assume that the
19038 file contains bytecompiled code. If the version is less than 22,
19039 load the file while decoding multibyte sequences by emacs-mule.
19040 (readevalloop): Don't use readchar_backlog.
19041 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19042 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19043 (read_escape): Delete the arg BYTEREP.
19044 (read1): Set load_each_byte to 1 temporarily while handling
19045 #@NUMBER. Don't call read_multibyte.
19046 (read_vector): Call Fread with a cons. If readcharfun is
19047 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19048 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19049 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19050 and Qload_force_doc_strings.
19051
190522008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * xdisp.c (face_before_or_after_it_pos): Call
19055 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19056
190572008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * character.h (TRAILING_CODE_P): New macro.
19060 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19061 (string_char_with_unification): Fix prototype.
19062 (Vscript_alist): Extern it.
19063
19064 * character.c (Vscript_alist): New variable.
19065 (string_char_with_unification, str_as_unibyte)
19066 (string_escape_byte8): Add `const' to local variables.
19067 (syms_of_character): Declare script-alist as a Lisp variable.
19068
19069 * charset.h (Vcharset_ordered_list): Extern it.
19070 (charset_ordered_list_tick): Extern it.
19071 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19072 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19073 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19074 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19075 (Funify_charset): Adjust for the change of Funify_charset.
19076
19077 * charset.c (charset_ordered_list_tick): New variable.
19078 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19079 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19080 deunify intead of unify a charset.
19081 (string_xstring_p): Add `const' to local variables.
19082 (find_charsets_in_text): Add `const' to arguments and local variables.
19083 (encode_char): Adjust for the change of Funify_charset. Fix
19084 detecting of invalid code.
19085 (Fset_charset_priority): Increment charset_ordered_list_tick.
19086 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19087 and TO_CODE.
19088
19089 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19090 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19091 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19092 (decode_coding_ccl, consume_chars)
19093 (Ffind_coding_systems_region_internal)
19094 (Fcheck_coding_systems_region): Add `const' to local variables.
19095
19096 * print.c (print_object): Use octal form for printing the
19097 contents of a bool vector.
19098
190992008-02-01 Dave Love <fx@gnu.org>
19100
19101 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19102 <version == 20>: Refuse to load.
19103
191042008-02-01 Dave Love <fx@gnu.org>
19105
19106 * fns.c: Move coding.h.
19107 (Qcodeset, Qdays, Qmonths): New.
19108 (concat): Use CHARACTERP instead of INTEGERP.
19109 (Flocale_codeset): Delete.
19110 (Flanginfo): New function.
19111 (syms_of_fns): Change accordingly.
19112
19113 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19114
191152008-02-01 Dave Love <fx@gnu.org>
19116
19117 * casetab.c (init_casetab_once, init_casetab_once): Fix
19118 CHAR_TABLE_SET call.
19119
19120 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19121
19122 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19123
19124 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19125 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19126 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19127
19128 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19129
19130 * coding.c (ENCODE_DESIGNATION, decode_eol)
19131 (make_conversion_work_buffer, code_conversion_restore)
19132 (Fdefine_coding_system_internal): Convert Lisp types.
19133 (code_conversion_restore): Use EQ, not ==.
19134 (Fencode_coding_string): Fix code_convert_string call.
19135
19136 * coding.h (code_convert_region): Fix prototype.
19137
19138 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19139
19140 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19141 (Ffontset_info): Convert Lisp types.
19142
19143 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19144
19145 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19146
19147 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19148
19149 * chartab.c: Include "...h", not <...h> in some cases.
19150
19151 * callproc.c (Fcall_process): Remove unused variables.
19152
191532008-02-01 Dave Love <fx@gnu.org>
19154
19155 * coding.c (Fset_coding_system_priority): Allow null arg list.
19156
191572008-02-01 Dave Love <fx@gnu.org>
19158
19159 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19160 (Fself_insert_and_exit): Use CHARACTERP.
19161
19162 * callproc.c (Fcall_process): Remove unused vars.
19163
19164 * xterm.c (XTread_socket): Add extra dead keysyms.
19165
19166 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19167
19168 * dispextern.h: Remove prototypes for redraw_frame,
19169 redraw_garbaged_frames.
19170
19171 * cmds.c (Fself_insert_command): Use CHARACTERP.
19172
19173 * chartab.c (make_sub_char_table): Remove unused var.
19174 (Fset_char_table_default, Fmap_char_table): Doc fix.
19175
19176 * keymap.c (access_keymap): Remove generic char code.
19177 (push_key_description): Use CHARACTERP.
19178
191792008-02-01 Dave Love <fx@gnu.org>
19180
19181 * charset.c: Doc fixes.
19182 (Funify_charset): Extra checking.
19183
191842008-02-01 Dave Love <fx@gnu.org>
19185
19186 * lread.c: Remove some unused variables.
19187 (safe_to_load_p): If safe, return the magic number version byte.
19188 (Fload): Maybe use load-with-code-conversion.
19189
191902008-02-01 Kenichi Handa <handa@m17n.org>
19191
19192 * category.c (Fmodify_category_entry): Don't modify the contents
19193 of category_set for characters out of the range. Avoid
19194 unnecessary modification.
19195
19196 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19197 Vchar_unify_table. The default value of the table is now nil.
19198
19199 * character.c (syms_of_character): Setup Vchar_width_table for
19200 eight-bit-control and raw-byte chars.
19201
19202 * charset.h (enum define_charset_arg_index): Delete
19203 charset_arg_parents and add charset_arg_subset and
19204 charset_arg_superset.
19205 (enum charset_attr_index): Delete charset_parents and add
19206 charset_subset and charset_superset.
19207 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19208 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19209 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19210 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19211 (CHARSET_SUPERSET): New macros.
19212 (charset_work): Extern it.
19213 (ENCODE_CHAR): Use charset_work.
19214 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19215 (map_charset_chars): Extern it.
19216
19217 * charset.c (load_charset_map): Set the default value of encoder
19218 and deunifier char-tables to nil.
19219 (map_charset_chars): Change argument. Change callers. Use
19220 map_char_table_for_charset instead of map_char_table.
19221 (Fmap_charset_chars): New optional args from_code and to_code.
19222 (Fdefine_charset_internal): Adjust for the change of
19223 `define-charset' (:parents -> :subset or :superset).
19224 (charset_work): New variable.
19225 (encode_char, syms_of_charset): Adjust for the change of
19226 Fdefine_charset_internal.
19227 (Ffind_charset_string): Setup the vector `charsets' correctly.
19228
19229 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19230 the previous change.
19231 (char_table_ref_and_range): Adjust for the above change.
19232 (map_sub_char_table_for_charset): New function.
19233 (map_char_table_for_charset): New function.
19234
19235 * keymap.c (describe_vector): Handle a char-table directly here.
19236 (describe_char_table): Delete.
19237
19238 * lisp.h (map_charset_chars): Delete.
19239
192402008-02-01 Dave Love <fx@gnu.org>
19241
19242 * fns.c (count_combining): Comment out (unused).
19243 (Flocale_codeset): New.
19244 (syms_of_fns): Defsubr it.
19245
19246 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19247 (size_t): Remove.
19248
192492008-02-01 Dave Love <fx@gnu.org>
19250
19251 * Makefile.in (chartab.o): Depend on charset.h.
19252
192532008-02-01 Kenichi Handa <handa@m17n.org>
19254
19255 * character.c (syms_of_character): Set the default value of
19256 Vprintable_chars to Qnil.
19257
192582008-02-01 Dave Love <fx@gnu.org>
19259
19260 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19261
192622008-02-01 Kenichi Handa <handa@m17n.org>
19263
19264 * charset.c (load_charset_map): Handle the case that from < to
19265 correctly.
19266
19267 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19268 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19269 Pay attention to raw-8-bit chars.
19270
192712008-02-01 Kenichi Handa <handa@m17n.org>
19272
19273 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19274 It is not bytecompiled now.
19275
19276 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19277 (charset_jisx0208): New variables.
19278 (Fdefine_charset_internal): Setup them if appropriate.
19279 (init_charset_once): Initialize them to -1.
19280
19281 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19282 (charset_jisx0208): Extern them.
19283
19284 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19285 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19286 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19287 (setup_iso_safe_charsets): Fix arguments to Fassq.
19288 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19289 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19290 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19291 (encode_coding_iso_2022): Change the 1st arg to
19292 ENCODE_ISO_CHARACTER to a variable.
19293
192942008-02-01 Kenichi Handa <handa@m17n.org>
19295
19296 * charset.h (enum define_charset_arg_index): New enums
19297 charset_arg_min_code and charset_arg_max_code.
19298 (struct charset): New member char_index_offset.
19299
19300 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19301 Take charset->char_index_offset into account.
19302 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19303 args[charset_arg_max_code]. Setup charset.char_index_offset.
19304 (syms_of_charset): Fix args to Fdefine_charset_internal.
19305
193062008-02-01 Dave Love <fx@gnu.org>
19307
19308 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19309
193102008-02-01 Dave Love <fx@gnu.org>
19311
19312 * coding.c: Doc fixes.
19313 (Fcoding_system_aliases): Fix return value.
19314 (Qmac): Remove (duplicated) definition.
19315
193162008-02-01 Dave Love <fx@gnu.org>
19317
362654a6
JB
19318 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19319 New functions.
aac0c6e3
MR
19320
19321 * character.c (Fstring): Doc fix.
19322
19323 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19324
362654a6 19325 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19326 (font-encoding-alist): Doc fix.
19327
193282008-02-01 Dave Love <fx@gnu.org>
19329
19330 * term.c (costs_set): Declare static, non-initialized for pcc.
19331 (encode_terminal_code): Remove unused var.
19332
19333 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19334 for K&R.
19335
19336 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19337
19338 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19339 (suffixes): Move out of make_subsidiaries for K&R.
19340
19341 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19342
19343 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19344
193452008-02-01 Dave Love <fx@gnu.org>
19346
19347 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19348
19349 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19350
193512008-02-01 Yong Lu <lyongu@asia-infonet.com>
19352
19353 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19354
19355 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19360 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19361
193622008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * coding.c (decode_coding_charset): Adjust for the change of
19365 Fdefine_coding_system_internal.
19366 (Fdefine_coding_system_internal): For a coding system of
19367 `charset' type, store a list of charset IDs in
19368 `charset_attr_charset_valids' element of coding attributes.
19369
193702008-02-01 Kenichi Handa <handa@m17n.org>
19371
19372 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19373 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19374 caller. Handle 2-byte and 3-byte charsets correctly.
19375 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19376 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19377 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19378 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19379 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19380 sequence.
19381 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19382 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19383 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19384 and alt&rule composition.
19385 (decode_coding_iso_2022): Handle composition correctly.
19386 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19387
19388 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19389 re-defining a charset. If the charset has :emacs-mule-id, setup
19390 emacs_mule_bytes.
19391 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19392
193932008-02-01 Kenichi Handa <handa@m17n.org>
19394
19395 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19396 (encode_coding_big5, encode_coding_charset): If coding requires safe
19397 encoding, produce a character specified by
19398 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19399
194002008-02-01 Dave Love <fx@gnu.org>
19401
19402 * xterm.c (XSetIMValues): Declare.
19403
19404 * process.c: Conditionally include sys/wait.h, pty.h.
19405
19406 * print.c (print_object): Fix print format for 64-bit systems.
19407
19408 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19409
19410 * buffer.c (emacs_strerror): Declare.
19411
19412 * fontset.c (Fclear_face_cache): Declare.
19413 (accumulate_font_info): Comment-out (unused).
19414 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19415 variables.
19416
19417 * character.h (string_escape_byte8): Declare.
19418
19419 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19420 unused vars.
19421 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19422 (Fmap_charset_chars): Doc fix.
19423
19424 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19425 (Fset_coding_system_priority, Fset_coding_system_priority)
19426 (Fdefine_coding_system_internal): Doc fix.
19427
194282008-02-01 Dave Love <fx@gnu.org>
19429
19430 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19431
194322008-02-01 Kenichi Handa <handa@m17n.org>
19433
19434 * character.c (string_escape_byte8): Make multibyte string with
19435 correct size.
19436
19437 * charset.c (Fmake_char): Delete unnecessary code.
19438
194392008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * xfns.c (x_encode_text): Allocate coding.destination here, and
19442 call encode_coding_object with dst_object Qnil.
19443
19444 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19445 multibyte form correctly.
19446
19447 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19448 against Vfont_encoding_alist.
19449
19450 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19451 handling of charset list.
19452 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19453 (decode_coding_object): Move point to coding->dst_pos before
19454 calling post-read-conversion function.
19455 (encode_coding_object): Give correct arguments to
19456 pre-write-conversion. Ignore the return value of
19457 pre-write-conversion function. Pay attention to the case that
19458 pre-write-conversion changes the current buffer. If dst_object is
19459 Qt, even if coding->src_bytes is zero, allocate at least one byte
19460 to coding->destination.
19461
19462 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19463
19464 * charset.c (Fmake_char): Make it more backward compatible.
19465 (Fmap_charset_chars): Fix docstring.
19466
194672008-02-01 Dave Love <fx@gnu.org>
19468
19469 * coding.c: Doc fixes.
19470 (Fdefine_coding_system_alias): Use names, not symbols, in
19471 coding-system-alist.
19472
194732008-02-01 Kenichi Handa <handa@m17n.org>
19474
19475 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19476 of calling free_realized_face.
19477
194782008-02-01 Yong Lu <lyongu@asia-infonet.com>
19479
19480 * charset.c (read_hex): Don't treat SPC as a comment starter.
19481 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19482 (Fdecode_char): Fix typo.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * charset.h (struct charset): New member `code_space_mask'.
19487
19488 * coding.c (coding_set_source): Delete the local variable beg_byte.
19489 (encode_coding_charset, Fdefine_coding_system_internal):
19490 Delete the local variable charset.
19491 (Fdefine_coding_system_internal): Setup
19492 attrs[coding_attr_charset_valids] correctly.
19493
19494 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19495 member to check if CODE is valid or not.
19496 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19497 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19498 is within the range of charset->min_code and carset->max_code.
19499
195002008-02-01 Dave Love <fx@gnu.org>
19501
19502 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19503
19504 * dispextern.h (generate_ascii_font): Fix return type.
19505
19506 * xfaces.c (generate_ascii_font): Fix arg declaration.
19507
19508 * coding.c (coding_inherit_eol_type)
19509 (Fset_terminal_coding_system_internal)
19510 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19515 multiple charsets correctly.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * search.c (boyer_moore): Fix handling of multibyte character
19520 translation.
19521
19522 * xdisp.c (display_mode_element): When the variable `elt' is
19523 changed, update `this' and `lisp_string'.
19524
195252008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19528
19529 * callproc.c (Fcall_process): Be sure to give the current buffer
19530 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19531
19532 * charset.c (struct charset_map_entries): New struct.
19533 (load_charset_map): Rename from parse_charset_map. New args
19534 entries and n_entries. Change caller.
19535 (load_charset_map_from_file): Rename from load_charset_map.
19536 Change caller. New arg control_flag. Call load_charset_map at
19537 the tail.
19538 (load_charset_map_from_vector): New function.
19539 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19540 (encode_char): If the charset is compact, change a character index
19541 to a code point.
19542
19543 * coding.c (coding_alloc_by_making_gap): Check the case that the
19544 source and destination are the same correctly.
19545 (decode_coding_raw_text): Set coding->consumed_char and
19546 coding->consumed to 0.
19547 (produce_chars): If coding->chars_at_source is nonzero, update
19548 coding->consumed_char and coding->consumed before calling
19549 alloc_destination.
19550 (Fdefine_coding_system_alias): Register ALIAS in
19551 Vcoding_system_alist.
19552 (syms_of_coding): Define `no-conversion' coding system at the tail.
19553
19554 * fileio.c (Finsert_file_contents): Set coding_system instead of
19555 val. If the current buffer is multibyte, always call
19556 decode_coding_gap.
19557
19558 * xfaces.c (try_font_list): Give higher priority to fontset's
19559 family than face's family.
19560
195612008-02-01 Kenichi Handa <handa@m17n.org>
19562
19563 * callproc.c (Fcall_process): Be sure to give the current buffer
19564 to decode_coding_c_string.
19565
19566 * xfaces.c (try_font_list): Give a family specified in a fontset
19567 higher priority than a family specified in a face.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19572 Fix arguments to insert_from_buffer.
19573
19574 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19575
195762008-02-01 Kenichi Handa <handa@m17n.org>
19577
19578 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19579 (decode_coding_gap): Set coding->dst_multibyte correctly.
19580
195812008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19584 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19585 (encode_coding_utf_16): Substitute coding->default_char for
19586 non-Unicode characters.
19587 (decode_coding): Don't call record_insert here.
19588 (setup_coding_system): Initialize `surrogate' of
19589 coding->spec.utf_16 to 0.
19590 (EMIT_ONE_BYTE): Fix for multibyte case.
19591
19592 * insdel.c (insert_from_gap): Call record_insert.
19593
195942008-02-01 Kenichi Handa <handa@m17n.org>
19595
19596 * casefiddle.c (casify_region): Fix multibyte case.
19597
19598 * character.c (c_string_width): Add return type `int'.
19599 (char_string_with_unification): Delete arg ADVANCED.
19600
19601 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19602 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19603 (CHAR_STRING_ADVANCE): Make it do-while statement.
19604
19605 * chartab.c (sub_char_table_set_range): Optimize for the case
19606 DEPTH == 3. Add workaround code for a GCC optimization bug.
19607
19608 * charset.c (parse_charset_map): Remove an unused variable.
19609
19610 * coding.c: Delete unused variables.
19611
19612 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19613 earlier. If inserted is zero and the coding system doesn't
19614 require flushing, don't call decode_coding_gap.
19615
19616 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 The following changes are for using Unicode as an internal
19621 character model, and use UTF-8 format for buffer/string
19622 representation.
19623
19624 * .gdbinit (xchartable): Adjust for the change of char table structure.
19625 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19626
19627 * Makefile.in (obj): Add character.o and chartab.o.
19628 (lisp, shortlisp): Remove utf-8.elc.
19629 (*.o): For many files, change dependency on charset.h to
19630 character.h, and add dependency on character.h.
19631 (character.o, chartab.o): New targets.
19632
19633 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19634 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19635 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19636 of "charset.h".
19637
19638 * dired.c, filelock.c: Include "character.h".
19639
19640 * alloc.c: Include "character.h" instead of "charset.h".
19641 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19642 (syms_of_alloc): Remove defsubr for Smake_char_table.
19643
19644 * buffer.c: Include "character.h" instead of "charset.h", don't
19645 include "coding.h".
19646 (Fset_buffer_multibyte): Adjust for UTF-8.
19647
19648 * buffer.h: EXFUN Fbuffer_live_p.
19649
19650 * callproc.c: Include "character.h" instead of "charset.h".
19651 (Fcall_process): Big change for the new code-conversion APIs.
19652
19653 * casetab.c: Include "character.h" instead of "charset.h".
19654 (set_canon, set_identity, shuffle): Adjust for the new
19655 map_char_table spec.
19656 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19657 accessing the char table structure.
19658
19659 * chartab.c: New file that implements char table.
19660
19661 * category.c: Include "character.h".
19662 (copy_category_entry): New function.
19663 (copy_category_table): Call map_char_table and copy_category_entry.
19664 (Fmake_category_table): Initialize all top-level slots.
19665 (char_category_set): New function.
19666 (modify_lower_category_set): Delete.
19667 (Fmodify_category_entry): Call char_table_ref_and_range.
19668
19669 * category.h (CATEGORY_SET): Just call char_category_set.
19670
19671 * ccl.c: Include "character.h".
19672 (Qccl, Qcclp): New variables.
19673 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19674 it's less than 256.
19675 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19676 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19677 and DST type.
19678 (ccl_driver): Change types of argument, adjust code accordingly.
19679 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19680 ccl_driver.
19681 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19682
19683 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19684 New members src_multibyte, dst_multibyte, consumed, and produced.
19685 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19686 (CODING_SPEC_CCL_PROGRAM): New macro.
19687 (ccl_driver): Update prototype.
19688 (Qccl, Qcclp, Fccl_program_p): Extern them.
19689 (CHECK_CCL_PROGRAM): New macro.
19690
19691 * character.c, character.h, chartab.c: New files.
19692
19693 * charset.c: Mostly re-written. Move character and multibyte sequence
19694 handling codes to character.c.
19695
19696 * charset.h: Mostly re-written. Move character and multibyte sequence
19697 handling codes to character.h.
19698
19699 * coding.c, coding.h: Mostly re-written.
19700
19701 * composite.c: Include "character.h" instead of "charset.h".
19702 (CHAR_WIDTH): Move to character.h.
19703 (HASH_KEY, HASH_VALUE): Delete.
19704
19705 * composite.h (enum composition_method): Change order of enumeration
19706 symbols.
19707
19708 * data.c: Include "character.h" instead of "charset.h".
19709 (Faref): Call CHAR_TABLE_REF for a char table.
19710 (Faset): Call CHAR_TABLE_SET for a char table.
19711
19712 * dispextern.h (free_realized_face, check_face_attribytes)
19713 (generate_ascii_font): Extern them.
19714 (free_realized_multibyte_face): Delete extern.
19715
19716 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19717 table structure.
19718
19719 * editfns.c: Include "character.h" instead of "charset.h".
19720 (Fchar_to_string): Always call CHAR_STRING.
19721
19722 * emacs.c (main): Call init_charset_once, init_charset,
19723 syms_of_chartab, and syms_of_character.
19724
19725 * fileio.c: Include "character.h" instead of "charset.h".
19726 (Finsert_file_contents): Big change for the new code-conversion API.
19727 (choose_write_coding_system, Fwrite_region): Likewise.
19728 (build_annotations_2): Delete.
19729 (e_write): Big change for the new code-conversion API.
19730
19731 * fns.c: Include "character.h" instead of "charset.h".
19732 (copy_sub_char_table): Move to chartab.c.
19733 (Fcopy_sequence): Call copy_char_table for a char table.
19734 (concat): Delete codes calling count_multibyte.
19735 (string_char_to_byte, string_byte_to_char): Adjust for the new
19736 multibyte form.
19737 (internal_equal): Adjust for the change of char table structure.
19738 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19739 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19740 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19741 (char_table_translate, optimize_sub_char_table)
19742 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19743 chartab.c.
19744 (char_table_ref_and_index): Delete.
19745 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19746 (Fmd5): Call preferred_coding_system instead of accessing
19747 Vcoding_category_list. Adjust for the new code-conversion API.
19748 (syms_of_fns): Move defsubr for char table related functions to
19749 chartab.c.
19750
19751 * fontset.c: Mostly re-written.
19752
19753 * fontset.h (struct font_info): Change type of the member encoding_type.
19754 (enum FONT_SPEC_INDEX): New enum.
19755 (fontset_font_pattern, fs_load_font): Update prototype.
19756 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19757
19758 * indent.c: Include "character.h" instead of "charset.h".
19759 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19760
19761 * insdel.c: Include "character.h" instead of "charset.h".
19762 (copy_text): Don't refer to Vnonascii_translation_table.
19763 (insert_from_gap): New function.
19764
19765 * keyboard.c: Include "character.h" instead of "charset.h".
19766 (command_loop_1): Never call direct_output_forward_char before
19767 a non-ASCII character.
19768 (read_char): If Vkeyboard_translate_table is a char table, always
19769 translate a character.
19770
19771 * keymap.c: Include "character.h".
19772 (store_in_keymap): Handle the case that IDX is a cons.
19773 (Fdefine_key): Handle the case that KEY is a cons and the car part
19774 is also a cons (range).
19775 (push_key_description): Adjust for the new character code.
19776 (describe_vector): Call describe_char_table for a char table.
19777 (describe_char_table): New function.
19778
19779 * keymap.h (describe_char_table): Extern it.
19780
19781 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19782 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19783 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19784 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19785 Delete.
19786 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19787 structure.
19788 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19789 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19790 (CHARTAB_SIZE_BITS_3): New macros.
19791 (chartab_size): Extern it.
19792 (struct Lisp_Char_Table): Re-design.
19793 (struct Lisp_Sub_Char_Table): New structure.
19794 (HASH_KEY, HASH_VALUE): Move from fns.c.
19795 (CHARACTERBITS): Define as 22.
19796 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19797 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19798 (GC_SUB_CHAR_TABLE_P): New macro.
19799 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19800 (code_convert_string_norecord): Deleted extern.
19801 (init_character_once, syms_of_character, init_charset)
19802 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19803
19804 * lread.c: Include "character.h".
19805 (read_multibyte): New arg NBYTES.
19806 (read_escape): Change the meaning of returned *BYTEREP.
19807 (to_multibyte): Delete.
19808 (read1): Adjust the handling of char table and string.
19809
19810 * print.c: Include "character.h" instead of "charset.h".
19811 (print_string): Convert 8-bit raw bytes to octal form by
19812 string_escape_byte8.
19813 (print_object): Adjust for the new multibyte form. Print 8-bit
19814 raw bytes always in octal form. Handle sub char table correctly.
19815
19816 * process.c: Include "character.h" instead of "charset.h".
19817 (read_process_output, send_process): Adjust for the new
19818 code-conversion API.
19819
19820 * puresize.h (BASE_PURESIZE): Increase.
19821
19822 * regex.c: Include "character.h" instead of "charset.h".
19823 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19824 (regex_compile): Accept a range whose starting and ending
19825 character have different leading bytes.
19826 (analyse_first): Adjust for the above change.
19827
19828 * search.c: Include "character.h" instead of "charset.h".
19829 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19830 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19831
19832 * syntax.c: Include "character.h" instead of "charset.h".
19833 (syntax_parent_lookup): Delete.
19834 (Fmodify_syntax_entry): Accept a cons as CHAR.
19835 (skip_chars): Adjust for the new multibyte form.
19836 (init_syntax_once): Call char_table_set_range instead of directly
19837 accessing the structure of a char table.
19838
19839 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19840 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19841 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19842 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19843
19844 * term.c: Include "buffer.h" and "character.h".
19845 (encode_terminal_code, write_glyphs): Adjust for the new
19846 code-conversion API.
19847 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19848
19849 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19850
19851 * xdisp.c: Include "character.h".
19852 (get_next_display_element): Adjust for the new multibyte form.
19853 (disp_char_vector): Adjust for the new char table structure.
19854 (decode_mode_spec_coding): Adjust for the new structure of
19855 coding system.
19856 (decode_mode_spec): Adjust for the new code-conversion API.
19857
19858 * xfaces.c: Include "character.h" instead of "charset.h".
19859 (load_face_font): Adjust for the change of choose_face_font and
19860 FS_LOAD_FONT.
19861 (generate_ascii_font): New function.
19862 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19863 (set_font_frame_param): Adjust for the change of choose_face_font.
19864 (free_realized_face): Make it public.
19865 (free_realized_faces_for_fontset): Rename from
19866 free_realized_multibyte_face. Free also faces realized for ASCII.
19867 (choose_face_font): Change arguments. Adjust for the change of
19868 fontset_font_pattern and FS_LOAD_FONT.
19869
19870 * xfns.c: Include "character.h".
19871 (x_encode_text): Adjust for the new code-conversion API.
19872
19873 * xselect.c: Don't include "charset.h".
19874 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19875
19876 * xterm.c: Include "character.h".
19877 (x_encode_char): New argument CHARSET. Change caller.
19878 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19879 Call ENCODE_CHAR instead of SPLIT_CHAR.
19880 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19881 CHAR_WIDTH instead of CHARSET_WIDTH.
19882 (XTread_socket): Adjust for the new code-conversion API.
19883 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19884 (x_load_font): Adjust for the change of struct font.
19885
198862008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19887
19888 * xfaces.c (face_at_buffer_position): Remove unused vars.
19889
198902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19891
19892 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19893 Fix overflow checking.
19894
198952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19896
19897 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19898 Cancel previous change.
19899
199002008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19901
19902 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19903 ccl->eight_bit_control. Fix check for buffer overflow.
19904 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19905 (ccl_driver): Initialize extra_bytes to 0.
19906
199072008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19908
19909 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19910 return it ORed with ctrl_modifier.
19911
199122008-01-29 Miles Bader <miles@gnu.org>
19913
19914 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19915
199162008-01-28 Jason Rumney <jasonr@gnu.org>
19917
19918 * w32.c (stat): Don't double check for networked drive.
19919
199202008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19921
19922 * window.c (run_window_configuration_change_hook): New function.
19923 Code extracted from set_window_buffer. Set the selected frame.
19924 (set_window_buffer): Use it.
19925 * window.h (run_window_configuration_change_hook): Declare.
19926 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19927
19928 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19929
199302008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19931
19932 * Makefile.in: Remove references to unused macros.
19933
199342008-01-26 Eli Zaretskii <eliz@gnu.org>
19935
19936 * w32.c (g_b_init_get_sid_sub_authority)
19937 (g_b_init_get_sid_sub_authority_count): New static variables.
19938 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19939 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19940 (init_user_info): Use them to retrieve uid and gid.
19941 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19942 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19943 st_uid and st_gid of the file.
19944
199452008-01-26 Jason Rumney <jasonr@gnu.org>
19946
19947 * w32.c (logon_network_drive): New function.
19948 (stat): Use it.
19949
199502008-01-26 Chong Yidong <cyd@stupidchicken.com>
19951
19952 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19953 invisible text covered with an ellipsis.
19954
199552008-01-25 Richard Stallman <rms@gnu.org>
19956
19957 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19958 jump back to beginning. Move some other initializations after that.
19959 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19960 New variables.
19961 (syms_of_xdisp): Init them.
19962
19963 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19964
19965 * buffer.c (reset_buffer_local_variables):
19966 Implement `permanent-local-hook'.
19967 (Qpermanent_local_hook): New variable.
19968 (syms_of_buffer): Init and staticpro it.
19969
199702008-01-25 Michael Albinus <michael.albinus@gmx.de>
19971
19972 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19973
199742008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19975
19976 * fns.c (Fclrhash): Return TABLE.
19977
199782008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19979
19980 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19981 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19982 is set even without positional changes.
19983 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19984
19985 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19986
199872008-01-23 Jason Rumney <jasonr@gnu.org>
19988
19989 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19990
19991 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19992 the unicode range available in MULE by locale-coding-system.
19993 Improve dbcs lead byte detection. Set event timestamp and modifiers
19994 earlier.
19995
199962008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19997
19998 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19999 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20000 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20001 when used on child processes.
20002
200032008-01-21 Michael Albinus <michael.albinus@gmx.de>
20004
20005 * dbusbind.c (Fdbus_method_return_internal): Rename from
20006 Fdbus_method_return.
20007 (Fdbus_unregister_object): Move to dbus.el.
20008 (Fdbus_call_method, Fdbus_method_return_internal)
20009 (Fdbus_send_signal): Improve debug messages.
20010
200112008-01-20 Martin Rudalics <rudalics@gmx.at>
20012
20013 * undo.c (undo_inhibit_record_point): New variable.
20014 (syms_of_undo): Initialize it.
20015 (record_point): Don't record point when undo_inhibit_record_point
20016 is set.
20017
200182008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20019
20020 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20021
20022 * xdisp.c (Qauto_hscroll_mode): New var.
20023 (syms_of_xdisp): Initialize it.
20024 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20025 window's buffer.
20026 (hscroll_windows): Don't check automatic_hscrolling_p here.
20027
20028 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20029 vscroll if we're setting window-buffer to the value it already has.
20030
200312008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20032
20033 * m/intel386.h: Remove references to XENIX.
20034
200352008-01-17 Andreas Schwab <schwab@suse.de>
20036
20037 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20038 instead of HAVE_X86_64_LIB64_DIR.
20039 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20040
200412008-01-17 Glenn Morris <rgm@gnu.org>
20042
20043 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20044 to HAVE_X86_64_LIB64_DIR.
20045
200462008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20047
20048 * s/irix3-3.h:
20049 * s/irix4-0.h:
20050 * s/386-ix.h:
20051 * s/domain.h:
20052 * s/hpux9-x11r4.h:
20053 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20054
20055 * sysdep.c: Remove code containing references to symbols defined
20056 by unsupported systems.
20057
200582008-01-16 Glenn Morris <rgm@gnu.org>
20059
20060 * coding.c (select-safe-coding-system-function): Doc fix.
20061
200622008-01-15 Glenn Morris <rgm@gnu.org>
20063
20064 * config.in: Revert 2008-01-13 change: this is a generated file.
20065
200662008-01-13 Tom Tromey <tromey@redhat.com>
20067
20068 * lisp.h: Fix typo.
20069
200702008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20071
20072 * m/sequent-ptx.h:
20073 * m/sequent.h:
20074 * s/ptx.h:
20075 * s/ptx4-2.h:
20076 * s/ptx4.h: Remove files for systems no longer supported.
20077
20078 * callproc.c (Fcall_process): Fix previous change.
20079
200802008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20081
20082 * unexsunos4.c: Remove file, system not supported anymore.
20083
20084 * m/mips.h:
20085 * m/intel386.h:
20086 * callproc.c:
20087 * config.in:
20088 * ecrt0.c:
20089 * emacs.c:
20090 * fileio.c:
20091 * frame.c:
20092 * getpagesize.h:
20093 * keyboard.c:
20094 * lread.c:
20095 * process.c:
20096 * puresize.h:
20097 * sysdep.c:
20098 * systty.h:
20099 * syswait.h:
20100 * unexec.c:
20101 * xdisp.c:
20102 * alloc.c: Remove code containing references to symbols defined by
20103 unsupported systems.
20104
201052008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20106
20107 * coding.c (detect_coding_mask): Fix previous change.
20108
201092008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20110
20111 * coding.c (detect_coding_iso2022): New arg
20112 latin_extra_code_state. Allow Latin extra codes only
20113 when *latin_extra_code_state is nonzero.
20114 (detect_coding_mask): If there is a NULL byte, detect the encoding
20115 as UTF-16 or binary. If Latin extra codes exist, detect the
20116 encoding as ISO-2022 only when there's no other proper encoding is
20117 found.
20118
201192008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20120
20121 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20122 #ifdef MAC_OS.
20123
201242008-01-08 Richard Stallman <rms@gnu.org>
20125
20126 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20127
201282008-01-06 Nick Roberts <nickrob@snap.net.nz>
20129
20130 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20131 menu bar in parentheses.
20132
201332008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20134
20135 * m/7300.h:
20136 * m/acorn.h:
20137 * m/alliant-2800.h:
20138 * m/alliant.h:
20139 * m/alliant1.h:
20140 * m/alliant4.h:
20141 * m/altos.h:
20142 * m/amdahl.h:
20143 * m/apollo.h:
20144 * m/att3b.h:
20145 * m/aviion-intel.h:
20146 * m/aviion.h:
20147 * m/celerity.h:
20148 * m/clipper.h:
20149 * m/cnvrgnt.h:
20150 * m/convex.h:
20151 * m/cydra5.h:
20152 * m/delta88k.h:
20153 * m/dpx2.h:
20154 * m/dual.h:
20155 * m/elxsi.h:
20156 * m/f301.h:
20157 * m/gould-np1.h:
20158 * m/gould.h:
20159 * m/i860.h:
20160 * m/ibmps2-aix.h:
20161 * m/ibmrt-aix.h:
20162 * m/ibmrt.h:
20163 * m/irist.h:
20164 * m/is386.h:
20165 * m/isi-ov.h:
20166 * m/mega68.h:
20167 * m/mg1.h:
20168 * m/news-r6.h:
20169 * m/news-risc.h:
20170 * m/news.h:
20171 * m/nh3000.h:
20172 * m/nh4000.h:
20173 * m/ns16000.h:
20174 * m/ns32000.h:
20175 * m/nu.h:
20176 * m/orion.h:
20177 * m/orion105.h:
20178 * m/paragon.h:
20179 * m/pfa50.h:
20180 * m/plexus.h:
20181 * m/pyramid.h:
20182 * m/pyrmips.h:
20183 * m/sh3el.h:
20184 * m/sps7.h:
20185 * m/sr2k.h:
20186 * m/stride.h:
20187 * m/sun1.h:
20188 * m/sun2.h:
20189 * m/sun3-68881.h:
20190 * m/sun3-fpa.h:
20191 * m/sun3-soft.h:
20192 * m/sun3.h:
20193 * m/sun386.h:
20194 * m/symmetry.h:
20195 * m/tad68k.h:
20196 * m/tahoe.h:
20197 * m/targon31.h:
20198 * m/tek4300.h:
20199 * m/tekxd88.h:
20200 * m/tower32.h:
20201 * m/tower32v3.h:
20202 * m/ustation.h:
20203 * m/wicat.h:
20204 * m/xps100.h:
20205 * s/cxux.h:
20206 * s/cxux7.h:
20207 * s/dgux.h:
20208 * s/dgux4.h:
20209 * s/dgux5-4-3.h:
20210 * s/dgux5-4r2.h:
20211 * s/esix.h:
20212 * s/esix5r4.h:
20213 * s/hiuxmpp.h:
20214 * s/hiuxwe2.h:
20215 * s/iris3-5.h:
20216 * s/iris3-6.h:
20217 * s/isc2-2.h:
20218 * s/isc3-0.h:
20219 * s/isc4-0.h:
20220 * s/isc4-1.h:
20221 * s/newsos5.h:
20222 * s/newsos6.h:
20223 * s/osf1.h:
20224 * s/osf5-0.h:
20225 * s/riscix1-1.h:
20226 * s/riscix12.h:
20227 * s/sco4.h:
20228 * s/sco5.h:
20229 * s/sunos4-0.h:
20230 * s/sunos4-1.h:
20231 * s/sunos413.h:
20232 * s/sunos4shr.h:
20233 * s/umax.h:
20234 * s/unipl5-2.h:
20235 * s/xenix.h:
20236 * cxux-crt0.s:
20237 * unexapollo.c:
20238 * unexconvex.c:
20239 * unexenix.c:
20240 * unexsni.c: Remove files for systems no longer supported.
20241
20242 * m/intel386.h: Remove references to unsupported systems.
20243
20244 * w32.c (get_emacs_configuration): Remove reference to i860.
20245
20246 * sysdep.c: Remove dead code.
20247
202482008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20249
20250 * s/rtu.h:
20251 * m/masscomp.h: Remove files. Platform is obsolete.
20252
202532008-01-04 Michael Albinus <michael.albinus@gmx.de>
20254
20255 * dbusbind.c (Fdbus_method_return): New function.
20256 (xd_read_message): Add the serial number to the event.
20257 (Fdbus_register_method): Activate the function.
20258
202592008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20260
20261 * keyboard.c (read_key_sequence): Fix typo.
20262
202632008-01-03 Michael Albinus <michael.albinus@gmx.de>
20264
20265 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20266 (xd_signature, xd_append_arg): Handle element type detection for
20267 empty arrays.
20268 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20269 SDATA () calls; this must be solved more general.
20270 (Fdbus_register_signal): Use SBYTES instead of strlen.
20271
202722008-01-03 Magnus Henoch <magnus@zemdatav>
20273
20274 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20275 unsigned int for byte values (necessary for big-endian platform).
20276 (Fdbus_call_method): Handle the case of no returned arguments.
20277
202782007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20279
20280 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20281
202822007-12-31 Magnus Henoch <mange@freemail.hu>
20283
20284 * dbusbind.c (xd_signature): Signature of variant is just "v".
20285
202862007-12-30 Michael Albinus <michael.albinus@gmx.de>
20287
20288 * dbusbind.c: Fix several errors and compiler warnings.
20289 Reported by Tom Tromey <tromey@redhat.com>.
20290 (XD_ERROR, XD_DEBUG_MESSAGE)
20291 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20292 (xd_append_arg): Part for basic D-Bus types rewritten.
20293 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20294 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20295 appropriate.
20296 (xd_read_message): Return Qnil. Don't signal an error; it is not
20297 useful during event reading.
20298 (Fdbus_register_signal): Signal an error if the check for
20299 FUNCTIONP fails.
20300 (Fdbus_register_method): New function. The implementation is not
20301 complete, the call of the function signals an error therefore.
20302 (Fdbus_unregister_object): New function, renamed from
20303 Fdbus_unregister_signal. The initial check signals an error, if
20304 the object is not well formed.
20305
203062007-12-30 Richard Stallman <rms@gnu.org>
20307
20308 * textprop.c (get_char_property_and_overlay):
20309 Signal error if POSITION is out of range in a buffer.
20310
203112007-12-29 Martin Rudalics <rudalics@gmx.at>
20312
20313 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20314 because the original parameters are in pure storage now.
20315
203162007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20317
20318 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20319
203202007-12-22 Eli Zaretskii <eliz@gnu.org>
20321
20322 * callint.c (syms_of_callint) <command-history>: Add reference to
20323 history-length in the doc string.
20324
203252007-12-17 Jason Rumney <jasonr@gnu.org>
20326
20327 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20328 before passing as wParam.
20329
203302007-12-22 Michael Albinus <michael.albinus@gmx.de>
20331
20332 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20333 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20334 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20335 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20336 as number.
20337 (Fdbus_call_method): Fix docstring.
20338
203392007-12-21 Michael Albinus <michael.albinus@gmx.de>
20340
20341 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20342 New macros.
20343 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20344 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20345 Simplify.
20346 (xd_signature): New function.
20347 (xd_append_arg): Compute also signatures. Major rewrite.
20348 (xd_retrieve_arg): Make debug messages friendly.
20349 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20350 Check for signatures of arguments.
20351
203522007-12-19 Michael Albinus <michael.albinus@gmx.de>
20353
20354 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20355 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20356 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20357 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20358 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20359 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20360 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20361 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20362 (xd_retrieve_value): Remove. Functionality included in ...
20363 (xd_append_arg): New function.
20364 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20365
203662007-12-16 Michael Albinus <michael.albinus@gmx.de>
20367
20368 * dbusbind.c (top): Include <stdio.h>.
20369 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20370 dbus_message_new_method_call and dbus_message_new_signal.
20371 (Fdbus_register_signal): Rename unique_name to uname.
20372 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20373 non-existing unique name. Fix typos in matching rule. Return an
20374 object which is useful in Fdbus_unregister_signal.
20375 (Fdbus_unregister_signal): Reimplementation, in order to remove
20376 only the corresponding entry.
20377 (Vdbus_registered_functions_table): Change the order of entries.
20378 Apply these changes in xd_read_message and Fdbus_register_signal.
20379
203802007-12-16 Andreas Schwab <schwab@suse.de>
20381
20382 * fileio.c (Finsert_file_contents): Fix overflow check to not
20383 depend on undefined integer overflow.
20384
203852007-12-14 Jason Rumney <jasonr@gnu.org>
20386
20387 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20388 for characters above 127.
20389
203902007-12-13 Jason Rumney <jasonr@gnu.org>
20391
20392 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20393 before dereferencing array.
20394 (lookup_vk_code): Remove zero comparison.
20395
203962007-12-14 Michael Albinus <michael.albinus@gmx.de>
20397
20398 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20399 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20400 Use `unsigned int' instead of `uint'.
20401 (xd_read_message, Fdbus_register_signal): Split expressions into
20402 multiple lines before operators "&&" and "||", according to the
20403 GNU Coding Standards.
20404
204052007-12-14 Eli Zaretskii <eliz@gnu.org>
20406
20407 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20408
204092007-12-12 Juri Linkov <juri@jurta.org>
20410
20411 * buffer.c (Frename_buffer): In interactive spec replace
20412 `read-buffer' with `read-string' that uses `buffer-name-history'
20413 as history, and the current buffer's name as default.
20414
204152007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20416
20417 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20418 manipulating the backtrace manually.
20419 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20420 (struct backtrace, backtrace_list): Remove.
20421 (command_loop_1): Remove dead var `no_direct'.
20422
20423 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20424 preserve non-built-in buffer-local variables.
20425 (Fkill_all_local_variables): Don't re-create&re-set permanent
20426 buffer-local variables.
20427
204282007-12-09 Juri Linkov <juri@jurta.org>
20429
20430 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20431 Lisp code that uses `read-buffer' with current buffer as default.
20432
204332007-12-08 Michael Albinus <michael.albinus@gmx.de>
20434
20435 * dbusbind.c (xd_read_message): Generate an event for every
20436 registered handler. There might be several handlers registered
20437 for the same signal.
20438 (Fdbus_register_signal): Don't overwrite a registration for the
20439 same signal. Add a new registration if handlers are different.
20440 (Vdbus_registered_functions_table): Rework doc string.
20441
204422007-12-07 Michael Albinus <michael.albinus@gmx.de>
20443
20444 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20445 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20446 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20447 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20448 Unify argument lists.
20449 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20450 arguments and hash table keys. Use unique name for service.
20451 (Fdbus_unregister_signal): Remove checks.
20452 (Vdbus_registered_functions_table): Fix doc string.
20453
204542007-12-05 Magnus Henoch <mange@freemail.hu>
20455
20456 * process.c (make_process): Initialize pty_flag to 0.
20457
204582007-12-05 Jason Rumney <jasonr@gnu.org>
20459
20460 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20461 specified XBMs.
20462
204632007-12-05 Richard Stallman <rms@gnu.org>
20464
20465 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20466
204672007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20468
20469 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20470 New variable.
20471 (mac_try_close_socket) [MAC_OSX]: New function.
20472 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20473 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20474
20475 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20476 Use mac_try_close_socket.
20477
204782007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20479
20480 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20481 reloc_base.
20482 (copy_dysymtab): Compute relocation base here.
20483 (rebase_reloc_address) [__ppc64__]: New function.
20484 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20485 changed.
20486
204872007-12-05 Jason Rumney <jasonr@gnu.org>
20488
20489 * w32proc.c (sys_spawnve): Quote args with wildcards.
20490
204912007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20492
20493 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20494 __objc_* sections.
20495 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20496
204972007-12-05 Michael Albinus <michael.albinus@gmx.de>
20498
20499 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20500 Move check for Vdbus_registered_functions_table to
20501 xd_read_queued_messages.
20502 (xd_read_queued_messages): Protect xd_read_message calls by
20503 internal_condition_case_1.
20504
205052007-12-04 Michael Albinus <michael.albinus@gmx.de>
20506
20507 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20508 Qdbus_system_bus and Qdbus_session_bus, respectively.
20509 (Vdbus_intern_symbols): Remove.
20510 (Vdbus_registered_functions_table): New hash table.
20511 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20512 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20513 Rewrite in order to manage registered functions by hash table
20514 Vdbus_registered_functions_table.
20515
205162007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20517
20518 * xterm.c: Update URL to Window Manager Specification in comment.
20519
205202007-12-02 Michael Albinus <michael.albinus@gmx.de>
20521
20522 * config.in (HAVE_DBUS): Add.
20523
20524 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20525 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20526 (obj): Add $(DBUS_OBJ).
20527 (LIBES): Add $(DBUS_LIBS).
20528 (dbusbind.o): New target.
20529
20530 * dbusbind.c: New file.
20531
20532 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20533
20534 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20535 (Qdbus_event): New Lisp symbol.
20536 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20537 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20538 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20539
20540 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20541
205422007-12-01 Richard Stallman <rms@gnu.org>
20543
20544 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20545
205462007-11-30 Jason Rumney <jasonr@gnu.org>
20547
20548 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20549 (w32con_reset_terminal_modes): Clear screen buffer.
20550 (w32_face_attributes): Don't use color indexes that are out of range.
20551 Only reverse the default colors.
20552
20553 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20554 WINDOWSNT.
20555
20556 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20557
205582007-11-29 Jason Rumney <jasonr@gnu.org>
20559
20560 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20561 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20562 if the terminal colors are initialized.
20563 (unspecified_fg, unspecified_bg): Remove unused declarations.
20564
205652007-11-29 Andreas Schwab <schwab@suse.de>
20566
20567 * keyboard.c (apply_modifiers): Fix typo.
20568
205692007-11-29 Richard Stallman <rms@gnu.org>
20570
20571 * keymap.c (Fcurrent_local_map): Doc fix.
20572
205732007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20574
20575 * s/gnu-kfreebsd.h: New file.
20576
205772007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20578
20579 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20580 Don't cast redundantly.
20581
20582 * keyboard.c (KEY_TO_CHAR): New macro.
20583 (parse_modifiers, apply_modifiers): Accept integer arguments.
20584 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20585 for chars and symbol keys.
20586 After doing such remapping, apply function-key-map again.
20587
205882007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20589
20590 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20591 compiled anymore.
20592
205932007-11-26 Andreas Schwab <schwab@suse.de>
20594
20595 * process.c (list_processes_1): Fix indentation level of the
20596 command column.
20597
205982007-11-23 Andreas Schwab <schwab@suse.de>
20599
20600 * editfns.c (Fformat): Handle %c specially since it requires the
20601 argument to be of type int.
20602
206032007-11-23 Markus Triska <markus.triska@gmx.at>
20604
20605 * emacs.c (main): Call init_editfns before init_process, since
20606 init_process sets Vprocess_connection_type depending on OS release.
20607
206082007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20609
20610 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20611 (find_symbol_value): Use do_symval_forwarding.
20612
20613 * data.c (set_internal): Set the value in the `cons-cell' (for
20614 Buffer_Local_values) not only for frame-local variables.
20615
206162007-11-22 Andreas Schwab <schwab@suse.de>
20617
20618 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20619 values to sprintf.
20620 * keymap.c (Fsingle_key_description): Likewise.
20621 * print.c (print_object): Likewise.
20622
206232007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20624
20625 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20626 file for image is nil.
20627
206282007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20629
20630 * term.c: Include stdarg.h.
20631 (fatal): Implement using varargs.
20632 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20633
206342007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20635
20636 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20637 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20638 Update call to buffer_slot_type_mismatch.
20639 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20640 (buffer_slot_type_mismatch): Update.
20641 * buffer.c (buffer_local_types): Remove.
20642 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20643 (defvar_per_buffer): Set the type in the buffer_objfwd.
20644
206452007-11-21 Jason Rumney <jasonr@gnu.org>
20646
20647 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20648 CreateFileMapping returns NULL on failure.
20649
206502007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20651
20652 * search.c (Fset_match_data): Remove the `evaporate' feature.
20653 (unwind_set_match_data): Don't use the `evaporate' feature.
20654
206552007-11-21 Jason Rumney <jasonr@gnu.org>
20656
20657 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20658
20659 * w32console.c (w32con_write_glyphs): Remove unused variables.
20660
206612007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20662
20663 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20664
20665 * s/darwin.h (MULTI_KBOARD): Remove.
20666
20667 * macfns.c (x_create_tip_frame, Fx_create_frame)
20668 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20669
206702007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20671
20672 * buffer.c (Fbuffer_local_value): Remove redundant test.
20673 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20674 than in `current-buffer' to match the comment.
20675 Do the swap using swap_in_global_binding.
20676
20677 * data.c (store_symval_forwarding, set_internal):
20678 * eval.c (specbind): Remove dead code.
20679
20680 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20681 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20682 Since we do not want to see internal Lisp_*fwd objects here.
20683
206842007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20685
20686 * sysdep.c (init_system_name): Use getaddrinfo if available.
20687
20688 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20689 (x_scroll_bar_note_movement): start, end, with, height in struct
20690 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20691
206922007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20693
20694 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20695
206962007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20697
20698 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20699 This undoes Richard's change of 14-Oct-2002.
20700
20701 * alloc.c (allocate_other_vector):
20702 * lisp.h (allocate_other_vector): Remove.
20703
20704 * window.c (struct save_window_data): Move non-lisp data to the end
20705 and make it `int' rather than Lisp_Object.
20706 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20707 Done wrap/unwrap integer values.
20708 (Fset_window_configuration, compare_window_configurations):
20709 Update use of fields to their new types.
20710
20711 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20712 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20713 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20714 (SET_SCROLL_BAR_X_WINDOW): Remove.
20715 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20716 Access the new x_window field directly.
20717 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20718 Don't wrap/unwrap integers into Lisp_Objects.
20719 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20720 (x_scroll_bar_report_motion):
20721 Don't wrap/unwrap integers into Lisp_Objects.
20722 (x_term_init): Use SDATA.
20723 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20724 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20725 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20726 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20727 * xfns.c (x_set_background_color):
20728 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20729 Access the new x_window field directly.
20730
20731 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20732 (allocate_pseudovector): Make non-static.
20733
20734 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20735 (allocate_pseudovector): Declare.
20736 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20737
207382007-11-15 Andreas Schwab <schwab@suse.de>
20739
20740 * editfns.c (Fformat): Correctly format EMACS_INT values.
20741 Also take precision into account when formatting an integer.
20742
20743 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20744
207452007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20746
20747 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20748 (syms_of_keyboard): Defsubr it.
20749
20750 * data.c (swap_in_global_binding): Fix longstanding bug where
20751 store_symval_forwarding was not called with the right second argument,
20752 thus causing objfwd-ing from being dropped.
20753
207542007-11-14 Juanma Barranquero <lekktu@gmail.com>
20755
20756 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20757 (Fx_display_pixel_height, Fx_display_planes)
20758 (Fx_display_color_cells, Fx_server_max_request_size)
20759 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20760 (Fx_display_visual_class, Fx_display_save_under):
20761 * w32fns.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_screens)
20765 (Fx_display_mm_height, Fx_display_mm_width)
20766 (Fx_display_backing_store, Fx_display_visual_class)
20767 (Fw32_select_font, Fx_display_save_under):
20768 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20769 (Fx_display_pixel_height, Fx_display_planes)
20770 (Fx_display_color_cells, Fx_server_max_request_size)
20771 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20772 (Fx_display_save_under): Fix typos in docstrings.
20773
207742007-11-14 Juanma Barranquero <lekktu@gmail.com>
20775
20776 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20777 corresponding to deleted entries; they are an implementation detail.
20778 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20779 Remove variables.
20780 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20781 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20782 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20783 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20784 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20785 (Fw32_define_rgb_color, Fw32_load_color_file)
20786 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20787 Fix typos in docstrings.
20788 (Fx_server_version): Reflow docstring.
20789 (Fw32_shell_execute): Doc fixes.
20790
207912007-11-13 Juanma Barranquero <lekktu@gmail.com>
20792
20793 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20794 if w32_parse_hot_key returned nil.
20795
207962007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20797
20798 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20799
208002007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20801
aac0c6e3
MR
20802 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20803
20804 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20805
20806 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20807 Remove W32_SCROLL_BAR_CLICK_EVENT.
20808
20809 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20810 Add MULTIMEDIA_KEY_EVENT.
20811
20812 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20813 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20814 (make_lispy_event) [WINDOWSNT]: Use it to translate
20815 MULTIMEDIA_KEY_EVENT.
20816
20817 * w32term.h (WM_APPCOMMAND): Define if not already.
20818 (GET_APPCOMMAND_LPARAM): Likewise.
20819
20820 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20821 WM_APPCOMMAND.
20822
20823 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20824 (syms_of_w32fns): Export and initialize it.
20825 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20826
208272007-11-09 Chong Yidong <cyd@stupidchicken.com>
20828
20829 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20830 twice.
20831
20832 * xdisp.c (handle_face_prop): Fix last change.
20833
208342007-11-09 Richard Stallman <rms@gnu.org>
20835
20836 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20837 not just for after-strings and before-strings.
20838 Call face_for_overlay_string and pass the overlay to it.
20839 (handle_display_prop): Determine whether property came from an overlay.
20840 Pass OVERLAY arg to handle_single_display_spec.
20841 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20842 (load_overlay_strings): Fill in it->string_overlays.
20843 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20844
20845 * xfaces.c (face_for_overlay_string): Function renamed from
20846 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20847
20848 * dispextern.h (struct it): New elt string_overlays.
20849 New elt from_overlay, also in stack.
20850 Rearrange a few elements.
20851 (face_for_overlay_string): Decl renamed from
20852 face_at_buffer_position_no_overlays, and add argument.
20853
208542007-11-09 Richard Stallman <rms@gnu.org>
20855
20856 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20857 to get the base face for an overlay string.
20858
20859 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20860
20861 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20862
20863 * xdisp.c (handle_stop): Move some code out of loop.
20864
208652007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20866
20867 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20868 Fix conversion from Lisp object to ATSUFontID.
20869
208702007-11-09 Jason Rumney <jasonr@gnu.org>
20871
20872 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20873
208742007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20875
20876 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20877 Don't assume regions are aligned to page boundary.
20878 (print_load_command_name): Add LC_UUID if defined.
20879
208802007-11-09 Richard Stallman <rms@gnu.org>
20881
20882 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20883
208842007-11-07 Jason Rumney <jasonr@gnu.org>
20885
20886 * s/windows95.h: Remove.
20887
208882007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20889
20890 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20891 abort with a message on unhandled store_type values.
20892
208932007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20894
20895 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20896 Remove HAVE_X11R5 and HAVE_X11R4.
20897
208982007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20899
20900 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20901
209022007-11-01 Johan Bockgård <bojohan@gnu.org>
20903
20904 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20905 Don't set s->stippled_p here, since it has already been set by
20906 x_set_glyph_string_gc from x_draw_glyph_string.
20907
209082007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20909
20910 * sunfns.c: Remove file.
20911
20912 * m/sun386.h:
20913 * m/sun2.h:
20914 * m/sparc.h: Remove Sun windows code.
20915
209162007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20917
20918 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20919 (init_keyboard): Set current_kboard's window-system to nil.
20920 (tty_read_avail_input): Typo.
20921 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20922
209232007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20924
20925 * s/usg5-4.h:
20926 * s/usg5-3.h:
20927 * s/ptx.h:
20928 * m/is386.h:
20929 * m/ibmps2-aix.h:
20930 * Makefile.in: Remove all mentions of X10.
20931
20932 * dispnew.c (syms_of_display): Don't mention version 10.
20933
209342007-10-28 Juanma Barranquero <lekktu@gmail.com>
20935
20936 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20937 ($(BLD)/abbrev.$(O)): Remove.
20938
209392007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20940
20941 Rewrite abbrev.c in Elisp.
20942 * image.c (Qcount): Don't declare as extern.
20943 (syms_of_image): Initialize and staticpro `Qcount'.
20944 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20945 * emacs.c (main): Don't call syms_of_abbrev.
20946 * Makefile.in (obj): Remove abbrev.o.
20947 (abbrev.o): Remove.
20948 * abbrev.c: Remove.
20949
209502007-10-26 Martin Rudalics <rudalics@gmx.at>
20951
20952 * window.c (window_min_size_2): Don't count header-line.
20953
209542007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20955
20956 * frame.h (struct frame): Move all bit fields after the first bit
20957 field to take advantage of the available space. Group all the
20958 chars together to reduce wasted space due to padding.
20959
209602007-10-26 Juanma Barranquero <lekktu@gmail.com>
20961
20962 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20963
20964 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20965 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20966 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20967 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20968 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20969 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20970 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20971 (last_marked, mark_object_loop_halt): Make static.
20972
20973 * frame.c (syms_of_frame) <delete-frame-functions>:
20974 Fix typo in docstring.
20975
209762007-10-25 Juanma Barranquero <lekktu@gmail.com>
20977
20978 * w32.c (init_environment): Fix tiny memory leak.
20979 (w32_get_resource): Remove unused variable `ok'.
20980
209812007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20982
20983 Make `window-system' into a keyboard-local variable (rather than
20984 frame-local as done originally by multi-tty).
20985
20986 * keyboard.h (struct kboard): Add Vwindow_system.
20987 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20988 (mark_kboards): Mark Vwindow_system.
20989
20990 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20991 (init_display): Don't set the obsolete `window-system' frame-param.
20992
20993 * xterm.c (x_term_init):
20994 * w32term.c (w32_create_terminal):
20995 * term.c (init_tty): Set Vwindow_system.
20996 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20997 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20998
20999 * xfns.c (Fx_create_frame, x_create_tip_frame):
21000 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21001 * macfns.c (Fx_create_frame):
21002 Don't set the obsolete `window-system' frame-param.
21003
21004 * frame.h (Qwindow_system): Remove.
21005 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21006 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21007
210082007-10-24 Richard Stallman <rms@gnu.org>
21009
21010 * frame.c (x_figure_window_size): For fullscreen case,
21011 set USPosition | PPosition without clobbering rest of window_prompting.
21012
21013 * keyboard.c (Fcurrent_idle_time): Doc fix.
21014
21015 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21016
210172007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21018
21019 * process.c (unwind_request_sigio): Only define if __ultrix__.
21020
21021 * callproc.c (child_setup): Remove spurious *.
21022
21023 * lisp.h (Fget_text_property): Declare.
21024 (have_menus_p): Declare it here rather than in sys-dep header files.
21025 * macterm.h (have_menus_p):
21026 * msdos.h (have_menus_p):
21027 * xterm.h (have_menus_p): Remove.
21028
21029 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21030 (Fmake_variable_frame_local): Just check the variable's const-ness
21031 rather than checking nil or t.
21032
210332007-10-22 Jason Rumney <jasonr@gnu.org>
21034
21035 * w32fns.c: Include math.h.
21036 (w32_abort): Declaration moved to nt/config.nt.
21037
21038 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21039 (abort): Redefinition moved to nt/config.nt.
21040
21041 * m/windowsnt.h: Remove.
21042
210432007-10-22 Juanma Barranquero <lekktu@gmail.com>
21044
21045 * emacs.c (Fdump_emacs): Fix typo in message.
21046 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21047 <installation-directory>: Reflow docstring.
21048
210492007-10-22 Juri Linkov <juri@jurta.org>
21050
21051 * minibuf.c: Allow minibuffer default to be a list of default values.
21052 With empty input use the first element of this list as returned default.
21053 (string_to_object)
21054 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21055 (read_minibuf): If defalt is cons, set histstring to its car.
21056 (Fread_string): If default_value is cons, set val to its car.
21057 (Fread_buffer): If def is cons, use its car.
21058 (Fcompleting_read): If defalt is cons, set val to its car.
21059
210602007-10-21 Michael Albinus <michael.albinus@gmx.de>
21061
21062 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21063
210642007-10-20 Juanma Barranquero <lekktu@gmail.com>
21065
21066 * doc.c (Fdocumentation): Check for advice in all cases.
21067
210682007-10-19 Chong Yidong <cyd@stupidchicken.com>
21069
21070 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21071
210722007-10-19 Richard Stallman <rms@gnu.org>
21073
21074 * doc.c (Fdocumentation): Check for and handle an advised function.
21075
210762007-10-19 Juanma Barranquero <lekktu@gmail.com>
21077
21078 * process.c (Fset_process_filter): Doc fix.
21079
210802007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21081
21082 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21083 which caused key-translation-map to applied repeatedly (thus breaking
21084 double-mode).
21085
210862007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21087
21088 * xselect.c (x_own_selection, x_handle_selection_clear)
21089 (x_clear_frame_selections):
21090 * w32menu.c (list_of_panes, list_of_items):
21091 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21092 * textprop.c (validate_plist, interval_has_all_properties)
21093 (interval_has_some_properties, interval_has_some_properties_list)
21094 (add_properties, text_property_list):
21095 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21096 * minibuf.c (Fassoc_string):
21097 * macselect.c (x_own_selection, x_clear_frame_selections)
21098 (Fx_disown_selection_internal):
21099 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21100 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21101
211022007-10-17 Chong Yidong <cyd@stupidchicken.com>
21103
21104 * process.c: Link to libs for calling res_init() if available.
21105 (Fmake_network_process): Call res_init() before getaddrinfo or
21106 gethostbyname, if possible.
21107
211082007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21109
21110 * lread.c (read1): Set pvectype for char_tables.
21111
21112 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21113 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21114 Add type checks.
21115 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21116
21117 * alloc.c (free_misc): Use XMISCTYPE.
21118 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21119
211202007-10-17 Glenn Morris <rgm@gnu.org>
21121
21122 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21123 (syms_of_minibuf): Add Qcompletion_ignore_case.
21124 * dired.c (Qcompletion_ignore_case): Change to external.
21125 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21126 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21127 (Fread_file_name): Use it rather than intern'ing.
21128
21129 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21130 (Fread_coding_system): Ignore case of user input.
21131
211322007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21133
21134 * xdisp.c (handle_display_prop): Ignore display specs after
21135 replacing one when string text is being replaced.
21136 (handle_single_display_spec): Pretend as if characters with display
21137 property haven't been consumed only when buffer text is being replaced.
21138
211392007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21140
21141 * xfns.c (Fx_create_frame, Fx_display_list):
21142 * window.c (window_fixed_size_p, enlarge_window)
21143 (shrink_window_lowest_first):
21144 * macterm.c (init_font_name_table):
21145 * macfns.c (Fx_create_frame, Fx_display_list):
21146 * lread.c (close_load_descs):
21147 * keyboard.c (read_char_x_menu_prompt):
21148 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21149 * coding.c (code_convert_region_unwind): Test the type of an object
21150 rather than just !NILP before extracting data from it.
21151
21152 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21153
21154 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21155 (XMISCANY): New macro.
21156 (XMISCTYPE): Use it.
21157 (struct Lisp_Misc_Any): New type.
21158 (union Lisp_Misc): Use it.
21159 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21160 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21161 (find_symbol_value, set_internal, default_value, Fset_default)
21162 (Fmake_variable_buffer_local, Fmake_local_variable)
21163 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21164 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21165 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21166 * alloc.c (allocate_buffer): Set the size and tag.
21167 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21168 Use XMISCANY.
21169 (die): Follow the GNU convention for error messages.
21170 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21171 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21172 tag any more.
21173 (set_buffer_internal_1):
21174 * frame.c (store_frame_param):
21175 * eval.c (specbind):
21176 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21177
21178 * doc.c (Fsnarf_documentation): Simplify.
21179
211802007-10-14 Juanma Barranquero <lekktu@gmail.com>
21181
21182 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21183 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21184
211852007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21186
21187 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21188
211892007-10-14 Juanma Barranquero <lekktu@gmail.com>
21190
21191 * eval.c (do_autoload): Don't save autoloads.
21192
21193 * data.c (Ffset): Save autoload of the function being set.
21194
211952007-10-07 John Paul Wallington <jpw@pobox.com>
21196
21197 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21198 parameter before setting up faces.
21199
212002007-10-13 Eli Zaretskii <eliz@gnu.org>
21201
21202 * ccl.c (Fregister_code_conversion_map):
21203 * keyboard.c (append_tool_bar_item): Reformat last change.
21204
21205 * lisp.h (eabs): Rename from `abs'. All callers changed.
21206
212072007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21208
21209 * buffer.c (add_overlay_mod_hooklist):
21210 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21211 * fontset.c (make_fontset):
21212 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21213 (append_tool_bar_item):
21214 * macmenu.c (grow_menu_items):
21215 * w32menu.c (grow_menu_items):
21216 * xmenu.c (grow_menu_items): Use larger_vector.
21217
212182007-10-13 Eli Zaretskii <eliz@gnu.org>
21219
21220 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21221 selected frame'' on MSDOS).
21222
212232007-10-12 Martin Rudalics <rudalics@gmx.at>
21224
21225 * frame.c (Qexplicit_name): New variable.
21226 (x_report_frame_params): Report it in parameter alist.
21227 (syms_of_frame): Intern and staticpro it.
21228
212292007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21230
21231 * macfns.c (x_create_tip_frame): Set terminal for frame.
21232
212332007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21234
21235 * frame.c (Qenvironment): Remove.
21236 (syms_of_frame) <Qenvironment>: Don't initialize.
21237 (Fdelete_frame): Don't treat the `environment' param specially.
21238 * frame.h (Qenvironment): Don't declare.
21239 * callproc.c (set_initial_environment): Don't set unused frame param.
21240
21241 * frame.c (Fframe_with_environment): Remove.
21242 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21243
21244 * lisp.h (Fframe_with_environment): Don't declare.
21245
212462007-10-10 Juanma Barranquero <lekktu@gmail.com>
21247
21248 * indent.c (indent_tabs_mode, last_known_column)
21249 (last_known_column_modified): Make static.
21250 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21251
212522007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21253
21254 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21255
212562007-10-09 Jason Rumney <jasonr@gnu.org>
21257
21258 * w32term.c (x_set_window_size): Disable code that attempts to tell
21259 Lisp code about a size change before it actually happens.
21260
212612007-10-09 Richard Stallman <rms@gnu.org>
21262
21263 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21264 return HANDLED_RETURN.
21265
212662007-10-08 Martin Rudalics <rudalics@gmx.at>
21267
21268 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21269 when there's an unread command event.
21270
21271 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21272 window autoselection act appropriately when leaving selected frame.
21273 (syms_of_frame): Initialize focus_follows_mouse.
21274 * frame.h (focus_follows_mouse): Extern it.
21275 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21276 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21277 * msdos.c (dos_rawgetc): Likewise.
21278 * w32term.c (w32_read_socket): Likewise.
21279 * xterm.c (handle_one_xevent): Likewise.
21280 * xdisp.c (syms_of_xdisp): In doc-string of
21281 mouse-autoselect-window mention focus-follows-mouse.
21282
212832007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21284
21285 * macterm.c (mac_load_query_font): Fix missing return value.
21286 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21287 Add BLOCK_INPUT.
21288
212892007-10-08 Richard Stallman <rms@gnu.org>
21290
21291 * xdisp.c (get_window_cursor_type): Implement documented behavior
21292 for cursor-in-non-selected-windows = t.
21293
212942007-10-08 Jason Rumney <jasonr@gnu.org>
21295
21296 * w32.c (w32_get_resource): Always close registry keys.
21297
212982007-10-08 Jason Rumney <jasonr@gnu.org>
21299
21300 * makefile.w32-in (LIBS): Add COMCTL32.
21301
21302 * w32fns.c (globals_of_w32fns): Init common controls.
21303
213042007-10-08 Richard Stallman <rms@gnu.org>
21305
21306 * image.c (our_memory_buffer): Rename from omfib_buffer.
21307
213082007-10-08 Richard Stallman <rms@gnu.org>
21309
21310 * buffer.c (Foverlays_at): Doc fix.
21311
213122007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21313
21314 * fns.c (Fplist_put): Preserve uneven tail data.
21315
213162007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21317
21318 * termhooks.h (enum event_kind): Remove trailing comma.
21319
21320 * frame.h (enum): Remove trailing comma.
21321
213222007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21323
21324 * w32proc.c (delete_child): Don't terminate threads of zombies.
21325
213262007-10-08 Martin Rudalics <rudalics@gmx.at>
21327
21328 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21329
21330 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21331 last-repeatable-command.
21332 (init_kboard): Initialize Vlast_repeatable_command.
21333 (command_loop_1): Set it to real_this_command unless that was
21334 bound to an input event.
21335 (mark_kboards): Mark it.
21336
213372007-10-08 Richard Stallman <rms@gnu.org>
21338
21339 * eval.c (condition-case): Doc fix.
21340
213412007-10-08 Masatake YAMATO <jet@gyve.org>
21342
21343 * xfaces.c (tty_supports_face_attributes_p): Fix code
21344 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21345 was copied and not edited.
21346
213472007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21348
21349 Add new `input-decode-map' keymap and use it for terminal
21350 escape sequences.
21351 * keyboard.h (struct kboard): Add Vinput_decode_map.
21352 Remove Vlocal_key_translation_map.
21353 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21354 (init_kboard): Init input-decode-map.
21355 Replace local-key-translation-map back with key-translation-map.
21356 (syms_of_keyboard): Declare input-decode-map.
21357 Remove local-key-translation-map. Update docstrings.
21358 (mark_kboards): Mark Vinput_decode_map.
21359 Don't mark Vlocal_key_translation_map.
21360 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21361 Replace local-key-translation-map back with key-translation-map.
21362 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21363 Bind in input-decode-map rather than function-key-map.
21364
21365 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21366 This was made redundant by the previous introduction of XSETPVECTYPE.
21367
213682007-10-09 Richard Stallman <rms@gnu.org>
21369
21370 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21371
213722007-09-29 Richard Stallman <rms@gnu.org>
21373
21374 * eval.c (internal_condition_case_2, internal_condition_case_1)
21375 (internal_condition_case): Reenable abort if x_catching_errors ()
21376 to see if that really happens and why.
21377
213782007-10-06 Andreas Schwab <schwab@suse.de>
21379
21380 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21381
213822007-10-04 Juanma Barranquero <lekktu@gmail.com>
21383
21384 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21385
213862007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21387
21388 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21389
213902007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21391
21392 * window.h (struct window):
21393 * window.c (struct save_window_data, struct saved_window):
21394 * termhooks.h (struct terminal):
21395 * process.h (struct Lisp_Process):
21396 * frame.h (struct frame):
21397 * buffer.h (struct buffer):
21398 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21399 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21400 The size field of (pseudo)vectors is now unsigned.
21401 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21402
21403 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21404 Turn `count' into an integer.
21405
21406 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21407 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21408 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21409 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21410 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21411
21412 * alloc.c (allocate_pseudovector): New fun.
21413 (ALLOCATE_PSEUDOVECTOR): New macro.
21414 (allocate_window, allocate_terminal, allocate_frame)
21415 (allocate_process): Use it.
21416 (mark_vectorlike): New function.
21417 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21418 (mark_terminals): Use it.
21419 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21420 (Fmake_byte_code): Use XSETPVECTYPE.
21421
21422 * frame.c (Fframe_parameters): Minor simplification.
21423
21424 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21425
21426 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21427
21428 * buffer.c (Fget_buffer_create, init_buffer_once):
21429 * lread.c (defsubr):
21430 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21431
21432 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21433 defined differently in the m/*.h files.
21434 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21435 (XSETPVECTYPE): New macro.
21436 (XSETPSEUDOVECTOR): Use it.
21437
21438 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21439 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21440
21441 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21442 * lread.c (defvar_per_buffer):
21443 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21444
21445 * window.c (candidate_window_p): Only consider as visible frames that
21446 are on the same terminal.
21447
21448 * m/ibms390x.h (MARKBIT): Remove unused macro.
21449
214502007-10-01 Juanma Barranquero <lekktu@gmail.com>
21451
21452 * lread.c (Fload): Fix typo in docstring.
21453
214542007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21455
21456 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21457 of a non-zero value can't yield zero.
21458
214592007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21460
21461 * term.c (term_clear_mouse_face, term_mouse_highlight)
21462 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21463
21464 * print.c (safe_debug_print): Use XHASH.
21465
21466 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21467 Lisp elements such as tags.
21468 (XHASH): New macro.
21469 (EQ): Use it.
21470 (SREF, SSET, STRING_COPYIN): Use SDATA.
21471 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21472
21473 * alloc.c (mark_terminal): Remove left-over declaration.
21474 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21475 (allocate_vectorlike): Remove type argument. Adjust callers.
21476 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21477 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21478
21479 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21480 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21481 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21482 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21483 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21484 Use them.
21485
21486 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21487 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21488 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21489
214902007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21491
21492 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21493 loaded by default.
21494
214952007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21496
21497 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21498 on this tty.
21499 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21500
21501 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21502 Update all users.
21503 (handle_one_term_event): Use Gpm_DrawPointer.
21504 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21505 Signal errors instead of returning nil. Always return nil.
21506 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21507 Make it a noop if gpm-mouse was not activated.
21508 (syms_of_term): Update names.
21509
215102007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21511
21512 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21513 (init_sys_modes): Check that gpm_tty is the current tty.
21514
21515 * alloc.c (allocate_terminal): Set the vector size to only count the
21516 lisp fields. Initialize those to nil.
21517 (mark_object): Don't treat terminals specially.
21518 (mark_terminal): Remove.
21519 (mark_terminals): Use mark_object instead.
21520
21521 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21522 the GC to the beginning.
21523
21524 * indent.h:
21525 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21526
21527 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21528
215292007-09-25 Jason Rumney <jasonr@gnu.org>
21530
21531 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21532
21533 * w32console.c (create_w32cons_output): Remove.
21534
21535 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21536
21537 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21538 (reset_sys_modes): Use reset_terminal_modes_hook.
21539
215402007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21541
21542 * eval.c (do_autoload): Don't output any message.
21543
215442007-09-24 Juri Linkov <juri@jurta.org>
21545
21546 * emacs.c (standard_args): Change priority of "--no-splash"
21547 from 40 to 3. Add "--no-desktop" with the same priority.
21548
215492007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21550
21551 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21552 and optimize the case where they are all 1.
21553
215542007-09-23 Johannes Weiner <hannes@saeurebad.de>
21555
21556 * lisp.h (abs): Define if not defined.
21557 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21558 Don't define `abs', since it's defined in lisp.h.
21559
215602007-09-22 Eli Zaretskii <eliz@gnu.org>
21561
21562 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21563 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21564 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21565 (init_tty): Use DEV_TTY instead of "/dev/tty".
21566 [WINDOWSNT]: No need to protect from NAME arg being null.
21567
215682007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21569
21570 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21571 up the tty state.
21572
215732007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21574
21575 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21576 (gpm_tty): Change its type.
21577 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21578 (gpm_tty): Change its type and initialize it.
21579 (Fterm_open_connection): Check the frame is indeed a tty.
21580 Use the new gpm_tty.
21581 (Fterm_close_connection): Use the new gpm_tty.
21582 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21583 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21584
215852007-09-21 Juanma Barranquero <lekktu@gmail.com>
21586
21587 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21588 underline_color, to draw strike-through.
21589
215902007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21591
21592 * lisp.h (allocate_terminal): Declare.
21593
21594 * window.c (candidate_window_p): Consider frames that are being placed
21595 by the user as somewhere between visible and iconified.
21596 (window_loop): Prefer windows on the current frame.
21597 (Fselect_window): Move the use of select-frame to the beginning so we
21598 can just delegate all the work (it'll call us back anyway).
21599
21600 * frame.c (Qdisplay_environment_variable):
21601 * frame.h (Qdisplay_environment_variable): Delete.
21602
21603 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21604 of the first arg, since that value may be a union.
21605
21606 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21607 parameter rather than Qdisplay_environment_variable. If all else
21608 fails, look for DISPLAY in initial-environment.
21609
216102007-09-21 Glenn Morris <rgm@gnu.org>
21611
21612 * Makefile.in (emacstool): Remove target.
21613 (lisp, shortlisp): Remove termdev.elc.
21614
216152007-09-21 Markus Triska <markus.triska@gmx.at>
21616
21617 * xterm.c (x_delete_display): Compile session management conditionally.
21618
216192007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21620
21621 * callproc.c (getenv_internal_1): New function.
21622 (getenv_internal): Use it.
21623 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21624
21625 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21626 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21627 (Fset_terminal_parameter): Work with dead terminals as well.
21628 (Fmodify_terminal_parameters): Remove.
21629
21630 * terminal.c (get_terminal): Handle terminals.
21631 Make sure the terminal returned is live.
21632 (create_terminal): Use allocate_terminal.
21633 (mark_terminals): Move to alloc.c.
21634 (delete_terminal): Use terminal->name as liveness status.
21635 NULL out fields after freeing their contents.
21636 Don't deallocate the object.
21637 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21638 rather than an int.
21639 (Fterminal_live_p): Accept non-integer arguments.
21640 (Fterminal_list): Return terminal objects rather than an ints.
21641
21642 * alloc.c (enum mem_type): New member for `terminal' objects.
21643 (allocate_terminal): New function.
21644 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21645 Handle terminals.
21646 (mark_terminal): New fun.
21647 (mark_terminals): Move from terminal.c.
21648
21649 * term.c (get_tty_terminal): Don't treat output_initial specially.
21650 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21651 (delete_tty): Use terminal->name as liveness status.
21652
21653 * termhooks.h (struct terminal): Make it into a pseudovector.
21654 Remove `deleted' replaced by checking `name's nullness.
21655
21656 * print.c (print_object): Handle terminals.
21657
21658 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21659 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21660
21661 * frame.c (make_terminal_frame):
21662 * keyboard.c (tty_read_avail_input):
21663 * w32term.c (x_delete_terminal):
21664 * xfns.c (Fx_create_frame, x_create_tip_frame):
21665 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21666
216672007-09-20 Glenn Morris <rgm@gnu.org>
21668
21669 * process.c (Fmake_network_process): Doc fix.
21670
216712007-09-19 Jason Rumney <jasonr@gnu.org>
21672
21673 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21674
216752007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21676
21677 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21678 Fix a C warning regarding variable constness.
21679
21680 * xterm.c (handle_one_xevent): Fix a C warning.
21681
216822007-09-18 Jason Rumney <jasonr@gnu.org>
21683
21684 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21685
216862007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21687
21688 * gtkutil.c (gdpy_def): New variable.
21689 (xg_initialize): Initialize gdpy_def.
21690 (xg_display_close): If no other display exists, set gdpy_def to a
21691 new connection.
21692
216932007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21694
21695 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21696 when we have no file name for the icon.
21697 (xg_tool_bar_expose_callback): Remove.
21698 (xg_create_tool_bar): Don't connect expose signal to
21699 xg_tool_bar_expose_callback.
21700 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21701
217022007-09-16 Andreas Schwab <schwab@suse.de>
21703
21704 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21705 values instead of zapping them.
21706
217072007-09-14 Glenn Morris <rgm@gnu.org>
21708
21709 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21710 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21711 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21712 scope and rename to omfib_buffer for clarity.
21713 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21714
217152007-09-14 Kenichi Handa <handa@m17n.org>
21716
21717 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21718
217192007-09-13 Jason Rumney <jasonr@gnu.org>
21720
21721 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21722
21723 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21724
21725 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21726 (mac_term_init): Call here instead, passing rif.
21727
217282007-09-13 Glenn Morris <rgm@gnu.org>
21729
21730 * s/hpux.h: No longer define `static' as nothing.
21731
217322007-09-13 Johan Bockgård <bojohan@gnu.org>
21733
21734 * callint.c (Fcall_interactively): Remove unused var `fun'.
21735
217362007-09-12 Romain Francoise <romain@orebokech.com>
21737
21738 * window.c (prefer_window_split_horizontally, display_buffer):
21739 Revert 2007-09-08 change.
21740
217412007-09-12 Glenn Morris <rgm@gnu.org>
21742
21743 * alloca.c: Remove file.
21744 * Makefile.in (alloca): Do not undef.
21745 (allocaobj, alloca.o): Remove.
21746 (otherobj): Remove allocaobj.
21747 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21748 * regex.c (C_ALLOCA): Remove all references and code that was only
21749 used when this was defined.
21750 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21751 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21752 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21753
21754 * Makefile.in (SOURCES, unlock, relock): Delete.
21755
21756 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21757 (menu_grab_callback): All uses changed.
21758
21759 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21760 (x_reply_selection_request): All uses changed.
21761
217622007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21763
21764 * lread.c (load_warn_old_style_backquotes): Change message to look
21765 better when it appears in the middle of byte-compiler messages.
21766
217672007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21768
21769 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21770
21771 * xterm.c (x_create_terminal): Add comment.
21772
21773 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21774
217752007-09-10 Richard Stallman <rms@gnu.org>
21776
21777 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21778
217792007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21780
21781 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21782 (DEFUN): Document `intspec', use it instead of `prompt'.
21783
21784 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21785
21786 * data.c (Finteractive_form): If the interactive specification starts
21787 with a `(', use it as a Lisp form.
21788
21789 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21790 name and file modes.
21791
21792 * callint.c (Fcall_interactively): Comment fixes.
21793
217942007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21795
21796 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21797 and compiled functions.
21798
217992007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21800
21801 * window.c (prefer_window_split_horizontally): New variable.
21802 (display_buffer): Consider splitting window horizontally depending
21803 on prefer_window_split_horizontally.
21804
218052007-09-08 Eli Zaretskii <eliz@gnu.org>
21806
21807 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21808
218092007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21810
21811 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21812
21813 * frame.c (x_set_frame_parameters): Check number is positive before
21814 using XFASTINT.
21815
21816 * window.c (freeze_window_start): Don't presume selected_window holds
21817 a window object.
21818 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21819
218202007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21821
21822 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21823
218242007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21825
21826 * window.c (Vsplit_window_preferred_function): New var.
21827 (Fdisplay_buffer): Use it.
21828 (syms_of_window): Export, and initialize it.
21829
218302007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21831
21832 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21833
218342007-09-06 Glenn Morris <rgm@gnu.org>
21835
21836 * gtkutil.c (menu_grab_callback) <cnt>:
21837 * xselect.c (x_reply_selection_request) <cnt>: Move static
21838 variable to file scope.
21839
218402007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21841
21842 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21843 consistent values of selected_frame and selected_window.
21844
218452007-09-04 Jason Rumney <jasonr@gnu.org>
21846
21847 * w32console.c (initialize_w32_display): Zero unused hooks.
21848
218492007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21850
21851 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21852 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21853
218542007-09-04 Jason Rumney <jasonr@gnu.org>
21855
21856 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21857 in w32console.c. Set up input. Remove XXX comments that have been
21858 confirmed as correct.
21859
21860 * s/ms-w32.h (MULTI_KBOARD): Define.
21861
21862 * w32console.c (one_and_only_w32cons): Remove.
21863 (initialize_w32_display): Take terminal argument.
21864
21865 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21866 initialize_w32_display.
21867 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21868
21869 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21870
21871 * keyboard.c (discard_mouse_events): Discard it.
21872 (make_lispy_event): Translate it to a lisp event.
21873 (lispy_wheel_names): Add wheel-left and right events.
21874 (syms_of_keyboard): Enlarge wheel_syms.
21875
21876 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21877 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21878
21879 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21880
21881 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21882 from WM_MOUSEHWHEEL.
21883 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21884
21885 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21886 terminal.
21887
21888 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21889 keyboard for the terminal.
21890
218912007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21892
21893 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21894 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21895 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21896 and resume-tty-function to resume-tty-hook.
21897 (Fsuspend_tty, Fresume_tty): Use new names.
21898
218992007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21900
21901 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21902 if it starts with "n:".
21903
219042007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21905
21906 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21907
219082007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21909
21910 * frame.h:
21911 * frame.c (Qterm_environment_variable): Remove.
21912 (syms_of_frame): Don't init and staticpro it.
21913
21914 * callproc.c (getenv_internal): Remove special case for $TERM.
21915
21916 * callproc.c (Vinitial_environment): New variable.
21917 (set_initial_environment): Initialize it.
21918 (syms_of_callproc): Declare it.
21919 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21920 TERM under which a process runs is never related to the TERM in which
21921 Emacs is running.
21922
219232007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21924
21925 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21926 * s/darwin.h: ... do it here.
21927
219282007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21929
21930 * lisp.h (set_initial_environment): Rename from set_global_environment.
21931
21932 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21933 removed by mistake on the multi-tty branch.
21934
21935 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21936 (Fmodify_frame_parameters): Return a value.
21937
21938 * image.c (png_load): Comment-out var only used in commented-out code.
21939
21940 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21941 before passing it to mark_object.
21942
21943 * xfaces.c (internal_resolve_face_name): Return a value.
21944 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21945
21946 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21947 (x_icon): Comment-out var only used in commented-out code.
21948
219492007-08-29 Romain Francoise <romain@orebokech.com>
21950
21951 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21952 QUIT hasn't been provided.
21953
219542007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21955
21956 * callproc.c (child_setup, getenv_internal): Use the
21957 display-environment-variable and term-environment-variable frame params.
21958 (set_initial_environment): Initialise Vprocess_environment.
21959
21960 * config.in: Disable multi-keyboard support on a mac.
21961
21962 * frame.c (Qterm_environment_variable)
21963 (Qdisplay_environment_variable): New variables.
21964 (syms_of_frame): Intern and staticpro them.
21965 (Fmake_terminal_frame): Disable output method test.
21966
21967 * frame.h: Declare them here.
21968
21969 * macfns.c (x_set_mouse_color): Get rif from the frame.
21970 (x_set_tool_bar_lines): Don't use updating_frame.
21971 (mac_window): Add 2 new parameters for consistency with other systems.
21972 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21973 frame parameters following what is done in X11 and w32. Don't use
21974 FRAME_MAC_DISPLAY_INFO.
21975 (Fx_open_connection, start_hourglass): Remove window-system check.
21976 (x_create_tip_frame): Get the keyboard from the terminal.
21977
21978 * macmenu.c: Reorder includes.
21979 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21980
21981 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21982 terminal parameter.
21983 (x_clear_frame): Add a frame parameter.
21984 (note_mouse_movement): Get rif from the frame.
21985 (mac_term_init): Initialize the terminal.
21986 (mac_initialize): Make static and move terminal initialization ...
21987 (mac_create_terminal): ... to this new function.
21988
21989 * macterm.h (struct mac_display_info): Add terminal.
21990 (mac_initialize): Delete declaration.
21991
21992 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21993
21994 * sysdep.c: Comment out text after #endif.
21995
21996 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21997 is defined. Better initialize ttys in windows. Use terminal
21998 specific mouse_position_hook.
21999
22000 * termhooks.h (union display_info): Add mac_display_info.
22001
22002 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22003 Set the default minibuffer frame, window_system and the rest of the
22004 frame parameters following what is done in X11.
22005
22006 * w32term.c (w32_initialize): Make static.
22007
22008 * xselect.c (x_handle_selection_clear): Only access
22009 terminal->kboard when MULTI_KBOARD is defined.
22010
22011 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22012 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22013
220142007-08-29 Jason Rumney <jasonr@gnu.org>
22015
22016 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22017 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22018
22019 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22020 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22021
22022 * keyboard.c (restore_kboard_configuration): Only define when
22023 MULTI_KBOARD defined.
22024
22025 * makefile.w32-in: Update dependancies from Makefile.in.
22026 (OBJ1): Add terminal.$(O)
22027
22028 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22029 Don't define function body.
22030 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22031
22032 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22033
22034 * w32.c (request_sigio, unrequest_sigio): Remove.
22035
22036 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22037 (w32con_clear_frame, w32con_clear_end_of_line)
22038 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22039 (w32con_delete_glyphs, w32con_set_terminal_window)
22040 (scroll_line, w32_sys_ring_bell): Add frame arg.
22041 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22042 Add terminal arg.
22043 (PICK_FRAME): Remove.
22044 (w32con_write_glyphs): Use frame specific terminal coding.
22045 (one_and_only_w32cons): New global variable.
22046 (initialize_w32_display): Use it for storing hooks.
22047 (create_w32cons_output): New function.
22048
22049 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22050 arg a frame.
22051
22052 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22053 Set window_system.
22054 (x_set_tool_bar_lines): Don't use updating_frame.
22055 (Fx_create_frame): Set terminal and ref count.
22056 (Fx_open_connection): Remove window-system check.
22057
22058 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22059
22060 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22061 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22062 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22063 Add frame arg.
22064 (x_delete_terminal, w32_create_terminal): New functions.
22065 (w32_term_init): Create a terminal.
22066 (w32_initialize): Move terminal specific initialization to
22067 w32_create_terminal.
22068
22069 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22070 (w32_clear_rect, w32_clear_area): Use background from frame.
22071 (w32_display_info): Add terminal.
22072 (w32_sys_ring_bell, x_delete_display): Declare here.
22073
22074 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22075
22076 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22077
220782007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22079
22080 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22081 Fix get_named_tty calls for the controlling tty.
22082
220832007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22084
194d44e7 22085 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22086
220872007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22088
22089 * term.c (tty_insert_glyphs): Add missing first parameter.
22090
220912007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22092
22093 * buffer.c (Fbuffer_list, Fbury_buffer):
22094 Take frame->buried_buffer_list into account.
22095
22096 * cm.c (current_tty): New variable, for cmputc().
22097 (cmputc): Use it.
22098 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22099 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22100 (cmgoto): Add tty parameter. Pass it on to calccost().
22101 Use emacs_tputs() instead of tputs().
22102
22103 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22104 tputs().
22105 (current_tty): New variable, for cmputc().
22106 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22107
22108 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22109 (internal_condition_case, internal_condition_case_1)
22110 (internal_condition_case_2): Don't abort when x_catching_errors.
22111
22112 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22113 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22114 prevent crashes caused by bogus longjmps in read_char.
22115
22116 * keymap.h (Fset_keymap_parent): Add EXFUN.
22117
22118 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22119 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22120 Remove redundant definition.
22121
22122 * macfns.c (x_set_mouse_color, x_make_gc):
22123 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22124
22125 * w32term.c (x_free_frame_resources):
22126 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22127 (w32_initialize): Use the accessor macros for terminal characteristics.
22128
22129 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22130 Use the accessor macros for terminal characteristics.
22131 * msdos.c (internal_terminal_init): Use the accessor macros for
22132 terminal characteristics.
22133 (ScreenVisualBell, internal_terminal_init):
22134 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22135
22136 * termopts.h (no_redraw_on_reenter): Declare.
22137
22138 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22139 (mark_terminals, mark_ttys): Declare.
22140 (Fgarbage_collect): Call them.
22141 (mark_object): Mark buried_buffer_list.
22142
22143 * prefix-args.c: Include stdlib.h for exit.
22144
22145 * syssignal.h: Add comment.
22146
22147 * indent.c: Include stdio.h.
22148
22149 * window.h (Vinitial_window_system): Declare.
22150 (Vwindow_system): Delete declaration.
22151
22152 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22153
22154 * image.c (lookup_image): Don't initialize `c' until the xasserts
22155 have been run.
22156
22157 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22158 FRAME_FOREGROUND_PIXEL.
22159
22160 * print.c (print_preprocess): Don't lose print_depth levels while
22161 iterating.
22162
22163 * widget.c (update_from_various_frame_slots):
22164 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22165
22166 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22167 frames.
22168 (window_internal_height): Remove bogus make_number call.
22169 (init_window_once): Call make_terminal_frame with two zero parameters.
22170
22171 * fileio.c (Fread_file_name): Update comment.
22172
22173 * callint.c (Fcall_interactively):
22174 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22175 Make sure it is correctly unwound.
22176
22177 * xsmfns.c (x_session_close): New function.
22178
22179 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22180 Delete declarations.
22181
22182 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22183 (x_output): Remove background_pixel and foreground_pixel fields.
22184 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22185 (x_delete_device, x_session_close): Declare.
22186
22187 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22188 (read_filtered_event): Call `read_char' with a local
22189 `wrong_kboard_jmpbuf'.
22190
22191 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22192 Don't call single_kboard_state. Use FRAME_RIF.
22193
22194 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22195 systems.
22196
22197 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22198 (Fframe_with_environment, Fset_input_meta_mode)
22199 (Fset_quit_char): EXFUN.
22200 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22201 (init_sys_modes, reset_sys_modes): Update prototypes.
22202 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22203
22204 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22205 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22206 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22207 Delete declarations.
22208 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22209 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22210 New declarations.
22211
22212 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22213 already does that during init_display(). Call syms_of_keymap
22214 before syms_of_keyboard. Call `syms_of_terminal'.
22215 Call set_initial_environment, not set_process_environment.
22216 (shut_down_emacs): Call reset_all_sys_modes() instead of
22217 reset_sys_modes().
22218
22219 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22220 (internal_resolve_face_name, resolve_face_name_error): New functions.
22221 (resolve_face_name): Protect against loops and errors thrown by Fget.
22222 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22223 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22224
22225 * scroll.c: Replace CURTTY() with local variables throughout the
22226 file (where applicable).
22227 (calculate_scrolling, calculate_direct_scrolling)
22228 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22229 characteristics.
22230
22231 * keymap.c (Vfunction_key_map): Remove.
22232 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22233 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22234 (Vkey_translation_map): Remove.
22235 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22236 (Fdescribe_buffer_bindings)
22237 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22238 Update for terminal-local key-translation-map.
22239
22240 * Makefile.in (callproc.o): Update dependencies.
22241 (lisp, shortlisp): Add termdev.elc.
22242 (obj): Add terminal.o.
22243 (terminal.o): Add dependencies.
22244 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22245 (data.o, fns.o): Add termhooks.h dependency.
22246 (SOME_MACHINE_LISP): Add dnd.elc.
22247 (minibuf.o): Fix typo.
22248 Update dependencies.
22249
22250 * data.c (do_symval_forwarding, store_symval_forwarding)
22251 (find_symbol_value): Use the selected frame's keyboard, not
22252 current_kboard.
22253
22254 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22255 Vwindow_system.
22256
22257 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22258 Fmenu_bar_open.
22259 (syms_of_xmenu): Update defsubr.
22260 (mouse_position_for_popup, Fx_popup_menu)
22261 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22262 (set_frame_menubar, free_frame_menubar)
b97439ce 22263 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22264 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22265 an X frame.
22266
22267 * xselect.c (x_own_selection): Abort if not an X frame.
22268 (some_frame_on_display): Check if it is an X frame.
22269 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22270
22271 * coding.c: Include frame.h and termhooks.h.
22272 (terminal_coding, keyboard_coding): Delete.
22273 (Fset_terminal_coding_system_internal)
22274 (Fset_keyboard_coding_system_internal)
22275 (Fkeyboard_coding_system)
22276 (Fterminal_coding_system): Add a terminal parameter.
22277 Get terminal_coding from the terminal.
22278 (init_coding_once): Don't call setup_coding_system here.
22279
22280 * dispextern.h (set_scroll_region, turn_off_insert)
22281 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22282 (tty_clear_end_of_line, tty_setup_colors)
22283 (delete_tty, updating_frame)
22284 (produce_special_glyphs, produce_glyphs, write_glyphs)
22285 (insert_glyphs): Remove.
22286 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22287 (tty_turn_off_highlight, get_tty_size): Add declaration.
22288 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22289
22290 * frame.h (enum output_method): Add output_initial.
22291 (struct x_output): Delete.
22292 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22293 Access foreground_pixel and background_pixel directly from the frame.
22294 (tty_display): Delete.
22295 (struct frame): Add buried_buffer_list, foreground_pixel,
22296 background_pixel and terminal. Delete kboard.
22297 (union output_data): Add tty.
22298 (FRAME_KBOARD): Get the kboard from the terminal.
22299 (FRAME_INITIAL_P): New macro.
22300 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22301 (Qterm_environment_variable, Qdisplay_environment_variable)
22302 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22303 New declarations.
22304
22305 * termchar.h (tty_output, tty_display_info): New structures.
22306 (tty_list): Declare.
22307 (FRAME_TTY, CURTTY): New macros.
22308 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22309 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22310 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22311 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22312
22313 * callproc.c: Include frame.h and termhooks.h, for terminal
22314 parameters.
22315 (add_env): New function.
22316 (child_setup): Use it.
22317 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22318 (getenv_internal): Fix get_terminal_param call.
22319 (Fgetenv_internal, egetenv): Update doc.
22320 (syms_of_callproc): Initialize Vprocess_environment to nil.
22321 Register and initialize them. Remove obsolete defvars. Update doc
22322 strings.
22323 (child_setup): Handle Vlocal_environment_variables.
22324 (getenv_internal): Add terminal parameter.
22325 Handle Vlocal_environment_variables.
22326 (Fgetenv_internal): Add terminal parameter.
22327 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22328 environment in a frame (not terminal) parameter. Update doc strings.
22329 (set_initial_environment): Rename from set_global_environment.
22330 Store Emacs environment in initial frame parameter.
22331
22332 * xdisp.c (redisplay_internal): Update references to
22333 `previous_terminal_frame'.
22334 (display_mode_line, Fformat_mode_line): Replace calls to
22335 `push_frame_kboard' with `push_kboard'.
22336 (get_glyph_string_clip_rects): Add extra parentheses and
22337 braces to prevent compiler warnings.
22338 (calc_pixel_width_or_height): Add xassert to check that the
22339 frame is alive. Don't call `lookup_image' on a termcap frame.
22340 (message2_nolog, message3_nolog, redisplay_internal)
22341 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22342 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22343 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22344 (Fx_display_pixel_width, Fx_display_pixel_height)
22345 (Fx_display_planes, Fx_display_color_cells)
22346 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22347 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22348 (Fx_display_backing_store, Fx_display_visual_class)
22349 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22350 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22351
22352 * xfns.c (x_set_foreground_color x_set_background_color)
22353 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22354 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22355 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22356 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22357 terminal that is being deleted.
22358 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22359 frame parameter, and make sure it overrides any user-supplied setting.
22360 (Fx_close_connection, Fx_synchronize): Unify argument names with
22361 the rest of the DEFUNs.
22362
22363 * dispnew.c (Fsend_string_to_terminal): Update call to
22364 `get_tty_terminal'.
22365 (Fredraw_frame, Fsend_string_to_terminal)
22366 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22367 FRAME_TERMCAP_P and FRAME_TTY.
22368 (window_change_signal): Don't believe width/height values that are
22369 impossibly small.
22370 (Vinitial_window_system): Rename from Vwindow_system.
22371 (termscript, Wcm, rif): Delete.
22372
22373 * termhooks.h (struct terminal): New struct containing the
22374 previously global text display hooks and new members NAME,
22375 DELETED and PARAM_ALIST.
22376 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22377 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22378 (FRAME_RIF): New macros.
22379 (get_terminal_param, get_device): New declarations.
22380 (termscript): Delete declaration.
22381
22382 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22383 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22384 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22385 FRAME_FOREGROUND_PIXEL.
22386 (x_fully_uncatch_errors): Disable definition.
22387 (x_scroll_bar_expose): Fix reference to foreground pixel.
22388 (XTread_socket): Disable loop on all X displays.
22389 (x_delete_terminal): Don't set terminal->deleted and let
22390 delete_terminal delete the frames on the terminal.
22391 (x_delete_display): Doc update to reflect changes in
22392 delete_terminal.
22393 (x_display_info) <terminal>: Move member earlier in the struct.
22394 (deleting_tty): Remove old variable.
22395 (Fsuspend_tty): Call clear_tty_hooks.
22396 (Fresume_tty, init_tty): Call set_tty_hooks.
22397 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22398 errors on X frames.
22399 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22400 (handle_one_xevent): Initialize `f' to NULL.
22401 (x_delete_terminal, x_create_terminal): New functions.
22402 (XTset_terminal_modes, XTreset_terminal_modes)
22403 (XTread_socket, x_connection_closed, x_term_init)
22404 (x_term_init, x_delete_display): Add terminal parameter.
22405 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22406 X connections.
22407
22408 * frame.c: Include termchar.h.
22409 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22410 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22411 (Qdisplay_environment_variable): New vars.
22412 (Fframep): Deal with output_initial.
22413 (Fframe-live-p): Doc fix.
22414 (Fwindow-system): New function.
22415 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22416 (make_terminal_frame): Don't create frames on a terminal that is
22417 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22418 (store_frame_param): Check for found_for_frame before calling XFRAME.
22419 (Fmake_terminal_frame): Handle NULL tty names correctly.
22420 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22421 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22422 frames to refer to a deleted frame in their 'environment parameter.
22423 (Fframe_with_environment): New function.
22424 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22425 (get_future_frame_param): New function.
22426 (Fmake_terminal_frame): Use it.
22427 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22428
22429 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22430 * sysdep.c (reset_sys_modes): Update for renames.
22431
22432 * keyboard.c (tty_read_avail_input): New function.
22433 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22434 (syms_of_keyboard): Defsubr them.
22435 (Fset_input_meta_mode, Fset_quit_char): New functions.
22436 (Fset_input_mode): Split to above functions.
22437 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22438 parameter. Use it in call to `read_char'.
22439 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22440 Set wrong_kboard_jmpbuf correctly in recursive calls.
22441 Use current_kboard to access Vkeyboard_translate_table.
22442 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22443 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22444 Update longjmp invocations. Remember the original current_kboard,
22445 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22446 changes it. Comment out unnecessary calls to
22447 `record_single_kboard_state' and `any_kboard_state'.
22448 Update recursive calls.
22449 (wrong_kboard_jmpbuf): Remove global variable.
22450 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22451 Handle deleted interrupted_kboards correctly; that is a legal
22452 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22453 and read_char calls. Abort if interrupted_kboard died in read_char.
22454 (any_kboard_state, single_kboard_state)
22455 (push_frame_kboard): Remove function.
22456 (pop_kboard): Switch out of single_kboard mode if the kboard has
22457 been deleted. Remove unused variable. Help debugging by not
22458 changing current_kboard unnecessarily. Set current_kboard to the
22459 kboard of the selected frame when the stored kboard object has
22460 been deleted before pop_kboard.
22461 (temporarily_switch_to_single_kboard): Change first parameter to a
22462 frame pointer. Throw an error when caller wants to change kboards
22463 while in single_kboard mode. Don't push_kboard if we weren't in
22464 single kboard state. Don't pop_kboard if we popped into any
22465 kboard state.
22466 (restore_kboard_configuration): Abort if pop_kboard changed the
22467 kboard in single_kboard mode. Call pop_kboard only after setting
22468 up single_kboard mode.
22469 (Frecursive_edit): Switch to single_kboard mode only in nested
22470 command loops.
22471 (cmd_error, command_loop, command_loop_1, timer_check):
22472 Comment out unnecessary call to `any_kboard_state' and
22473 `record_single_kboard_state'.
22474 (delete_kboard): Exit single_kboard mode if we have just deleted
22475 that kboard. Use FRAME_KBOARD.
22476 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22477 `fatal_error_signal'.
22478 (record_single_kboard_state): Don't push_kboard if we weren't in
22479 single kboard state. Don't pop_kboard if we popped into any
22480 kboard state.
22481 (push_frame_kboard): Rename to push_kboard.
22482 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22483 (read_avail_input): Read input from all terminals.
22484 (mark_kboards): Also mark Vkeyboard_translate_table.
22485 (kbd_buffer_store_event_hold): Simplify condition.
22486 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22487 (Vkeyboard_translate_table): Move to struct kboard.
22488 (init_kboard): Initialize Vkeyboard_translate_table.
22489 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22490 Vkeyboard_translate_table. Update doc strings. Update docs of
22491 local-function-key-map and function-key-map.
22492
22493 * terminal.c: New file.
22494
22495 * term.c: Include errno.h.
22496 (Vring_bell_function, device_list, initial_device)
22497 (next_device_id, ring_bell, update_begin, update_end)
22498 (set_terminal_window, cursor_to, raw_cursor_to)
22499 (clear_to_end, clear_frame, clear_end_of_line)
22500 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22501 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22502 (syms_of_term): Move their initialization to terminal.c.
22503 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22504 (Ftty_display_color_cells)
22505 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22506 (clear_tty_hooks, set_tty_hooks)
22507 (init_tty, maybe_fatal): New functions.
22508 (Ftty_type): Return nil if terminal is not on a tty instead of
22509 throwing an error. Doc update.
22510 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22511 Doc update. Initialize new subrs and variables.
22512 (delete_tty): Use terminal->deleted.
22513 (tty_set_terminal_modes): Rename from set_terminal_modes.
22514 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22515 (set_scroll_region): Rename to `tty_set_scroll_region'.
22516 (turn_on_insert): Rename to `tty_turn_on_insert'.
22517 (turn_off_insert): Rename to `tty_turn_off_insert'.
22518 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22519 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22520 (toggle_highligh): Rename to `tty_toggle_highlight'.
22521 (background_highlight): Rename to `tty_background_highlight'.
22522 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22523 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22524 (tty_set_scroll_region, tty_background_highlight)
22525 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22526 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22527 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22528 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22529 Add static modifier.
22530 (tty_reset_terminal_modes, tty_set_terminal_window)
22531 (tty_set_scroll_region, tty_background_highlight)
22532 (tty_highlight_if_desired, tty_cursor_to)
22533 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22534 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22535 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22536 renames.
22537
225382007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22539
22540 * keyboard.c: Qrtl is new.
22541 (parse_tool_bar_item): Handle :rtl keyword.
22542 (syms_of_keyboard): Intern :rtl keyword.
22543
22544 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22545
22546 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22547 so no Lisp code is executed.
22548 (file_for_image, find_rtl_image): New functions.
22549 (xg_get_image_for_pixmap): Use file_for_image.
22550 (update_frame_tool_bar): If direction is RTL, use RTL image if
22551 defined. Use Gtk stock images if defined.
22552
225532007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22554
22555 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22556 for nonexistent or zero-width glyph in composition glyph.
22557
225582007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22559
22560 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22561
22562 * xdisp.c (Finvisible_p): New function.
22563 (syms_of_xdisp): defsubr it.
22564
225652007-08-24 Juanma Barranquero <lekktu@gmail.com>
22566
22567 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22568 Doc fixes.
22569
225702007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22571
22572 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22573
225742007-08-24 Martin Rudalics <rudalics@gmx.at>
22575
22576 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22577 whether decoding has modified buffer contents.
22578
225792007-08-24 Jason Rumney <jasonr@gnu.org>
22580
22581 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22582 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22583 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22584 (init_svg_functions) [HAVE_NTGUI]: New function.
22585 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22586 (svg_load_image): Use them.
22587 (svg_load_image) [HAVE_NTGUI]: Implement background.
22588
225892007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22590
22591 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22592 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22593 (LIBX): Remove @RSVG_LIBS@.
22594 (LIBES): Add $(RSVG_LIBS).
22595
22596 * image.c (svg_load_image): Blend with specified background if exists.
22597 Use IMAGE_BACKGROUND. Add Mac OS Support.
22598
22599 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22600 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22601 Remove macros.
22602 [MAC_OSX] (socket_callback): Do nothing.
22603 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22604 ReceiveNextEvent.
22605 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22606 socket_callback.
22607 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22608
226092007-08-22 Glenn Morris <rgm@gnu.org>
22610
22611 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22612
226132007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22614
22615 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22616
22617 * image.c: Add support for SVG images. Some additional comments
22618 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22619 (svg_image_p): New function to test for SVG image.
22620 (svg_load): New function to load SVG image.
22621 (svg_load_image): New function, helper for svg_load.
22622 (Qsvg): New Lisp_object.
22623 (svg_keyword_index): New enum.
22624 (svg_format): New static `image_keyword' struct.
22625 (svg_type): New static `image_type' struct.
22626 (librsvg/rsvg.h): Include it.
22627
226282007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22629
22630 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22631
226322007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22633
22634 * lread.c (Qold_style_backquotes): New var.
22635 (syms_of_lread): Init and staticpro it.
22636 (load_warn_old_style_backquotes): New fun.
22637 (Fload): Use them to warn about old style backquotes.
22638 (end_of_file_error, Fload): Remove unused vars.
22639
22640 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22641
22642 * lread.c (Vold_style_backquotes): New var.
22643 (syms_of_lread): Init and export it to Elisp.
22644 (read1): Set it when we find an old-style (back)quote.
22645
226462007-08-22 Jason Rumney <jasonr@gnu.org>
22647
22648 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22649
226502007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22651
22652 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22653
226542007-08-19 Richard Stallman <rms@gnu.org>
22655
22656 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22657
226582007-08-19 Andreas Schwab <schwab@suse.de>
22659
22660 * alloc.c (pure): Round PURESIZE up.
22661
226622007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22663
22664 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22665 active frame.
22666
226672007-08-16 Richard Stallman <rms@gnu.org>
22668
22669 * eval.c (Fcommandp): Add parens to clarify.
22670
22671 * minibuf.c (Fall_completions): Use enum for type of table.
22672
22673 * emacs.c (USAGE2): Improve text.
22674
226752007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22676
22677 * term.c (tty_default_color_capabilities): Declare static
22678 variables in file scope, to avoid HPUX compiler problem.
22679
226802007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22681
22682 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22683 to gtk_toolbar_insert.
22684
226852007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22686
22687 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22688
22689 * insdel.c (reset_var_on_error): New fun.
22690 (signal_before_change, signal_after_change):
22691 Use it to reset (after|before)-change-functions to nil in case of error.
22692 Bind inhibit-modification-hooks to t.
22693 Don't bind (after|before)-change-functions to nil while they run.
22694
226952007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22696
22697 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22698 filling pixmap with stippled background.
22699
227002007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22701
22702 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22703 Don't use invisible frame as parent window for repositioning.
22704
227052007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22706
22707 * print.c (new_backquote_output): Rename from old_backquote_output.
22708 (print): Inverse its logic (according to its name) so as to match the
22709 behavior of new_backquote_flag in lread.c.
22710
227112007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22712
22713 * gmalloc.c (posix_memalign): New function.
22714
22715 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22716 ActivateControl/DeactivateControl here.
22717 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22718 frame-notice-user-settings is non-nil.
22719 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22720 for kEventParamFMFontStyle.
22721 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22722 mac_pass_command_to_system and mac_pass_control_to_system here.
22723 (XTread_socket): Call ActivateControl/DeactivateControl here.
22724 (XTread_socket) [TARGET_API_MAC_CARBON]:
22725 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22726 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22727 for window repositioning.
22728
227292007-08-08 Glenn Morris <rgm@gnu.org>
22730
22731 * Replace `iff' in doc-strings and comments.
22732
227332007-08-07 Chong Yidong <cyd@stupidchicken.com>
22734
22735 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22736
227372007-08-07 Martin Rudalics <rudalics@gmx.at>
22738
22739 * fileio.c (Finsert_file_contents): Run format-decode and
22740 after_insert_file_functions on entire buffer when REPLACE is
22741 non-nil and inhibit modification_hooks and point_motion_hooks.
22742 For consistency, run after_insert_file_functions iff something
22743 got inserted. Move signal_after_change and update_compositions
22744 after code running after_insert_file_functions. Make sure that
22745 undo_list doesn't record intermediate steps of the decoding process.
22746
227472007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22748
22749 * emacs.c (main)
22750 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22751 Call malloc_enable_thread on interactive startup.
22752
22753 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22754 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22755 [USE_PTHREAD]: Conditionalize with it.
22756 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22757 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22758 New functions.
22759
227602007-08-06 Chong Yidong <cyd@stupidchicken.com>
22761
22762 * xdisp.c (redisplay_window): When restoring original buffer
22763 position, make sure it is still valid.
22764
22765 * image.c (png_load): Ignore png-supplied background color.
22766
227672007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22768
22769 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22770 Use kCFAbsoluteTimeIntervalSince1970.
22771
22772 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22773 New variable.
22774 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22775 event loop should be quit.
22776 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22777 Quit dialog event loop if quit_dialog_event_loop is set.
22778
22779 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22780 (Selection): New typedef. Use instead of ScrapRef.
22781 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22782 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22783 (mac_clear_selection): Rename from clear_scrap.
22784 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22785 scrap_has_target_type. All uses changed.
22786 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22787 (mac_selection_has_target_p): New functions.
22788 (mac_put_selection_value): Rename from put_scrap_string.
22789 (mac_get_selection_value): Rename from get_scrap_string.
22790 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22791 (put_scrap_private_timestamp, scrap_has_target_type)
22792 (get_scrap_private_timestamp): Remove functions.
22793 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22794 (x_own_selection, x_get_local_selection):
22795 Use mac_valid_selection_value_p.
22796 (x_own_selection): Don't use put_scrap_private_timestamp.
22797 Record OWNERSHIP-INFO into Vselection_alist instead.
22798 (x_get_local_selection): Don't check type if request is local.
22799 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22800 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22801
228022007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22803
22804 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22805 add comment explaining why.
22806
228072007-08-03 Richard Stallman <rms@gnu.org>
22808
22809 * fileio.c (Fvisited_file_modtime): Use make_time.
22810
228112007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22812
22813 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22814 build.
22815
228162007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22817
22818 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22819
228202007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22821
22822 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22823
228242007-07-30 Richard Stallman <rms@gnu.org>
22825
22826 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22827
228282007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22829
22830 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22831
228322007-07-28 Nick Roberts <nickrob@snap.net.nz>
22833
22834 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22835 remote default-directory.
22836
22837 * buffer.c (mode-line-format): Update doc string.
22838
228392007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22840
22841 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22842 scroll bar gap.
22843 (x_scroll_bar_create): Set bar->fringe_extended_p.
22844 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22845 on frame edge. Check fringe background extension. Don't clear
22846 extended fringe background area.
22847
22848 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22849 (w32_fill_area): Enclose multiple statements with do ... while (0).
22850
22851 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22852 Extend fringe background to scroll bar gap.
22853 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22854 Set bar->fringe_extended_p.
22855 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22856 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22857 background extension. Don't clear extended fringe background area.
22858
22859 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22860 New member fringe_extended_p.
22861
228622007-07-25 Glenn Morris <rgm@gnu.org>
22863
22864 * Relicense all FSF files to GPLv3 or later.
22865
22866 * COPYING: Switch to GPLv3.
22867
228682007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22869
22870 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22871
22872 * data.c (Finteractive_form): Check for the presence of an
22873 `interactive-form' symbol property more thoroughly.
22874
22875 * data.c (Finteractive_form): Use an `interactive-form' property if
22876 present, analogous to the function-documentation property.
22877
228782007-07-24 Jason Rumney <jasonr@gnu.org>
22879
22880 * w32fns.c (x_real_positions): Get real position from OS instead of
22881 calculating it.
22882
228832007-07-23 Jason Rumney <jasonr@gnu.org>
22884
22885 * filelock.c (current_lock_owner): Allow for @ sign in username.
22886
228872007-07-22 Nick Roberts <nickrob@snap.net.nz>
22888
22889 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22890 remote default-directory.
22891
22892 * buffer.c (mode-line-format): Describe above case in doc string.
22893
228942007-07-20 Eli Zaretskii <eliz@gnu.org>
22895
22896 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22897 Define if not defined.
22898
228992007-07-18 Jason Rumney <jasonr@gnu.org>
22900
22901 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22902
229032007-07-18 Richard Stallman <rms@gnu.org>
22904
22905 * data.c (Fsetq_default): Doc fix.
22906
22907 * eval.c (Fsetq): Doc fix.
22908
229092007-07-18 Juanma Barranquero <lekktu@gmail.com>
22910
22911 * coding.c (Ffind_operation_coding_system):
22912 * eval.c (For, Fand): Doc fixes.
22913 Reported by Johan Bockgård.
22914
229152007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22916
22917 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22918
22919 * xterm.h: Declare x_ewmh_activate_frame.
22920
22921 * xterm.c (x_ewmh_activate_frame): New function.
22922 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22923
229242007-07-17 Martin Rudalics <rudalics@gmx.at>
22925
22926 * window.c (Fdisplay_buffer): If largest or LRU window is the
22927 only window, split it even if it is not eligible for splitting.
22928 This restores the original behavior broken by the 2007-07-15
22929 change.
22930
229312007-07-17 Glenn Morris <rgm@gnu.org>
22932
22933 * abbrev.c (abbrev_check_chars): New function.
22934 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22935 Call abbrev_check_chars to check abbrev characters are word
22936 constituents. Doc fix.
22937
229382007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22939
22940 * process.c (Fstart_process, Fmake_network_process)
22941 (read_process_output): Fix up last changes.
22942
229432007-07-16 Eli Zaretskii <eliz@gnu.org>
22944
22945 * makefile.w32-in (clean): Don't delete *~.
22946
229472007-07-16 Andreas Schwab <schwab@suse.de>
22948
22949 * window.c (Fdisplay_buffer): Use NILP.
22950 (Fset_window_scroll_bars): Likewise.
22951
229522007-07-15 Martin Rudalics <rudalics@gmx.at>
22953
22954 * window.c (window_min_size_2): New function.
22955 (window_min_size_1, size_window, Fdisplay_buffer)
22956 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22957 windows without mode- or header-lines when window-min-height is
22958 too small.
22959 (size_window): Reset nodelete_p after testing it, following an
22960 earlier note by Kim F. Storm.
22961 (display_buffer): Do not set split_height_threshold to twice the
22962 value of window_min_height to avoid changing the value of a
22963 customizable variable. Rather explicitly check whether the
22964 height of the window that shall be splitted is at least as large
22965 as split_height_threshold.
22966 (Fwindow_full_width_p): New defun.
22967 (syms_of_window): Defsubr it.
22968
22969 * window.h: Add EXFUN for Fwindow_full_width_p.
22970
229712007-07-14 Jason Rumney <jasonr@gnu.org>
22972
22973 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22974
229752007-07-14 Richard Stallman <rms@gnu.org>
22976
22977 * eval.c (maybe_call_debugger): New function.
22978 (find_handler_clause): Use maybe_call_debugger.
22979 Call it when the handler says `debug'.
22980 Eliminate DEBUGGER_VALUE_PTR.
22981 (Fsignal): Eliminate debugger_value.
22982 (Qdebug): New variable.
22983 (syms_of_eval): Initialize it.
22984
229852007-07-14 Juanma Barranquero <lekktu@gmail.com>
22986
22987 * eval.c (Fprogn):
22988 * keyboard.c (Ftrack_mouse):
22989 * print.c (Fwith_output_to_temp_buffer):
22990 * window.c (Fsave_window_excursion): Doc fix.
22991
229922007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22993
22994 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22995
229962007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22997
22998 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22999 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23000 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23001 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23002 Remove unused encoding_carryover.
23003 * process.c: Adjust all functions accordingly.
23004
230052007-07-12 Richard Stallman <rms@gnu.org>
23006
23007 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23008
230092007-07-11 Jason Rumney <jasonr@gnu.org>
23010
23011 * makefile.w32-in (LIBS): Include OLE32.
23012
23013 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23014 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23015
230162007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23017
23018 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23019 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23020 from a Lisp_Object into a bare pointer.
23021 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23022 Adjust the code correspondingly.
23023
23024 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23025
23026 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23027 (term_show_mouse_face): Remove unused var `j'.
23028 (handle_one_term_event): Remove unused vars `i' and `j'.
23029 Don't cast return value of ttyname since it's not necessary.
23030
230312007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23032
23033 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23034 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23035
23036 * fns.c (map_char_table): Use an array of int for `indices' rather than
23037 an array of Lisp_Objects (which are only ever integers anyway).
23038 (Fmap_char_table): Update caller.
23039 * lisp.h: Update prototype.
23040 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23041 * fontset.c (Ffontset_info):
23042 * casetab.c (set_case_table): Update callers.
23043
23044 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23045
23046 * keymap.c (struct accessible_keymaps_data)
23047 (struct where_is_internal_data): New structures.
23048 (accessible_keymaps_1, where_is_internal_1): Use them to change
23049 interface to adhere to the one used by map_keymap.
23050 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23051 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23052
23053 * keymap.h (map_keymap_function_t): More informative prototype.
23054
230552007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23056
23057 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23058 (looking_at_1): Don't change search_regs and last_thing_searched
23059 if `inhibit-changing-match-data' is non-nil.
23060 (string_match_1, search_buffer, set_search_regs): Likewise.
23061 (syms_of_search): Add Lisp level definition for
23062 `inhibit-changing-match-data' and set it to nil.
23063 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23064 start and end of the match, instead of using values in search_regs.
23065
230662007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23067
23068 * minibuf.c (Fcompleting_read): New value `confirm-only'
23069 for `require-match'.
23070
230712007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23072
23073 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23074 part of the 2007-06-27 change to syms_of_fileio.
23075
230762007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23077
23078 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23079 Check WINDOWP before using XWINDOW. Consolidate return statements.
23080
230812007-06-27 Richard Stallman <rms@gnu.org>
23082
23083 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23084
230852007-06-27 Juanma Barranquero <lekktu@gmail.com>
23086
23087 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23088
230892007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23090
23091 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23092 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23093 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23094 (_free_internal, memalign): Use them.
23095 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23096 Initialize to PTHREAD_MUTEX_INITIALIZER.
23097 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23098 (morecore_nolock): Rename from morecore. All uses changed.
23099 Use only nolock versions of internal allocation functions.
23100 (_malloc_internal_nolock, _realloc_internal_nolock)
23101 (_free_internal_nolock): New functions created from
23102 _malloc_internal, _realloc_internal, and _free_internal.
23103 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23104 Copy hook value to automatic variable before its use.
23105 (memalign): Copy hook value to automatic variable before its use.
23106
231072007-06-26 Kenichi Handa <handa@m17n.org>
23108
23109 * coding.c (Ffind_operation_coding_system): Docstring improved.
23110 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23111
231122007-06-25 David Kastrup <dak@gnu.org>
23113
23114 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23115 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23116 cater for additional parameter.
23117
23118 * keymap.h: Adjust number of parameters to `current-active-maps'.
23119
23120 * doc.c (Fsubstitute_command_keys): Adjust call of
23121 `current-active-maps'.
23122
231232007-06-25 David Kastrup <dak@gnu.org>
23124
23125 * callint.c (Fcall_interactively): Make the parsing of interactive
23126 specs somewhat more readable.
23127
231282007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23129
23130 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23131 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23132 if extended background has already been filled.
23133
231342007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23135
23136 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23137 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23138
23139 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23140 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23141 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23142 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23143 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23144 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23145 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23146 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23147 Run timers during dialog popup.
23148 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23149
231502007-06-21 Jason Rumney <jasonr@gnu.org>
23151
23152 * image.c (convert_mono_to_color_image): Swap fore and background.
23153
231542007-06-20 Jason Rumney <jasonr@gnu.org>
23155
23156 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23157 (w32_free_bdf_font): Unmap memory not handle.
23158
231592007-06-20 Sam Steingold <sds@gnu.org>
23160
23161 * gmalloc.c (__morecore): Fix the declaration to comply with the
23162 definition.
23163
231642007-06-20 Juanma Barranquero <lekktu@gmail.com>
23165
23166 * w32term.c (w32_delete_display): Remove leftover declaration.
23167 (w32_define_cursor, w32_initialize): Make static.
23168
23169 * w32.c (_wsa_errlist): Fix typo in error message.
23170 (init_environment): Ignore any environment variable from the
23171 registry having a null value.
23172
231732007-06-20 Glenn Morris <rgm@gnu.org>
23174
23175 * Makefile.in (LIBGIF): Default to -lgif.
23176
231772007-06-17 Jason Rumney <jasonr@gnu.org>
23178
23179 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23180 unicode strings.
23181
231822007-06-16 Juanma Barranquero <lekktu@gmail.com>
23183
23184 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23185 Fix typo in docstring.
23186
231872007-06-16 Eli Zaretskii <eliz@gnu.org>
23188
23189 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23190 and their keybindings.
23191
231922007-06-15 Chong Yidong <cyd@stupidchicken.com>
23193
23194 * composite.c (update_compositions): Fix last fix.
23195
231962007-06-14 Jason Rumney <jasonr@gnu.org>
23197
23198 * w32.c (get_process_times_fn): New function pointer.
23199 (globals_of_w32): Intialize it if present in kernel32.dll.
23200 (w32_get_internal_run_time): New function.
23201
23202 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23203
232042007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23205
23206 * composite.c (update_compositions): Check the validness of
23207 compositions.
23208
232092007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23210
23211 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23212 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23213
23214 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23215 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23216
23217 * macgui.h (USE_MAC_TOOLBAR): New define.
23218
23219 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23220 Return immediately unless popup is activated.
23221
23222 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23223 background to scroll bar gap.
23224 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23225 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23226 scroll bars on frame edge. Check fringe background extension.
23227 Don't clear extended fringe background area.
23228 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23229 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23230 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23231 [USE_MAC_TOOLBAR]: New macros.
23232 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23233 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23234 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23235 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23236 [USE_MAC_TOOLBAR]: New functions.
23237 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23238 manually if previous repositioning has failed.
23239 (mac_handle_keyboard_event): Use precomputed event kind.
23240 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23241 as tool bar item click. Handle mouse movement over tool bar items.
23242
23243 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23244 toolbar_win_gravity.
23245 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23246 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23247 Add externs.
23248
23249 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23250 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23251
232522007-06-14 Chong Yidong <cyd@stupidchicken.com>
23253
23254 * image.c (search_image_cache): Remove unused variable.
23255
232562007-06-13 Chong Yidong <cyd@stupidchicken.com>
23257
23258 * xfns.c, xmenu.c: Link to xaw3d if available.
23259
232602007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23261
23262 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23263 frame_foreground and frame_background.
23264
23265 * image.c (lookup_image): Save frame foreground and background colors.
23266 (search_image_cache): Check if saved and current frame colors match.
23267
232682007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23269
23270 * regex.c (regex_compile): Remove the `regnum' counter.
23271 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23272
232732007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23274
23275 * term.c: Include intervals.h to declare Fget_text_property.
23276
232772007-06-10 Jason Rumney <jasonr@gnu.org>
23278
23279 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23280
232812007-06-08 Juanma Barranquero <lekktu@gmail.com>
23282
23283 * callint.c (Fcall_interactively):
23284 * editfns.c (Fdelete_and_extract_region):
23285 * fileio.c (Fread_file_name):
23286 * fns.c (Fmapconcat):
23287 * keyboard.c (cmd_error_internal):
23288 * keymap.c (Fkey_description):
23289 * lread.c (openp):
23290 * minibuf.c (read_minibuf):
23291 * search.c (wordify):
23292 * sunfns.c (sel_read):
23293 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23294 * xfns.c (x_default_scroll_bar_color_parameter):
23295 * xmenu.c (menu_help_callback):
23296 * xselect.c (Fx_get_atom_name):
23297 * xterm.c (x_term_init): Use empty_unibyte_string.
23298
232992007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23300
23301 * alloc.c (init_strings): Initialize canonical empty strings.
23302 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23303 canonical empty string when the requested size is 0.
23304
23305 * emacs.c (empty_unibyte_string): Rename from empty_string.
23306 (empty_multibyte_string): New canonical empty string.
23307 (syms_of_emacs): Don't initialize empty_string.
23308
23309 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23310 string, if appropriate.
23311 (empty_unibyte_string, empty_multibyte_string): New externs.
23312 (empty_string): Remove extern.
23313
23314 * lread.c (syms_of_lread): Use empty_unibyte_string.
23315
233162007-06-07 Jason Rumney <jasonr@gnu.org>
23317
23318 * s/ms-w32.h: Don't define HAVE_TZNAME.
23319
23320 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23321
233222007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23323
23324 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23325
23326 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23327 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23328
23329 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23330 Don't call next handler.
23331 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23332 Remove argument. Install handler to application.
23333 (set_frame_menubar): Don't change deep_p.
23334 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23335 FRAME_OUTER_TO_INNER_DIFF_Y.
23336 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23337 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23338 [HAVE_DIALOGS]: New macros.
23339 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23340 Use them.
23341 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23342
23343 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23344 init_service_handler. All callers changed. Return OSStatus value.
23345
23346 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23347 All callers changed so as not to call SetPortWindowPort.
23348 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23349 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23350 mac_draw_string_common.
23351 (mac_draw_image_string_qd): Likewise.
23352 (mac_draw_string_common): Use them. Add INLINE.
23353 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23354 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23355 GetGlobalMouse.
23356 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23357 and FRAME_OUTER_TO_INNER_DIFF_Y.
23358 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23359 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23360 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23361 repositioning window to mac_handle_window_event.
23362 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23363 saving window location to mac_handle_window_event
23364 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23365 (install_menu_target_item_handler): Remove argument in extern.
23366 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23367 Also accept command events.
23368 (do_keystroke): New function created from XTread_socket.
23369 (init_command_handler): Remove functions.
23370 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23371 and save window location by kEventWindowShowing and kEventWindowHiding
23372 handlers here. Don't call next handler for window state change and
23373 focus events.
23374 (mac_handle_application_event, mac_handle_keyboard_event)
23375 [TARGET_API_MAC_CARBON]: New functions.
23376 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23377 kEventWindowShowing and kEventWindowHiding events. Move installation
23378 of mouse, font, text input and menu target item handlers to
23379 install_application_handler.
23380 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23381 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23382 New function.
23383 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23384 Register it.
23385 (XTread_socket) [TARGET_API_MAC_CARBON]:
23386 Consolidate SendEventToEventTarget calls.
23387 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23388 Move application activation handler to mac_handle_application_event.
23389 Move keyboard handler to mac_handle_keyboard_event.
23390 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23391 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23392 init_command_handler. Call install_application_handler.
23393
23394 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23395 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23396
233972007-06-07 Glenn Morris <rgm@gnu.org>
23398
23399 * emacs.c (main): Use `emacs-copyright' in --version output.
23400
234012007-06-06 Chong Yidong <cyd@stupidchicken.com>
23402
23403 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23404
234052007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23406
23407 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23408
23409 * macgui.h: Replace WindowPtr with WindowRef.
23410
23411 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23412 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23413 Replace ControlHandle with ControlRef.
23414 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23415
23416 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23417 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23418 Replace ControlHandle with ControlRef.
23419 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23420 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23421
23422 * macterm.h (struct scroll_bar): Rename member control_handle_low
23423 and control_handle_high to control_ref_low and control_ref_high.
23424 All uses changed.
23425 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23426 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23427 respectively. All uses changed.
23428 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23429 (install_window_handler, remove_window_handler): Replace WindowPtr
23430 with WindowRef in externs.
23431
234322007-06-05 Juanma Barranquero <lekktu@gmail.com>
23433
23434 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23435
234362007-06-03 Nick Roberts <nickrob@snap.net.nz>
23437
23438 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23439
23440 * frame.c (Fmouse_position, Fmouse_pixel_position):
23441 Condition on HAVE_GPM too.
23442
23443 * term.c (term_mouse_highlight): Remove unused variables.
23444 (Fterm_open_connection): Set gpm_zerobased to 1.
23445 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23446 Use zero based co-ordinates.
23447 (handle_one_term_event): Report a drag as mouse movement too.
23448
23449 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23450
234512007-06-03 Chong Yidong <cyd@stupidchicken.com>
23452
23453 * image.c (search_image_cache): New function. Require background
23454 color match if background color is unspecified in the image spec.
23455 (uncache_image, lookup_image): Use it.
23456
234572007-06-01 Juanma Barranquero <lekktu@gmail.com>
23458
23459 * window.c (Fshrink_window): Reflow docstring.
23460
234612007-06-02 Chong Yidong <cyd@stupidchicken.com>
23462
23463 * Version 22.1 released.
23464
234652007-06-01 Richard Stallman <rms@gnu.org>
23466
23467 * xfns.c (x_encode_text): Add GCPRO.
23468
234692007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23470
23471 * xfns.c (x_set_name_internal): Save encoded name before
23472 x_encode_text in case string data is relocated.
23473
234742007-05-31 Richard Stallman <rms@gnu.org>
23475
23476 * buffer.c (syms_of_buffer): Doc fix.
23477
234782007-05-30 Nick Roberts <nickrob@snap.net.nz>
23479
23480 * sysdep.c (init_sys_modes): Add rather than replace with
23481 O_NONBLOCK.
23482
23483 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23484 term_mouse_moveto.
23485
23486 * termhooks.h (term_mouse_moveto): New extern.
23487
23488 * term.c (mouse_face_window): Rename...
23489 (Qmouse_face_window): ...to this.
23490 (term_show_mouse_face, term_clear_mouse_face)
23491 (term_mouse_highlight): Use Qmouse_face_window.
23492 (term_mouse_moveto): New function.
23493 (term_mouse_position): Make it work.
23494 (syms_of_term): Uncomment assignment to mouse_position_hook.
23495 Staticpro Qmouse_face_window.
23496
234972007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23498
23499 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23500 around current_column call.
23501
235022007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23503
23504 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23505 * xdisp.c (next_element_from_buffer):
23506 * window.c (delete_window):
23507 * term.c (term_mouse_highlight):
23508 * msdos.c (getdefdir):
23509 * macterm.c (mac_create_bitmap_from_bitmap_data)
23510 (init_font_name_table):
23511 * fns.c (Fsxhash):
23512 * data.c (Fmake_local_variable):
23513 * ccl.c (ccl_driver): Likewise.
23514
235152007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23516
23517 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23518 Call mac_wakeup_from_rne on window size change.
23519
235202007-05-25 Chong Yidong <cyd@stupidchicken.com>
23521
23522 * image.c (uncache_image): Fix typo.
23523
235242007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23525
23526 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23527
235282007-05-22 Richard Stallman <rms@gnu.org>
23529
23530 * xterm.c (x_connection_closed): Remove NO_RETURN.
23531
235322007-05-22 Martin Rudalics <rudalics@gmx.at>
23533
23534 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23535
235362007-05-21 Chong Yidong <cyd@stupidchicken.com>
23537
23538 * image.c (uncache_image): New function.
23539 (Fimage_refresh): New function.
23540
235412007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23542
23543 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23544
235452007-05-20 Nick Roberts <nickrob@snap.net.nz>
23546
23547 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23548 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23549
235502007-05-20 Nick Roberts <nickrob@snap.net.nz>
23551
23552 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23553 conditional on [HAVE_GPM_H].
23554
235552007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23556
23557 * syntax.c (skip_chars): Update syntax-table only after we checked that
23558 the new location is valid.
23559
235602007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23561
23562 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23563 mac_get_window_bounds.
23564
235652007-05-20 Nick Roberts <nickrob@snap.net.nz>
23566
23567 * Makefile.in (LIBGPM): Allow it to be set from configure.
23568 If set then link Emacs with it.
23569
23570 * config.in: Regenerate.
23571
23572 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23573 New externs.
23574
23575 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23576 Include gpm.h.
23577 (handle_one_term_event, term_gpm): New externs.
23578
23579 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23580 and allow it to be interrupted by SIGIO.
23581
23582 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23583 (wait_reading_process_output): Wait on gpm_fd too.
23584 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23585 (add_gpm_wait_descriptor_called_flag): New variable.
23586 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23587
23588 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23589 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23590 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23591 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23592 (make_lispy_event): Add case GPM_CLICK_EVENT.
23593 (read_avail_input): Handle mouse input.
23594
23595 * term.c (write_glyphs_with_face): New function.
23596 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23597 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23598 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23599 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23600 (last_mouse_x, last_mouse_y): New variables.
23601 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23602 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23603 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23604 (Fterm_close_connection): New functions.
23605 (term_init): Initialise mouse_face_window.
23606
236072007-05-19 Chong Yidong <cyd@stupidchicken.com>
23608
23609 * xdisp.c (redisplay_window): If first window line is a
23610 continuation line, recompute the new window start instead of
23611 recentering.
23612
236132007-05-18 Glenn Morris <rgm@gnu.org>
23614
23615 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23616 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23617
236182007-05-17 Glenn Morris <rgm@gnu.org>
23619
23620 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23621
236222007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23623
23624 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23625 dead key repeat and up events.
23626
236272007-05-14 Chong Yidong <cyd@stupidchicken.com>
23628
23629 * image.c (pbm_load): Check image size for monochrome pbm.
23630
236312007-05-13 Chong Yidong <cyd@stupidchicken.com>
23632
23633 * xterm.c (XTread_socket): Revert last change.
23634
236352007-05-12 Chong Yidong <cyd@stupidchicken.com>
23636
23637 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23638
23639 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23640
236412007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23642
23643 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23644 mixup (YAILOM).
23645
236462007-05-07 Andreas Schwab <schwab@suse.de>
23647
23648 * keymap.c (Flookup_key): Fix typo in last change.
23649
236502007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23651
23652 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23653 mapping for unibyte strings.
23654
236552007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23656
23657 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23658 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23659
236602007-04-29 Richard Stallman <rms@gnu.org>
23661
23662 * insdel.c (replace_range): For undo, record insertion first.
23663
236642007-04-29 Andreas Schwab <schwab@suse.de>
23665
23666 * lisp.h (VECSIZE): Use OFFSETOF.
23667
236682007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23669
23670 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23671 disabled lines.
23672
236732007-04-28 Richard Stallman <rms@gnu.org>
23674
23675 * lread.c (read_escape): In a string, \s is always space.
23676
236772007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23678
23679 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23680
23681 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23682 submenu for menu bar items.
23683
23684See ChangeLog.10 for earlier changes.
23685
23686;; Local Variables:
23687;; coding: utf-8
23688;; add-log-time-zone-rule: t
aac0c6e3
MR
23689;; End:
23690
e3eb1dae 23691 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23692
23693 This file is part of GNU Emacs.
23694
23695 GNU Emacs is free software: you can redistribute it and/or modify
23696 it under the terms of the GNU General Public License as published by
23697 the Free Software Foundation, either version 3 of the License, or
23698 (at your option) any later version.
23699
23700 GNU Emacs is distributed in the hope that it will be useful,
23701 but WITHOUT ANY WARRANTY; without even the implied warranty of
23702 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23703 GNU General Public License for more details.
23704
23705 You should have received a copy of the GNU General Public License
23706 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23707
23708;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40